:root {
  --bg: #f3f2ee; --panel: #ffffff; --ink: #1d2126; --muted: #69707a; --line: #dedbd3;
  --accent: #1f5f8b; --accent-ink: #fff; --good: #2e9e6a; --warn: #d9962b; --bad: #c8463d;
  --left: #2f6fdf; --right: #e8892b;
  --s-nv: #b8bcc4; --s-idle: #d64545; --s-hand: #e8b02b; --s-reach: #8a5cd6; --s-needle: #2e9e6a;
  --radius: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", "Nirmala UI", Vrinda, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px;
  background: #1d2126; color: #fff; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 6px; background: var(--right); display: grid;
  place-items: center; font-weight: 800; color: #1d2126; }
nav { display: flex; gap: 18px; align-items: center; }
nav a { color: #d8dbe0; }
main { max-width: 1280px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
h3 { font-size: 14px; margin: 14px 0 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g-side { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .g2, .g3, .g-side { grid-template-columns: 1fr; } }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px;
  border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn:hover { text-decoration: none; border-color: #b9b5aa; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { background: #ece9e1; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.b-done { background: #e1f3ea; color: #1f7550; } .b-error { background: #fbe4e2; color: #9b2f28; }
.b-run { background: #e3edf7; color: #1f5f8b; }
.band-wc { background: #1d2126; color: #ffd27a; } .band-el { background: #dff1e8; color: #1f7550; }
.band-st { background: #e3edf7; color: #1f5f8b; } .band-av { background: #fbf0dc; color: #8a5a10; }
.band-ir { background: #fbe4e2; color: #9b2f28; }
.progress { height: 6px; background: #ece9e1; border-radius: 3px; overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; }
.progress > i { display: block; height: 100%; background: var(--accent); }
form .fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
@media (max-width: 900px) { form .fields { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.hint { font-weight: 400; font-size: 11px; color: var(--muted); }
.drop { border: 2px dashed #c6c1b4; border-radius: 10px; padding: 26px; text-align: center; background: #faf9f6; cursor: pointer; }
.drop.has { border-color: var(--accent); background: #eef4f9; }
.score-head { display: flex; gap: 24px; align-items: center; }
.score-big { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bars .row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 10px; align-items: center; margin: 5px 0; }
.bar { height: 10px; background: #ece9e1; border-radius: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; }
.est { font-size: 10px; color: var(--warn); font-weight: 700; margin-left: 4px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.kpi .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.callout { border-left: 4px solid var(--right); background: #fff8ef; padding: 12px 14px; border-radius: 6px; }
.canvas-wrap { position: relative; width: 100%; }
.canvas-wrap canvas { width: 100%; display: block; border-radius: 8px; background: #222; }
canvas.tl { background: #fff; border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; margin-top: 8px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; }
.stack > div { height: 100%; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.kf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kf img { width: 100%; border-radius: 6px; display: block; }
@media (max-width: 900px) { .kf { grid-template-columns: repeat(2, 1fr); } .kpis { grid-template-columns: repeat(2, 1fr); } }
.md table { margin: 8px 0; } .md h1 { font-size: 20px; } .md h2 { font-size: 15px; margin-top: 18px; }
.md code { background: #ece9e1; padding: 1px 4px; border-radius: 4px; }
.md pre { background: #f6f5f1; padding: 10px; border-radius: 6px; overflow: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1d2126; color: #fff;
  padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; }
.toast.on { opacity: 1; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
ol.seq { margin: 0; padding-left: 20px; } ol.seq li { margin: 4px 0; }
details summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
canvas.tl { width: 100%; display: block; border-radius: 8px; }
.panel { overflow-x: auto; }
@media (max-width: 600px) {
  main { padding: 12px 16px; }
  .score-head { flex-wrap: wrap; }
  .bars .row { grid-template-columns: 120px 1fr 36px; }
  .top { padding: 10px 16px; } nav { gap: 10px; } nav a:not(.btn) { font-size: 13px; }
  .brand span:last-child { display: none; }
}

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.vcard video { width: 100%; border-radius: 6px; background: #000; display: block; }
.vcard p { margin: 4px 0 10px; }

:lang(bn) body, :lang(bn) .btn, :lang(bn) input, :lang(bn) select { line-height: 1.5; }
@media (max-width: 600px) { nav { flex-wrap: wrap; justify-content: flex-end; } .top { flex-wrap: wrap; gap: 6px; } }

/* ---------- simple flow (floor screens) ---------- */
.s-wrap { max-width: 720px; margin: 0 auto; font-size: 16px; }
.s-wrap h1 { font-size: 26px; margin: 0; }
.s-wrap .panel { padding: 20px; }
.s-lead { font-size: 16px; margin: 6px 0 16px; }
.s-h2 { margin: 26px 0 10px; font-size: 13px; }
.s-label { font-size: 14px; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
.s-label input { font-size: 18px; padding: 12px; font-weight: 400; }
.s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.s-big { font: inherit; border: 0; border-radius: 12px; padding: 22px 12px; background: var(--accent); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; align-items: center; min-height: 96px; justify-content: center; }
.s-big b { font-size: 19px; } .s-big span { font-size: 13px; opacity: .85; }
.s-big.alt { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.s-big:disabled { opacity: .5; }
.s-up { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.s-up[hidden] { display: none; }
.s-bar { flex: 1; height: 10px; background: #ece9e1; border-radius: 5px; overflow: hidden; }
.s-bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.s-list { display: flex; flex-direction: column; gap: 8px; }
.s-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; color: var(--ink); min-height: 56px; }
.s-row:hover { text-decoration: none; border-color: #b9b5aa; }
.s-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.s-row-num b { font-size: 20px; font-variant-numeric: tabular-nums; }
.s-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--good); }
.s-dot.run { background: var(--accent); animation: s-pulse 1.2s infinite; } .s-dot.bad { background: var(--bad); }
@keyframes s-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .s-dot.run { animation: none; } .s-bar > i { transition: none; } }
.s-top { margin-bottom: 8px; } .s-back { font-size: 15px; padding: 8px 0; display: inline-block; }
.s-head .flex { justify-content: space-between; }
.s-verdict { font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.s-verdict.red { background: #fbe4e2; color: #9b2f28; } .s-verdict.amber { background: #fbf0dc; color: #8a5a10; }
.s-verdict.green { background: #e1f3ea; color: #1f7550; } .s-verdict.grey { background: #ece9e1; color: var(--muted); }
.s-hero { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 18px 0 12px; }
.s-box { border-radius: 12px; padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.s-box.now { background: #f3f2ee; } .s-box.can { background: #e1f3ea; }
.s-box > b { font-size: 46px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-box.can > b { color: #1f7550; }
.s-cap { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.s-unit { font-size: 13px; color: var(--muted); }
.s-sub { margin-top: 10px; font-size: 14px; } .s-sub b { font-size: 18px; } .s-sub em { font-style: normal; font-weight: 700; color: #1f7550; }
.s-arrow { align-self: center; font-size: 26px; color: var(--muted); }
.s-trust { margin: 0; font-size: 14px; padding-left: 18px; position: relative; color: var(--muted); }
.s-trust::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.s-trust.mid::before { background: var(--warn); } .s-trust.low::before { background: var(--bad); }
.s-trust.low { color: #9b2f28; font-weight: 600; }
.s-act { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.s-act header { display: flex; align-items: center; gap: 12px; }
.s-act h3 { margin: 0; font-size: 18px; flex: 1; }
.s-n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.s-save { font-size: 13px; color: #1f7550; white-space: nowrap; text-align: right; } .s-save b { font-size: 17px; }
.s-ev { margin: 8px 0 0 44px; }
.s-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.s-pair figure { margin: 0; position: relative; }
.s-pair img, .s-ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; background: #ece9e1; border: 1px solid var(--line); }
.s-pair figcaption { position: absolute; left: 8px; top: 8px; }
.s-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #1d2126; color: #fff; }
.s-tag.bad { background: var(--bad); } .s-tag.good { background: #1f7550; }
.s-do { font-size: 17px; margin: 0 0 8px; }
.s-aid { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.s-mname { font-size: 20px; margin: 0; }
.s-steps { padding-left: 24px; margin: 14px 0; } .s-steps li { margin: 8px 0; font-size: 16px; }
.s-keys { list-style: none; padding: 12px 14px; margin: 0; background: #fff8ef; border-left: 4px solid var(--right); border-radius: 6px; }
.s-keys li { margin: 4px 0; font-weight: 600; }
.s-fb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-top: 12px; border-radius: 8px; background: #e1f3ea; color: var(--ink); }
.s-fb b { font-size: 20px; } .s-link { margin-left: auto; font-weight: 600; color: var(--accent); }
.s-aids { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; }
.s-aidc { flex: 0 0 120px; color: var(--ink); font-size: 13px; }
.s-aidc img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 4px; }
.s-auto > div + div { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.s-auto h3 { margin: 0 0 4px; font-size: 17px; } .s-auto p { margin: 0 0 4px; }
.s-video video { width: 100%; border-radius: 8px; background: #000; display: block; margin-bottom: 10px; }
.s-foot { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 40px; }
.s-foot .btn, .s-go { padding: 12px 16px; }
.s-step { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.s-tap { position: relative; cursor: crosshair; line-height: 0; border-radius: 10px; overflow: hidden; background: #222; touch-action: manipulation; }
.s-tap img { width: 100%; display: block; }
.s-tap i { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #ffd400; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.6); pointer-events: none; }
.s-tap i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffd400; }
.s-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-seg button { font: inherit; padding: 12px 6px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.s-seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.s-go { width: 100%; margin-top: 16px; font-size: 17px; }
@media (max-width: 600px) {
  .s-wrap h1 { font-size: 22px; } .s-box > b { font-size: 36px; } .s-box { padding: 12px; }
  .s-act { padding: 14px 16px; } .s-ev { margin-left: 0; } .s-save span { display: block; }
  .s-two { grid-template-columns: 1fr; }
}
.s-pair figure:last-child img, .s-aidc img { object-fit: contain; background: #fff; }

/* ---------- 3D workstation ---------- */
.s-wrap.s-wide { max-width: 980px; }
.s-3dbox { width: 100%; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #eef0ec; border: 1px solid var(--line); }
@media (max-width: 600px) { .s-3dbox { aspect-ratio: 1/1; } }
.s-3dctl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.s-seg.s-seg-sm { display: flex; flex-wrap: wrap; gap: 6px; } .s-seg.s-seg-sm button { padding: 9px 12px; font-size: 14px; }
.s-3d { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); margin-top: 12px; }
.s-3d:hover { text-decoration: none; border-color: #b9b5aa; }
.s-3d-ic { width: 30px; height: 30px; flex: none; border: 3px solid var(--good); border-radius: 6px; transform: rotate(45deg) scale(.8); }
.s-where > div { display: flex; gap: 12px; align-items: flex-start; } .s-where > div + div { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.s-where p { margin: 4px 0 0; } .s-n.good { background: #1f7550; } .s-n.aid { background: var(--right); }
.s-cm { margin-left: 8px; } .s-cm s { color: var(--bad); }
.s-notes { padding-left: 18px; margin: 16px 0 40px; }
.s-3dctl + .s-where { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- before / after photos ---------- */
.s-ppair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.s-pslot { position: relative; display: block; cursor: pointer; aspect-ratio: 4/3; border: 2px dashed #c6c1b4; border-radius: 10px;
  background: #faf9f6; overflow: hidden; color: var(--ink); font-weight: 400; }
.s-pslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-pplus { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #b0aa9b; padding-bottom: 22px; }
.s-pcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; background: rgba(29,33,38,.72); color: #fff; font-size: 13px; font-weight: 600; }
.s-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.s-cgrid button { font: inherit; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 6px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; text-align: left; color: var(--ink); font-size: 13px; font-weight: 600; }
.s-cgrid img { width: 100%; aspect-ratio: 36/22; object-fit: cover; border-radius: 6px; }
.s-cgrid button.on { border-color: var(--good); box-shadow: 0 0 0 2px rgba(46,158,106,.25); }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chips button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.s-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.s-aiguess { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: #eef4f9; border-radius: 8px; padding: 10px 12px; margin: 4px 0 14px; }
.s-cons { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.s-cons > img { width: 180px; border-radius: 8px; border: 1px solid var(--line); }
.s-cons h3 { margin: 2px 0 4px; font-size: 19px; } .s-cons p { margin: 0 0 8px; }
.s-pmini { display: flex; gap: 6px; } .s-pmini img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.s-tierh { margin: 18px 0 8px; }
.s-tag.warn { background: var(--warn); } .s-tag.alt { background: #6b4fb3; }
.s-idea { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0; }
.s-idea + .s-idea { border-top: 1px solid var(--line); }
.s-idea img, .s-ideaph { width: 120px; height: 90px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); aspect-ratio: auto; }
.s-idea p { margin: 4px 0 0; } .s-idea b { font-size: 16px; }
.s-appr { color: #6b4fb3; font-weight: 600; }
.s-indet { width: 35% !important; animation: s-slide 1.2s infinite ease-in-out; }
@keyframes s-slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .s-indet { animation: none; width: 100% !important; opacity: .5; } }
@media (max-width: 600px) {
  .s-cons { grid-template-columns: 1fr; } .s-cons > img { width: 100%; max-width: 260px; }
  .s-idea { grid-template-columns: 88px 1fr; } .s-idea img, .s-ideaph { width: 88px; height: 66px; }
  .s-cgrid { grid-template-columns: 1fr 1fr; }
}
.s-cgrid.s-one button:not(.on) { display: none; } .s-cgrid.s-one { grid-template-columns: minmax(0, 240px); }
.s-qr { width: 240px; max-width: 70vw; margin: 8px auto; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.s-qr svg { width: 100%; height: auto; display: block; }
.s-url { text-align: center; font-size: 20px; word-break: break-all; margin: 10px 0; }
@media (max-width: 600px) { .nav-phone { display: none; } }

/* ---------- printable report (Save as PDF) ---------- */
.rp-bar { max-width: 210mm; margin: 0 auto 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rp-bar .s-seg a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
.rp-bar .s-seg a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rp-bar #rpPrint { margin-left: auto; padding: 10px 18px; }
.rp-hint { max-width: 210mm; margin: 0 auto 12px; font-size: 13px; color: var(--muted); }
.rp { max-width: 210mm; margin: 0 auto 40px; background: #fff; color: #1d2126; padding: 14mm 13mm; box-shadow: 0 1px 6px rgba(0,0,0,.12);
  font-size: 10.5pt; line-height: 1.4; }
.rp h1 { font-size: 20pt; margin: 4px 0 6px; } .rp h2 { font-size: 10pt; color: #1d2126; border-bottom: 2px solid #1d2126; padding-bottom: 3px; margin: 0 0 8px; letter-spacing: .07em; }
.rp h3 { font-size: 11pt; margin: 8px 0 4px; }
.rp p { margin: 3px 0; } .rp ol, .rp ul { margin: 4px 0; padding-left: 18px; } .rp li { margin: 2px 0; }
.rp-mut { color: #6a717b; } .rp .small { font-size: 8.5pt; }
.rp-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid #ccc; padding-bottom: 8px; margin-bottom: 10px; }
.rp-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 9pt; font-weight: 700; color: #6a717b; }
.rp-brand .mark { width: 18px; height: 18px; border-radius: 4px; background: var(--right); color: #1d2126; display: inline-grid; place-items: center; font-size: 10pt; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 9pt; }
.rp-id { text-align: right; font-weight: 700; font-size: 10pt; white-space: nowrap; }
.rp-hero { display: grid; grid-template-columns: 1fr auto 1fr 1.1fr; gap: 10px; align-items: stretch; margin: 6px 0; }
.rp-box { background: #f3f2ee; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 9pt; }
.rp-box > b { font-size: 26pt; line-height: 1.05; } .rp-box.good { background: #e1f3ea; } .rp-box.good > b, .rp-box em { color: #1f7550; font-style: normal; font-weight: 700; }
.rp-cap { font-size: 8pt; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6a717b; }
.rp-arrow { align-self: center; font-size: 18pt; color: #999; }
.rp-verdict { border-radius: 8px; padding: 10px; font-weight: 700; font-size: 12pt; display: flex; flex-direction: column; justify-content: center; }
.rp-verdict small { font-weight: 400; font-size: 8pt; margin-top: 4px; }
.rp-verdict.red { background: #fbe4e2; color: #9b2f28; } .rp-verdict.amber { background: #fbf0dc; color: #8a5a10; }
.rp-verdict.green { background: #e1f3ea; color: #1f7550; } .rp-verdict.grey { background: #eee; color: #555; }
.rp-trust { font-size: 9pt; color: #6a717b; margin: 4px 0 2px; } .rp-trust.low { color: #9b2f28; font-weight: 600; }
.rp-sec { margin-top: 12px; }
.rp-act { border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; break-inside: avoid; }
.rp-act-h { display: flex; align-items: center; gap: 8px; } .rp-act-h b { flex: 1; font-size: 11.5pt; }
.rp-n { width: 22px; height: 22px; border-radius: 50%; background: #1d2126; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 10pt; flex: none; }
.rp-save { color: #1f7550; font-size: 9pt; white-space: nowrap; } .rp-save b { font-size: 11pt; }
.rp-act-b { display: grid; grid-template-columns: 42mm 42mm 1fr; gap: 10px; margin-top: 6px; align-items: start; }
.rp figure { margin: 0; } .rp figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; display: block; }
.rp figure img.contain { object-fit: contain; background: #fff; }
.rp figcaption { font-size: 8pt; font-weight: 700; margin-top: 2px; } .rp figcaption.bad { color: #b0342c; } .rp figcaption.good { color: #1f7550; }
.rp-seam { display: grid; grid-template-columns: 50mm 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; }
.rp-seam > img { width: 100%; border: 1px solid #ddd; border-radius: 6px; } .rp-seam b { font-size: 12pt; }
.rp-ph { display: flex; gap: 6px; } .rp-ph figure { width: 26mm; }
.rp-idea { display: grid; grid-template-columns: 34mm 1fr; gap: 8px; padding: 4px 0; border-top: 1px solid #eee; font-size: 9.5pt; break-inside: avoid; }
.rp-tier { font-size: 7.5pt; font-weight: 700; color: #fff; border-radius: 4px; padding: 2px 6px; align-self: start; text-align: center; background: #1f7550; }
.rp-tier.quality { background: #c98a1e; } .rp-tier.alt { background: #6b4fb3; } .rp-appr { color: #6b4fb3; }
.rp-cols { display: grid; grid-template-columns: 1fr 62mm; gap: 12px; }
.rp-keys { list-style: none; padding: 6px 8px !important; background: #fff8ef; border-left: 3px solid var(--right); font-weight: 600; }
.rp-aids { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; } .rp-aids figcaption { font-weight: 400; }
.rp-fb { background: #e1f3ea; padding: 4px 8px; border-radius: 6px; }
.rp-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; } .rp-shots img { aspect-ratio: 16/10 !important; }
.rp-shots figure:only-child { grid-column: 1 / -1; } .rp-shots figure:only-child img { aspect-ratio: 16/9 !important; }
.rp-plan { width: 100%; border-radius: 6px; }
.rp-t { width: 100%; border-collapse: collapse; font-size: 9pt; margin: 4px 0; }
.rp-t th { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .05em; color: #6a717b; border-bottom: 1px solid #999; padding: 3px 5px; text-align: left; }
.rp-t td { border-bottom: 1px solid #e3e3e3; padding: 4px 5px; vertical-align: top; } .rp-t .num { text-align: right; white-space: nowrap; }
.rp-t tr { break-inside: avoid; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
.rp-kpis div { border: 1px solid #ddd; border-radius: 6px; padding: 5px 7px; display: flex; flex-direction: column; } .rp-kpis span { font-size: 7.5pt; color: #6a717b; } .rp-kpis b { font-size: 13pt; }
.rp-stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; margin: 4px 0; } .rp-stack i { display: block; height: 100%; }
.rp-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.rp-score { display: flex; align-items: baseline; gap: 10px; } .rp-score b { font-size: 24pt; }
.rp-bar-row { display: grid; grid-template-columns: 52mm 1fr 10mm; gap: 8px; align-items: center; font-size: 9pt; margin: 2px 0; }
.rp-bar-row em { color: #c98a1e; font-style: normal; font-size: 7.5pt; } .rp-bar-row b { text-align: right; }
.rp-barbg { height: 7px; background: #eee; border-radius: 4px; overflow: hidden; } .rp-barbg i { display: block; height: 100%; background: #1f5f8b; }
.rp-kf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; } .rp-kf img { width: 100%; border-radius: 4px; }
.rp-sign { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 22px; font-size: 9pt; color: #6a717b; break-inside: avoid; }
.rp-sign span { display: block; border-bottom: 1px solid #999; height: 26px; }
.rp-foot { margin-top: 10px; }
.rp-warn { color: #9b2f28; font-weight: 600; }
.rp-keep { break-inside: avoid; } .rp-break { break-before: page; }
.rp-sec > h2 { break-after: avoid; }
@media (max-width: 700px) {
  .rp { padding: 16px 14px; font-size: 13px; }
  .rp-hero { grid-template-columns: 1fr 1fr; } .rp-arrow { display: none; } .rp-verdict { grid-column: 1 / -1; }
  .rp-act-b { grid-template-columns: 1fr 1fr; } .rp-act-t { grid-column: 1 / -1; }
  .rp-cols, .rp-seam { grid-template-columns: 1fr; } .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-shots { grid-template-columns: 1fr; }
}
@page { size: A4; margin: 10mm; }
@media print {
  body.rp-mode { background: #fff; }
  body.rp-mode .top, body.rp-mode .rp-bar, body.rp-mode .rp-hint, body.rp-mode .toast { display: none !important; }
  body.rp-mode main { padding: 0; max-width: none; }
  .rp { box-shadow: none; padding: 0; margin: 0; max-width: none; font-size: 10pt; }
  .rp, .rp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* paper is always A4 width: keep the desktop layout even when printing from a phone */
  .rp-hero { grid-template-columns: 1fr auto 1fr 1.1fr; } .rp-arrow { display: block; } .rp-verdict { grid-column: auto; }
  .rp-act-b { grid-template-columns: 42mm 42mm 1fr; } .rp-act-t { grid-column: auto; }
  .rp-cols { grid-template-columns: 1fr 62mm; } .rp-seam { grid-template-columns: 50mm 1fr auto; }
  .rp-kpis { grid-template-columns: repeat(4, 1fr); } .rp-shots { grid-template-columns: 1fr 1fr; }
}
.rp-shots figure:only-child { width: 70%; justify-self: center; } .rp-shots figure:only-child img { aspect-ratio: 16/10 !important; }
.rp-seam .rp-cap { display: block; }
.rp-shots figure:only-child { width: 58%; } .rp-sign { margin-top: 14px; } .rp-sign span { height: 20px; }

/* ---------- accounts ---------- */
.user-chip { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; }
.user-chip[hidden], #navUsers[hidden], #navAids[hidden] { display: none; }
.uc-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-plan { background: #3a4048; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.uc-plan.pro { background: var(--good); } .uc-plan.factory { background: var(--right); color: #1d2126; }
body.auth-mode nav > a, body.auth-mode #userChip { display: none; }
.auth-wrap { max-width: 440px; margin-top: 24px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.auth-brand .mark { width: 32px; height: 32px; border-radius: 7px; background: var(--right); display: grid; place-items: center; font-weight: 800; color: #1d2126; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 6px; }
.auth-wrap form { display: flex; flex-direction: column; gap: 12px; }
.auth-wrap [hidden] { display: none !important; }
.auth-terms { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); font-size: 14px; }
.auth-terms input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.auth-err { color: var(--bad); font-weight: 600; margin: 0; }
.s-usage { margin: 4px 0 12px; } .s-usage b { font-size: 20px; } .s-usage .s-bar { margin-top: 6px; }
.s-usage.out b { color: var(--bad); } .s-usage.out .s-bar > i { background: var(--bad); }
.s-usage p { margin: 6px 0 0; }
.u-table select, .u-table input[type=date] { padding: 5px 6px; }
.u-table tr.u-off td { opacity: .5; }
.u-more summary { font-weight: 400; color: var(--accent); }
.u-more label { margin-top: 8px; } .u-more .u-row { flex-direction: row; align-items: center; gap: 6px; }
.u-more .btn { margin-top: 8px; }

/* ---------- MotionIQ brand ---------- */
.brand .mark, .auth-brand .mark, .rp-brand .mark { background: var(--right); }
.brand-name { font-size: 17px; letter-spacing: .01em; } .brand-name b { color: var(--right); }
.brand-tag { font-size: 12px; color: #aab0b8; border-left: 1px solid #4a5058; padding-left: 10px; margin-left: 2px; }
.auth-brand .iq { color: var(--right); }
.rp-tag { font-weight: 400; margin-left: 6px; }
@media (max-width: 900px) { .brand-tag { display: none; } }
@media (max-width: 600px) { .brand .brand-name { display: inline; } }

/* ---------- consent and privacy ---------- */
.s-consents { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.s-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); font-size: 14px; line-height: 1.4;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.s-consent input { width: 20px; height: 20px; margin: 0; flex: none; }
.s-consent.need { border-color: var(--bad); background: #fbe4e2; }
.s-shareline { margin: 18px 0 0; }
.terms h3 { margin-top: 20px; } .terms li { margin: 6px 0; }
.cs h1 { font-size: 18pt; } .cs h1 span { display: block; font-size: 11pt; color: #6a717b; font-weight: 400; }
.cs-bn { font-size: 12.5pt; line-height: 1.7; } .cs-en { font-size: 9.5pt; color: #444; margin-top: 10px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 28px; }
.cs-line span { font-size: 10pt; color: #555; } .cs-line i { display: block; border-bottom: 1px solid #333; height: 30px; }
.cs-foot { margin-top: 28px; font-size: 8.5pt; color: #6a717b; }

/* install-to-home-screen bar (phones) */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 12px; max-width: 520px; margin: 0 auto;
  background: #1d2126; color: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.install-bar img { border-radius: 9px; flex: none; }
.install-bar .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.install-bar .ib-text span { color: #c9cdd3; }
.install-bar .ib-btns { display: flex; gap: 6px; flex: none; }
.install-bar .btn:not(.primary) { background: transparent; color: #d8dbe0; border-color: #4a5058; }
.ib-share { width: 15px; height: 15px; vertical-align: -2px; }
@media (max-width: 420px) { .install-bar { flex-wrap: wrap; } .install-bar .ib-btns { width: 100%; justify-content: flex-end; } }
@media print { .install-bar { display: none !important; } }
/* installed app: room for the phone's status bar / notch */
@media (display-mode: standalone) { .top { padding-top: calc(10px + env(safe-area-inset-top)); } }
.uc-plan.admin { background: var(--accent); }

/* optional photos on the start screen */
.s-hphotos { margin: 4px 0 14px; border: 1px dashed var(--line, #d6d3cc); border-radius: 12px; padding: 10px 12px; }
.s-hphotos summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.s-hphotos summary::-webkit-details-marker { display: none; }
.s-hphotos summary::before { content: "+"; font-weight: 700; width: 18px; }
.s-hphotos[open] summary::before { content: "–"; }
.s-hphotos .s-ppair { margin-top: 10px; }

/* guide */
.guide .g-toc { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.guide .g-toc b { margin-bottom: 2px; }
.guide .g-sec h2 { margin-top: 0; font-size: 20px; }
.guide .g-list { padding-left: 22px; margin: 0; }
.guide .g-list li { margin: 0 0 9px; line-height: 1.5; }
.guide .g-donth { font-weight: 700; color: var(--bad, #b3261e); margin: 12px 0 4px; }
.guide .g-dont { list-style: none; padding: 0; margin: 0; }
.guide .g-dont li::before { content: "\2715"; color: var(--bad, #b3261e); font-weight: 700; margin-right: 8px; }
.guide .g-dont li { margin: 3px 0; }
.guide .g-qa dt { font-weight: 700; margin-top: 10px; }
.guide .g-qa dd { margin: 2px 0 0; color: var(--muted, #5b6470); }
.guide .g-svg { width: 100%; max-width: 420px; display: block; margin: 0 auto 14px; color: var(--ink, #1d2126); }
.guide[lang=bn] { font-size: 17px; }
.s-new { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff7ec; border: 1px solid #f0c890; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.guide .g-toc a { color: var(--accent2, #1f6aa5); text-decoration: none; padding: 3px 0; }
.guide .g-toc a:hover { text-decoration: underline; }

/* analysis wait screen */
.s-wsteps { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 10px; }
.s-wsteps li { display: flex; gap: 10px; align-items: center; color: var(--muted, #5b6470); }
.s-wsteps .s-wn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #e8e5de; font-weight: 700; font-size: 14px; }
.s-wsteps li.now { color: var(--ink, #1d2126); }
.s-wsteps li.now .s-wn { background: var(--accent2, #1f6aa5); color: #fff; }
.s-wsteps li.done .s-wn { background: var(--good, #2f8f5b); color: #fff; }

/* sign-in: Google button + show password */
.g-box { margin: 6px 0 4px; }
.g-box #gBtn { display: flex; justify-content: center; min-height: 44px; }
.g-terms { text-align: center; margin: 8px 0 0; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted, #5b6470); font-size: 13px; margin: 14px 0 6px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line, #d6d3cc); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none;
  font-size: 18px; width: 38px; height: 38px; cursor: pointer; opacity: .6; }
.pw-eye:hover { opacity: 1; }

/* sharing: one choice per account */
.s-askshare { border: 1px solid #f0c890; background: #fff7ec; border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.s-askshare p { margin: 6px 0 10px; }
.s-askshare .flex { gap: 8px; flex-wrap: wrap; }
.s-share { margin: 0 0 10px; font-size: 14px; }
.s-share.on span:first-child { color: var(--good, #2f8f5b); font-weight: 700; }
.acc-share { border-top: 1px solid var(--line, #e3e0d9); margin-top: 12px; padding-top: 8px; }
.rp.cs .cs-opt { border: 1px dashed #999; padding: 8px 10px; margin: 12px 0; line-height: 1.6; }
.rp.cs .cs-yn { display: block; margin-top: 6px; font-size: 16px; }

/* how-it-works video */
.g-video { margin: 14px 0 4px; }
.g-video video { display: block; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 14px; background: #1d2126; object-fit: cover; }
.g-video.small video { max-width: 220px; }
.g-video figcaption { text-align: center; font-size: 14px; font-weight: 600; margin-top: 8px; }
