:root {
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #3a3f47;
  --muted: #646a73;
  --faint: #9aa0a8;
  --line: #e4e6ea;
  --line-2: #d3d7dd;
  --green: #006a4e;
  --green-ink: #00513b;
  --green-soft: #e3f1ec;
  --amber: #8a5300;
  --amber-soft: #fbf0dc;
  --red: #c4122f;
  --red-soft: #fde8eb;
  --blue: #1f4f99;
  --blue-soft: #e6eefa;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-pop: 0 12px 40px rgba(21, 23, 28, .16), 0 2px 6px rgba(21, 23, 28, .06);
  --head: "Noto Sans Bengali", system-ui, sans-serif;
  --body: "Noto Sans Bengali", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--body); background: var(--canvas); color: var(--ink);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.num, .money { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--green); background: var(--green); color: #fff;
  font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--green-ink); border-color: var(--green-ink); text-decoration: none; }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { border-color: var(--ink-2); background: var(--surface); }
.btn.danger { background: var(--surface); color: var(--red); border-color: #f1c1c9; }
.btn.danger:hover { border-color: var(--red); background: var(--surface); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13.5px; }
.btn.block { width: 100%; height: 44px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ico { width: 16px; height: 16px; }
.iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: var(--r-sm); color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--canvas); color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- form ---------- */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
input, select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.err { color: var(--red); font-size: 14px; }
.err:not(:empty) { margin: 4px 0 12px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--green); color: #e7f4ef; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .mark { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; font-size: 19px; color: #fff; }
.auth-side .mark .logo { background: #fff; color: var(--green); }
.auth-side h2 { font-family: var(--head); font-weight: 500; font-size: 34px; line-height: 1.25; color: #fff; margin: 0 0 18px; max-width: 420px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 400px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li .ico { margin-top: 3px; color: #9fd6c2; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.auth-card { width: 100%; max-width: 360px; }
.auth-card h1 { font-family: var(--head); font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.seg { display: flex; background: var(--canvas); border-radius: var(--r-sm); padding: 3px; margin-bottom: 22px; }
.seg button { flex: 1; border: 0; background: none; height: 34px; border-radius: 5px; cursor: pointer; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21,23,28,.12); }
.note { background: var(--green-soft); color: var(--green-ink); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 16px; }
.logo { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: 17px; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand > div { min-width: 0; }
.brand .bn { font-family: var(--head); font-weight: 600; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .bs { font-size: 12.5px; color: var(--muted); }
.brand select { height: 28px; font-size: 12.5px; padding: 0 6px; margin-top: 4px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--canvas); }
.nav a.on { background: var(--green-soft); color: var(--green-ink); }
.nav a .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding: 28px 36px 96px; min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.top h1 { font-family: var(--head); font-size: 28px; font-weight: 600; margin: 0; line-height: 1.2; }
.top .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.top .actions { display: flex; gap: 8px; }
.mobilebar { display: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-family: var(--head); font-size: 17px; font-weight: 600; margin: 0; }
.panel-b { padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { padding: 44px 24px; text-align: center; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; color: var(--faint); stroke-width: 1.4; margin-bottom: 8px; }
.empty p { margin: 0 0 14px; }

/* ---------- pipeline (overview) ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.pipe a { position: relative; display: block; padding: 18px 20px 16px 26px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.pipe a:last-child { border-right: 0; }
.pipe a:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.pipe a:hover { background: #fafbfb; text-decoration: none; }
.pipe a:hover::after { background: #fafbfb; }
.pipe .k { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.pipe .v { font-family: var(--head); font-size: 34px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pipe a.hot .v { color: var(--amber); }
.pipe .s { font-size: 12.5px; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpis > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.kpis > div:last-child { border-right: 0; }
.kpis .k { font-size: 13px; color: var(--muted); }
.kpis .v { font-family: var(--head); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--red-soft); color: #7d0c1f; margin-bottom: 20px; }
.alert .ico { margin-top: 2px; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.click { cursor: pointer; }
.list li.click:hover { background: #fafbfb; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--canvas) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--faint); }
.thumb .ico { width: 16px; height: 16px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12.5px; font-weight: 500; white-space: nowrap; background: #eef0f3; color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill.plain::before { display: none; }
.pill.green { background: var(--green-soft); color: var(--green-ink); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search input { padding-left: 34px; }
.tabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; overflow-x: auto; max-width: 100%; }
.tabs button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 5px; cursor: pointer; color: var(--muted); white-space: nowrap; font-weight: 500; }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs button .c { opacity: .65; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- product grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.pcard .img { aspect-ratio: 4 / 5; background: var(--canvas) center/cover no-repeat; position: relative; display: grid; place-items: center; color: var(--faint); cursor: pointer; border: 0; padding: 0; width: 100%; }
.pcard .img .ico { width: 30px; height: 30px; stroke-width: 1.3; }
.pcard .img .off { position: absolute; top: 10px; left: 10px; }
.pcard .img .cnt { position: absolute; bottom: 8px; right: 8px; background: rgba(21,23,28,.62); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 9px; }
.pcard .b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .name { font-weight: 600; line-height: 1.35; }
.pcard .price { font-family: var(--head); font-weight: 600; font-size: 18px; }
.pcard .price small { font-family: var(--body); font-size: 12.5px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.vrows { display: grid; gap: 4px; }
.vrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.vrow .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow .q { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 28px; text-align: right; }
.vrow .q.low { color: var(--amber); }
.vrow .q.zero { color: var(--red); }
.vrow button { border: 1px solid var(--line-2); background: var(--surface); height: 24px; width: 24px; border-radius: 5px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.vrow button:hover { border-color: var(--green); color: var(--green); }
.vrow button .ico { width: 14px; height: 14px; }

/* ---------- orders ---------- */
.olist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.orow { display: grid; grid-template-columns: 92px minmax(0, 1.5fr) minmax(0, 1.3fr) 110px 150px auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.orow:last-child { border-bottom: 0; }
.orow:hover { background: #fafbfb; }
.orow .no { font-family: var(--head); font-weight: 600; font-size: 16px; }
.orow .when { font-size: 12.5px; color: var(--muted); }
.orow .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .amt { font-family: var(--head); font-weight: 600; font-size: 17px; text-align: right; }
.orow .st { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.orow .acts { display: flex; gap: 6px; justify-content: flex-end; }
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.risk i { display: inline-block; width: 34px; height: 5px; border-radius: 3px; background: #e9ebee; position: relative; overflow: hidden; }
.risk i b { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; }
.risk.lo { color: var(--green-ink); } .risk.lo b { background: var(--green); }
.risk.md { color: var(--amber); } .risk.md b { background: #d18a12; }
.risk.hi { color: var(--red); } .risk.hi b { background: var(--red); }

/* ---------- drawer & dialog ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-pop); }
dialog::backdrop { background: rgba(21, 23, 28, .42); }
dialog.modal { border-radius: var(--r-lg); width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  dialog.drawer[open] { animation: slidein .2s ease-out; }
  dialog.modal[open] { animation: pop .16s ease-out; }
}
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } }
@keyframes pop { from { transform: scale(.98); opacity: 0; } }
.d-form { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
dialog.modal .d-form { max-height: calc(100vh - 40px); }
.d-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex: none; }
.d-h h3 { margin: 0; font-family: var(--head); font-size: 19px; font-weight: 600; }
.d-b { padding: 20px; overflow-y: auto; flex: 1; }
.d-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex: none; background: var(--surface); flex-wrap: wrap; }
.sec { margin: 0 0 20px; }
.sec-t { font-family: var(--head); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.lines .line { display: grid; grid-template-columns: 1fr 96px 84px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.lines.items .line { grid-template-columns: 1fr 72px 34px; }
.lh { display: grid; grid-template-columns: 1fr 96px 84px 34px; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.sumbox { background: var(--canvas); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; display: grid; gap: 3px; }
.sumbox div { display: flex; justify-content: space-between; }
.sumbox .tot { font-family: var(--head); font-weight: 600; font-size: 18px; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 8px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.items-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-t td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.items-t td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.callout { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.callout.warn { border-color: #f1c1c9; background: #fff8f9; }

/* uploader */
.uploader { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.uploader .tile { aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: var(--canvas) center/cover no-repeat; position: relative; border: 1px solid var(--line); }
.uploader .tile.first::after { content: attr(data-main); position: absolute; left: 6px; bottom: 6px; background: rgba(21,23,28,.62); color: #fff; font-size: 11px; padding: 0 6px; border-radius: 8px; }
.uploader .tile button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 11px; border: 0; background: rgba(21,23,28,.62); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.uploader .tile button .ico { width: 12px; height: 12px; }
.uploader .tile.busy { opacity: .5; }
.uploader .add { aspect-ratio: 4 / 5; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); cursor: pointer; font-size: 12.5px; background: var(--surface); }
.uploader .add:hover, .uploader .add.drag { border-color: var(--green); color: var(--green); }

/* skeleton */
.sk { background: linear-gradient(90deg, #eceef1 0%, #f5f6f8 50%, #eceef1 100%); background-size: 200% 100%; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.2s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: .18s; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--shadow-pop); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--red); }

/* settings */
.settings { display: grid; gap: 20px; max-width: 720px; }
.connected { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connected .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid2 { grid-template-columns: 1fr; }
  .orow { grid-template-columns: 80px minmax(0, 1fr) 100px auto; }
  .orow .items, .orow .acts { display: none; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); flex-direction: row; }
  .side .brand, .side .me, .side .storelink { display: none; }
  .nav { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; height: 52px; font-size: 12px; padding: 0; position: relative; }
  .nav a .badge { position: absolute; top: 3px; left: 55%; margin: 0; min-width: 18px; height: 18px; font-size: 11px; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 16px; }
  .mobilebar strong { font-family: var(--head); font-size: 16px; }
  main { padding: 18px 14px 96px; }
  .top h1 { font-size: 23px; }
  .top .actions .btn.quiet { display: none; }
  .pipe { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; }
  .pipe a { padding: 14px 14px 12px 18px; }
  .pipe .v { font-size: 26px; }
  .kpis .v { font-size: 19px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard .b { padding: 10px; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
  .orow .noc { grid-column: 1; grid-row: 1; display: flex; gap: 8px; align-items: baseline; }
  .orow .whoc { grid-column: 1; grid-row: 2; }
  .orow .amtc { grid-column: 2; grid-row: 1; }
  .orow .st { grid-column: 2; grid-row: 2; align-items: flex-end; }
  .row.stack-m { flex-direction: column; gap: 0; }
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  dialog.modal .d-form { max-height: 100vh; }
  .lines .line, .lh { grid-template-columns: 1fr 76px 64px 30px; }
}

/* language + website link */
.langsw { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); height: 30px; padding: 0 10px; border-radius: 15px; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.langsw:hover { border-color: var(--ink-2); color: var(--ink); }
.langsw.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.storelink { display: flex; gap: 8px; align-items: center; padding: 0 10px 14px; color: var(--green); }
.storelink .ico { width: 16px; height: 16px; }
.mb-tools { display: flex; align-items: center; gap: 2px; }

/* ---------- POS ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pos-cart { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.pos-cart .pos-close { display: none; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.chips-row button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; }
.chips-row button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ptile { display: flex; flex-direction: column; text-align: left; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 8px 8px 10px; cursor: pointer; transition: border-color .12s, transform .08s; }
.ptile:hover { border-color: var(--green); }
.ptile:active { transform: scale(.98); }
.ptile.out { opacity: .5; cursor: not-allowed; }
.ptile .pi { aspect-ratio: 1; border-radius: var(--r-sm); background: var(--canvas) center/cover no-repeat; display: grid; place-items: center; color: var(--faint); margin-bottom: 6px; }
.ptile .pn { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptile .pp { font-weight: 700; font-variant-numeric: tabular-nums; }
.ptile .ps { font-size: 12.5px; color: var(--muted); }
.vpick { display: grid; gap: 8px; }
.vpick button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: left; }
.vpick button:hover { border-color: var(--green); }
.vpick button:disabled { opacity: .45; cursor: not-allowed; }
.vpick span { color: var(--muted); font-size: 13.5px; }
.pos-lines li { padding: 10px 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 18px; height: 34px; }
.stepper button { width: 32px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 17px; color: var(--ink-2); }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pos-pay { border-top: 1px solid var(--line); }
.paychips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.paychips button { height: 40px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-sm); cursor: pointer; font-weight: 500; font-size: 13.5px; }
.paychips button.on { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.sumbox .change { color: var(--green-ink); font-weight: 600; }
.sumbox .short { color: var(--red); font-weight: 600; }
.pos-pay .btn.block { margin-top: 12px; height: 50px; font-size: 16px; }
.pos-bar { display: none; }
.receipt { font-size: 14px; max-width: 320px; margin: 0 auto; }
.receipt .r-h { text-align: center; margin-bottom: 10px; color: var(--ink-2); }
.receipt .r-h strong { display: block; font-size: 17px; color: var(--ink); }
.receipt .r-m { display: flex; justify-content: space-between; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 6px 0; font-size: 13px; color: var(--muted); }
.receipt table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.receipt td { padding: 5px 0; vertical-align: top; }
.receipt td div { font-size: 12.5px; color: var(--muted); }
.receipt td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .r-s { border-top: 1px dashed var(--line-2); padding-top: 6px; display: grid; gap: 2px; }
.receipt .r-s div { display: flex; justify-content: space-between; }
.receipt .r-t { font-weight: 700; font-size: 16px; }
.receipt .r-f { text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body.printing > *:not(dialog) { display: none !important; }
  body.printing dialog { position: static; box-shadow: none; width: auto; max-height: none; }
  body.printing dialog .d-h, body.printing dialog .d-f, body.printing #toast { display: none !important; }
  body.printing .receipt { max-width: none; color: #000; }
}
@media (max-width: 1000px) {
  .pos { grid-template-columns: 1fr; }
  .pos-cart { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .22s ease-out; box-shadow: var(--shadow-pop); }
  .pos-cart.open { transform: none; }
  .pos-cart .pos-close { display: inline-grid; }
  .pos-bar { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 76px; height: 54px; padding: 0 18px; border: 0; border-radius: 27px; background: var(--green); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,106,78,.6); }
  .pos-bar strong { font-size: 17px; }
  .pos-bar .go { margin-left: auto; font-weight: 600; }
  .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1000px) { .pos-bar { bottom: 20px; } .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nav { grid-template-columns: repeat(5, 1fr); } .nav a { font-size: 11px; } }

/* ---------- More / business flow ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tile2 { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.tile2:hover { border-color: var(--green); text-decoration: none; }
.tile2 .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.tile2 b { display: block; font-weight: 600; }
.tile2 small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.backlink { display: inline-block; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.monthnav { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 6px; }
.monthnav strong { min-width: 150px; text-align: center; font-weight: 600; }
.monthnav .iconbtn { font-size: 20px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar i { height: 8px; border-radius: 4px; background: var(--canvas); overflow: hidden; display: block; }
.bar i b { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.pl { margin-bottom: 20px; overflow: hidden; }
.pl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pl-row span { display: flex; flex-direction: column; }
.pl-row small { color: var(--muted); font-size: 12.5px; }
.pl-row b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-row.minus b { color: var(--ink-2); font-weight: 500; }
.pl-row.sub { background: #fafbfb; }
.pl-row.net { border-bottom: 0; background: var(--green-soft); }
.pl-row.net span, .pl-row.net b { color: var(--green-ink); font-weight: 700; font-size: 20px; }
.pl-row.net.loss { background: var(--red-soft); }
.pl-row.net.loss span, .pl-row.net.loss b { color: var(--red); }
@media (max-width: 760px) {
  .bar { grid-template-columns: 110px 1fr 76px; font-size: 13px; }
  .kpis.panel { grid-template-columns: 1fr 1fr !important; }
  .kpis.panel > div:nth-child(2) { border-right: 0; }
  .kpis.panel > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lines .line { grid-template-columns: 1fr 64px 76px 30px; }
}

/* ---------- team ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; font-weight: 600; flex: none; }
.avatar.ghost { background: #eef0f3; color: var(--muted); }
.avatar .ico { width: 18px; height: 18px; }
.rolesel { width: auto; height: 34px; padding: 0 28px 0 10px; font-size: 14px; }
.h-sec { font-size: 15px; font-weight: 600; margin: 24px 0 10px; }
.rolepick { display: grid; gap: 8px; }
.rolepick label { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.rolepick label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.rolepick input { margin-top: 4px; accent-color: var(--green); }
.rolepick b { display: block; font-weight: 600; }
.rolepick small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .rhelp { display: none; } }

/* ---------- credit / returns ---------- */
.creditsw { display: flex; gap: 10px; align-items: center; margin: 2px 0 14px; cursor: pointer; font-size: 14.5px; }
.creditsw input { width: 18px; height: 18px; accent-color: var(--green); }
.retlist { border: 1px solid var(--line); border-radius: var(--r-sm); }
.list li.voided .t, .list li.voided .money { color: var(--muted); text-decoration: line-through; }
.list li.voided .pill { text-decoration: none; }
.kpis.k5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .kpis.k5 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reports: chart, tables, download, print ---------- */
.chartp { margin-bottom: 20px; }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .gl, .chart .xl { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .dl { font-size: 12px; font-weight: 600; fill: var(--ink); }
.chart .cb path { fill: var(--green); }
.chart .cb .zero { fill: var(--line-2); }
.chart .cb.on path { fill: var(--green-ink); }
.chart .cb.on rect:first-child { fill: rgba(21, 23, 28, .04); }
.chart .tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 8px 10px; font-size: 12.5px; line-height: 1.5; pointer-events: none; white-space: nowrap; z-index: 2; display: grid; }
.chart .tip b { font-weight: 600; margin-bottom: 2px; }
.chart .tip span { display: flex; justify-content: space-between; gap: 14px; opacity: .92; }
.chart .tip strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlist { display: grid; gap: 8px; }
.dlist button { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.dlist button:hover { border-color: var(--green); }
.dlist b { display: block; font-weight: 600; }
.dlist small { display: block; color: var(--muted); font-size: 13px; }
.dlist .go { font-size: 12px; font-weight: 600; color: var(--green-ink); background: var(--green-soft); padding: 3px 8px; border-radius: 6px; }
.tscroll { overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dt th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dt td { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.dt tr:last-child td { border-bottom: 0; }
.dt .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media print {
  body.print-page { background: #fff; }
  body.print-page .side, body.print-page .mobilebar, body.print-page .noprint, body.print-page .backlink, body.print-page #toast, body.print-page .chart .tip { display: none !important; }
  body.print-page .shell { display: block; }
  body.print-page main, body.print-page .wrap { margin: 0; padding: 0; max-width: none; }
  body.print-page .panel { break-inside: avoid; }
  body.print-page .chart .cb path { fill: #333; }
}

/* ---------- business types: product options, quotations, warranty ---------- */
.f.chk .chkrow { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
.f.chk input { width: 18px; height: 18px; accent-color: var(--green); }
.qlines { display: grid; gap: 8px; margin-bottom: 10px; }
.qline { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 64px 96px 36px; gap: 6px; align-items: center; }
@media (max-width: 760px) { .qline { grid-template-columns: 1fr 64px 96px 36px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); } .qline select { grid-column: 1 / -1; } }
.qdoc { padding: 28px; }
.qdoc header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); color: var(--ink-2); font-size: 14px; }
.qdoc header h2 { margin: 0 0 4px; font-size: 22px; color: var(--ink); }
.qdoc .qmeta { text-align: right; }
.qdoc .qmeta strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qdoc .qto { padding: 18px 0; font-size: 14.5px; }
.qdoc .dt th:first-child, .qdoc .dt td:first-child { padding-left: 0; } .qdoc .dt th:last-child, .qdoc .dt td:last-child { padding-right: 0; }
.qdoc .qsum { display: flex; justify-content: flex-end; margin-top: 16px; } .qdoc .qsum .sumbox { min-width: 260px; }
.qdoc .qnotes { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); white-space: pre-line; font-size: 14px; }
@media (max-width: 760px) { .qdoc { padding: 18px; } .qdoc header { flex-direction: column; } .qdoc .qmeta { text-align: left; } .qdoc .qsum .sumbox { min-width: 0; width: 100%; } }
@media print { body.print-page .qdoc { border: 0; padding: 0; } }

/* ---------- plans + platform ---------- */
.tile2.locked { opacity: .72; } .tile2.locked .ti { background: #eef0f3; color: var(--muted); }
.tile2 .pill { margin-left: 6px; vertical-align: 1px; }
.nav a.plat { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.dt.plat td { vertical-align: top; } .dt.plat select { width: auto; height: 34px; padding: 0 28px 0 10px; font-size: 14px; }
.dt.plat tr.susp td:first-child b { color: var(--muted); text-decoration: line-through; }
.dt .c { text-align: center; } .dt.matrix input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.dt.matrix .lim { width: 76px; height: 34px; text-align: center; padding: 0 6px; }
@media (max-width: 760px) { .nav a.plat { display: none; } }

/* ---------- branded reports (.rep) — brand vars set inline: --rb, --rb-ink, --rb-deep, --rb-mark, --rb-tint, --rb-soft ---------- */
.rep-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rep-top .backlink { margin: 0; }
.btn.rb { background: var(--rb); color: var(--rb-ink); border-color: var(--rb); }
.btn.rb:hover { background: var(--rb-deep); border-color: var(--rb-deep); color: #fff; }
.rhead { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: var(--r-lg); margin-bottom: 18px; color: var(--rb-ink);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.16) 0, rgba(255,255,255,0) 55%), linear-gradient(135deg, var(--rb) 0%, var(--rb-deep) 100%); }
.rhead::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); pointer-events: none; }
.rh-brand { display: flex; gap: 16px; align-items: center; min-width: 0; position: relative; z-index: 1; }
.rh-logo { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.rh-name { font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.rh-tag { font-size: 14px; opacity: .9; margin-top: 2px; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; font-size: 13.5px; opacity: .88; }
.rh-meta span + span::before { content: "·"; margin: 0 9px; opacity: .7; }
.rh-doc { text-align: right; position: relative; z-index: 1; display: grid; gap: 2px; }
.rh-kind { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.rh-doc b { font-size: 17px; font-weight: 600; }
.rh-doc small { font-size: 12.5px; opacity: .8; }
.rep .rtabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.rep .rtabs button { white-space: nowrap; }
.rep .rtabs button.on { background: var(--rb); color: var(--rb-ink); }
.rhero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.rk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 4px; border-top: 4px solid var(--rb); }
.rk > span { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.rk > span .ico { width: 16px; height: 16px; }
.rk b { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.rk small { font-size: 12.5px; color: var(--muted); }
.rk.net.gain { background: var(--green-soft); border-color: #c4e2d6; border-top-color: var(--green); }
.rk.net.gain b, .rk.net.gain > span { color: var(--green-ink); }
.rk.net.loss { background: var(--red-soft); border-color: #f6c9d0; border-top-color: var(--red); }
.rk.net.loss b, .rk.net.loss > span { color: var(--red); }
.rep .rpl { margin-bottom: 18px; }
.rep .rpl .pl-row.sub { background: var(--rb-soft); }
.rep .chart .cb path { fill: var(--rb-mark); }
.rep .chart .cb.on path { fill: var(--rb-deep); }
.rmini { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden; }
.rmini > div { padding: 14px 16px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.rmini > div:first-child { border-left: 0; }
.rmini span { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rmini span .ico { width: 15px; height: 15px; color: var(--rb-mark); }
.rmini b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rrank { list-style: none; margin: 0; padding: 4px 0; }
.rrank li { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.rrank li:first-child { border-top: 0; }
.rrank .n { width: 26px; height: 26px; border-radius: 8px; background: var(--rb-tint); color: var(--rb-mark); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.rrank li:first-child .n { background: var(--rb); color: var(--rb-ink); }
.rrank .t { font-weight: 500; }
.rrank i { display: block; height: 6px; border-radius: 3px; background: var(--rb-soft); margin: 6px 0 4px; overflow: hidden; }
.rrank i b { display: block; height: 100%; border-radius: 3px; background: var(--rb-mark); }
.rrank .money { font-weight: 700; }
.rep .bars .bar i b { background: var(--rb-mark); }
.rep .tile2 .ti { background: var(--rb-tint); color: var(--rb-mark); }
.rdt thead th { background: var(--rb-soft); color: var(--ink); }
.rdt tfoot td { font-weight: 700; background: var(--rb-tint); border-top: 2px solid var(--rb); padding: 12px 16px; }
.rnote { margin-top: 14px; }
.print-only { display: none; }
@media (max-width: 900px) {
  .rhero { grid-template-columns: 1fr 1fr; }
  .rhero .rk.net { grid-column: 1 / -1; }
  .rmini { grid-template-columns: 1fr 1fr; }
  .rmini > div { border-left: 0; border-top: 1px solid var(--line); }
  .rmini > div:nth-child(-n+2) { border-top: 0; }
  .rmini > div:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .rhead { padding: 20px; gap: 16px; align-items: flex-start; }
  .rh-logo { width: 46px; height: 46px; font-size: 21px; border-radius: 13px; }
  .rh-doc { text-align: left; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); width: 100%; }
  .rhero { gap: 10px; }
  .rk { padding: 14px 16px; }
  .rk b { font-size: 22px; }
}
@media print {
  body.print-page .rhead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-page .rk, body.print-page .rmini, body.print-page .rrank, body.print-page .chart, body.print-page .rdt { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-page .rep .chart .cb path { fill: var(--rb-mark); }
  body.print-page .rnote, body.print-page .tile2 { display: none; }
  body.print-page .print-only { display: block; text-align: center; margin-top: 18px; }
  body.print-page .rhero, body.print-page .rmini, body.print-page .grid2 { break-inside: avoid; }
}
.rrank .grow { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .rh-meta { display: grid; gap: 2px; }
  .rh-meta span + span::before { content: none; }
  .rep .rpl .panel-h .small { display: none; }
}

/* ---------- logo ---------- */
.logo.has-img, .rh-logo.has-img { background: #fff; padding: 0; overflow: hidden; }
.logo.has-img img, .rh-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rh-logo.has-img { border-color: rgba(255,255,255,.6); padding: 5px; }
.logo.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; flex: none; }
.logo.xl { width: 72px; height: 72px; font-size: 30px; border-radius: 18px; flex: none; border: 1px solid var(--line); }
.mb-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mb-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logoedit { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.logoedit b { display: block; } .logoedit small { display: block; margin: 2px 0 8px; font-size: 13px; }
.le-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.le-btns label { cursor: pointer; }
.r-logo { display: block; max-width: 120px; max-height: 56px; margin: 0 auto 6px; object-fit: contain; }
.stor-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.stor-h span { color: var(--muted); }
.stor i { display: block; height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.stor i b { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.stor i.warn b { background: var(--amber); } .stor i.full b { background: var(--red); }

/* ল্যান্ডিং পেজ */
.lpbtn { margin-top: 10px; width: 100%; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--brand); border-radius: var(--r-sm); background: transparent; color: var(--brand); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.lpbtn:hover { background: var(--brand-soft, rgba(0,106,78,.08)); }
.lpbtn .ico { width: 16px; height: 16px; }
.lpshare { display: grid; gap: 12px; margin-bottom: 18px; }
.lpstats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }
.lpstats span { display: inline-flex; align-items: center; gap: 6px; }
.lpstats .ico { width: 16px; height: 16px; }
.lpbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pickl { max-height: 60vh; overflow: auto; }
