/* 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); font-size: 36px; height: 62px; }
.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, .ov-ai { z-index: 50; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: .3em; white-space: nowrap;
  font-family: Poppins, Arial, sans-serif !important; font-weight: 600 !important; letter-spacing: .01em; line-height: 1;
  opacity: 1 !important; border-radius: 999px !important; padding: 0 .74em 0 .58em !important; text-shadow: none !important; overflow: visible;
  /* style "kaca" (default): smoked-glass pill — the stream has no backdrop to blur, so the glass is a translucent gradient + a hairline rim */
  background: linear-gradient(180deg, rgba(44, 38, 54, .66), rgba(14, 11, 18, .74)) !important; color: #fff !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), inset 0 2px 0 rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .3) !important; }
.ov-ailabel .ov-ai-ic, .ov-ai .ov-ai-ic { flex: none; width: 1.08em; height: 1.08em; display: block; margin-top: -.04em; }
.ov-ai-ic svg { display: block; width: 100%; height: 100%; fill: url(#ovaig); filter: drop-shadow(0 0 .12em rgba(255, 200, 120, .45)); }
.ov-ai-tx { display: block; }
/* style "gradien": violet → pink gradient pill, white sparkle */
.ai-style-gradien .ov-el.ov-ailabel, .ai-style-gradien .ov-ai { background: linear-gradient(100deg, rgba(110, 76, 255, .92), rgba(186, 72, 255, .92) 52%, rgba(255, 86, 140, .92)) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 6px 20px rgba(150, 60, 255, .35) !important; }
.ai-style-gradien .ov-ai-ic svg { fill: #fff; filter: drop-shadow(0 0 .1em rgba(255, 255, 255, .6)); }
/* style "cerah": light pill, dark text, colour sparkle */
.ai-style-cerah .ov-el.ov-ailabel, .ai-style-cerah .ov-ai { background: rgba(255, 255, 255, .93) !important; color: #231a26 !important;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .22) !important; }
.ai-style-cerah .ov-ai-ic svg { filter: none; }
.ai-style-cerah .ov-ai-ic svg path, .ai-style-cerah .ov-ai-ic svg circle { fill: url(#ovaig); }
/* standing AI notice line (booking config ai_disclaimer): small, calm, two lines at most */
.ov-disc { position: absolute; z-index: 45; box-sizing: border-box; padding: 8px 20px 8px 16px; border-radius: 16px; background: rgba(12, 10, 16, .46);
  color: rgba(255, 255, 255, .95); font: 500 24px/1.3 Poppins, Arial, sans-serif; text-align: center; letter-spacing: .005em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); white-space: normal; text-wrap: balance; }
.ov-disc::before { content: "ⓘ"; margin-right: .35em; opacity: .85; }
/* product video box — preview only (poster); on the stream the worker plays the video in this box */
.ov-pip { position: absolute; z-index: 40; border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), 0 10px 26px rgba(0, 0, 0, .35); }
.ov-pip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-pip .ov-pip-play { position: absolute; right: 12px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff;
  font-size: 20px; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-sizing: border-box; }
.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); }
/* classic templates: Shopee's own top-right row → the pill sits lower (= SafeZone::PILL_TOP_PLATFORM); notice line at the safe bottom */
.pf-shopee .ov-ai { top: 25%; right: var(--safe-ai-inset); left: auto; }   /* Shopee: top-RIGHT below "Watch & Earn" (owner 5 Oct); per host the render moves it under the face (SafeZone::pillY) */
/* Shopee's spotlight product card covers x 0–27 %, y 14.5–31 % (SafeZone::EXCLUDE_PLATFORM): the left cards start at 32 % */
.pf-shopee .t-pesta .voucher, .pf-shopee .t-kilat .list { top: 614.4px; }
.ov-disc.ov-disc-classic { left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 8px); max-width: 80%; width: max-content; }

/* ── feat4 selling widgets (overlay-widgets.js, WORKER_API §36) — ONE design family, same as the worker's f4_compose.py:
   tiles 178×154 px (beside the face), radius 24, padding 12/10/12/16, a 4 px accent tab on the left edge, Poppins
   500/700, label 21 · value 38 · question 28 · names 26 · sub 21 (≥ 14 px on the 720 stream). Styles: wg-kaca (smoked glass =
   the AI badge "kaca") | wg-cerah (light glass). Tiles sharing a slot take turns (opacity fade). ── */
.ov-wg { position: absolute; z-index: 44; box-sizing: border-box; font-family: Poppins, Arial, sans-serif; line-height: 1.15; border-radius: 24px;
  --wg-tx: #fff; --wg-mu: rgba(255, 255, 255, .74); --wg-hi: color-mix(in srgb, var(--ac, #E8456F) 55%, #fff); color: var(--wg-tx);
  background: linear-gradient(180deg, rgba(44, 38, 54, .66), rgba(14, 11, 18, .74));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2), inset 0 2px 0 rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .3); }
.ov-wg.wg-cerah { --wg-tx: #231a26; --wg-mu: rgba(35, 26, 38, .66); --wg-hi: color-mix(in srgb, var(--ac, #E8456F) 82%, #000);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(250, 246, 250, .86));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 18px rgba(0, 0, 0, .18); }
.ov-tile { transition: opacity .6s ease; }
.ov-tile.wg-off { opacity: 0; }
.ov-tile.wg-gone { display: none; }
.ov-tile .wg-bar { position: absolute; left: 0; top: 28px; bottom: 28px; width: 5px; border-radius: 0 3px 3px 0; background: var(--ac, #E8456F); z-index: 1; }
.ov-tile .wg-body { position: absolute; inset: 0; padding: 12px 10px 12px 17px; overflow: hidden; border-radius: inherit;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; }
.ov-tile .wg-lb { font-size: 21px; font-weight: 500; color: var(--wg-mu); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .wg-val { font-size: 38px; font-weight: 700; line-height: 1.08; white-space: nowrap; max-width: 100%; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ov-tile .wg-sub { font-size: 21px; font-weight: 500; color: var(--wg-mu); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .wg-sub[hidden] { display: none; }
.ov-tile .wg-q { font-size: 28px; font-weight: 700; line-height: 1.12; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ov-tile .wg-nm { font-size: 26px; font-weight: 500; line-height: 1.18; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-tile.wg-urgent { box-shadow: inset 0 0 0 2px var(--ac, #E8456F), 0 6px 18px rgba(0, 0, 0, .3); }
.ov-tile.wg-urgent .wg-val { color: var(--wg-hi); }
.ov-tile.wg-urgent .wg-bar { width: 7px; }
/* review preview only: sample names / question — a small tab on the tile's top edge (never on the stream) */
.ov-wg .wg-sample { position: absolute; top: -12px; right: 14px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 12px; background: #FFD54A; color: #3a2a00;
  font: 700 14px/24px Poppins, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
/* price card (only when the layout has no product card of its own) */
.ov-wg-price { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; overflow: hidden; }
.ov-wg-price .wg-thumb { flex: none; height: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; }
.ov-wg-price .wg-thumb svg { width: 46%; fill: var(--ac, #E8456F); opacity: .75; }
.ov-wg-price.wg-cerah .wg-thumb { background: rgba(0, 0, 0, .05); }
.ov-wg-price .wg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-wg-price .wg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ov-wg-price .wg-eyebrow { display: flex; gap: 12px; align-items: center; font-size: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.ov-wg-price .wg-live { color: var(--wg-hi); font-weight: 700; }
.ov-wg-price .wg-stk { color: var(--wg-mu); }
.ov-wg-price .wg-stk::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac, #E8456F); margin-right: 8px; vertical-align: middle; }
.ov-wg-price .wg-name { font-weight: 500; font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-wg-price .wg-price { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; font-size: 52px; }
.ov-wg-price .wg-price b { font-size: 1em; font-weight: 700; line-height: 1.05; }
.ov-wg-price.wg-cerah .wg-price b { color: var(--wg-hi); }
.ov-wg-price .wg-price s { font-size: .54em; font-weight: 500; color: var(--wg-mu); }
.ov-wg-price .wg-price .ov-save { font-size: .46em; margin-left: 0; }
.ov-wg-price .wg-cta { flex: none; max-width: 190px; padding: 14px 16px; border-radius: 18px; background: var(--ac, #E8456F); color: #fff; font-size: 24px; font-weight: 700;
  line-height: 1.15; text-align: center; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18); }
/* "Jimat N%" — also on the layout's own price row (saveChips) */
.ov-save { display: inline-block; align-self: center; font-style: normal; font-weight: 700; font-size: .5em; line-height: 1; color: #fff; background: var(--ac, #E8456F);
  padding: .3em .55em; border-radius: .45em; margin-left: .3em; white-space: nowrap; letter-spacing: .01em; }
.t-pesta .price .ov-save, .t-kemas .price .ov-save, .t-kilat .price .ov-save { font-size: 26px; }

/* owner 6 Oct (Shopee strike): sale / live-price wording only with a real promo price (overlay-render.js PROMO_CLAIM) */
.no-promo .ov-promo-claim, .ov-promo-claim.no-promo { display: none !important; }
/* "Gambar produk besar" (owner 10 Oct): the product's own photo large, name + price under it; no CTA pill */
.ov-el.ov-product.ov-product-big { flex-direction: column; align-items: stretch; gap: .4em; }
.ov-product-big .ov-p-img { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; border-radius: .7em; background: #fff; }
.ov-product-big .ov-p-img img { object-fit: contain; }
.ov-product-big .ov-p-info { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: .6em; }
.ov-product-big .ov-p-name { flex: 1; min-width: 0; font-size: .9em; }
.ov-product-big .ov-p-price { flex: none; }
.ov-product-big .ov-p-cta { display: none; }
