:root{--c:#1d4ed8;--c2:#eff6ff;--bg:#f1f5f9;--tx:#0f172a;--mu:#64748b;--bd:#e2e8f0;--ok:#047857;--warn:#b45309;--er:#dc2626}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{font-family:"Noto Sans Bengali","Hind Siliguri","Kalpurush",system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--tx);font-size:15px;line-height:1.5}
a{color:var(--c)}
img{max-width:100%}
h1,h2,h3{margin:0 0 8px;line-height:1.3}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:10px;padding:10px 16px;background:var(--c);color:#fff;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;text-align:center}
.btn:disabled{opacity:.6;cursor:wait}
.btn.sec{background:#e2e8f0;color:var(--tx)}
.btn.red{background:var(--er)}
.btn.grn{background:#059669}
.btn.sm{padding:6px 12px;font-size:13px;border-radius:8px}
.btn.block{display:flex;width:100%}
.card{background:#fff;border:1px solid var(--bd);border-radius:14px;padding:14px;margin-bottom:12px}
.field{margin-bottom:12px}
.field>label{display:block;font-size:13px;color:var(--mu);margin-bottom:4px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;background:#fff;color:var(--tx)}
input[type=checkbox],input[type=radio]{width:auto}
input[type=color]{padding:2px;height:42px}
textarea{min-height:90px;resize:vertical}
.row{display:flex;gap:10px}
.row>*{flex:1;min-width:0}
.badge{display:inline-block;font-size:12px;padding:2px 10px;border-radius:999px;background:var(--c2);color:var(--c);white-space:nowrap}
.badge.ok{background:#ecfdf5;color:var(--ok)}
.badge.warn{background:#fffbeb;color:var(--warn)}
.badge.er{background:#fef2f2;color:var(--er)}
.badge.gray{background:#f1f5f9;color:#475569}
.muted{color:var(--mu);font-size:13px}
.empty{text-align:center;color:var(--mu);padding:36px 12px}
.empty b{display:block;font-size:34px;margin-bottom:6px}
.checks{display:flex;flex-wrap:wrap;gap:8px}
.checks label{display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid var(--bd);border-radius:999px;padding:5px 12px;font-size:13px;color:var(--tx);margin:0}
/* modal */
.ov{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:3000;display:flex;align-items:flex-end;justify-content:center}
.ov .md{background:#fff;width:100%;max-width:640px;max-height:94vh;overflow-y:auto;border-radius:18px 18px 0 0;padding:16px 16px 28px}
.ov .mh{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;position:sticky;top:-16px;background:#fff;padding:12px 0 8px;z-index:2}
.ov .mh h3{margin:0;font-size:18px}
.ov .x{border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:18px;cursor:pointer}
@media(min-width:700px){.ov{align-items:center}.ov .md{border-radius:18px}}
/* image field */
.imgs{display:flex;flex-wrap:wrap;gap:8px}
.imgs .im{position:relative;width:78px;height:78px;border-radius:10px;overflow:hidden;background:#e2e8f0}
.imgs .im img{width:100%;height:100%;object-fit:cover}
.imgs .im button{position:absolute;top:2px;right:2px;width:22px;height:22px;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:13px;cursor:pointer;line-height:1}
.imgs .add{width:78px;height:78px;border:2px dashed #94a3b8;border-radius:10px;background:#f8fafc;color:#64748b;font-size:12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.imgs .add b{font-size:22px;line-height:1}
.lp-map{height:260px;border-radius:12px;border:1px solid var(--bd);margin:6px 0}
.lp-bar{display:flex;gap:8px;margin-bottom:6px}
.lp-bar input{flex:1}
#toast{position:fixed;z-index:4000;left:50%;top:16px;transform:translateX(-50%);background:#0f172a;color:#fff;padding:10px 18px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s;max-width:92%;text-align:center}
#toast.show{opacity:1}
#toast.bad{background:var(--er)}
.spin{display:inline-block;width:16px;height:16px;border:2px solid #cbd5e1;border-top-color:var(--c);border-radius:50%;animation:sp .7s linear infinite;vertical-align:middle}
@keyframes sp{to{transform:rotate(360deg)}}
.loading{text-align:center;padding:40px;color:var(--mu)}
