@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');
.d24-studio{font-family:'Noto Sans Bengali',sans-serif;color:#1e2d24;background:#f1f4f5;padding:14px 12px 86px;border-radius:16px;max-width:1100px;margin:18px auto;box-sizing:border-box}.d24-studio *{box-sizing:border-box}.d24-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.d24-head span{font:700 9px Arial;letter-spacing:2px;color:#13844b}.d24-head h2{font-size:20px;margin:3px 0}.d24-reset,.d24-panel button{border:0;border-radius:8px;padding:9px 13px;background:#e4eee7;color:#24563a;font:600 12px 'Noto Sans Bengali',sans-serif}.d24-stage{max-width:700px;margin:auto;padding:10px;background:#e8eff0;border-radius:14px;background-image:radial-gradient(#cbd6d5 1px,transparent 1px);background-size:18px 18px}.d24-stagebar{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px;color:#40574a}.d24-stagebar span{background:white;border-radius:20px;padding:3px 9px;font-size:10px}.d24-poster{--main:#07834b;--accent:#f4c85c;--deep:#06472f;position:relative;width:min(100%,560px);aspect-ratio:4/5;margin:auto;overflow:hidden;border-radius:12px;background:linear-gradient(140deg,#d8f1f3 0%,#fff9e7 47%,#f8d99a 100%);box-shadow:0 8px 25px #182e222c;color:var(--deep);container-type:inline-size}.d24-poster.theme-blue{--main:#176a9b;--deep:#093d5d;background:linear-gradient(140deg,#d7effb,#fff9e7 50%,#c5dff1)}.d24-poster.theme-red{--main:#b51f2e;--deep:#68101b;background:linear-gradient(140deg,#f9e3df,#fff8e7 50%,#f4c7a9)}.d24-poster.theme-maroon{--main:#84234e;--deep:#4e1532;background:linear-gradient(140deg,#f4e1e9,#fff8e7 50%,#e8c5d6)}.d24-poster.theme-dark{--main:#13835a;--deep:#fff0c9;--accent:#efbd51;background:linear-gradient(140deg,#101f19,#233c2d 55%,#111b16)}.d24-bg-shape{position:absolute;pointer-events:none}.shape-a{left:-20%;top:26%;width:95%;height:49%;background:var(--main);clip-path:polygon(0 0,100% 50%,0 100%);opacity:.96}.shape-b{right:-24%;bottom:-5%;width:90%;height:45%;background:var(--accent);clip-path:ellipse(70% 48% at 70% 70%);opacity:.7}.shape-c{right:-20%;top:-18%;width:55%;height:55%;border-radius:50%;background:radial-gradient(circle,#fff8d7,transparent 68%);opacity:.8}.d24-texture{position:absolute;inset:0;opacity:.14;background-image:radial-gradient(#b68a43 1px,transparent 1px);background-size:13px 13px}.d24-poster-inner{position:absolute;inset:2.2%;border:2px solid var(--accent);outline:1px solid #fff;outline-offset:-7px;padding:3% 4%;display:flex;flex-direction:column;overflow:hidden}.d24-top{display:flex;align-items:center;justify-content:space-between;gap:5%;min-height:14%;z-index:2}.d24-fixed-logo{width:42%;background:#fff;border-radius:4px;padding:4px 6px;box-shadow:0 2px 7px #0002}.d24-fixed-logo img{display:block;width:100%;height:auto;max-height:56px;object-fit:contain}.d24-bismillah{flex:1;text-align:center;font-size:clamp(9px,2.2cqw,15px);font-weight:800;color:#163b2a;line-height:1.6}.d24-bismillah span{display:block;font-size:.85em}.d24-heading{z-index:2;text-align:center;font-size:clamp(13px,3.4cqw,23px);font-weight:800;color:#142b21;margin:2% 0 2%;text-shadow:0 1px #fff}.d24-candidate-photo{z-index:2;position:absolute;left:5%;top:25%;width:39%;height:33%;border:6px solid var(--accent);outline:3px solid var(--main);border-radius:50%;overflow:hidden;background:#e8e8e8;box-shadow:0 4px 14px #17291f3b}.d24-candidate-photo img,.d24-secondary-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:none}.d24-candidate-photo span,.d24-secondary-photo span{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:8px;font-size:10px;color:#64756a}.d24-candidate-copy{position:relative;z-index:3;margin-left:44%;margin-top:1%;text-align:center;min-height:34%;display:flex;flex-direction:column;justify-content:center;gap:4px}.d24-position{background:linear-gradient(120deg,#e21d2c,#a90e21);color:#ffe77b;font-size:clamp(15px,4.2cqw,29px);font-weight:800;padding:3% 2%;clip-path:polygon(3% 0,100% 0,97% 100%,0 100%);text-shadow:0 1px #6d0c18}.d24-candidate-name{font-size:clamp(14px,3.5cqw,24px);font-weight:800;color:var(--deep);line-height:1.2}.d24-area{font-size:clamp(10px,2.2cqw,15px);font-weight:700;color:var(--main)}.d24-appeal{position:relative;z-index:2;margin-top:auto;margin-bottom:19%;width:74%;font-size:clamp(16px,4.2cqw,28px);font-weight:800;color:#fff;text-align:center;line-height:1.25;text-shadow:0 2px 3px #073e2b}.d24-bottom{position:absolute;z-index:4;bottom:4%;left:0;right:0;min-height:20%;background:#8e1d61;clip-path:polygon(0 13%,18% 0,100% 15%,100% 100%,0 100%);display:flex;align-items:flex-end;padding:8% 4% 2%;color:#fff}.d24-courtesy{display:flex;flex-direction:column;width:70%;line-height:1.35}.d24-courtesy small{font-size:clamp(9px,1.7cqw,12px);color:#ffe58b}.d24-courtesy strong{font-size:clamp(16px,4.2cqw,29px);font-weight:800}.d24-courtesy span{font-size:clamp(9px,1.8cqw,13px);color:#ffe58b}.d24-secondary-photo{position:absolute;right:4%;bottom:7%;width:27%;height:88%;border:4px solid #f7d56f;border-radius:48% 48% 7px 7px;overflow:hidden;background:#e7e7e7;box-shadow:0 2px 9px #0004}.d24-website{position:absolute;z-index:8;bottom:1%;left:0;right:0;text-align:center;font:700 clamp(8px,1.8cqw,12px) Arial,sans-serif;letter-spacing:.5px;color:#fff;text-shadow:0 1px 2px #222}.d24-panels{max-width:700px;margin:12px auto}.d24-panel{display:none;background:#fff;border:1px solid #e1e9e3;border-radius:13px;padding:14px;box-shadow:0 3px 14px #142d1d0b}.d24-panel.active{display:block}.d24-panel h3{font-size:15px;color:#17472e;margin:0 0 10px}.d24-panel label{display:block;font-size:12px;font-weight:600;color:#48564d;margin:9px 0}.d24-panel input:not([type=range]):not([type=file]),.d24-panel select{width:100%;margin-top:5px;border:1px solid #d9e1da;border-radius:7px;padding:9px;font:13px 'Noto Sans Bengali',sans-serif;background:#fff}.d24-panel input[type=range]{width:100%;accent-color:#147c49}.d24-panel input[type=color]{height:36px;padding:2px!important}.d24-panel input[type=file]{display:block;width:100%;margin-top:5px;font-size:12px}.d24-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.d24-actions{display:flex;gap:8px}.d24-hint{font-size:11px;color:#66766c;line-height:1.6}.d24-export{width:100%;margin:5px 0;background:#087b45!important;color:#fff!important}.d24-export.secondary{background:#263c30!important}.d24-toolbar{position:sticky;bottom:4px;z-index:90;display:flex;max-width:700px;margin:0 auto;background:#fff;border:1px solid #e2e8e3;border-radius:12px;padding:5px 2px;box-shadow:0 4px 20px #152c1d18}.d24-toolbar button{flex:1;min-width:0;border:0;background:transparent;color:#6a776e;font:10px 'Noto Sans Bengali',sans-serif;padding:4px 1px;display:flex;flex-direction:column;align-items:center;border-radius:8px}.d24-toolbar button i{font:22px Arial;font-style:normal;line-height:1.25}.d24-toolbar button.active{background:#edf5ef;color:#087b45;font-weight:700}@media(max-width:600px){.d24-studio{margin:0 -8px;padding:10px 8px 84px;border-radius:0}.d24-head h2{font-size:17px}.d24-stage{padding:6px}.d24-poster{width:100%}.d24-toolbar button{font-size:9px}.d24-toolbar button i{font-size:20px}.d24-panel{padding:11px}}
/* v3.1 visual refinements: Bengali-only Bismillah, fixed left logo, premium election palette */
.d24-poster{
 background:
  radial-gradient(circle at 88% 13%,rgba(224,25,42,.16) 0 8%,transparent 8.3%),
  radial-gradient(circle at 88% 13%,rgba(224,25,42,.07) 0 15%,transparent 15.3%),
  linear-gradient(132deg,#e9f7ed 0%,#fffdf3 43%,#f7e8c4 100%);
}
.d24-poster:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background:repeating-linear-gradient(135deg,transparent 0 22px,rgba(7,100,58,.12) 23px 24px,transparent 25px 48px)}
.d24-poster:after{content:"";position:absolute;right:-10%;top:7%;width:33%;aspect-ratio:1;border-radius:50%;border:12px solid rgba(222,27,44,.13);box-shadow:0 0 0 10px rgba(244,200,92,.14),0 0 0 24px rgba(6,112,62,.08);pointer-events:none}
.d24-poster.theme-blue{background:linear-gradient(135deg,#e3f2fb,#fffdf2 48%,#d5e7f4)}
.d24-poster.theme-red{background:linear-gradient(135deg,#f9e6e2,#fffdf2 48%,#f4d4bf)}
.d24-poster.theme-maroon{background:linear-gradient(135deg,#f4e6ed,#fffdf2 48%,#e9d2df)}
.d24-poster.theme-dark{background:linear-gradient(135deg,#10291d,#244c35 52%,#10251b)}
.d24-top{position:relative;display:block;min-height:14%;padding-top:0}
.d24-fixed-logo{position:absolute;left:0;top:5%;width:29%;z-index:4;padding:3px 4px;background:#fff;border:1px solid rgba(8,91,51,.16);box-shadow:0 3px 10px rgba(0,0,0,.12)}
.d24-fixed-logo img{max-height:clamp(24px,7cqw,48px)}
.d24-bismillah{position:absolute;left:0;right:0;top:0;width:100%;text-align:center;padding:0 30% 0 30%;font-size:clamp(11px,2.6cqw,18px);font-weight:800;color:#064b2d;line-height:1.6}
.d24-bismillah span{display:block;font-size:1em;white-space:nowrap}
.d24-heading{margin:4% 0 2%;color:#064b2d;text-shadow:0 1px 0 #fff,0 2px 5px rgba(255,255,255,.7)}
.d24-bottom{bottom:5.5%;min-height:19%;background:linear-gradient(110deg,#087b49,#075b38 65%,#06462e);border-top:4px solid #f2c85d;clip-path:polygon(0 13%,18% 0,100% 12%,100% 100%,0 100%)}
.d24-website{bottom:0;left:0;right:0;min-height:5.3%;display:flex;align-items:center;justify-content:center;background:#063e29;color:#fff;font:800 clamp(10px,2.35cqw,16px) Arial,sans-serif;letter-spacing:.8px;text-shadow:0 1px 2px #000;padding:1% 2%;border-top:2px solid #f4c85c;box-shadow:0 -2px 8px rgba(0,0,0,.14)}
@media(max-width:600px){.d24-fixed-logo{width:29%}.d24-bismillah{padding-left:29%;padding-right:29%;font-size:clamp(10px,2.5cqw,15px)}.d24-website{letter-spacing:.3px}}

/* v3.2 transparent brand logo, improved election artwork and full-height courtesy portrait */
.d24-fixed-logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.d24-fixed-logo img{display:block;width:100%;height:auto;max-height:64px;object-fit:contain;background:transparent!important}
.d24-bismillah{top:-1.8%;font-size:clamp(11px,2.5cqw,17px);padding-left:29%;padding-right:29%;color:var(--deep)}
.d24-poster{--poster-bg:#f4f0df;--poster-text:#123d2c;background-color:var(--poster-bg)}
.d24-poster.design-election{background-image:radial-gradient(circle at 88% 15%,rgba(227,35,45,.18) 0 7%,transparent 7.5%),radial-gradient(circle at 88% 15%,rgba(7,122,67,.11) 0 17%,transparent 17.5%),linear-gradient(135deg,#e8f5e9 0%,#fffdf4 43%,#f5e3b8 100%)}
.d24-poster.design-flag{background-image:linear-gradient(145deg,transparent 0 54%,rgba(0,130,70,.13) 54% 70%,transparent 70%),radial-gradient(circle at 82% 18%,rgba(220,20,45,.13) 0 14%,transparent 14.5%),linear-gradient(135deg,#f8fff9,#fffdf1)}
.d24-poster.design-gradient{background-image:linear-gradient(135deg,var(--poster-bg),color-mix(in srgb,var(--poster-bg),#fff 34%),color-mix(in srgb,var(--poster-bg),var(--accent) 24%))}
.d24-poster.design-minimal{background-image:linear-gradient(145deg,var(--poster-bg),#fff 62%,color-mix(in srgb,var(--poster-bg),var(--accent) 25%))}
.d24-heading,.d24-candidate-name,.d24-area{color:var(--poster-text)}
.d24-courtesy{width:57%;position:relative;z-index:2}
.d24-secondary-photo{position:absolute!important;z-index:7!important;right:3%!important;bottom:5.5%!important;width:42%!important;height:49%!important;border:0!important;outline:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
.d24-secondary-photo img{display:none;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 4px rgba(0,0,0,.16));background:transparent}
.d24-secondary-photo span{background:transparent;color:var(--deep);font-weight:600}
.d24-bottom{z-index:4;min-height:20%;bottom:4.8%;padding-right:44%;clip-path:polygon(0 13%,18% 0,100% 15%,100% 100%,0 100%)}
.d24-website{z-index:10}
@media(max-width:600px){.d24-secondary-photo{width:43%!important;height:48%!important;right:2%!important;bottom:5.5%!important}.d24-courtesy{width:59%}.d24-bismillah{top:-1.5%;padding-left:29%;padding-right:29%}}

/* v3.3 independent touch/mouse positioning and expanded election backgrounds */
.d24-movable{translate:var(--move-x,0%) var(--move-y,0%);touch-action:none;cursor:grab;}
.d24-movable:active{cursor:grabbing}
.d24-bottom{min-height:16%!important;}
.d24-courtesy{width:58%!important}
.d24-secondary-photo{width:42%!important;height:52%!important;bottom:5.5%!important}
.d24-poster.design-rally{background-image:radial-gradient(ellipse at 78% 24%,rgba(255,218,111,.82),transparent 38%),radial-gradient(circle at 78% 24%,rgba(215,31,44,.16) 0 11%,transparent 11.5%),linear-gradient(145deg,#e8f7ff 0%,#fff9e7 48%,#f3d48e 100%)}
.d24-poster.design-village{background-image:linear-gradient(160deg,rgba(255,255,255,.2),transparent 48%),radial-gradient(ellipse at 10% 95%,rgba(5,111,61,.25),transparent 48%),linear-gradient(135deg,#e5f5e9 0%,#fffef4 47%,#d7edc9 100%)}
.d24-poster.design-wave{background-image:radial-gradient(ellipse at 100% 0%,rgba(242,199,91,.5),transparent 38%),linear-gradient(145deg,#f8fff9 0%,#fffdf3 50%,#d8eee4 100%)}
.d24-poster.design-rally .shape-b{opacity:.9;clip-path:polygon(0 30%,100% 0,100% 100%,10% 100%)}
.d24-poster.design-village .shape-a{height:34%;top:37%;clip-path:polygon(0 18%,100% 50%,0 82%)}
.d24-poster.design-wave .shape-a{height:29%;top:43%;clip-path:polygon(0 45%,30% 0,100% 45%,30% 100%)}
@media(max-width:600px){.d24-secondary-photo{width:42%!important;height:52%!important}.d24-bottom{min-height:16%!important}}
/* v3.4 advanced typography, image and layer controls */
.d24-extra-photo{position:absolute;z-index:6;left:38%;top:38%;width:25%;height:30%;overflow:visible;translate:var(--move-x,0%) var(--move-y,0%);touch-action:none;cursor:grab}
.d24-extra-photo img{display:none;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.22))}
.d24-movable{user-select:none;-webkit-user-select:none}
.d24-candidate-photo,.d24-secondary-photo{will-change:translate}
.d24-panel input[type=range]{min-height:22px}
.d24-panel input[type=color]{cursor:pointer}
.d24-poster-inner{transition:border-color .12s ease}
