/* Gaya khusus setup.html (dipindah dari HTML). */
.i18n-wait body{visibility:hidden}

/* Splashscreen saat pindah halaman */
#splash{position:fixed;inset:0;z-index:99999;background:var(--bg);display:flex;align-items:center;justify-content:center;transition:opacity .35s ease,visibility .35s;pointer-events:auto}
html.i18n-wait #splash{visibility:visible!important}
#splash.fade-out{opacity:0;visibility:hidden;pointer-events:none}
.splash-box{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.splash-logo-wrap{position:relative;width:84px;height:84px;display:flex;align-items:center;justify-content:center}
.splash-logo{width:76px;height:76px;border-radius:20px;position:relative;z-index:2;box-shadow:0 12px 28px rgba(0,0,0,.6);animation:spPop .5s ease-out}
.splash-ring{position:absolute;inset:-6px;border-radius:26px;border:2px solid color-mix(in srgb,var(--accent) 40%,transparent);animation:spRing 1.6s ease-in-out infinite}
.splash-txt{font-family:"Bricolage Grotesque","Instrument Sans",system-ui,sans-serif;font-size:22px;font-weight:800;color:var(--text);letter-spacing:-.02em}
.splash-txt span{color:var(--brand-orange)}
.splash-bar{width:110px;height:3px;background:color-mix(in srgb,var(--ink) 8%,transparent);border-radius:99px;overflow:hidden}
.splash-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--brand-orange),#FBBF24);border-radius:99px;animation:spBar 1.2s ease-in-out infinite}
@keyframes spPop{0%{transform:scale(.8);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes spRing{0%,100%{transform:scale(1);opacity:.4}50%{transform:scale(1.12);opacity:.9}}
@keyframes spBar{0%{transform:translateX(-100%);width:30%}50%{width:60%}100%{transform:translateX(350%);width:30%}}

  .wizard-next{width:100%;margin-top:14px}
  #tplCategory{font-size:13px}
  .ed-grid{grid-template-columns:minmax(0,1fr)!important}
  #edContainer{max-width:520px;margin-inline:auto}

  /* Customer wizard shell: the setup flow is intentionally a single mobile
     screen at a time. The editor internals remain available to the renderer. */
  body.setup-page{--shell-pad:clamp(14px,4vw,18px);--grid-gap:clamp(10px,3vw,14px);--media-max:min(360px,calc(100vw - (var(--shell-pad) * 2) - 24px),calc(100svh - 300px));--tile-size:clamp(112px,min(40vw,calc((100svh - 300px - var(--grid-gap)) / 2)),164px);--upload-tile:clamp(76px,min(40vw,calc((100svh - 390px - var(--grid-gap)) / 2)),180px);--upload-single:clamp(150px,min(72vw,calc(100svh - 340px)),320px);height:100svh;overflow:hidden;padding-top:59px;background:#fff;color:var(--text)}
  body.setup-page #waFloatBtn,body.setup-page .wa-float-btn{display:none!important}
  body.setup-page .appbar{position:fixed;top:0;left:50%;z-index:50;width:min(480px,100%);transform:translateX(-50%);background:var(--surface);border-bottom:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));color:var(--text);padding:12px var(--shell-pad);box-shadow:0 2px 12px rgba(48,32,128,.04)}
  body.setup-page .appbar .brand{margin:auto}
  body.setup-page .appbar .brand img{width:34px;height:34px;border-radius:11px}
  body.setup-page .appbar .brand b{font-size:19px;color:var(--text);letter-spacing:-.7px}
  body.setup-page .appbar .brand b span{color:var(--violet-ui)}
  body.setup-page .appbar .icon-btn{display:none}
  body.setup-page #cartBtn{position:absolute;right:var(--shell-pad);top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));border-radius:13px;background:var(--surface);color:var(--text);cursor:pointer;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 12%,transparent)}
  body.setup-page #cartBtn svg{width:24px!important;height:24px!important}
  body.setup-page #cartBadge{position:absolute;top:0;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:800;line-height:20px;text-align:center;box-shadow:0 2px 6px color-mix(in srgb,var(--accent) 35%,transparent)}
  body.setup-page .wrap.wide{max-width:480px;min-height:calc(100svh - 59px);padding:0 var(--shell-pad) calc(8px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:0 0 50px rgba(48,32,128,.07)}
  body.setup-page #app>h1,body.setup-page #lead{display:none}
  body.setup-page .stepper{display:none!important}
  body.setup-page .stepper div{font-size:9px;color:var(--muted);line-height:1.15;min-width:0;overflow-wrap:anywhere;font-weight:700}
  body.setup-page .stepper div::before{height:4px;background:color-mix(in srgb,var(--violet-ui) 13%,var(--surface));margin-bottom:6px;border-radius:4px}
  body.setup-page .stepper div.on{color:var(--text)}
  body.setup-page .stepper div.on::before{background:var(--violet-ui)}
  body.setup-page .stepper div.ok{color:var(--violet-ui)}
  body.setup-page .stepper div.ok::before{background:var(--violet-ui)}
  body.setup-page .card{background:var(--surface);border:0;border-radius:0;padding:22px var(--shell-pad) 8px;box-shadow:none;margin:0 calc(0px - var(--shell-pad));width:calc(100% + var(--shell-pad) + var(--shell-pad));height:calc(100svh - 128px);min-height:420px;max-height:none;overflow:hidden;color:var(--text)}
  body.setup-page .step{display:flex;flex-direction:column}
  body.setup-page .wizard-step-content{display:flex;flex:1;min-height:0;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
  body.setup-page .step>.photo-count-options{flex:1;min-height:0;display:grid;gap:var(--grid-gap);align-content:safe center;justify-content:center;margin:8px 0;overflow:hidden}
  body.setup-page .step>.category-grid{flex:1;min-height:0;display:grid;gap:var(--grid-gap);align-content:safe center;justify-content:center;margin:8px 0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 8px;scrollbar-width:thin}
  body.setup-page .step>#uploadMount,body.setup-page .step>#templateMount,body.setup-page .step>#videoMount,body.setup-page .step>#previewMount,body.setup-page .step>#renderStatus,body.setup-page .step>#watchMount{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:safe center;overflow:hidden}
  body.setup-page #wizardMount{height:auto;min-height:0}
  body.setup-page .wizard-actions{display:flex;gap:10px;width:100%;margin-top:auto;padding:12px 0 0;border-top:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));background:transparent;border-radius:0;flex-shrink:0}
  body.setup-page .wizard-actions .btn{width:auto;flex:1;margin:0!important}
  body.setup-page .wizard-back{min-height:50px;border:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));border-radius:999px;background:color-mix(in srgb,var(--violet-ui) 9%,var(--surface));color:var(--text);font-size:14px;font-weight:800;padding:10px 16px;margin:0;cursor:pointer}
  body.setup-page .wizard-back[hidden]{display:none}
  body.setup-page #s1 #paperSection,body.setup-page #s1 #uploadControls{display:none!important}
  body.setup-page #s1 .counter{display:none}
  body.setup-page .step>.photo-count-options{display:grid;grid-template-columns:repeat(2,var(--tile-size));gap:var(--grid-gap);width:min(100%,calc(var(--tile-size) * 2 + var(--grid-gap)));flex:1;min-height:0;align-content:safe center;justify-content:center;margin:8px auto;overflow:hidden}
  body.setup-page .photo-count-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;aspect-ratio:1/1;min-height:0;padding:10px;border:1px solid var(--line-solid);border-radius:14px;background:linear-gradient(110deg,var(--surface),var(--surface-2));color:var(--text);text-align:center;cursor:pointer;box-shadow:0 4px 12px rgba(40,28,83,.07)}
  body.setup-page .photo-count-option .count-icon{display:flex;align-items:flex-end;justify-content:center;gap:1px;width:32px;height:28px;color:var(--dim);line-height:1}
  body.setup-page .photo-count-option .count-icon i{position:relative;display:block;width:9px;height:15px;border-radius:7px 7px 2px 2px;background:currentColor;font-style:normal}
  body.setup-page .photo-count-option .count-icon i::before{content:"";position:absolute;left:1px;top:-7px;width:7px;height:7px;border-radius:50%;background:currentColor}
  body.setup-page .photo-count-option .count-icon i:nth-child(2),body.setup-page .photo-count-option .count-icon i:nth-child(3),body.setup-page .photo-count-option .count-icon i:nth-child(4){width:8px;height:13px}
  body.setup-page .photo-count-option .count-icon i:nth-child(2)::before,body.setup-page .photo-count-option .count-icon i:nth-child(3)::before,body.setup-page .photo-count-option .count-icon i:nth-child(4)::before{width:6px;height:6px}
  body.setup-page .photo-count-option b{font-size:14px;font-weight:600}
  body.setup-page .photo-count-option .check{position:absolute;top:8px;right:8px;display:none;margin:0;width:20px;height:20px;border-radius:50%;background:var(--accent);color:var(--on-accent);text-align:center;font-size:13px;line-height:20px}
  body.setup-page .photo-count-option[aria-pressed="true"]{border:1.5px solid var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface));box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 16%,transparent)}
  body.setup-page .photo-count-option[aria-pressed="true"] .count-icon{color:var(--accent-text)}
  body.setup-page .photo-count-option[aria-pressed="true"] .check{display:block}
  body.setup-page #s1Next,body.setup-page #uploadNext,body.setup-page #categoryNext,body.setup-page #s2TplNext,body.setup-page #s2Next,body.setup-page #videoNext,body.setup-page #previewNext,body.setup-page #renderRetry{margin-top:auto}
  body.setup-page #categoryNext,body.setup-page #tplBtnPrevAction,body.setup-page #tplBtnNextAction,body.setup-page #tplQuickSelect,body.setup-page #stab-shapes>.small.muted,body.setup-page #stab-shapes>.tpl-single-showcase+.small.muted{display:none!important}
  body.setup-page #tplGrid{display:none!important}
  body.setup-page #templateScreen .tpl-single-showcase{position:relative;display:flex!important;flex:1;min-height:0;justify-content:center;padding:14px 24px 8px;margin:0;background:color-mix(in srgb,var(--violet-ui) 9%,var(--surface))!important;border:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface))!important;border-radius:18px!important;overflow:hidden}
  body.setup-page #templateScreen .tpl-selection-heading{display:none}
  body.setup-page #templateScreen .tpl-single-showcase{padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:hidden!important;align-items:center}
  body.setup-page #templateScreen #tplSingleCard{position:absolute;top:0;bottom:28px;left:0;right:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:auto!important;height:auto;max-width:none;cursor:default}
  body.setup-page #templateScreen .tpl-single-showcase{container-type:size}
  body.setup-page #templateScreen #tplSingleCanvasWrap{flex:0 0 auto!important;min-height:0;width:min(100cqw,calc((100cqh - 68px) * var(--tpl-aspect-num,.6667)))!important;height:auto!important;max-width:100%!important;max-height:calc(100cqh - 68px)!important;aspect-ratio:var(--tpl-aspect,2/3)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  body.setup-page #templateScreen #tplSingleCanvasWrap canvas{display:block;width:100%!important;height:100%!important;object-fit:fill}
  body.setup-page #templateScreen .tpl-nav-btn{display:grid!important;position:absolute;top:50%;z-index:2;width:34px;height:34px;place-items:center;transform:translateY(-50%);border:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));border-radius:50%;background:var(--surface);color:var(--violet-ui);font-size:18px;box-shadow:0 4px 10px rgba(33,24,74,.12)}
  body.setup-page #templateScreen .tpl-nav-prev{left:0}
  body.setup-page #templateScreen .tpl-nav-next{right:0}
  body.setup-page #templateScreen .small.muted{display:none!important}
  body.setup-page #templateScreen #tplSingleName{display:block!important;width:100%;font-size:16px!important;line-height:1.3;margin-top:10px;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;text-align:center;color:var(--text)!important}
  body.setup-page #templateScreen #tplSingleBadge,body.setup-page #templateScreen #tplSingleMeta{display:none!important}
  body.setup-page #templateScreen #tplSingleCard>div:last-child>div:last-child{display:none!important}
  body.setup-page #templateScreen #tplPagination{display:none!important}
  body.setup-page #templateScreen .tpl-counter{display:none!important}
  body.setup-page #templateScreen #templateMount{display:contents!important}
  body.setup-page #templateScreen #templatePane,body.setup-page #templateScreen #templatePane #stab-shapes{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
  body.setup-page #templateScreen #templatePane #stab-shapes>.tpl-single-showcase{flex:1;min-height:0}
  body.setup-page #templateScreen #templateActions{margin-top:auto;flex-shrink:0}
  body.setup-page .tpl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0;padding:0;overflow:visible}
  body.setup-page .tpl-grid .tpl{display:flex;flex-direction:column;min-width:0;width:100%;padding:5px;border:1.5px solid color-mix(in srgb,var(--violet-ui) 18%,var(--surface));border-radius:8px;background:var(--surface);color:var(--text);box-shadow:0 3px 9px rgba(40,28,83,.07);font-size:10px;overflow:hidden}
  body.setup-page .tpl-grid .tpl canvas,body.setup-page .tpl-grid .tpl .tpl-none{width:100%;height:70px;aspect-ratio:auto;object-fit:contain;background:#f0eff6;border-radius:5px}
  body.setup-page .tpl-grid .tpl span{display:-webkit-box;min-height:28px;margin-top:4px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:14px}
  body.setup-page .tpl-grid .tpl.on{border-color:var(--violet-ui);box-shadow:0 0 0 1px var(--accent)}
  body.setup-page .tpl-pagination{display:flex;justify-content:center;align-items:center;gap:8px;min-height:24px}
  body.setup-page .tpl-pagination button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#d5d2e2;cursor:pointer}
  body.setup-page .tpl-pagination button[aria-current="true"]{width:20px;border-radius:8px;background:var(--violet-ui)}
  body.setup-page .template-picker{display:flex;flex:1;min-height:0;flex-direction:column}
  body.setup-page #templateMount{display:flex;flex:1;min-height:0;flex-direction:column}
  body.setup-page #templatePane,body.setup-page #stab-shapes{display:flex;flex:1;min-height:0;flex-direction:column}
  body.setup-page #tplGrid{display:none!important;height:0;min-height:0;overflow:hidden}
  body.setup-page .wizard-actions{flex-shrink:0}
  body.setup-page .step-label{justify-content:center;color:var(--violet-ui);font-size:11px;margin-bottom:18px}
  body.setup-page .step-label{display:none!important}
  body.setup-page .step-label::before{display:none}
  body.setup-page h2,body.setup-page h3{color:var(--text)}
  body.setup-page .muted,body.setup-page .small{color:var(--muted)}
  body.setup-page .btn{background:linear-gradient(100deg,var(--accent),var(--accent-2));color:var(--on-accent);border-radius:999px;min-height:50px;box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 24%,transparent);font-weight:800}
  body.setup-page .btn.ghost{background:color-mix(in srgb,var(--violet-ui) 9%,var(--surface));border:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));color:var(--text);box-shadow:none}
  body.setup-page .btn.gold{background:linear-gradient(100deg,var(--accent),var(--accent-2));color:var(--on-accent);box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 24%,transparent)}
  body.setup-page .field{background:var(--surface-2);border-color:color-mix(in srgb,var(--violet-ui) 22%,var(--surface));color:var(--text)}
  body.setup-page .counter{display:block;text-align:center}
  body.setup-page #s1 #paperSection{margin-top:20px}
  body.setup-page #s1 .screen-title{margin-top:8px}
  body.setup-page #uploadControls{margin:20px 0}
  body.setup-page #uploadMount{flex:1;min-height:0;overflow:hidden}
  body.setup-page #uploadMount #uploadControls{margin:8px 0}
  body.setup-page #uploadMount .slots{grid-template-columns:repeat(2,var(--upload-tile));max-width:calc(var(--upload-tile) * 2 + var(--grid-gap));width:100%;gap:var(--grid-gap);margin:8px auto 0;justify-content:start}
  body.setup-page #uploadMount .slots[data-count="1"]{grid-template-columns:var(--upload-tile);max-width:var(--upload-tile);justify-content:center}
  body.setup-page #uploadMount .slots[data-count="1"].single-filled{grid-template-columns:var(--upload-single);max-width:var(--upload-single)}
  body.setup-page #uploadMount .slots.single-filled .slot.filled{background:#141414}
  body.setup-page #uploadMount .slots.single-filled .slot.filled canvas{object-fit:contain}
  body.setup-page #uploadMount .slot{position:relative;display:flex;aspect-ratio:1/1;min-height:0;align-items:center;justify-content:center;padding:0;border:1.5px dashed var(--line-solid);border-radius:16px;background:var(--surface-2);color:var(--muted);overflow:hidden}
  body.setup-page #uploadMount .slot canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
  body.setup-page #uploadMount .slot.filled canvas{object-fit:cover}
  body.setup-page #uploadMount .slot:not(.filled){flex-direction:column;gap:8px;cursor:pointer}
  body.setup-page #uploadMount .slot:not(.filled) .plus{display:flex;width:46px;height:46px;align-items:center;justify-content:center;border-radius:14px;background:color-mix(in srgb,var(--violet-ui) 8%,var(--surface));color:var(--violet-ui);font-size:20px}
  body.setup-page #uploadMount .slot:not(.filled) .plus .fa-camera{position:relative;display:block;width:24px;height:17px;border:2px solid currentColor;border-radius:4px;font-size:0}
  body.setup-page #uploadMount .slot:not(.filled) .plus .fa-camera::before{content:"";position:absolute;left:6px;top:3px;width:7px;height:7px;border:2px solid currentColor;border-radius:50%}
  body.setup-page #uploadMount .slot:not(.filled) .plus .fa-camera::after{content:"";position:absolute;left:3px;top:-5px;width:8px;height:5px;border-radius:2px 2px 0 0;background:currentColor}
  body.setup-page #uploadMount .slot:not(.filled)>span:not(.sh){font-size:13px;font-weight:700;text-align:center}
  body.setup-page #uploadMount .slot .sh{position:absolute;right:4px;bottom:4px;left:4px;border-radius:5px;background:color-mix(in srgb,var(--accent) 88%,transparent);color:#fff;text-align:center;font-size:9px}
  body.setup-page #uploadMount .slot .no{position:absolute;top:5px;left:5px;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--accent) 92%,transparent);color:#fff;font-size:11px;font-weight:700}
  body.setup-page #uploadMount .slot .x{position:absolute;top:5px;right:5px;z-index:2;width:25px;height:25px;border:0;border-radius:50%;background:rgba(17,22,47,.72);color:#fff;font-size:13px}
  body.setup-page #uploadScreen .screen-title{font-size:22px;margin-top:4px}
  body.setup-page #uploadScreen .screen-note{margin-bottom:16px;color:var(--text)}
  body.setup-page #uploadMount .dropzone{margin-top:8px;padding:8px}
  body.setup-page #dropzone{display:none!important}
  body.setup-page #s1Status{text-align:center;margin-top:20px;margin-bottom:4px;font-size:13px}
  body.setup-page .mob-only{display:none}
  @media (pointer:coarse){
    body.setup-page .desk-only{display:none}
    body.setup-page .mob-only{display:inline}
  }
  body.setup-page .counter .ctl{width:100%;justify-content:space-between;margin:18px 0}
  body.setup-page .counter .ctl button{color:var(--violet-ui);background:color-mix(in srgb,var(--violet-ui) 8%,var(--surface))}
  body.setup-page .slots{grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px;margin:20px auto 0}
  body.setup-page .dropzone{background:color-mix(in srgb,var(--violet-ui) 6%,var(--surface));border-color:color-mix(in srgb,var(--violet-ui) 24%,var(--surface));border-radius:16px}
  body.setup-page .cart{display:block}
  body.setup-page .cart>aside{position:static}
  body.setup-page .editor{background:#eef0f8;border-radius:16px}
  body.setup-page .tpl-single-showcase{background:color-mix(in srgb,var(--violet-ui) 6%,var(--surface))!important;border-color:color-mix(in srgb,var(--violet-ui) 21%,var(--surface))!important;box-shadow:none}
  body.setup-page .tpl-single-canvas-wrap{background:#fff!important;border-color:var(--accent)!important}
  body.setup-page .tpl-single-showcase .badge{background:color-mix(in srgb,var(--violet-ui) 10%,var(--surface))!important;color:var(--violet-ui)!important}
  body.setup-page #shapeBtns,body.setup-page .studio-bar-wrap,body.setup-page #edHint{display:none!important}
  body.setup-page .ed-grid{display:block}
  body.setup-page #s4,body.setup-page #s5{min-height:0}
  body.setup-page #wizardMount .step{margin-bottom:0}
  body.setup-page #wizardMount .step.locked{opacity:1;pointer-events:auto;filter:none}
  body.setup-page .category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
  body.setup-page .category-grid button{min-height:72px;border:1px solid color-mix(in srgb,var(--violet-ui) 19%,var(--surface));background:color-mix(in srgb,var(--violet-ui) 5%,var(--surface));color:var(--text);border-radius:8px;font-size:14px;font-weight:600;cursor:pointer}
  body.setup-page .category-grid button[aria-pressed="true"]{border:2px solid var(--violet-ui);background:color-mix(in srgb,var(--violet-ui) 10%,var(--surface));color:var(--violet-text)}
  body.setup-page .wizard-back{border:1px solid color-mix(in srgb,var(--violet-ui) 18%,var(--surface));background:color-mix(in srgb,var(--violet-ui) 8%,var(--surface));color:var(--text);font-size:14px;font-weight:600;padding:10px 16px;margin:0;cursor:pointer}
  body.setup-page .screen-title{text-align:center;margin:0 0 8px;font-size:25px;line-height:1.15;letter-spacing:-.6px}
  body.setup-page .screen-note{text-align:center;margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.5}
  body.setup-page #templatePane .stab-pane:not(#stab-shapes),body.setup-page #studioTabs,body.setup-page #shapeBtns,body.setup-page #s3Next{display:none!important}
  body.setup-page #templateScreen.no-templates .tpl-nav-btn,body.setup-page #templateScreen.no-templates #tplBtnPrevAction,body.setup-page #templateScreen.no-templates #tplBtnNextAction,body.setup-page #templateScreen.no-templates #tplQuickSelect{display:none!important}
  body.setup-page #templateScreen.no-templates #emptyTemplates{display:none!important}
  body.setup-page #s2>.small.muted,body.setup-page #s2>.step-label,body.setup-page #s2>.ed-grid,body.setup-page #s3 #orderSetup #preVideoBox{display:none!important}
  body.setup-page #s2{padding-top:18px}
  body.setup-page #s2 #editCanvasMount{position:relative;container-type:size;display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:0;overflow:hidden;background:#e9e6f2;border-radius:18px;padding:10px;margin:4px 0 6px}
  body.setup-page #s2 #editCanvasMount #edContainer{display:block;flex:0 0 auto;min-height:0;width:min(100cqw,calc(100cqh * var(--ed-aspect-num,.6667)));max-width:100%;max-height:none;aspect-ratio:var(--ed-aspect,2/3);box-sizing:border-box;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:hidden}
  body.setup-page #s2 #editCanvasMount #ed{display:block;width:100%;height:100%;max-width:none;max-height:none;border-radius:0;object-fit:contain}
  body.setup-page #s2 #editCanvasMount #zoomLabel{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
  body.setup-page #s2>#editPane{display:flex;flex:0 0 auto;flex-direction:column;width:100%;margin:0}
  body.setup-page #s2 #editPane .ed-nav,body.setup-page #s2 #editPane #lockAdjustBtn{display:none!important}
  body.setup-page .edit-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:2px 0}
  body.setup-page .edit-hint{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:12px;line-height:1.2}
  body.setup-page .edit-tool-btns{display:flex;align-items:center;gap:2px;flex:0 0 auto}
  body.setup-page .fit-photo-btn,body.setup-page #qrToggleBtn{display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:9px;border:0;border-radius:10px;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}
  body.setup-page .fit-photo-btn svg,body.setup-page #qrToggleBtn svg{display:block;width:22px;height:22px;fill:currentColor}
  body.setup-page #qrToggleBtn{color:var(--muted)}
  body.setup-page #qrToggleBtn[aria-pressed="true"]{color:var(--text)}
  body.setup-page .fit-photo-btn:focus-visible,body.setup-page #qrToggleBtn:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  body.setup-page #s2 #editPane .wizard-actions{display:flex!important}
  body.setup-page #s2>.wizard-actions,body.setup-page #s3>.wizard-actions{display:flex!important}
  body.setup-page #watchScreen #s4,body.setup-page #watchScreen #s5{box-shadow:none;min-height:0;padding:8px 0}
  body.setup-page #watchScreen #s4>.step-label,body.setup-page #watchScreen #s4>h2,body.setup-page #watchScreen #s5>.step-label{display:none}
  body.setup-page #tplSingleName{color:var(--text)!important}
  body.setup-page #tplQuickSelect{background:#000!important;color:#fff!important}
  body.setup-page .site-foot{position:fixed;left:50%;bottom:0;z-index:40;width:min(480px,100%);margin:0;padding:10px var(--shell-pad) calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);border-top:1px solid color-mix(in srgb,var(--violet-ui) 15%,var(--surface));background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(14px);color:var(--muted);font-size:11px;box-shadow:0 -4px 16px rgba(48,32,128,.06)}
  body.setup-page .site-foot .in{max-width:none;padding:0;gap:8px;flex-wrap:wrap}
  body.setup-page .vrow{background:color-mix(in srgb,var(--violet-ui) 6%,var(--surface));border-color:color-mix(in srgb,var(--violet-ui) 20%,var(--surface))}
  body.setup-page .sub{border-color:color-mix(in srgb,var(--violet-ui) 17%,var(--surface))}
   body.setup-page #videoScreen #preVideoBox{border-top:0;margin-top:0;padding-top:0}
   body.setup-page #videoScreen #preVideoBox>h2,body.setup-page #videoScreen #preVideoBox>p{display:none!important}
   body.setup-page #videoScreen #preVideoList{gap:10px;margin-top:0}
   body.setup-page #videoScreen #preVideoList>.sub{border:1px solid #e5e3ef;border-radius:12px;padding:12px;margin-top:0;background:#fff}
   body.setup-page #videoScreen #preVideoList h3{margin:0 0 8px;font-size:14px;color:var(--text)}
   body.setup-page #videoScreen #preVideoList .lrow{display:flex;align-items:center;gap:8px;margin-top:8px}
   body.setup-page #videoScreen #preVideoList .lrow .field{flex:1;min-width:0;height:42px;padding:9px 12px;font-size:14px;border-radius:12px}
   body.setup-page #videoScreen #preVideoList>.sub>label.btn{min-height:42px;padding:0 16px;border-radius:12px;font-size:13px}
   body.setup-page #videoScreen #preVideoList .lrow .btn{flex:0 0 auto;width:auto;min-height:42px;height:42px;padding:0 16px;border-radius:12px;background:linear-gradient(120deg,var(--btn-1),var(--btn-2));border:1px solid rgba(255,255,255,.18);color:var(--on-accent);box-shadow:0 4px 10px rgba(37,99,235,.22);font-size:13px;font-weight:700}
   body.setup-page #videoScreen #preVideoList .lrow .btn svg{display:inline-block;width:16px;height:16px;margin-right:5px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
   body.setup-page #videoScreen #preVideoList .lrow .btn:hover{filter:brightness(1.05)}
   body.setup-page #videoScreen #preVideoList .lrow .btn:active{transform:translateY(1px)}
   body.setup-page #videoScreen #preVideoList .status{margin-top:6px}
   body.setup-page #videoScreen #preVideoList .status:empty{display:none}
   body.setup-page .video-preview{margin:0 0 8px;border:1px solid #e5e3ef;border-radius:12px;overflow:hidden;background:#f5f5fb;aspect-ratio:16/9}
   body.setup-page .video-preview:empty{display:none}
   body.setup-page .video-preview iframe,body.setup-page .video-preview video{display:block;width:100%;height:100%;border:0;background:#000;object-fit:contain}
   body.setup-page #videoScreen #videoMount{overflow-y:auto;justify-content:flex-start}
   body.setup-page.no-pick-video .pick-video{display:none!important}
   body.setup-page.no-pick-video #vlist .or{display:none}
   /* pembayaran: ringkas, isi bisa scroll, tombol bawah tidak terpotong */
   body.setup-page #s3{padding-top:8px}
   body.setup-page #s3 .step-label{display:none!important}
   body.setup-page #s3 .screen-title{font-size:20px;margin:0 0 8px}
   body.setup-page #s3>.wizard-step-content{gap:8px}
   body.setup-page #s3 #orderSetup{display:flex;flex-direction:column;gap:8px}
   body.setup-page #s3 #orderSetup .sub,body.setup-page #payContent>.sub{margin:0!important;padding:10px 12px!important}
   body.setup-page #s3 h2{font-size:16px;margin:0 0 8px}
   body.setup-page #s3 h3{font-size:15px;margin:0 0 6px}
   body.setup-page #s3 .modes{gap:8px;margin-top:0}
   body.setup-page #s3 .mode{gap:4px;padding:9px 10px;border-radius:12px}
   body.setup-page #s3 .mode .ic svg{width:24px;height:24px}
   body.setup-page #s3 .mode b{font-size:13px}
   body.setup-page #s3 .mode small{font-size:11px}
   body.setup-page #s3 #modeHint{font-size:11.5px;line-height:1.35;margin-top:6px}
   body.setup-page #s3 .acct{padding:8px 10px}
   body.setup-page #s3 .acct .btn{font-size:11px;padding:4px 8px}
   body.setup-page #s3 .summary{font-size:12px;gap:2px 10px;margin:0;padding:9px 11px}
   body.setup-page #s3 .summary b,body.setup-page #s3 .summary .tot{font-size:13px}
   body.setup-page #s3 .ostrip{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;margin:0}
   body.setup-page #s3 .agree{font-size:10.5px;line-height:1.35;margin:0}
   body.setup-page #s3 .status{font-size:11px;margin-top:4px}
   body.setup-page #s3 .amount{gap:1px;margin:6px 0;padding:9px;border-radius:11px}
   body.setup-page #s3 .amount b{font-size:22px}
   body.setup-page #s3 .amount .small{font-size:10.5px}
   body.setup-page #s3 .qris{max-width:190px;margin:6px auto;padding:6px}
   body.setup-page #s3>.wizard-actions{min-height:46px;padding-top:8px}
   body.setup-page #s3>.wizard-actions .btn{min-height:44px;font-size:13px}
   body.setup-page #s3 #sendBtn{flex:2;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
   body.setup-page #s3 #s3Back,body.setup-page #s3 #backBtn{flex:1;margin:0!important}
   body.setup-page #s3 #backBtn{font-size:12px}
   body.setup-page #s3 #cartAddBtn{flex:0 0 44px;width:44px;min-height:44px;padding:0;border-radius:12px;font-size:17px}
   body.setup-page #s3 .summary{background:var(--surface)!important;border:1px solid color-mix(in srgb,var(--violet-ui) 17%,var(--surface))!important;color:var(--text)!important;box-shadow:inset 3px 0 0 var(--pay-accent,var(--accent))}
   body.setup-page #s3 .summary b,body.setup-page #s3 .summary .tot{color:var(--pay-text-accent,var(--accent-text))!important}
   body.setup-page #s3 .summary .tot{border-top-color:color-mix(in srgb,var(--violet-ui) 17%,var(--surface))!important}
   body.setup-page #s3 .summary span[style*="grid-column"]{color:var(--muted)!important;font-weight:600;opacity:1;border-top:1px solid var(--line-solid);padding-top:5px}
   /* kartu pilihan yang belum dipilih: panel bayar berlatar putih, jadi pakai warna terang (sebelumnya putih di atas putih) */
   body.setup-page #s3 .mode{background:var(--surface);border:1.5px solid color-mix(in srgb,var(--violet-ui) 25%,var(--surface));color:var(--text);box-shadow:0 1px 3px rgba(24,20,40,.06);transition:border-color .15s,box-shadow .15s}
   body.setup-page #s3 .mode b{color:var(--text)}
   body.setup-page #s3 .mode small{color:var(--muted)}
   body.setup-page #s3 .mode .ic{background:color-mix(in srgb,var(--violet-ui) 9%,var(--surface));color:var(--pay-text-accent,var(--accent-text))}
   body.setup-page #s3 .mode:hover{border-color:var(--pay-accent,var(--accent))}
   body.setup-page #s3 .mode:focus-visible{outline:2px solid var(--pay-accent,var(--accent));outline-offset:2px}
   body.setup-page #s3 .mode.on{border:1.5px solid var(--pay-accent,var(--accent))!important;background:var(--pay-soft,rgba(112,85,181,.08))!important;box-shadow:0 0 0 2px var(--pay-line,rgba(112,85,181,.14))!important}
   body.setup-page #s3 .mode.on b{color:var(--pay-text-accent,var(--accent-text))!important}
   body.setup-page #s3 .mode.on .ic{background:var(--pay-accent,var(--accent))!important;color:var(--pay-on-accent,var(--on-accent))!important}
   body.setup-page #s3 .amount{background:var(--surface)!important;border-color:color-mix(in srgb,var(--violet-ui) 17%,var(--surface))!important}
   body.setup-page #s3 .amount b{color:var(--pay-text-accent,var(--accent-text))!important}
   body.setup-page #s3 .acct .acct-action{flex:0 0 auto;width:auto;min-height:42px;height:42px;padding:0 12px;border-radius:12px;background:linear-gradient(120deg,var(--accent),var(--accent-2));border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);color:var(--on-accent);box-shadow:0 4px 10px color-mix(in srgb,var(--accent) 22%,transparent);font-size:12px;font-weight:700}
   body.setup-page #s3 .acct .acct-action svg{display:inline-block;width:15px;height:15px;margin-right:5px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
   body.setup-page #s3 .acct .acct-action:hover{filter:brightness(1.05)}
   body.setup-page #s3 .acct .acct-action:active{transform:translateY(1px)}
   body.setup-page #s3 .acct b,body.setup-page #s3 .acct .small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
   @media(max-width:599px){
     body.setup-page #s3 #acctIn .acct{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 12px}
     body.setup-page #s3 #acctIn .acct>div:first-child{width:100%;min-width:0}
     body.setup-page #s3 #acctIn .acct>div:last-child{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important;width:100%}
     body.setup-page #s3 #albumPickSetupBtn{width:100%;justify-content:center}
     body.setup-page #s3 #acctSwitch{min-width:82px}
   }
   /* Modal/sheet mengikuti aksen template, bukan permukaan hitam bawaan. */
    body.setup-page .sheet-bg{background:var(--modal-scrim,rgba(28,22,52,.46))}
    body.setup-page .sheet{
      --card:#f6f4fc; --card-2:#fff; --line:var(--modal-line,rgba(112,85,181,.26));
      --text:#24212b; --muted:#6d6979; --dim:#8c8897;
      --gold:var(--modal-accent,var(--accent)); --grad:var(--modal-accent,var(--accent)); --grad-gold:var(--modal-accent,var(--accent));
      --on-accent:var(--modal-on-accent,#fff);
      background:linear-gradient(180deg,var(--surface) 0%,color-mix(in srgb,var(--violet-ui) 3%,var(--surface)) 100%);color:var(--text);
      border:1px solid var(--modal-line,rgba(112,85,181,.26));border-radius:22px;
      box-shadow:0 20px 60px rgba(32,20,80,.22)
    }
    body.setup-page .sheet::before{background:var(--modal-accent,var(--accent));opacity:.55}
    body.setup-page .sheet-close{background:color-mix(in srgb,var(--violet-ui) 8%,var(--surface));color:var(--modal-accent,var(--accent));border-color:var(--modal-line,rgba(112,85,181,.26))}
    body.setup-page .sheet .btn.gold{background:linear-gradient(100deg,var(--accent),var(--accent-2));color:var(--on-accent);box-shadow:0 8px 20px -10px color-mix(in srgb,var(--accent) 75%,transparent)}
    body.setup-page .sheet .btn.ghost{background:var(--surface);color:var(--text);border-color:var(--modal-line,rgba(112,85,181,.26))}
    body.setup-page .sheet #modalConfirmBtn{background:linear-gradient(100deg,var(--accent),var(--accent-2))!important;color:var(--on-accent)!important}
    body.setup-page .sheet .field,body.setup-page .sheet input[type=text]{background:var(--surface);color:var(--text);border-color:var(--modal-line,rgba(112,85,181,.26))}
    body.setup-page .sheet code{background:color-mix(in srgb,var(--violet-ui) 9%,var(--surface));color:#3d3366}
    body.setup-page #videoScreen #preVideoList.single{grid-template-columns:minmax(0,420px);justify-content:center;justify-items:center}
   body.setup-page #videoScreen #preVideoList.single>.sub{width:min(100%,420px)}
   body.setup-page{--shell-width:960px;--header-height:59px;--footer-height:38px;height:100dvh;padding-top:var(--header-height)}
   body.setup-page .appbar,body.setup-page .site-foot{width:min(var(--shell-width),100%)}
   body.setup-page .wrap.wide{max-width:var(--shell-width);min-height:0;padding-bottom:0}
   body.setup-page .card{height:calc(100dvh - var(--header-height) - var(--footer-height));min-height:0;padding-bottom:8px}
   body.setup-page .wizard-actions{padding-top:10px}
   @media (max-height:500px){
     body.setup-page{--tile-size:clamp(48px,calc((100dvh - 220px) / 2),100px);--upload-tile:clamp(40px,calc((100dvh - 240px) / 2),90px);--upload-single:clamp(90px,calc(100dvh - 260px),160px)}
     body.setup-page .card,body.setup-page #s2{padding-top:8px}
     body.setup-page .step-label{margin-bottom:4px}
     body.setup-page .screen-title{font-size:20px;margin-bottom:4px}
     body.setup-page .screen-note{margin-bottom:6px}
     body.setup-page .edit-tools{min-height:36px;padding:0}
     body.setup-page .edit-hint{font-size:11px}
     body.setup-page .fit-photo-btn,body.setup-page #qrToggleBtn{width:34px;height:34px;min-height:34px;padding:7px}
     body.setup-page .fit-photo-btn svg,body.setup-page #qrToggleBtn svg{width:20px;height:20px}
     body.setup-page .step>.category-grid{overflow-y:auto;align-content:start}
     body.setup-page .category-grid button{min-height:44px}
      body.setup-page #s3 .screen-title{font-size:17px;margin-bottom:4px}
      body.setup-page #s3>.wizard-step-content{gap:5px}
      body.setup-page #s3 #orderSetup{gap:5px}
      body.setup-page #s3 #orderSetup .sub,body.setup-page #payContent>.sub{padding:7px 10px!important}
      body.setup-page #s3 .mode{padding:7px 9px}
      body.setup-page #s3 .mode .ic svg{width:20px;height:20px}
      body.setup-page #s3 .summary{font-size:11px;padding:7px 9px}
      body.setup-page #s3>.wizard-actions{min-height:40px;padding-top:6px}
      body.setup-page #s3>.wizard-actions .btn{min-height:38px;font-size:12px}
   }
   @media (min-width:700px){body.setup-page #app{max-width:var(--shell-width)}}
  @media (min-width:600px){body.setup-page .appbar{border-radius:0}body.setup-page .wrap.wide{min-height:calc(100svh - 59px);border-radius:0 0 22px 22px}}
   @media (min-width:700px){body.setup-page .wrap.wide{padding-top:0}.setup-page #app{max-width:var(--shell-width)}}
