/* Polyglot Switcher */
.pgs { --a: var(--pgs-accent, #2563eb); font-family: inherit; font-size: 14px; line-height: 1; position: relative; display: inline-block; }
.pgs * { box-sizing: border-box; }
.pgs button { font: inherit; cursor: pointer; margin: 0; }

/* Dropdown */
.pgs-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(15,23,42,.12); background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 6px 20px rgba(15,23,42,.12); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.pgs-toggle:hover { transform: translateY(-1px); border-color: var(--a); box-shadow: 0 10px 26px rgba(15,23,42,.16); }
.pgs-toggle:focus-visible, .pgs-opt:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.pgs-globe { color: var(--a); }
.pgs-caret { transition: transform .2s ease; opacity: .6; }
.pgs-dropdown.is-open .pgs-caret { transform: rotate(180deg); }

.pgs-list { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: #fff; border: 1px solid rgba(15,23,42,.1); border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.18); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 99999; }
.pgs-dropdown.is-open .pgs-list { opacity: 1; visibility: visible; transform: none; }
.pgs-list li { margin: 0; padding: 0; list-style: none; }
.pgs-list .pgs-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #0f172a; text-align: left; transition: background .12s ease; }
.pgs-list .pgs-opt:hover { background: rgba(37,99,235,.08); }
.pgs-badge { min-width: 34px; padding: 5px 7px; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 700; text-align: center; }
.pgs-opt.is-active .pgs-badge { background: var(--a); color: #fff; }
.pgs-opt.is-active .pgs-name { font-weight: 700; }

/* Segmented buttons */
.pgs-seg { display: inline-flex; padding: 4px; gap: 2px; background: #f1f5f9; border-radius: 999px; }
.pgs-seg .pgs-opt { border: 0; background: transparent; color: #334155; padding: 8px 14px; border-radius: 999px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.pgs-seg .pgs-opt:hover { color: var(--a); }
.pgs-seg .pgs-opt.is-active { background: var(--a); color: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.18); }

/* Floating */
.pgs-float { position: fixed; z-index: 99998; }
.pgs-pos-bottom-right { right: 20px; bottom: 20px; }
.pgs-pos-bottom-left  { left: 20px;  bottom: 20px; }
.pgs-pos-top-right    { right: 20px; top: 20px; }
.pgs-pos-top-left     { left: 20px;  top: 20px; }
.pgs-pos-bottom-right .pgs-list, .pgs-pos-bottom-left .pgs-list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.pgs-pos-bottom-left .pgs-list, .pgs-pos-top-left .pgs-list { right: auto; left: 0; }
body.admin-bar .pgs-pos-top-right, body.admin-bar .pgs-pos-top-left { top: 52px; }

.pgs-menu-item { display: inline-flex; align-items: center; list-style: none; }
.pgs-hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sembunyikan banner & tooltip bawaan Google Translate */
body { top: 0 !important; }
iframe.skiptranslate, .goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
html.translated-ltr body, html.translated-rtl body { top: 0 !important; }

@media (max-width: 600px) {
	.pgs-pos-bottom-right, .pgs-pos-bottom-left { bottom: 14px; }
	.pgs-pos-bottom-right, .pgs-pos-top-right { right: 14px; }
	.pgs-pos-bottom-left, .pgs-pos-top-left { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.pgs *, .pgs-list { transition: none !important; }
}

/* ---------- Editor terjemahan (admin) ---------- */
html.pgs-editing .pgs-float, html.pgs-editing .pgs-menu-item { display: none !important; }
html.pgs-editing body * { cursor: crosshair; }
html.pgs-editing .pgs-ed, html.pgs-editing .pgs-ed * { cursor: auto; }
.pgs-hl { outline: 2px dashed #f59e0b !important; outline-offset: 2px; background-color: rgba(245,158,11,.10); }
.pgs-hl-done { outline: 2px dashed #16a34a !important; outline-offset: 2px; background-color: rgba(22,163,74,.10); }

.pgs-ed { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.4; color: #0f172a; text-align: left; }
.pgs-ed * { box-sizing: border-box; }
.pgs-ed-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2147483640; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; background: #0f172a; color: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.35); max-width: calc(100vw - 24px); }
.pgs-ed-done { padding: 8px 16px; border-radius: 999px; background: #fff; color: #0f172a !important; font-weight: 700; text-decoration: none !important; }
.pgs-ed-overlay { position: fixed; inset: 0; z-index: 2147483642; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.55); }
.pgs-ed-card { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.35); }
.pgs-ed-card h3 { margin: 0 0 12px; font-size: 18px; color: #0f172a; }
.pgs-ed-card label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #475569; }
.pgs-ed-card textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; color: #0f172a; background: #fff; resize: vertical; }
.pgs-ed-card textarea:focus { outline: 2px solid var(--pgs-accent, #2563eb); outline-offset: 0; border-color: transparent; }
.pgs-ed-card .pgs-ed-src { background: #f1f5f9; color: #334155; }
.pgs-ed-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pgs-ed-btn { padding: 10px 18px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #0f172a; font: inherit; font-weight: 600; cursor: pointer; }
.pgs-ed-primary { border-color: transparent; background: var(--pgs-accent, #2563eb); color: #fff; }
.pgs-ed-btn:disabled { opacity: .6; cursor: default; }
.pgs-ed-hint { margin: 12px 0 0; font-size: 12px; color: #64748b; }
.pgs-ed-toast { position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 10px); z-index: 2147483645; padding: 10px 18px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.pgs-ed-toast.is-bad { background: #dc2626; }
.pgs-ed-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .pgs-ed-bar { border-radius: 16px; flex-wrap: wrap; justify-content: center; } }

/* ---------- Arah buka dropdown untuk posisi bebas ---------- */
.pgs.is-up .pgs-list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.pgs.is-left .pgs-list { right: auto; left: 0; transform-origin: top left; }
.pgs.is-up.is-left .pgs-list { transform-origin: bottom left; }
.pgs-float.pgs-custom { z-index: 99998; }

/* ---------- Mode atur posisi (admin) ---------- */
html.pgs-laying .pgs-float { display: block !important; }
.pgs-float.pgs-drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 2px dashed var(--pgs-accent, #2563eb); outline-offset: 6px; border-radius: 999px; }
.pgs-float.pgs-drag::after { content: "↔ seret"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: var(--pgs-accent, #2563eb); color: #fff; font: 600 11px/1.3 -apple-system, "Segoe UI", sans-serif; white-space: nowrap; pointer-events: none; }
.pgs-float.pgs-drag .pgs { pointer-events: none; }
.pgs-float.pgs-drag .pgs-list { display: none; }
html.pgs-dragging .pgs-float.pgs-drag { cursor: grabbing; }
html.pgs-dragging, html.pgs-dragging body { user-select: none; -webkit-user-select: none; }
html.pgs-dragging .pgs-lay-bar { opacity: .25; pointer-events: none; }

.pgs-lay-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147483641; width: calc(100vw - 24px); max-width: 440px; padding: 14px 16px; border-radius: 18px; background: #0f172a; color: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.4); transition: opacity .15s ease; }
.pgs-lay-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pgs-lay-row + .pgs-lay-row, .pgs-lay-hint + .pgs-lay-row { margin-top: 10px; }
.pgs-lay-dev { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; }
.pgs-lay-read { margin-left: auto; font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.pgs-lay-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; opacity: .75; }
.pgs-lay-grid { display: grid; grid-template-columns: repeat(3, 18px); grid-auto-rows: 18px; gap: 4px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.1); }
.pgs-lay-dot { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.pgs-lay-dot:hover { background: #fff; }
.pgs-lay-opts { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }
.pgs-lay-opts select { width: 100%; padding: 7px 8px; border-radius: 8px; border: 0; background: #fff; color: #0f172a; font: inherit; }
.pgs-lay-chk { font-size: 12px; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.pgs-lay-acts { justify-content: flex-end; }
.pgs-lay-done { text-decoration: none !important; display: inline-flex; align-items: center; }
.pgs-lay-bar .pgs-ed-btn { padding: 8px 14px; }

/* ---------- Editor: pratinjau bahasa & daftar teks ---------- */
.pgs-ed-bar { flex-wrap: wrap; justify-content: center; }
.pgs-ed-chips { display: inline-flex; align-items: center; gap: 4px; }
.pgs-ed-chiplab { font-size: 12px; opacity: .7; margin-right: 2px; }
.pgs-ed-chip, .pgs-ed-listbtn { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: 6px 11px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pgs-ed-chip.is-on, .pgs-ed-listbtn.is-on { background: #fff; color: #0f172a; border-color: #fff; }
.pgs-flash { outline: 3px solid var(--pgs-accent, #2563eb) !important; outline-offset: 3px; background-color: rgba(37,99,235,.15); transition: outline-color .3s; }

.pgs-ed-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483642; display: flex; flex-direction: column; width: 380px; max-width: 100vw; background: #fff; box-shadow: -10px 0 40px rgba(15,23,42,.25); }
html.admin-bar .pgs-ed-panel, body.admin-bar .pgs-ed-panel { top: 32px; }
.pgs-ed-ph { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; font-size: 15px; }
.pgs-ed-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f5f9; color: #0f172a; font-size: 20px; line-height: 1; cursor: pointer; }
.pgs-ed-pt { display: flex; gap: 6px; padding: 10px 16px 4px; }
.pgs-ed-pt input, .pgs-ed-pt select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; color: #0f172a; background: #fff; min-width: 0; }
.pgs-ed-pt input { flex: 1; }
.pgs-ed-pt .pgs-ed-btn { padding: 6px 12px; }
.pgs-ed-count { padding: 4px 16px 8px; font-size: 12px; color: #64748b; }
.pgs-ed-list { flex: 1; overflow: auto; padding: 0 12px 8px; }
.pgs-ed-row { margin: 0 0 8px; padding: 10px; border: 1px solid #e2e8f0; border-left: 4px solid #f59e0b; border-radius: 10px; background: #fff; }
.pgs-ed-row.is-done { border-left-color: #16a34a; }
.pgs-ed-rsrc { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; background: none; color: #0f172a; font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.pgs-ed-rsrc:hover { color: var(--pgs-accent, #2563eb); }
.pgs-ed-rf { display: flex; align-items: flex-start; gap: 6px; margin-top: 5px; }
.pgs-ed-lb { flex: none; min-width: 34px; padding: 6px 4px; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 700; text-align: center; }
.pgs-ed-rf textarea { flex: 1; width: 100%; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 13px; color: #0f172a; background: #fff; resize: vertical; }
.pgs-ed-rf textarea:focus { outline: 2px solid var(--pgs-accent, #2563eb); border-color: transparent; }
.pgs-ed-rf textarea.is-saving { opacity: .6; }
.pgs-ed-empty { padding: 24px 8px; text-align: center; color: #64748b; }
.pgs-ed-ph-hint { padding: 10px 16px 14px; margin: 0; border-top: 1px solid #e2e8f0; }
@media (max-width: 600px) {
	.pgs-ed-panel { top: auto; height: 62vh; width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 40px rgba(15,23,42,.3); }
	html.pgs-panel-open .pgs-ed-bar { bottom: calc(62vh + 10px); }
	.pgs-lay-bar { bottom: 8px; }
}

/* ---------- Pesan pengingat ---------- */
.pgs-notice { position: absolute; z-index: 5; width: max-content; max-width: min(240px, 78vw); display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--pgs-accent, #2563eb); color: #fff; font: 600 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 10px 28px rgba(15,23,42,.28); opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96); transition: opacity .25s ease, transform .25s ease, visibility .25s; pointer-events: none; }
.pgs-notice.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; animation: pgs-bob 2.4s ease-in-out .4s infinite; }
.pgs-notice::after { content: ""; position: absolute; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.pgs-notice.is-up { bottom: calc(100% + 14px); }
.pgs-notice.is-down { top: calc(100% + 14px); }
.pgs-notice.is-up::after { bottom: -5px; }
.pgs-notice.is-down::after { top: -5px; }
.pgs-notice.is-left { left: 0; }
.pgs-notice.is-right { right: 0; }
.pgs-notice.is-left::after { left: 24px; }
.pgs-notice.is-right::after { right: 24px; }
.pgs-notice-t { transition: opacity .2s ease; }
.pgs-notice-t.is-swap { opacity: 0; }
.pgs-notice-x { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pgs-notice-x:hover { background: rgba(255,255,255,.4); }
@keyframes pgs-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.pgs-float.pgs-pulse .pgs-toggle, .pgs-float.pgs-pulse .pgs-seg { animation: pgs-ring 1.8s ease-out infinite; }
@keyframes pgs-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pgs-accent, #2563eb) 55%, transparent), 0 6px 20px rgba(15,23,42,.12); } 70% { box-shadow: 0 0 0 14px transparent, 0 6px 20px rgba(15,23,42,.12); } 100% { box-shadow: 0 0 0 0 transparent, 0 6px 20px rgba(15,23,42,.12); } }
html.pgs-editing .pgs-notice, html.pgs-laying .pgs-notice { display: none !important; }
@media (prefers-reduced-motion: reduce) { .pgs-notice.is-on, .pgs-float.pgs-pulse .pgs-toggle, .pgs-float.pgs-pulse .pgs-seg { animation: none !important; } }

/* ---------- Terjemahan otomatis & tinjauan ---------- */
.pgs-ed-pa { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px 0; }
.pgs-ed-pa select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; color: #0f172a; background: #fff; min-width: 0; }
.pgs-ed-pa .pgs-ed-btn { padding: 8px 14px; }
.pgs-ed-prog { padding: 6px 16px 0; font-size: 12px; color: #475569; min-height: 18px; }
.pgs-ed-rh { display: flex; align-items: flex-start; gap: 6px; }
.pgs-ed-rh .pgs-ed-rsrc { flex: 1; }
.pgs-ed-ok { flex: none; width: 26px; height: 26px; padding: 0; border: 1px solid #16a34a; border-radius: 50%; background: #fff; color: #16a34a; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.pgs-ed-ok:hover { background: #16a34a; color: #fff; }
.pgs-ed-row.is-auto { border-left-color: #2563eb; }
.pgs-ed-rf.is-auto textarea { background: #fef9c3; border-color: #facc15; }
.pgs-ed-rf.is-auto .pgs-ed-lb { background: #facc15; color: #713f12; }
.pgs-ed-auto { margin-right: auto; }

.pgs-fb { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 10px); z-index: 2147483645; padding: 8px 16px; border-radius: 999px; background: #0f172a; color: #fff; font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 10px 28px rgba(15,23,42,.3); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.pgs-fb.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tombol "Terjemahkan pilihan" (blok huruf / kata) ---------- */
.pgs-ed-selbtn { position: fixed; z-index: 2147483646; display: none; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--pgs-accent, #2563eb); color: #fff; font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; box-shadow: 0 10px 28px rgba(15,23,42,.35); cursor: pointer; }
.pgs-ed-selbtn:hover { filter: brightness(1.08); }
html.pgs-editing ::selection { background: rgba(245,158,11,.35); }

.pgs-ed-pages { max-width: 180px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: #0f172a; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
html.pgs-browsing .pgs-ed-bar { box-shadow: 0 0 0 2px #22c55e, 0 12px 32px rgba(15,23,42,.35); }

/* ---------- Tampilan HP (layar <= 768px) ---------- */
.pgs-v-m { display: none; }
@media (max-width: 768px) {
	.pgs-v-d { display: none; }
	.pgs-v-m { display: block; }

	.pgs-float.pgs-m { opacity: var(--pgs-mo, .9); transition: opacity .2s ease; }
	.pgs-float.pgs-m:focus-within, .pgs-float.pgs-m:active, .pgs-float.pgs-m:has(.is-open), html.pgs-laying .pgs-float.pgs-m { opacity: 1; }
	.pgs-float.pgs-m .pgs { font-size: var(--pgs-mfs, 12px); }
	.pgs-float.pgs-m .pgs-toggle { padding: .6em .85em; gap: .45em; box-shadow: 0 3px 12px rgba(15,23,42,.2); }
	.pgs-float.pgs-m .pgs-toggle:hover { transform: none; }
	.pgs-float.pgs-m .pgs-globe { width: 1.2em; height: 1.2em; }
	.pgs-float.pgs-m .pgs-caret { width: .8em; height: .8em; }
	.pgs-float.pgs-m .pgs-list { min-width: 11em; padding: .35em; border-radius: 1em; }
	.pgs-float.pgs-m .pgs-list .pgs-opt { padding: .7em .8em; gap: .7em; }
	.pgs-float.pgs-m .pgs-badge { min-width: 2.6em; padding: .35em .5em; font-size: .9em; }
	.pgs-float.pgs-m .pgs-seg { padding: .25em; box-shadow: 0 3px 12px rgba(15,23,42,.18); }
	.pgs-float.pgs-m .pgs-seg .pgs-opt { padding: .55em .85em; }

	/* Isi tombol */
	.pgs-float.pgs-mst-icon .pgs-current, .pgs-float.pgs-mst-icon .pgs-caret { display: none; }
	.pgs-float.pgs-mst-icon .pgs-toggle { padding: .75em; }
	.pgs-float.pgs-mst-code .pgs-globe, .pgs-float.pgs-mst-code .pgs-caret { display: none; }

	/* Bentuk */
	.pgs-float.pgs-ms-round .pgs-toggle { border-radius: .85em; }
	.pgs-float.pgs-ms-round .pgs-seg { border-radius: 1em; }
	.pgs-float.pgs-ms-round .pgs-seg .pgs-opt { border-radius: .75em; }
	.pgs-float.pgs-ms-square .pgs-toggle, .pgs-float.pgs-ms-square .pgs-seg { border-radius: .3em; }
	.pgs-float.pgs-ms-square .pgs-seg .pgs-opt { border-radius: .2em; }
	.pgs-float.pgs-ms-circle .pgs-toggle { border-radius: 50%; width: 2.9em; height: 2.9em; padding: 0; justify-content: center; }
	.pgs-float.pgs-ms-circle .pgs-current, .pgs-float.pgs-ms-circle .pgs-caret { display: none; }
	.pgs-float.pgs-ms-circle .pgs-globe { margin: 0; }
	.pgs-float.pgs-ms-circle .pgs-seg { border-radius: 1.5em; }
	html.pgs-laying .pgs-float.pgs-m.pgs-drag { border-radius: 1em; }
}

/* Editor posisi: kontrol tampilan HP & pratinjau layar HP */
.pgs-lay-m { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; font-size: 12px; }
.pgs-lay-m select { width: 100%; padding: 6px 8px; border-radius: 8px; border: 0; background: #fff; color: #0f172a; font: inherit; }
.pgs-lay-m input[type=range] { width: 100%; }
.pgs-lay-m output { opacity: .75; font-variant-numeric: tabular-nums; margin-left: 6px; }
.pgs-lay-phone { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pgs-phone-ov { position: fixed; inset: 0; z-index: 2147483643; background: rgba(15,23,42,.78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.pgs-phone-frame { width: 390px; max-width: 100%; height: min(800px, calc(100vh - 70px)); border: 10px solid #111827; border-radius: 34px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.pgs-phone-x { padding: 8px 18px; border-radius: 999px; border: 0; background: #fff; color: #0f172a; font: 700 13px/1 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.pgs-phone-t { color: #fff; font: 12px/1.4 -apple-system, "Segoe UI", sans-serif; opacity: .8; text-align: center; }

/* Panel editor posisi: mode kecil */
.pgs-lay-min { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 700 12px/1.2 -apple-system, "Segoe UI", sans-serif; cursor: pointer; }
.pgs-lay-min:hover { background: rgba(255,255,255,.15); }
.pgs-lay-bar.is-min { width: auto; max-width: calc(100vw - 16px); padding: 6px 8px; border-radius: 999px; display: flex; align-items: center; gap: 8px; }
.pgs-lay-bar.is-min .pgs-lay-row + .pgs-lay-row { margin-top: 0; }
.pgs-lay-bar.is-min strong, .pgs-lay-bar.is-min .pgs-lay-dev, .pgs-lay-bar.is-min .pgs-lay-phone, .pgs-lay-bar.is-min .pgs-lay-hint,
.pgs-lay-bar.is-min .pgs-lay-m, .pgs-lay-bar.is-min .pgs-lay-row:not(.pgs-lay-acts):not(:first-child),
.pgs-lay-bar.is-min .pgs-lay-acts .pgs-ed-btn:not(.pgs-ed-primary) { display: none; }
.pgs-lay-bar.is-min .pgs-lay-read { margin-left: 0; }
.pgs-lay-bar.is-min .pgs-lay-row { flex-wrap: nowrap; }
.pgs-lay-bar.is-min .pgs-ed-btn { padding: 6px 12px; }
.pgs-lay-bar.is-min, .pgs-lay-bar.is-min * { white-space: nowrap; }
.pgs-lay-bar.is-min.is-top { top: 10px; bottom: auto; }
body.admin-bar .pgs-lay-bar.is-min.is-top { top: 46px; }

/* Gelembung pesan versi kecil untuk HP */
@media (max-width: 768px) {
	.pgs-notice { max-width: min(190px, 62vw); gap: 6px; padding: 7px 7px 7px 10px; border-radius: 11px; font-size: calc(var(--pgs-mfs, 12px) - 1px); line-height: 1.3; }
	.pgs-notice-x { width: 17px; height: 17px; font-size: 13px; }
	.pgs-notice::after { width: 9px; height: 9px; }
	.pgs-notice.is-up { bottom: calc(100% + 10px); }
	.pgs-notice.is-down { top: calc(100% + 10px); }
	.pgs-notice.is-left::after { left: 16px; }
	.pgs-notice.is-right::after { right: 16px; }
}

/* Panel & toolbar penyesuaian bahasa selalu di layer paling atas, di atas menu/header tema apa pun. */
.pgs-ed { isolation: isolate; }
