/* platform-safe zone — same numbers as App\\Support\\SafeZone / SemutOverlay.SAFE (SafeZoneTest) */
:root { --safe-top: 14%; --safe-side: 10%; --safe-bottom: 22%; --safe-ai-inset: 15%; --safe-ai-top: 10.5%; --safe-actions-w: 16%; --safe-actions-top: 45%; }
/* Live-selling overlays: a 1080x1920 transparent stage laid over the AI host video.
   Accent colour comes from --ac (set per layout). Tints use color-mix(). */
.ov-stage { position: relative; width: 1080px; height: 1920px; overflow: hidden; font-family: Poppins, Arial, sans-serif; color: #3b2a33; --ac: #e8456f;
  --ac-l: color-mix(in srgb, var(--ac) 55%, #fff); --ac-xl: color-mix(in srgb, var(--ac) 10%, #fff); --ac-d: color-mix(in srgb, var(--ac) 70%, #000); }
.ov-stage * { box-sizing: border-box; }
.ov-stage .is-empty { display: none !important; }
.ov-live { position: absolute; top: 36px; left: 32px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.92); border-radius: 40px; padding: 10px 24px 10px 16px; font-size: 32px; font-weight: 700; color: var(--ac); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ov-live i { width: 22px; height: 22px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 6px rgba(255,45,85,.25); }
.ov-ai { position: absolute; right: var(--safe-ai-inset); top: var(--safe-ai-top); background: rgba(0,0,0,.55); color: #fff; font-size: 24px; font-weight: 600; padding: 8px 16px; border-radius: 14px; }
.ov-thumb { flex: none; width: 130px; height: 130px; border-radius: 20px; background: linear-gradient(135deg, var(--ac-xl), color-mix(in srgb, var(--ac) 25%, #fff)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ov-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ov-thumb svg { width: 64px; height: 64px; fill: var(--ac); opacity: .6; }

/* ── Template: PESTA (from the reference design) ── */
.t-pesta .title { position: absolute; top: 118px; left: 0; right: 0; text-align: center; }
.t-pesta .title h1 { margin: 0; font-size: 92px; font-weight: 800; letter-spacing: 2px; line-height: 1.1; color: var(--ac); text-shadow: 0 4px 0 #fff, 0 8px 18px color-mix(in srgb, var(--ac) 35%, transparent); padding: 0 40px; }
.t-pesta .title .pill { display: inline-block; margin-top: 14px; padding: 14px 46px; border-radius: 60px; background: linear-gradient(90deg, var(--ac), var(--ac-l)); color: #fff; font-size: 44px; font-weight: 700; box-shadow: 0 8px 20px color-mix(in srgb, var(--ac) 35%, transparent); }
.t-pesta .perks { position: absolute; top: 400px; right: 22px; width: 272px; background: rgba(28,22,26,.86); border-radius: 28px; padding: 26px 22px 22px; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.t-pesta .perks h3 { margin: 0 0 16px; text-align: center; font-size: 34px; font-weight: 800; background: linear-gradient(90deg, #ffd27d, #ffae4f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-pesta .perk { display: flex; gap: 12px; align-items: flex-start; font-size: 26px; line-height: 1.25; margin: 12px 0; }
.t-pesta .num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffd27d, #f39c3d); color: #3a2410; font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.t-pesta .limit { margin-top: 14px; text-align: center; color: #ffd27d; font-weight: 700; font-size: 26px; }
.t-pesta .voucher { position: absolute; top: 400px; left: 22px; width: 220px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 26px color-mix(in srgb, var(--ac) 28%, transparent); text-align: center; }
.t-pesta .voucher .hd { background: linear-gradient(90deg, var(--ac), var(--ac-l)); color: #fff; font-size: 26px; font-weight: 700; padding: 10px; }
.t-pesta .voucher .amt { font-size: 64px; font-weight: 800; color: var(--ac); line-height: 1; margin: 16px 8px 0; word-break: break-word; }
.t-pesta .voucher .sub { font-size: 20px; color: #8a6070; margin: 8px 10px 12px; }
.t-pesta .voucher .btn { margin: 0 16px 16px; padding: 8px; border-radius: 30px; background: var(--ac); color: #fff; font-size: 22px; font-weight: 700; }
.t-pesta .bar { position: absolute; left: 22px; right: 22px; bottom: 26px; height: 176px; background: rgba(255,255,255,.96); border-radius: 30px; display: flex; align-items: center; gap: 20px; padding: 0 22px; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.t-pesta .info { flex: 1; min-width: 0; }
.t-pesta .tag { display: inline-block; background: var(--ac-xl); color: var(--ac); font-weight: 700; font-size: 22px; padding: 2px 12px; border-radius: 12px; }
.t-pesta .tag.g { background: #eefaf1; color: #1d9a4b; margin-left: 6px; }
.t-pesta .name { font-size: 30px; font-weight: 700; color: #3b2a33; margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-pesta .price { font-size: 24px; color: #8a6070; }
.t-pesta .price b { font-size: 56px; color: var(--ac); font-weight: 800; }
.t-pesta .price s { margin-left: 8px; color: #b9a3ad; }
.t-pesta .buy { flex: none; padding: 22px 26px; border-radius: 40px; font-size: 30px; font-weight: 800; color: #fff; text-align: center; line-height: 1.15; background: linear-gradient(90deg, #ff8a00, #ff4f6d); box-shadow: 0 6px 16px rgba(255,79,109,.4); }

/* ── Template: KEMAS (clean, editorial) ── */
.t-kemas .head { position: absolute; top: 130px; left: 40px; right: 40px; background: rgba(255,255,255,.94); border-radius: 36px; padding: 30px 36px 30px 44px; border-left: 16px solid var(--ac); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.t-kemas .head h1 { margin: 0; font-size: 72px; line-height: 1.05; font-weight: 800; color: #221a1f; letter-spacing: -1px; }
.t-kemas .head p { margin: 10px 0 0; font-size: 34px; font-weight: 600; color: var(--ac-d); }
.t-kemas .chips { position: absolute; left: 40px; right: 40px; bottom: 470px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-kemas .chip { display: flex; gap: 14px; align-items: center; background: rgba(34,26,31,.82); color: #fff; border-radius: 22px; padding: 16px 20px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.t-kemas .chip i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ac-l); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ac) 35%, transparent); }
.t-kemas .ticket { position: absolute; right: 40px; bottom: 300px; display: flex; align-items: stretch; background: var(--ac); color: #fff; border-radius: 22px; box-shadow: 0 10px 24px color-mix(in srgb, var(--ac) 40%, transparent); overflow: hidden; }
.t-kemas .ticket .l { padding: 14px 24px; font-size: 44px; font-weight: 800; line-height: 1; display: flex; align-items: center; }
.t-kemas .ticket .r { padding: 14px 24px; font-size: 22px; font-weight: 600; border-left: 4px dashed rgba(255,255,255,.6); display: flex; flex-direction: column; justify-content: center; }
.t-kemas .ticket .r b { font-size: 24px; text-transform: uppercase; letter-spacing: 2px; }
.t-kemas .card { position: absolute; left: 40px; right: 40px; bottom: 40px; height: 240px; background: #fff; border-radius: 36px; display: flex; align-items: center; gap: 26px; padding: 0 30px; box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.t-kemas .card .ov-thumb { width: 180px; height: 180px; border-radius: 26px; }
.t-kemas .card .info { flex: 1; min-width: 0; }
.t-kemas .card .name { font-size: 36px; font-weight: 700; color: #221a1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-kemas .card .price { margin-top: 6px; font-size: 28px; color: #8b7d86; }
.t-kemas .card .price b { font-size: 66px; color: var(--ac); font-weight: 800; letter-spacing: -1px; }
.t-kemas .card .price s { margin-left: 10px; }
.t-kemas .card .buy { flex: none; width: 150px; height: 150px; border-radius: 50%; background: var(--ac); color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }

/* ── Template: KILAT (flash sale, bold & dark) ── */
.t-kilat .band { position: absolute; top: 120px; left: -40px; right: -40px; transform: rotate(-4deg); background: var(--ac); padding: 26px 80px 30px; box-shadow: 0 16px 0 rgba(0,0,0,.25); text-align: center; }
.t-kilat .band h1 { margin: 0; font-size: 96px; line-height: 1; font-weight: 800; font-style: italic; text-transform: uppercase; color: #fff; letter-spacing: -1px; text-shadow: 5px 5px 0 rgba(0,0,0,.25); }
.t-kilat .sub { position: absolute; top: 330px; left: 0; right: 0; text-align: center; }
.t-kilat .sub span { display: inline-block; background: #111; color: #ffe14d; font-size: 38px; font-weight: 800; padding: 10px 30px; transform: rotate(-4deg); }
.t-kilat .burst { position: absolute; top: 470px; right: 40px; width: 250px; height: 250px; border-radius: 50%; background: #ffe14d; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(8deg); box-shadow: 0 0 0 12px rgba(255,225,77,.35), 0 12px 28px rgba(0,0,0,.3); }
.t-kilat .burst b { font-size: 60px; font-weight: 800; line-height: 1; }
.t-kilat .burst small { font-size: 22px; font-weight: 700; margin-top: 6px; padding: 0 20px; line-height: 1.15; }
.t-kilat .burst em { font-style: normal; font-size: 20px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.t-kilat .list { position: absolute; top: 470px; left: 36px; width: 420px; display: grid; gap: 12px; }
.t-kilat .list div { display: flex; align-items: center; gap: 14px; background: rgba(17,17,17,.85); color: #fff; padding: 14px 18px; border-radius: 16px; font-size: 26px; font-weight: 600; line-height: 1.2; border-left: 8px solid var(--ac); }
.t-kilat .list svg { flex: none; width: 30px; height: 30px; fill: #ffe14d; }
.t-kilat .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 290px; background: linear-gradient(0deg, #111 70%, rgba(17,17,17,0)); display: flex; align-items: flex-end; gap: 24px; padding: 0 36px 40px; }
.t-kilat .bar .ov-thumb { width: 170px; height: 170px; border-radius: 22px; border: 5px solid var(--ac); }
.t-kilat .bar .info { flex: 1; min-width: 0; color: #fff; }
.t-kilat .bar .name { font-size: 32px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-kilat .bar .price b { font-size: 84px; font-weight: 800; color: #ffe14d; letter-spacing: -2px; line-height: 1; }
.t-kilat .bar .price s { font-size: 30px; color: #aaa; margin-left: 12px; }
.t-kilat .bar .buy { flex: none; background: var(--ac); color: #fff; font-size: 30px; font-weight: 800; padding: 22px 28px; border-radius: 18px; text-transform: uppercase; line-height: 1.1; text-align: center; }

/* ── Template: KUIZ (question, options, countdown, top-5 leaderboard) ── */
.t-kuiz .kz-head { position: absolute; top: 120px; left: 0; right: 0; text-align: center; }
.t-kuiz .kz-head h1 { margin: 0; font-size: 96px; font-weight: 800; color: #fff; letter-spacing: -1px; text-shadow: 0 6px 0 var(--ac-d), 0 12px 26px rgba(0,0,0,.35); }
.t-kuiz .prize { display: inline-block; margin-top: 12px; background: #ffe14d; color: #221a1f; font-size: 34px; font-weight: 800; padding: 10px 30px; border-radius: 40px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.t-kuiz .kz-card { position: absolute; left: 40px; right: 40px; bottom: 60px; background: rgba(255,255,255,.97); border-radius: 40px; padding: 34px 36px 30px; box-shadow: 0 16px 40px rgba(0,0,0,.28); border-top: 14px solid var(--ac); }
.t-kuiz .kz-top { display: flex; justify-content: space-between; align-items: center; }
.t-kuiz .kz-num { background: var(--ac-xl); color: var(--ac-d); font-size: 28px; font-weight: 800; padding: 6px 20px; border-radius: 20px; text-transform: uppercase; letter-spacing: 2px; }
.t-kuiz .kz-timer { width: 118px; height: 118px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--ac) var(--pct), var(--ac-xl) 0); }
.t-kuiz .kz-timer b { font-size: 46px; font-weight: 800; color: var(--ac-d); }
.t-kuiz .kz-timer small { font-size: 18px; color: #8b7d86; font-weight: 700; }
.t-kuiz .kz-q { font-size: 50px; font-weight: 800; color: #221a1f; line-height: 1.15; margin: 20px 0 24px; }
.t-kuiz .kz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-kuiz .kz-opt { display: flex; align-items: center; gap: 16px; background: #f5f2f6; border-radius: 22px; padding: 18px 20px; font-size: 32px; font-weight: 700; color: #221a1f; min-height: 96px; }
.t-kuiz .kz-opt span { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--ac); color: #fff; font-weight: 800; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.t-kuiz .kz-hint { margin-top: 20px; text-align: center; font-size: 28px; color: #6d5f68; }
.t-kuiz .kz-hint b { color: var(--ac-d); }
.t-kuiz .kz-board { position: absolute; top: 390px; right: 30px; width: 380px; background: rgba(20,16,30,.86); border-radius: 30px; padding: 22px 22px 16px; color: #fff; }
.t-kuiz .kz-board h3 { margin: 0 0 12px; font-size: 32px; font-weight: 800; color: #ffe14d; text-align: center; }
.t-kuiz .kz-board .row { display: flex; align-items: center; gap: 12px; font-size: 26px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.t-kuiz .kz-board .pos { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ac); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.t-kuiz .kz-board .row:first-of-type .pos { background: #ffe14d; color: #221a1f; }
.t-kuiz .kz-board .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.t-kuiz .kz-board b { color: #ffe14d; }
.t-kuiz .kz-rules { position: absolute; top: 390px; left: 30px; width: 400px; display: grid; gap: 10px; }
.t-kuiz .kz-rules div { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.9); border-radius: 18px; padding: 12px 16px; font-size: 24px; font-weight: 600; color: #221a1f; }
.t-kuiz .kz-rules i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ac); }

/* ── Template: SEMBANG & CERITA ── */
.t-sembang .sb-top { position: absolute; top: 130px; left: 40px; right: 40px; }
.t-sembang .sb-tag { display: inline-block; background: var(--ac); color: #fff; font-size: 28px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; padding: 8px 22px; border-radius: 14px; }
.t-sembang .sb-top h1 { margin: 16px 0 0; font-size: 88px; line-height: 1.02; font-weight: 800; color: #fff; letter-spacing: -1px; text-shadow: 0 6px 24px rgba(0,0,0,.45); }
.t-sembang .sb-top p { margin: 14px 0 0; display: inline-block; background: rgba(255,255,255,.94); color: var(--ac-d); font-size: 36px; font-weight: 700; padding: 10px 24px; border-radius: 18px; }
.t-sembang .sb-agenda { position: absolute; left: 40px; bottom: 300px; width: 560px; background: rgba(15,22,28,.82); color: #fff; border-radius: 30px; padding: 24px 26px; border-left: 12px solid var(--ac); }
.t-sembang .sb-agenda h3 { margin: 0 0 10px; font-size: 30px; font-weight: 800; color: var(--ac-l); text-transform: uppercase; letter-spacing: 2px; }
.t-sembang .sb-agenda div { display: flex; gap: 14px; align-items: center; font-size: 28px; font-weight: 600; padding: 7px 0; }
.t-sembang .sb-agenda .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ac); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.t-sembang .sb-bubble { position: absolute; right: 40px; bottom: 420px; max-width: 420px; background: #fff; color: #221a1f; border-radius: 28px 28px 6px 28px; padding: 18px 24px; font-size: 28px; line-height: 1.25; box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.t-sembang .sb-bubble b { display: block; color: var(--ac-d); font-size: 22px; }
.t-sembang .sb-cta { position: absolute; left: 40px; right: 40px; bottom: 60px; text-align: center; background: linear-gradient(90deg, var(--ac), var(--ac-l)); color: #fff; font-size: 44px; font-weight: 800; padding: 28px; border-radius: 30px; box-shadow: 0 12px 30px color-mix(in srgb, var(--ac) 40%, transparent); }
.t-sembang .sb-cta span { font-weight: 600; font-size: 32px; opacity: .9; }

/* ── Designer layouts (overlay-render.js) ── */
.ov-design { position: relative; width: 1080px; height: 1920px; overflow: hidden; }
.ov-el { position: absolute; box-sizing: border-box; overflow: hidden; line-height: 1.15; display: flex; flex-direction: column; justify-content: center; }
.ov-el .ov-txt { white-space: pre-wrap; word-break: break-word; }
.ov-live, .ov-el.ov-live { flex-direction: row; align-items: center; justify-content: center; gap: .4em; }
.ov-el .ov-dot { width: .6em; height: .6em; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 .18em rgba(255,45,85,.3); flex: none; }
/* mandatory AI badge: ONE guaranteed-contrast style for every layout (the worker captures this same page) —
   dark translucent pill, white text, ✦ mark, ≥ 34 px on the 1080 stage (readable on a phone), sized to its text and
   anchored to the right edge of its box, in the top strip above the host's face */
.ov-el.ov-ailabel { z-index: 50; flex-direction: row; align-items: center; justify-content: center; gap: .35em; white-space: nowrap;
  background: rgba(20, 12, 10, .72) !important; color: #fff !important; opacity: 1 !important; border-radius: 999px !important;
  font-weight: 700 !important; padding: 0 .7em !important; text-shadow: none !important; overflow: visible; }
.ov-el.ov-ailabel::before { content: "✦"; color: #FFD166; font-size: .9em; }
.ov-mq { overflow: hidden; white-space: nowrap; width: 100%; }
.ov-mq-in { display: inline-block; padding-left: 100%; animation: ovmq linear infinite; }
@keyframes ovmq { to { transform: translateX(-100%); } }
.ov-v-hd { background: var(--ac); color: #fff; font-size: .8em; padding: .3em; margin: -12px -12px .3em; }
.ov-v-big { font-size: 2.1em; font-weight: 800; color: var(--ac); line-height: 1; }
.ov-v-sm { font-size: .7em; opacity: .75; margin-top: .3em; }
.ov-hd { font-weight: 800; margin-bottom: .4em; font-size: 1.1em; }
.ov-list, .ov-lb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: .45em; text-align: left; }
.ov-list li, .ov-lb li { display: flex; gap: .45em; align-items: flex-start; }
.ov-list li span { min-width: 0; overflow-wrap: break-word; }
.ov-lb li { align-items: center; padding: .2em 0; border-top: 1px solid rgba(255,255,255,.15); }
.ov-num { flex: none; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--ac); color: #fff; font-size: .85em; display: flex; align-items: center; justify-content: center; }
.ov-lb-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-lb em { font-style: normal; font-weight: 800; }
.ov-el.ov-product { flex-direction: row; align-items: center; gap: .6em; text-align: left; }
.ov-p-img { flex: none; height: 100%; aspect-ratio: 1; border-radius: .6em; overflow: hidden; background: rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; }
.ov-p-img img { width: 100%; height: 100%; object-fit: cover; }
.ov-p-img svg { width: 50%; fill: var(--ac); opacity: .6; }
.ov-p-info { flex: 1; min-width: 0; }
.ov-p-tag { display: inline-block; font-size: .7em; background: var(--ac); color: #fff; padding: .1em .5em; border-radius: .5em; }
.ov-p-name { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; overflow-wrap: anywhere; }   /* #29: 2 lines, then auto-shrink */
/* old price wraps onto a hidden second line when there is no room, instead of showing "R…" */
.ov-p-price { display: flex; flex-wrap: nowrap; align-items: baseline; column-gap: .4em; overflow: hidden; white-space: nowrap; }
.ov-p-price b { font-size: 1.5em; color: var(--ac); font-weight: 800; }
.ov-p-price s { opacity: .55; }
.ov-p-cta { flex: none; max-width: 28%; font-size: .9em; white-space: normal; background: linear-gradient(90deg, #ff8a00, #ff4f6d); color: #fff; font-weight: 800; padding: .6em .8em; border-radius: 1.2em; text-align: center; line-height: 1.1; }
.ov-price-big { font-size: 1.1em; font-weight: 800; line-height: 1; }
.ov-price-old { opacity: .6; font-size: .4em; }
.ov-q-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4em; }
.ov-q-hd { background: var(--ac); color: #fff; padding: .15em .6em; border-radius: .6em; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; }
.ov-q-cd { width: 2.4em; height: 2.4em; border-radius: 50%; border: .18em solid var(--ac); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ov-q-q { font-size: 1.35em; font-weight: 800; margin-bottom: .5em; text-align: left; }
.ov-q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.ov-q-opt { display: flex; gap: .4em; align-items: center; background: rgba(0,0,0,.06); border-radius: .6em; padding: .4em .5em; text-align: left; }
.ov-q-opt b { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ac); color: #fff; display: flex; align-items: center; justify-content: center; }
.ov-img { width: 100%; height: 100%; display: block; }
.ov-el.ov-sticker { align-items: center; justify-content: center; }
.ov-emoji { line-height: 1; }
.ov-el.ov-qr { align-items: center; justify-content: center; gap: .3em; }
.ov-qr { background: #fff; padding: 6%; border-radius: 8%; width: 80%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ov-qr img, .ov-qr canvas { width: 100% !important; height: auto !important; }
.ov-qr-ph { color: #999; font-weight: 800; }
.ov-qr-cap { font-size: .7em; }
.ov-el .ov-txt { display: block; }

/* label toggles (booking session_controls show_ai_label / show_live_label; worker: semutOverlay.update({labels:{ai,live}})) */
.no-ai-label .ov-ailabel, .no-ai-label .ov-ai { display: none !important; }
.no-live-label .ov-live { display: none !important; }
/* LIVE badge retired (owner decision): never drawn on the video, also in old designs / legacy templates */
.ov-live, .ov-el.ov-live { display: none !important; }

/* review mockup only: sample of the worker's question card (never part of the captured overlay) */
.ov-sample-quiz { position: absolute; left: 70px; width: 940px; top: 1130px; box-sizing: border-box; z-index: 40; background: rgba(255,255,255,.96); color: #221A1F;
  border-radius: 40px; padding: 34px 40px 30px; font-family: Poppins, sans-serif; box-shadow: 0 16px 40px rgba(0,0,0,.25); outline: 6px dashed rgba(255,255,255,.7); outline-offset: 10px; }
.ov-sample-quiz .sq-tag { position: absolute; top: -26px; right: 30px; background: #221A1F; color: #FFE14D; font-weight: 800; font-size: 30px; padding: 6px 20px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.ov-sample-quiz .sq-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ov-sample-quiz .sq-n { background: var(--sq, #3056D3); color: #fff; font-weight: 800; font-size: 34px; padding: 8px 24px; border-radius: 18px; letter-spacing: .08em; }
.ov-sample-quiz .sq-cd { width: 96px; height: 96px; border-radius: 50%; border: 8px solid var(--sq, #3056D3); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; }
.ov-sample-quiz .sq-q { margin: 0 0 18px; font-size: 50px; font-weight: 800; line-height: 1.15; }
.ov-sample-quiz .sq-rule { margin: 0; font-size: 36px; font-weight: 700; color: var(--sq, #3056D3); }

/* "Tunjuk zon selamat platform" (previews only) */
.ov-safe-guide { position: absolute; inset: 0; z-index: 999; pointer-events: none; }
.ov-safe-guide .sg { position: absolute; background: repeating-linear-gradient(135deg, rgba(255,59,59,.22) 0 14px, rgba(255,59,59,.08) 14px 28px); border: 3px dashed rgba(255,80,80,.9); box-sizing: border-box; }
.ov-safe-guide .sg span { position: absolute; left: 12px; top: 8px; font: 700 26px/1.2 Poppins, Arial, sans-serif; color: #fff; background: rgba(160,0,0,.75); padding: 4px 10px; border-radius: 8px; }
.ov-safe-guide .sg-top { left: 0; right: 0; top: 0; height: var(--safe-top); }
.ov-safe-guide .sg-bottom { left: 0; right: 0; bottom: 0; height: var(--safe-bottom); }
.ov-safe-guide .sg-bottom span { top: auto; bottom: 10px; }
.ov-safe-guide .sg-left { left: 0; top: var(--safe-top); bottom: var(--safe-bottom); width: var(--safe-side); }
.ov-safe-guide .sg-right { right: 0; top: var(--safe-top); bottom: var(--safe-bottom); width: var(--safe-side); }
.ov-safe-guide .sg-right span { left: auto; right: 4px; writing-mode: vertical-rl; }
.ov-safe-guide .sg-actions { right: 0; width: var(--safe-actions-w); top: var(--safe-actions-top); bottom: var(--safe-bottom); background: repeating-linear-gradient(135deg, rgba(255,160,0,.2) 0 14px, rgba(255,160,0,.06) 14px 28px); border-color: rgba(255,170,0,.95); }
.ov-safe-guide .sg-actions span { background: rgba(150,90,0,.8); }
.ov-safe-guide .sg-safe { left: var(--safe-side); right: var(--safe-side); top: var(--safe-top); bottom: var(--safe-bottom); background: none; border: 3px dashed rgba(60,220,120,.95); }
