/* KrishiKhata styles */
html{-webkit-text-size-adjust:100%}
body{margin:0}
[hidden]{display:none!important}
img{max-width:100%}
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
/* Layout: field-ledger app — leafy canopy band on top, sidebar of modules, cards on a soft paddy-green ground */
:root{
  --bg:#eef5e6; --bg2:#e3efd6; --surface:#ffffff; --surface2:#f6faf1;
  --fg:#1d2b17; --muted:#5d6e55; --line:#d5e3c8;
  --leaf:#2f8f3a; --leaf-d:#1f6b2a; --leaf-l:#dff1d8;
  --sun:#f2a516; --sun-l:#fff1d2;
  --soil:#a0612b; --soil-l:#f6e6d6;
  --sky:#2a8bbf; --sky-l:#dcf0fa;
  --berry:#c8414f; --berry-l:#fbe1e3;
  --seed:#d39a1c; --fert:#3c8dcb; --pest:#8a4fc1; --pest-l:#efe3fa;
  --shadow:0 6px 20px -10px rgba(31,80,30,.35);
  --display:"Noto Sans Bengali","Baloo Da 2","Hind Siliguri",system-ui,sans-serif; /* Noto supplies only the Bangla digits and ৳ */
  --body:"Noto Sans Bengali","Hind Siliguri",system-ui,sans-serif;
  --pattern-op:.10;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0f1a0e; --bg2:#142313; --surface:#18261a; --surface2:#1e2f1f;
  --fg:#e6f0df; --muted:#9db497; --line:#2b3f2b;
  --leaf:#5cc86a; --leaf-d:#8ee09a; --leaf-l:#1f3a22;
  --sun:#f7b941; --sun-l:#3a2e12; --soil:#d99358; --soil-l:#38261a;
  --sky:#5fb8e6; --sky-l:#14303e; --berry:#f07580; --berry-l:#3d1c21;
  --seed:#e9b84a; --fert:#6db2e8; --pest:#b88ae6; --pest-l:#2d2140;
  --shadow:0 6px 20px -10px rgba(0,0,0,.7); --pattern-op:.07; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0f1a0e; --bg2:#142313; --surface:#18261a; --surface2:#1e2f1f;
  --fg:#e6f0df; --muted:#9db497; --line:#2b3f2b;
  --leaf:#5cc86a; --leaf-d:#8ee09a; --leaf-l:#1f3a22;
  --sun:#f7b941; --sun-l:#3a2e12; --soil:#d99358; --soil-l:#38261a;
  --sky:#5fb8e6; --sky-l:#14303e; --berry:#f07580; --berry-l:#3d1c21;
  --seed:#e9b84a; --fert:#6db2e8; --pest:#b88ae6; --pest-l:#2d2140;
  --shadow:0 6px 20px -10px rgba(0,0,0,.7); --pattern-op:.07; color-scheme:dark}

*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:15px;line-height:1.55;min-height:100vh;position:relative;overflow-x:hidden}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:var(--pattern-op);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%232f8f3a'%3E%3Cpath d='M30 40c18-22 44-20 44-20s2 26-20 44c-14 11-28 8-28 8s-7-17 4-32z'/%3E%3Cpath d='M120 110c-14-17-34-15-34-15s-2 20 15 34c11 9 22 6 22 6s5-13-3-25z'/%3E%3Ccircle cx='128' cy='30' r='5'/%3E%3Ccircle cx='40' cy='130' r='4'/%3E%3C/g%3E%3Cpath d='M26 72 L66 28 M92 98 L124 134' stroke='%232f8f3a' stroke-width='2' fill='none'/%3E%3C/svg%3E");}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--leaf-d)}
.app{position:relative;z-index:1}
h1,h2,h3,h4{font-family:var(--display);margin:0;line-height:1.2;text-wrap:balance}
button,input,select,textarea{font:inherit;color:inherit}
.num{font-variant-numeric:tabular-nums}
svg.i{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;color:#fff;
  background:linear-gradient(100deg,#1f6b2a,#2f8f3a 55%,#6aa630);
  padding-block:10px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;box-shadow:0 4px 16px -8px rgba(0,0,0,.4);overflow:hidden}
.top::after{content:"";position:absolute;right:-20px;top:-30px;width:260px;height:120px;opacity:.18;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'%3E%3Cg fill='%23fff'%3E%3Cpath d='M60 120V70'/%3E%3Ccircle cx='60' cy='55' r='34'/%3E%3Ccircle cx='95' cy='40' r='26'/%3E%3Ccircle cx='30' cy='45' r='22'/%3E%3Crect x='56' y='60' width='8' height='60'/%3E%3Cpath d='M170 30c26-26 62-22 62-22s4 36-24 60c-18 16-40 10-40 10s-12-24 2-48z'/%3E%3C/g%3E%3C/svg%3E") no-repeat right/contain}
.brand{display:flex;align-items:center;gap:10px;position:relative;z-index:1}
.logo{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;color:#2f8f3a;box-shadow:inset 0 -3px 0 #f2a516}
.logo svg{width:26px;height:26px}
.brand b{font-family:var(--display);font-size:1.35rem;font-weight:800;letter-spacing:.2px;display:block;line-height:1}
.brand small{opacity:.85;font-size:.78rem}
.bizname{position:relative;z-index:1;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:4px 12px;border-radius:999px;font-weight:600;font-size:.9rem;display:flex;gap:6px;align-items:center}
.spacer{flex:1}
.rolebar{display:flex;gap:4px;background:rgba(0,0,0,.18);padding:4px;border-radius:12px;position:relative;z-index:1;flex-wrap:wrap}
.rolebar button{border:0;background:transparent;color:#fff;padding:6px 12px;border-radius:9px;cursor:pointer;font-weight:600;font-size:.88rem;display:flex;gap:6px;align-items:center}
.rolebar button.on{background:#fff;color:#1f6b2a}
.rolebar button:focus-visible{outline:2px solid #f2a516}
.themebtn{position:relative;z-index:1;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:10px;width:38px;height:38px;display:grid;place-items:center;cursor:pointer}

/* Shell */
.shell{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;max-width:1360px;margin:0 auto;
  padding-block:20px 40px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.side{position:sticky;top:84px;align-self:start;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:var(--shadow);overflow:hidden}
.side::after{content:"";position:absolute;inset:auto -10px -14px auto;width:150px;height:150px;opacity:.13;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%232f8f3a'%3E%3Crect x='46' y='55' width='8' height='45'/%3E%3Ccircle cx='50' cy='42' r='26'/%3E%3Ccircle cx='28' cy='55' r='16'/%3E%3Ccircle cx='72' cy='55' r='16'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain}
.side h4{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:10px 10px 6px;font-family:var(--body)}
.nav{display:flex;flex-direction:column;gap:2px;position:relative;z-index:1}
.nav button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:9px 10px;border-radius:11px;cursor:pointer;text-align:left;font-weight:500;color:var(--fg)}
.nav button .ic{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--surface2);color:var(--leaf)}
.nav button:hover{background:var(--surface2)}
.nav button.on{background:var(--leaf-l);color:var(--leaf-d);font-weight:700}
.nav button.on .ic{background:var(--leaf);color:#fff}
.nav button:focus-visible{outline:2px solid var(--leaf)}
main{min-width:0;display:flex;flex-direction:column;gap:18px}

/* Generic */
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);min-width:0}
.card h3{font-size:1.15rem;display:flex;align-items:center;gap:8px}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pagehead h2{font-size:1.75rem;font-weight:800}
.pagehead p{margin:2px 0 0;color:var(--muted)}
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-kpi{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.btn{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:11px;padding:9px 15px;font-weight:600;cursor:pointer;background:var(--leaf);color:#fff;box-shadow:0 3px 0 var(--leaf-d)}
.btn:hover{filter:brightness(1.06)} .btn:active{transform:translateY(1px);box-shadow:0 2px 0 var(--leaf-d)}
.btn:focus-visible{outline:2px solid var(--sun);outline-offset:2px}
.btn.sun{background:var(--sun);color:#3a2700;box-shadow:0 3px 0 #b97a05}
.btn.ghost{background:var(--surface2);color:var(--fg);box-shadow:none;border:1px solid var(--line)}
.btn.sm{padding:5px 10px;font-size:.85rem;border-radius:9px}
.btn.red{background:var(--berry);box-shadow:0 3px 0 #8e2632}
.pill{display:inline-flex;align-items:center;gap:5px;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:600;white-space:nowrap}
.p-seed{background:var(--sun-l);color:var(--soil)} .p-fert{background:var(--sky-l);color:var(--sky)} .p-pest{background:#efe3fa;color:var(--pest)}
:root[data-theme="dark"] .p-pest{background:#2d2140}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .p-pest{background:#2d2140}}
.p-ok{background:var(--leaf-l);color:var(--leaf-d)} .p-low{background:var(--sun-l);color:var(--soil)} .p-out{background:var(--berry-l);color:var(--berry)}
.p-due{background:var(--berry-l);color:var(--berry)}
label.f,div.f{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:var(--muted);min-width:0}
.f .req{color:var(--berry)}
.fhint{margin:10px 0 0;font-size:.85rem;display:flex;gap:6px;align-items:flex-start}
.fhint svg{flex:none;margin-top:2px}
/* Big two/three-way choice buttons (MS / SS, Kilogram / Ton) */
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{flex:1 1 0;min-width:96px;min-height:42px;border:1.5px solid var(--line);background:var(--surface2);color:var(--fg);border-radius:10px;padding:8px 10px;font:inherit;font-weight:700;cursor:pointer}
.seg button small{font-weight:500;color:var(--muted)}
.seg button.on{border-color:var(--leaf);background:var(--leaf-l);box-shadow:inset 0 0 0 1px var(--leaf)}
.seg button:focus-visible{outline:2px solid var(--leaf);outline-offset:2px}
input.in,select.in,textarea.in{border:1.5px solid var(--line);background:var(--surface2);border-radius:10px;padding:9px 11px;color:var(--fg);font-weight:500;width:100%;min-width:0}
input.in:focus,select.in:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 3px var(--leaf-l)}
.tablewrap{overflow-x:auto;margin:0 -4px}
table{width:100%;border-collapse:collapse;font-size:.92rem}
th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:8px;border-bottom:1.5px solid var(--line);white-space:nowrap}
td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
td.r,th.r{text-align:right}
.muted{color:var(--muted)}
.empty{padding:22px;text-align:center;color:var(--muted)}

/* KPI tiles */
.kpi{position:relative;overflow:hidden;border-radius:18px;padding:16px;color:var(--fg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.kpi .ico{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;margin-bottom:8px}
.kpi .lbl{font-size:.85rem;color:var(--muted);font-weight:600}
.kpi .val{font-family:var(--display);font-size:1.45rem;font-weight:800;line-height:1.15}
.kpi .sub{font-size:.8rem;color:var(--muted)}
.kpi::after{content:"";position:absolute;right:-18px;bottom:-18px;width:90px;height:90px;border-radius:50%;opacity:.35}
.k-leaf .ico{background:var(--leaf-l);color:var(--leaf)} .k-leaf::after{background:var(--leaf-l)}
.k-sun .ico{background:var(--sun-l);color:var(--soil)} .k-sun::after{background:var(--sun-l)}
.k-sky .ico{background:var(--sky-l);color:var(--sky)} .k-sky::after{background:var(--sky-l)}
.k-berry .ico{background:var(--berry-l);color:var(--berry)} .k-berry::after{background:var(--berry-l)}
.k-soil .ico{background:var(--soil-l);color:var(--soil)} .k-soil::after{background:var(--soil-l)}

/* Hero (dashboard greeting) */
.hero{border-radius:22px;padding:22px;color:#fff;position:relative;overflow:hidden;
  background:linear-gradient(120deg,#1f6b2a 0%,#2f8f3a 45%,#8db62c 100%)}
.hero h2{font-size:1.7rem;font-weight:800}
.hero p{margin:4px 0 0;opacity:.92;max-width:52ch}
.hero .scene{position:absolute;right:0;bottom:0;height:100%;max-width:55%;opacity:.95;pointer-events:none}
.hero .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:1}
.hero .chip{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);border-radius:12px;padding:6px 12px;font-weight:600;font-size:.9rem}
.hero .btn{background:#fff;color:#1f6b2a;box-shadow:0 3px 0 rgba(0,0,0,.2)}

/* Chart */
.bars{display:flex;align-items:flex-end;gap:10px;height:170px;padding-top:10px;border-bottom:1.5px solid var(--line)}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%;min-width:0}
.bar .b{width:100%;max-width:44px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,var(--leaf),var(--leaf-d));position:relative}
.bar .b.today{background:linear-gradient(180deg,var(--sun),#d98a00)}
.bar .v{font-size:.72rem;color:var(--muted);white-space:nowrap}
.bar-x{display:flex;gap:10px;margin-top:6px}
.bar-x span{flex:1;text-align:center;font-size:.75rem;color:var(--muted)}
.split{display:flex;flex-direction:column;gap:12px}
.split .row{display:grid;grid-template-columns:110px 1fr 90px;gap:10px;align-items:center;font-size:.9rem}
.track{height:12px;background:var(--surface2);border-radius:99px;overflow:hidden;border:1px solid var(--line)}
.track i{display:block;height:100%;border-radius:99px}

/* Mother panel */
.bizcard{display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden}
.bizcard .top2{display:flex;gap:12px;align-items:center}
.bizcard .av{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;color:#fff;font-family:var(--display);font-size:1.3rem;font-weight:800;flex:none}
.bizcard .meta{display:flex;gap:6px;flex-wrap:wrap}
.newbiz{border:2px dashed var(--leaf);background:var(--leaf-l);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;cursor:pointer;color:var(--leaf-d);min-height:190px}
.newbiz:hover{filter:brightness(1.03)}
.newbiz .plus{width:54px;height:54px;border-radius:50%;background:var(--leaf);color:var(--on-leaf);display:grid;place-items:center}

/* Wizard */
.steps{display:flex;gap:6px;flex-wrap:wrap}
.step{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;background:var(--surface2);border:1px solid var(--line);font-weight:600;font-size:.88rem;color:var(--muted)}
.step .n{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--line);color:var(--fg);font-size:.85rem}
.step.on{background:var(--leaf-l);color:var(--leaf-d);border-color:var(--leaf)} .step.on .n{background:var(--leaf);color:var(--on-leaf)}
.step.done .n{background:var(--sun);color:#3a2700}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.tile{position:relative;border:2px solid var(--line);border-radius:18px;padding:16px;cursor:pointer;background:var(--surface);display:flex;flex-direction:column;gap:8px;transition:border-color .15s,transform .15s}
.tile:hover{transform:translateY(-2px)}
.tile input{position:absolute;opacity:0;pointer-events:none}
.tile .big{width:58px;height:58px;border-radius:16px;display:grid;place-items:center}
.tile .big svg{width:32px;height:32px}
.tile .chk{position:absolute;top:12px;right:12px;width:26px;height:26px;border-radius:8px;border:2px solid var(--line);display:grid;place-items:center;color:transparent;background:var(--surface)}
.tile.sel{border-color:var(--leaf);background:var(--leaf-l)}
.tile.sel .chk{background:var(--leaf);border-color:var(--leaf);color:#fff}
.tile:focus-within{outline:2px solid var(--sun);outline-offset:2px}
.tile b{font-family:var(--display);font-size:1.15rem}
.tile small{color:var(--muted);line-height:1.4}
.mods{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.mod{display:flex;gap:10px;align-items:center;border:1.5px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;background:var(--surface)}
.mod .ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--surface2);color:var(--leaf);flex:none}
.mod.sel{border-color:var(--leaf);background:var(--leaf-l)}
.mod.sel .ic{background:var(--leaf);color:var(--on-leaf)}
.mod input{accent-color:var(--leaf);width:18px;height:18px;margin-left:auto;flex:none}
.mod span{font-weight:600;line-height:1.3} .mod small{display:block;color:var(--muted);font-weight:400;font-size:.78rem}
.wiz-foot{display:flex;justify-content:space-between;gap:10px;margin-top:18px;flex-wrap:wrap}
.form-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.sellerrow{display:grid;grid-template-columns:90px 1fr 1fr 110px auto;gap:10px;align-items:end;padding:12px;border:1.5px dashed var(--line);border-radius:14px}
.setup-log{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.setup-log div{display:flex;gap:10px;align-items:center;font-weight:500;animation:pop .3s ease both}
.setup-log .dot{width:22px;height:22px;border-radius:50%;background:var(--leaf);color:var(--on-leaf);display:grid;place-items:center;flex:none}
.setup-log .dot svg{width:14px;height:14px}
.progress{height:14px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);overflow:hidden;margin-top:12px}
.progress i{display:block;height:100%;width:0;background:repeating-linear-gradient(45deg,var(--leaf),var(--leaf) 10px,#5aae3a 10px,#5aae3a 20px);transition:width .35s}
@keyframes pop{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Sale form */
.lines{display:flex;flex-direction:column;gap:8px}
.line{display:grid;grid-template-columns:minmax(0,2.4fr) 90px 110px 110px 38px;gap:8px;align-items:center}
.line .tot{font-weight:700;text-align:right}
.iconbtn{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--surface2);display:grid;place-items:center;cursor:pointer;color:var(--berry)}
.summary{display:grid;gap:6px;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:14px}
.summary div{display:flex;justify-content:space-between;gap:10px}
.summary .grand{font-family:var(--display);font-size:1.4rem;font-weight:800;color:var(--leaf-d)}
.summary .due{color:var(--berry);font-weight:700}

/* Modal / invoice */
.modal{position:fixed;inset:0;z-index:100;background:rgba(10,25,10,.55);display:grid;place-items:center;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.modal .box{background:var(--surface);border-radius:20px;max-width:620px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.inv-h{background:linear-gradient(110deg,#1f6b2a,#2f8f3a 60%,#8db62c);color:#fff;padding:20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;position:relative;overflow:hidden}
.inv-h h3{font-size:1.4rem}
.inv-b{padding:20px;display:flex;flex-direction:column;gap:14px}
.inv-b .two{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.92rem}
.stamp{display:inline-block;border:2px solid var(--berry);color:var(--berry);border-radius:8px;padding:2px 10px;font-weight:700;transform:rotate(-4deg)}
.stamp.paid{border-color:var(--leaf);color:var(--leaf)}

.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--leaf-d);color:#fff;padding:10px 18px;border-radius:12px;font-weight:600;z-index:120;box-shadow:var(--shadow);display:flex;gap:8px;align-items:center}
:root[data-theme="dark"] .toast{color:#0f1a0e}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .toast{color:#0f1a0e}}

/* Shop preview */
.shop-h{border-radius:22px;overflow:hidden;position:relative;padding:28px 22px;color:#fff;background:linear-gradient(135deg,#6aa630,#2f8f3a 60%,#1f6b2a)}
.prod{display:flex;flex-direction:column;gap:6px}
.prod .img{height:110px;border-radius:14px;display:grid;place-items:center}
.prod .img svg{width:52px;height:52px}

.demo-note{font-size:.82rem;color:var(--muted);display:flex;gap:6px;align-items:center}

@media (max-width:980px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .side{position:relative;top:auto;padding:8px}
  .side h4{display:none}
  .nav{flex-direction:row;overflow-x:auto;gap:4px}
  .nav button{flex:none;padding:6px 10px}
  .nav button .ic{width:28px;height:28px}
  .g3{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .g2{grid-template-columns:minmax(0,1fr)}
  .line{grid-template-columns:minmax(0,1fr) 70px 90px;}
  .line .tot{grid-column:1/3;text-align:left}
  .sellerrow{grid-template-columns:1fr 1fr}
  .split .row{grid-template-columns:80px 1fr 80px}
  .hero .scene{opacity:.35}
  .brand small{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.langbtn{position:relative;z-index:1;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;height:38px;padding:0 12px;display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:700}
.langbtn:focus-visible,.themebtn:focus-visible{outline:2px solid #f2a516}
.inv-paper{--surface:#ffffff;--surface2:#f6faf1;--fg:#1d2b17;--muted:#5d6e55;--line:#d5e3c8;--leaf:#2f8f3a;--leaf-d:#1f6b2a;--berry:#c8414f;background:#fff;color:#1d2b17}
.inv-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:14px 20px;border-top:1px solid var(--line);background:var(--surface)}
.inv-actions .grp{display:flex;gap:8px;flex-wrap:wrap}
.newcust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1.5px dashed var(--leaf);border-radius:14px;background:var(--leaf-l);margin-bottom:14px}
@media (max-width:720px){.newcust{grid-template-columns:minmax(0,1fr)}}
.btn[disabled]{opacity:.6;cursor:progress}
#otpm .modal{z-index:110}
.badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;border-radius:10px;background:#f2a516;color:#3a2700;font-size:.72rem;font-weight:800;display:grid;place-items:center;padding:0 4px}
#smspop{position:fixed;right:max(16px,env(safe-area-inset-right,0px));top:calc(84px + env(safe-area-inset-top,0px));z-index:130;width:min(330px,calc(100vw - 32px));background:#102313;color:#e8f5e0;border-radius:16px;padding:12px 14px;box-shadow:0 20px 40px -12px rgba(0,0,0,.55);font-size:.92rem;border:1px solid #2f8f3a}
#smspop .from{font-size:.75rem;opacity:.75;display:flex;gap:6px;align-items:center}
#smspop svg.i{width:16px;height:16px}
.otpin{font-size:1.6rem;letter-spacing:.35em;text-align:center;font-weight:700}
.rules{display:flex;flex-wrap:wrap;gap:6px;font-size:.8rem}
.rules span{padding:2px 9px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);color:var(--muted)}
.rules span.ok{background:var(--leaf-l);color:var(--leaf-d);border-color:var(--leaf)}
.searchbar{display:flex;gap:8px;align-items:center;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:4px 6px 4px 12px;max-width:460px;width:100%;color:var(--leaf)}
.searchbar input{border:0;background:transparent;flex:1;min-width:0;padding:8px 4px;outline:none;color:var(--fg);font-weight:500}
.searchbar:focus-within{border-color:var(--leaf);box-shadow:0 0 0 3px var(--leaf-l)}
.pass{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.88rem}
.loginwrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px}
@media (max-width:860px){.loginwrap{grid-template-columns:minmax(0,1fr)}}
.urlbox{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:7px 10px;word-break:break-all;font-size:.88rem}
.sellerrow.v2{grid-template-columns:70px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto}
@media (max-width:720px){.sellerrow.v2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.eyebtn{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--surface2);color:var(--leaf);cursor:pointer;vertical-align:middle}
.eyebtn svg.i{width:16px;height:16px}
tr.totrow td{font-weight:700;border-top:1.5px solid var(--line)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip-btn{border:1.5px solid var(--line);background:var(--surface2);color:var(--fg);border-radius:999px;padding:5px 12px;font-weight:600;font-size:.86rem;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.chip-btn svg.i{width:16px;height:16px}
.chip-btn.on{background:var(--leaf);border-color:var(--leaf);color:var(--on-leaf)}
.chip-btn:focus-visible{outline:2px solid var(--sun);outline-offset:2px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.pitem{display:flex;flex-direction:column;gap:4px;text-align:left;border:1.5px solid var(--line);background:var(--surface);border-radius:12px;padding:9px 10px;cursor:pointer;color:var(--fg);min-width:0}
.pitem:hover{border-color:var(--leaf);background:var(--leaf-l)}
.pitem[disabled]{opacity:.5;cursor:not-allowed}
.pitem b{font-size:.9rem;line-height:1.3}
.pitem .meta{display:flex;justify-content:space-between;gap:6px;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.pitem .price{font-weight:700;color:var(--leaf-d)}
.picker{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:14px;background:var(--surface2);border:1px solid var(--line);margin-bottom:14px}
.reslist{display:flex;flex-direction:column;gap:6px}
.resrow{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1.5px solid var(--line);background:var(--surface);border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left;color:var(--fg);width:100%}
.resrow:hover{border-color:var(--leaf);background:var(--leaf-l)}
.resrow .who{display:flex;gap:10px;align-items:center;min-width:0}
.resrow .av2{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--leaf-l);color:var(--leaf);flex:none}
.custfind{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}

/* ---- real-app additions ---- */
.p-pest{background:var(--pest-l)}
.shell.noside{grid-template-columns:minmax(0,1fr);max-width:1100px}
.salegrid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
@media (max-width:900px){.salegrid{grid-template-columns:minmax(0,1fr)}}
.toast.err{background:var(--berry)}
.linkbtn{border:0;background:none;padding:0;color:inherit;cursor:pointer;text-align:left;font:inherit}
.linkbtn:hover b{text-decoration:underline}
.rolebar .uname{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom}
.rolebar button[disabled]{cursor:default;opacity:1}
.btn[disabled]{opacity:.6;cursor:progress}
a.btn{text-decoration:none}
.line{grid-template-columns:minmax(0,2.2fr) 90px 110px 110px 38px}
@media (max-width:720px){.line{grid-template-columns:minmax(0,1fr) 80px 90px}.line .tot{grid-column:1/3;text-align:left}}
@media (max-width:720px){.rolebar .uname{display:none}}
@media print{
  body *{visibility:hidden}
  #invcap,#invcap *{visibility:visible}
  #invcap{position:absolute;left:0;top:0;width:100%}
  .modal{background:none!important}
}
@media (max-width:720px){.top{position:relative;top:auto}.brand b{font-size:1.15rem}}

/* building-material category pills */
.p-rod{background:var(--soil-l);color:var(--soil)}
.p-cement{background:var(--surface2);color:var(--muted);border:1px solid var(--line)}
.p-sheet{background:var(--berry-l);color:var(--berry)}
.p-tin{background:var(--sky-l);color:var(--sky)}
.p-angle{background:var(--pest-l);color:var(--pest)}
.p-bar{background:var(--sun-l);color:var(--soil)}

/* NirmanKhata (building materials): brick colour instead of leaf green */
:root[data-brand="build"]{--leaf:#a8532b;--leaf-d:#7a3b1d;--leaf-l:#f6e3d8}
@media (prefers-color-scheme: dark){:root[data-brand="build"]:not([data-theme="light"]){--leaf:#e3915f;--leaf-d:#f0b48a;--leaf-l:#3d2418}}
:root[data-brand="build"][data-theme="dark"]{--leaf:#e3915f;--leaf-d:#f0b48a;--leaf-l:#3d2418}
:root[data-brand="build"] .top{background:linear-gradient(100deg,#6b3318,#a8532b 55%,#d08a3a)}
:root[data-brand="build"] body::before{background:#6b3318}
:root[data-brand="build"] .hero,:root[data-brand="build"] .shop-h,:root[data-brand="build"] .inv-h{background:linear-gradient(120deg,#6b3318 0%,#a8532b 50%,#d08a3a 100%)}
:root[data-brand="build"] .logo{color:#a8532b}
:root[data-brand="build"] .btn{box-shadow:0 3px 0 var(--leaf-d)}

/* sale lines: column headers and piece-count box */
.line-h{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;padding:0 2px}
.pcsbox{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:6px;font-size:.85rem;color:var(--muted)}
.pcsbox input{width:74px;padding:6px 8px}
.pcsbox b{color:var(--leaf-d)}
@media (max-width:720px){.line-h{display:none}}

/* ---------- v1.2 polish ---------- */
/* NirmanKhata: warm sand-and-brick palette (instead of the green field colours), light and dark */
:root[data-brand="build"]{--bg:#f6efe8;--bg2:#efe4d8;--surface2:#fbf6f1;--fg:#2b211b;--muted:#6e6259;--line:#e8dacb;--shadow:0 6px 20px -10px rgba(90,45,20,.35)}
@media (prefers-color-scheme: dark){:root[data-brand="build"]:not([data-theme="light"]){--bg:#15100c;--bg2:#1c1510;--surface:#211914;--surface2:#2a201a;--fg:#f0e6de;--muted:#b9a698;--line:#3d2e24}}
:root[data-brand="build"][data-theme="dark"]{--bg:#15100c;--bg2:#1c1510;--surface:#211914;--surface2:#2a201a;--fg:#f0e6de;--muted:#b9a698;--line:#3d2e24}
/* NirmanKhata background: bricks and small buildings instead of leaves */
:root[data-brand="build"] body::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23a8532b' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M20 70V40l18-13 18 13v30zM32 70V56h12v14'/%3E%3Cpath d='M110 150v-40h40v40M118 120h8M134 120h8M118 134h8M134 134h8'/%3E%3C/g%3E%3Cg fill='%23a8532b'%3E%3Crect x='100' y='30' width='26' height='11' rx='2'/%3E%3Crect x='130' y='30' width='26' height='11' rx='2'/%3E%3Crect x='115' y='45' width='26' height='11' rx='2'/%3E%3Ccircle cx='60' cy='140' r='4'/%3E%3Ccircle cx='160' cy='90' r='4'/%3E%3C/g%3E%3C/svg%3E")}
:root[data-brand="build"] .top::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'%3E%3Cg fill='%23fff'%3E%3Crect x='30' y='50' width='40' height='70'/%3E%3Crect x='78' y='25' width='50' height='95'/%3E%3Crect x='136' y='60' width='36' height='60'/%3E%3Cpath d='M220 120V10h4v110zM160 12h100v4H160zM170 16h3v24h-3z'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom/contain}
:root[data-brand="build"] .side::after{opacity:.07;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23a8532b'%3E%3Crect x='14' y='44' width='26' height='56'/%3E%3Crect x='44' y='24' width='30' height='76'/%3E%3Crect x='78' y='56' width='18' height='44'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom/contain}
.hero .btn{color:var(--leaf-d)}
:root[data-theme="dark"] .hero .btn{color:#173d1c}:root[data-brand="build"][data-theme="dark"] .hero .btn{color:#3a2210}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .hero .btn{color:#173d1c}:root[data-brand="build"]:not([data-theme="light"]) .hero .btn{color:#3a2210}}
.hero .chip{font:inherit;font-weight:600;font-size:.9rem;color:#fff;display:inline-flex;gap:6px;align-items:center}
.hero .chip-warn{cursor:pointer;background:rgba(255,196,64,.32);border-color:rgba(255,226,160,.7)}
.hero .chip-warn:hover{background:rgba(255,196,64,.45)}
.hero .chip svg{width:16px;height:16px}
/* KPI numbers stay on one line */
.kpi .val{white-space:nowrap;font-size:clamp(1.1rem,1.5vw,1.45rem)}
/* Category bars: room for "Cement (সিমেন্ট)"; on phones the bar goes under the name */
.split .row{grid-template-columns:minmax(0,150px) 1fr 100px}
.split .row .pill{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.split .row > :last-child{text-align:right}
@media (max-width:720px){.split .row{grid-template-columns:minmax(0,1fr) auto;row-gap:4px}.split .row .track{grid-column:1/-1;order:3}}
tfoot td{border-top:2px solid var(--line);border-bottom:0}
.empty{color:var(--muted)}
/* Report period buttons */
.seg-sm button{min-width:0;min-height:36px;padding:6px 12px;font-size:.88rem;flex:0 0 auto}
.pagehead .seg{align-self:flex-end}
/* Language button: short label on phones */
.langbtn .lshort{display:none}
/* Phone header: logo + icons on the first line, shop name and sign-out on the second */
@media (max-width:720px){
  .top{gap:8px;padding-block:8px}
  .top .spacer{order:1}
  #bellbtn{order:2} .langbtn{order:3;padding:0 10px} .themebtn#themebtn{order:4}
  .top::before{content:"";order:5;flex-basis:100%;height:0}
  .bizname{order:6;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:.84rem;padding:5px 10px}
  .bizname svg{vertical-align:-4px;width:16px;height:16px}
  .rolebar{order:7;flex-wrap:nowrap;padding:3px}
  .rolebar button{padding:5px 9px;font-size:.84rem}
  .rolebar button.on{display:none}
  .langbtn .lfull{display:none} .langbtn .lshort{display:inline}
  .logo{width:36px;height:36px}
  .themebtn,.langbtn{height:36px} .themebtn{width:36px}
}
/* Sale on a phone: the memo total sits at the bottom with a button to the bill */
.cartbar{display:none}
@media (max-width:900px){
  .cartbar:not([hidden]){display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:40;align-items:center;justify-content:space-between;gap:10px;
    background:var(--leaf-d);color:#fff;border-radius:14px;padding:10px 10px 10px 14px;box-shadow:0 12px 28px -10px rgba(0,0,0,.55)}
  .cartbar span{display:flex;gap:6px;align-items:center;font-size:.95rem}
  :root[data-theme="dark"] .cartbar,.cartbar{color:#fff}
  #main:has(.cartbar:not([hidden])){padding-bottom:70px}
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .cartbar{background:#24402a}:root[data-brand="build"]:not([data-theme="light"]) .cartbar{background:#4a2a17}}
:root[data-theme="dark"] .cartbar{background:#24402a}
:root[data-brand="build"][data-theme="dark"] .cartbar{background:#4a2a17}
/* Money never breaks across lines */
td.r.num,th.r,.summary div > :last-child{white-space:nowrap}
.summary div{align-items:baseline}
@media (max-width:720px){.summary .grand{font-size:1.15rem}.pagehead h2{font-size:1.45rem}}
.pname{font-weight:600;overflow-wrap:anywhere}
.pname + .pill{margin-top:3px;font-size:.72rem}
/* Dark mode: the main colour is light, so button text goes dark for contrast */
:root{--on-leaf:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--on-leaf:#0f2410}:root[data-brand="build"]:not([data-theme="light"]){--on-leaf:#2a1408}}
:root[data-theme="dark"]{--on-leaf:#0f2410}
:root[data-brand="build"][data-theme="dark"]{--on-leaf:#2a1408}
.btn,.btn.red,.nav button.on .ic{color:var(--on-leaf)}
.btn.sun{color:#3a2700}.btn.ghost{color:var(--fg)}
.hero .btn{background:#fff}
/* Customer website header: the picture sits in the corner, behind the text */
.shop-h .scene{position:absolute;right:0;bottom:0;height:100%;max-width:55%;opacity:.95;pointer-events:none}
@media (max-width:720px){.shop-h .scene{opacity:.35;max-width:100%}}
:root[data-brand="build"] .rolebar button.on{color:#7a3b1d}

/* ---------- Segments 3–8 (bike, brick, mobile, furniture, car, hardware): neutral page, own brand colour ---------- */
:root[data-palette="seg"]{--bg:#f3f5f8;--bg2:#e8ecf1;--surface2:#f8fafc;--fg:#1d2430;--muted:#5b6574;--line:#dde3ea;--leaf:var(--brand);--leaf-d:var(--brand-d);--leaf-l:var(--brand-l);--shadow:0 6px 20px -10px rgba(20,30,50,.3)}
@media (prefers-color-scheme: dark){:root[data-palette="seg"]:not([data-theme="light"]){--bg:#0f1318;--bg2:#141a20;--surface:#171c23;--surface2:#1d242c;--fg:#e7ebf0;--muted:#9aa5b4;--line:#2a333d;--leaf:var(--brand-lt);--leaf-d:var(--brand-lt2);--leaf-l:var(--brand-dl);--on-leaf:#10151c}}
:root[data-palette="seg"][data-theme="dark"]{--bg:#0f1318;--bg2:#141a20;--surface:#171c23;--surface2:#1d242c;--fg:#e7ebf0;--muted:#9aa5b4;--line:#2a333d;--leaf:var(--brand-lt);--leaf-d:var(--brand-lt2);--leaf-l:var(--brand-dl);--on-leaf:#10151c}
:root[data-palette="seg"] .top{background:linear-gradient(100deg,var(--brand-d),var(--brand) 55%,var(--brand-2))}
:root[data-palette="seg"] body::before{background:var(--brand-d)}
:root[data-palette="seg"] .hero,:root[data-palette="seg"] .shop-h,:root[data-palette="seg"] .inv-h{background:linear-gradient(120deg,var(--brand-d) 0%,var(--brand) 55%,var(--brand-2) 100%)}
:root[data-palette="seg"] .logo{color:var(--brand)}
:root[data-palette="seg"] body::after{background-image:radial-gradient(var(--brand) 1.3px,transparent 1.9px);background-size:28px 28px}
:root[data-palette="seg"] .top::after,:root[data-palette="seg"] .side::after{display:none}
:root[data-palette="seg"] .rolebar button.on{color:var(--brand-d)}
:root[data-palette="seg"] .hero .btn{color:var(--brand-d)!important}
:root[data-palette="seg"] .inv-paper{--leaf:var(--brand);--leaf-d:var(--brand-d);--surface2:#f8fafc;--line:#dde3ea;--muted:#5b6574;--fg:#1d2430;color:#1d2430}
:root[data-palette="seg"] .cartbar{background:var(--brand-d)}
.p-sky{background:var(--sky-l);color:var(--sky)}

/* Vehicle register (bike / car shops) */
.vfilters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.vfilters .searchbar{flex:1 1 260px}
.vstat{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:12px}
.vstat div{background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.vstat b{display:block;font-family:var(--display);font-size:1.2rem}
.vstat span{font-size:.82rem;color:var(--muted)}
.vrow{cursor:pointer}
.vrow:hover td{background:var(--surface2)}
.vmeta{font-size:.8rem;color:var(--muted);line-height:1.5}
.vdates{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:6px 0 4px}
.vdates div{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface2)}
.vdates b{display:block;font-size:1.02rem}
.vdates span{font-size:.8rem;color:var(--muted)}
.vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 16px}
.vgrid div span{display:block;font-size:.78rem;color:var(--muted)}
.vgrid div b{font-weight:600}
.pill.p-sold{background:var(--leaf-l);color:var(--leaf-d)}
fieldset.vbox{border:1.5px dashed var(--line);border-radius:14px;padding:10px 12px 12px;margin:12px 0 0}
fieldset.vbox legend{padding:0 6px;font-weight:700;color:var(--muted);font-size:.85rem}
.panels{display:flex;flex-direction:column;gap:10px}
.panels .chips a{text-decoration:none}

/* Segments 3–8: their own background pattern (bikes, bricks, phones, furniture, cars, tools) */
:root[data-brand="bike"] body::after{background-image:url(/art/pattern-bike.svg);background-size:150px}
:root[data-brand="brick"] body::after{background-image:url(/art/pattern-brick.svg);background-size:150px}
:root[data-brand="mobile"] body::after{background-image:url(/art/pattern-mobile.svg);background-size:150px}
:root[data-brand="furniture"] body::after{background-image:url(/art/pattern-furniture.svg);background-size:150px}
:root[data-brand="car"] body::after{background-image:url(/art/pattern-car.svg);background-size:150px}
:root[data-brand="hardware"] body::after{background-image:url(/art/pattern-hardware.svg);background-size:150px}
:root[data-palette="seg"] .hero::before,:root[data-palette="seg"] .shop-h::before{content:"";position:absolute;inset:0;opacity:.12;pointer-events:none;background-size:150px}
:root[data-brand="bike"] .hero::before,:root[data-brand="bike"] .shop-h::before{background-image:url(/art/pattern-bike-w.svg)}
:root[data-brand="brick"] .hero::before,:root[data-brand="brick"] .shop-h::before{background-image:url(/art/pattern-brick-w.svg)}
:root[data-brand="mobile"] .hero::before,:root[data-brand="mobile"] .shop-h::before{background-image:url(/art/pattern-mobile-w.svg)}
:root[data-brand="furniture"] .hero::before,:root[data-brand="furniture"] .shop-h::before{background-image:url(/art/pattern-furniture-w.svg)}
:root[data-brand="car"] .hero::before,:root[data-brand="car"] .shop-h::before{background-image:url(/art/pattern-car-w.svg)}
:root[data-brand="hardware"] .hero::before,:root[data-brand="hardware"] .shop-h::before{background-image:url(/art/pattern-hardware-w.svg)}
.hero img.scene,.shop-h img.scene{height:100%;width:auto;max-width:52%;object-fit:contain;object-position:right bottom}
@media (max-width:720px){.hero img.scene,.shop-h img.scene{max-width:80%;opacity:.35}}

/* Super admin start page (adminr) */
.launch{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-top:14px}
.lcard{display:flex;flex-direction:column;text-decoration:none;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s}
.lcard:hover{transform:translateY(-3px)}
.lcard .pic{position:relative;display:block;aspect-ratio:16/8;overflow:hidden}
.lcard .pic img{position:absolute;left:0;bottom:0;width:100%}
.lcard .pic .n{position:absolute;left:12px;top:10px;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.45);color:#fff;display:grid;place-items:center;font:800 1.2rem var(--display)}
.lcard .body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
.lcard .body > b{font:800 1.3rem/1.1 var(--display);color:var(--c)}
.lcard small{color:var(--muted)}
.lcard .st{display:flex;gap:8px}
.lcard .st span{flex:1;background:var(--surface2);border:1px solid var(--line);border-radius:12px;padding:6px 8px;font-size:.8rem;color:var(--muted);text-align:center}
.lcard .st b{display:block;font:800 1.15rem var(--display);color:var(--fg)}
.lcard .mo{font-size:.85rem;color:var(--muted)}
.lcard .go{align-self:flex-start;background:var(--c);color:#fff;border-radius:11px;padding:8px 14px;font-weight:700;box-shadow:0 3px 0 var(--d)}
