/* MVTLoop results workspace. Scoped to .mvt-res so it works in the admin app and inside exported reports. */
.mvt-res{--ink:#172033;--mut:#5b667a;--line:#e2e6ee;--line2:#eef1f6;--soft:#f4f6fb;--card:#fff;--canvas:#f6f7fb;--brand:#5146d8;--brand-s:#eeecfd;--brand-ink:#3a30b8;
  --ok:#1b7f55;--ok-s:#e3f4ec;--bad:#c4373a;--bad-s:#fdeaea;--amb:#a96a00;--amb-s:#fff3d9;--none:#c9cfdb;--none-s:#f0f2f6;--skip:#6f7a90;--skip-s:#eef0f5;
  --r:12px;--shadow:0 1px 2px rgba(23,32,51,.05);
  color:var(--ink);font-size:14px;line-height:1.5;font-family:inherit;-webkit-font-smoothing:antialiased;display:block;position:relative}
.mvt-res[data-theme=dark]{--ink:#e7ebf5;--mut:#9aa6bd;--line:#2a3550;--line2:#222c44;--soft:#1b2540;--card:#141c32;--canvas:#0d1426;--brand:#8e86ff;--brand-s:#262452;--brand-ink:#b8b3ff;--ok:#4cc790;--ok-s:#12332a;--bad:#f07a7d;--bad-s:#3a1c20;--amb:#e8b24f;--amb-s:#3a2d12;--none:#3b4663;--none-s:#1d2640;--skip:#8f9bb4;--skip-s:#232d47;--shadow:none;background:var(--canvas)}
.mvt-res *{box-sizing:border-box}
.mvt-res h2,.mvt-res h3,.mvt-res h4,.mvt-res h5{margin:0;color:var(--ink);letter-spacing:-.01em;font-weight:650}
.mvt-res h2{font-size:1.6rem;line-height:1.2}.mvt-res h3{font-size:1.0625rem}.mvt-res h4{font-size:.9375rem}
.mvt-res p{margin:0}.mvt-res button{font:inherit;color:inherit;cursor:pointer}
.mvt-res .muted{color:var(--mut)}.mvt-res .fine{font-size:.78rem}.mvt-res small{font-size:.75rem;color:var(--mut);font-weight:500}
.mvt-res .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.mvt-res .ic{flex:none;vertical-align:-2px}
.mvt-res :focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}

/* header + sticky controls */
.mvt-res .res-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:4px 0 16px}
.mvt-res .res-title p{margin-top:4px;max-width:62ch}
.mvt-res .res-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.mvt-res .res-sticky{position:sticky;top:var(--res-top,0px);z-index:30;background:var(--canvas);margin:0 -2px;padding:0 2px;border-bottom:1px solid var(--line)}
.mvt-res .res-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;padding:10px 0}
.mvt-res .fcount{align-self:center;font-size:.85rem;color:var(--mut);min-width:170px}.mvt-res .fcount strong{color:var(--ink)}
.mvt-res .f{display:flex;flex-direction:column;gap:3px;font-size:.72rem;color:var(--mut);font-weight:600}
.mvt-res .f.inline{flex-direction:row;align-items:center;gap:6px}
.mvt-res .f select,.mvt-res .f input{height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:.85rem;font-weight:500;min-width:130px;max-width:240px}
.mvt-res .f-search input{min-width:200px}
.mvt-res .f-check{display:flex;align-items:center;gap:7px;font-size:.85rem;height:34px;color:var(--ink)}
.mvt-res .f-check input{width:16px;height:16px;accent-color:var(--brand)}
.mvt-res .link{background:none;border:0;padding:0;color:var(--brand-ink);font-weight:600;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:2px}
.mvt-res .link:hover{text-decoration-color:currentColor}
.mvt-res .res-tabs{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none}
.mvt-res .rtab{background:none;border:0;border-bottom:2px solid transparent;padding:10px 14px;font-weight:600;color:var(--mut);white-space:nowrap;display:flex;gap:7px;align-items:center;margin-bottom:-1px}
.mvt-res .rtab:hover{color:var(--ink)}.mvt-res .rtab.on{color:var(--brand-ink);border-bottom-color:var(--brand)}
.mvt-res .tb{font-size:.7rem;font-weight:700;background:var(--soft);color:var(--mut);border-radius:99px;padding:1px 7px}
.mvt-res .tb.warn{background:var(--amb-s);color:var(--amb)}.mvt-res .tb.ok{background:var(--ok-s);color:var(--ok)}
.mvt-res .res-panel{padding:18px 0 56px;display:grid;gap:16px;align-content:start;min-width:0}

/* buttons */
.mvt-res .btn-sm,.mvt-res .btn-primary,.mvt-res .btn-ghost{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--card);font-weight:600;font-size:.85rem;white-space:nowrap}
.mvt-res .btn-sm:hover,.mvt-res .btn-ghost:hover{border-color:var(--brand);color:var(--brand-ink)}
.mvt-res .btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;height:38px;padding:0 16px}
.mvt-res .btn-primary.btn-sm{height:34px}.mvt-res .btn-primary:hover{filter:brightness(1.08)}.mvt-res button:disabled{opacity:.5;cursor:not-allowed}
.mvt-res .icon-btn{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:none;color:var(--mut)}
.mvt-res .icon-btn:hover:not(:disabled){background:var(--soft);color:var(--ink)}

/* cards, kpis */
.mvt-res .card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px 20px;box-shadow:var(--shadow);min-width:0}
.mvt-res .card-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.mvt-res .card-h h3{display:flex;gap:7px;align-items:center}.mvt-res .card-h p{margin-top:2px;max-width:70ch}
.mvt-res .grid-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.mvt-res .kpi{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:2px;min-width:0;box-shadow:var(--shadow)}
.mvt-res .kpi-v{font-size:1.9rem;font-weight:700;letter-spacing:-.03em;line-height:1.15;font-variant-numeric:tabular-nums}.mvt-res .kpi-v small{font-size:1rem;color:var(--mut)}
.mvt-res .kpi-l{font-weight:600;font-size:.85rem}.mvt-res .kpi-s{font-size:.78rem;color:var(--mut);line-height:1.4}
.mvt-res .kpi.tone-bad .kpi-v{color:var(--bad)}
.mvt-res .kpi.sm{box-shadow:none;background:var(--soft);border-color:transparent}.mvt-res .kpi.sm .kpi-v{font-size:1.45rem}
.mvt-res .split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
@media(max-width:980px){.mvt-res .split{grid-template-columns:1fr}}

/* flags */
.mvt-res .flags{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.mvt-res .flag{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px 12px;border-radius:10px;background:var(--soft)}
.mvt-res .flag p{font-size:.82rem;color:var(--mut);margin-top:1px}.mvt-res .flag strong{font-size:.88rem}
.mvt-res .f-bad{background:var(--bad-s)}.mvt-res .f-bad .flag-ic{color:var(--bad)}
.mvt-res .f-warn{background:var(--amb-s)}.mvt-res .f-warn .flag-ic{color:var(--amb)}
.mvt-res .f-ok{background:var(--ok-s)}.mvt-res .f-ok .flag-ic{color:var(--ok)}.mvt-res .f-info .flag-ic{color:var(--mut)}

/* outcome vocabulary */
.mvt-res .o-success{--c:var(--ok);--cs:var(--ok-s)}.mvt-res .o-fail{--c:var(--bad);--cs:var(--bad-s)}
.mvt-res .o-unknown{--c:#d29a2b;--cs:var(--amb-s)}.mvt-res .o-skipped{--c:var(--skip);--cs:var(--skip-s)}
.mvt-res .o-none{--c:var(--none);--cs:var(--none-s)}.mvt-res .o-info{--c:var(--brand);--cs:var(--brand-s)}
.mvt-res .sbar{display:flex;gap:2px;height:10px;border-radius:99px;overflow:hidden;background:var(--none-s);min-width:80px}
.mvt-res .sbar i{display:block;background:var(--c);min-width:3px}
.mvt-res .olegend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.8rem;color:var(--mut);margin:8px 0 2px}
.mvt-res .olegend span{display:inline-flex;align-items:center;gap:6px}.mvt-res .olegend em{font-style:normal;font-weight:700;color:var(--ink)}
.mvt-res .dotk{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:5px;background:var(--cs);color:var(--c);font-size:.72rem;font-weight:800;font-style:normal}
.mvt-res .o-none.dotk,.mvt-res .o-none.cell,.mvt-res .o-none.mc{color:#8b95a9}
.mvt-res .ochip{display:inline-flex;gap:5px;align-items:center;padding:2px 9px;border-radius:99px;background:var(--cs);color:var(--c);font-size:.75rem;font-weight:700;white-space:nowrap}
.mvt-res .o-unknown.ochip,.mvt-res .o-unknown.dotk,.mvt-res .o-unknown.cell,.mvt-res .o-unknown.mc{color:var(--amb)}
.mvt-res .o-none.ochip{color:var(--mut)}
.mvt-res .chip{display:inline-flex;padding:2px 9px;border-radius:99px;background:var(--soft);color:var(--mut);font-size:.74rem;font-weight:600}
.mvt-res .chip.warn{background:var(--amb-s);color:var(--amb)}.mvt-res .link-chip{border:0;color:var(--brand-ink);background:var(--brand-s)}
.mvt-res .schip{display:inline-flex;gap:6px;align-items:center;font-size:.78rem;font-weight:600;white-space:nowrap}
.mvt-res .schip i{width:8px;height:8px;border-radius:50%;background:var(--none)}
.mvt-res .s-completed i{background:var(--ok)}.mvt-res .s-in_progress i{background:#d29a2b}.mvt-res .s-started i{background:#8b95a9}.mvt-res .s-disqualified i{background:var(--bad)}
.mvt-res .tag-test{font-style:normal;font-size:.68rem;font-weight:700;padding:1px 6px;border-radius:5px;background:var(--amb-s);color:var(--amb);margin-left:4px;vertical-align:1px}

/* funnel */
.mvt-res .funnel{display:grid;gap:6px}
.mvt-res .frow{display:grid;grid-template-columns:minmax(120px,260px) 1fr 74px 84px;align-items:center;gap:12px;font-size:.85rem}
.mvt-res .frow-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mvt-res .ftrack{height:22px;background:var(--soft);border-radius:6px;overflow:hidden}.mvt-res .ftrack i{display:block;height:100%;background:var(--brand);border-radius:6px;opacity:.9}
.mvt-res .frow-n{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.mvt-res .frow-n small,.mvt-res .frow-d small{margin-left:4px}
.mvt-res .frow-d{color:var(--mut);font-variant-numeric:tabular-nums;font-size:.8rem}
.mvt-res .frow.is-bad .frow-d{color:var(--bad);font-weight:700}.mvt-res .frow.is-bad .ftrack i{background:color-mix(in srgb,var(--brand) 55%,var(--bad))}
@media(max-width:700px){.mvt-res .frow{grid-template-columns:1fr 64px;row-gap:3px}.mvt-res .ftrack{grid-column:1/-1;order:3}.mvt-res .frow-d{display:none}}

/* tables */
.mvt-res .tscroll{overflow-x:auto;border-radius:8px}.mvt-res .tscroll.tall{max-height:70vh;overflow:auto;border:1px solid var(--line)}
.mvt-res .tbl{width:100%;border-collapse:collapse;font-size:.85rem}
.mvt-res .tbl th{position:sticky;top:0;background:var(--card);text-align:left;font-size:.74rem;font-weight:700;color:var(--mut);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;z-index:1}
.mvt-res .tbl td{padding:10px;border-bottom:1px solid var(--line2);vertical-align:middle}.mvt-res .tbl.compact td{padding:7px 10px}
.mvt-res .tbl td small{display:block;margin-top:1px}.mvt-res .tbl .r{text-align:right;font-variant-numeric:tabular-nums}.mvt-res .tbl .num{width:34px;color:var(--mut);font-weight:700}.mvt-res .tbl td.wide{min-width:190px;width:32%}
.mvt-res .tbl tr.clickable{cursor:pointer}.mvt-res .tbl tr.clickable:hover td{background:var(--soft)}
.mvt-res .tbl tr.is-ex td{opacity:.5}
.mvt-res .sort{background:none;border:0;padding:0;font:inherit;font-weight:700;color:inherit;display:inline-flex;gap:4px}.mvt-res .sort.on{color:var(--brand-ink)}
.mvt-res .mini-mx{display:inline-flex;gap:2px}.mvt-res .mc{width:17px;height:17px;border-radius:4px;display:inline-grid;place-items:center;font-size:.65rem;font-weight:800;font-style:normal;background:var(--cs);color:var(--c)}

/* journey matrix */
.mvt-res .matrix{overflow:auto;max-height:480px;margin-top:6px;border:1px solid var(--line);border-radius:10px}
.mvt-res .mx-head,.mvt-res .mx-row{display:grid;grid-template-columns:minmax(150px,220px) repeat(var(--cols),minmax(30px,1fr)) minmax(120px,150px);align-items:center;gap:4px;padding:4px 10px;min-width:max-content}
.mvt-res .mx-head{position:sticky;top:0;background:var(--card);font-size:.72rem;font-weight:700;color:var(--mut);z-index:2;border-bottom:1px solid var(--line)}
.mvt-res .mx-row:hover{background:var(--soft)}.mvt-res .mx-t{text-align:center}
.mvt-res .mx-who{text-align:left;font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.mvt-res .cell{height:26px;border:0;border-radius:6px;background:var(--cs);color:var(--c);font-weight:800;font-size:.8rem;min-width:26px}.mvt-res .cell:hover{outline:2px solid var(--brand);outline-offset:-2px}
.mvt-res .mx-end{font-size:.78rem}

/* tasks master/detail */
.mvt-res .master{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start}
.mvt-res .rail{display:grid;gap:6px;position:sticky;top:calc(var(--res-top,0px) + var(--res-sticky-h,112px));max-height:calc(100vh - var(--res-sticky-h,112px) - var(--res-top,0px) - 16px);overflow:auto;padding:2px}
.mvt-res .trail{display:flex;gap:10px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);align-items:flex-start;width:100%}
.mvt-res .trail:hover{border-color:var(--brand)}.mvt-res .trail.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset;background:var(--brand-s)}
.mvt-res .trail-b{display:grid;gap:5px;min-width:0;flex:1}.mvt-res .trail-b strong{font-size:.85rem;line-height:1.3}
.mvt-res .num{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:7px;background:var(--soft);font-weight:700;font-size:.78rem;color:var(--mut)}
.mvt-res .trail.on .num{background:var(--brand);color:#fff}
.mvt-res .detail{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;display:grid;gap:22px;min-width:0}
.mvt-res .detail-h h3{font-size:1.3rem;margin-top:2px}
.mvt-res .block{display:grid;gap:10px;min-width:0}.mvt-res .block-h{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap}.mvt-res .block-h h3,.mvt-res .block-h h4{margin-right:auto}
.mvt-res .detail .block+.block{padding-top:4px}
@media(max-width:900px){.mvt-res .master{grid-template-columns:1fr}.mvt-res .rail{position:static;max-height:none;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);overflow-x:auto}}
.mvt-res .strip{width:100%;height:auto;max-height:130px;overflow:visible}
.mvt-res .strip .axis{stroke:var(--line);stroke-width:1}.mvt-res .strip .tick{stroke:var(--mut)}.mvt-res .strip .tl{fill:var(--mut);font-size:10px}
.mvt-res .strip .iqr{fill:var(--brand-s)}.mvt-res .strip .med{stroke:var(--brand);stroke-width:2}.mvt-res .strip .medt{fill:var(--brand-ink);font-size:10px;font-weight:700}
.mvt-res .strip .brk{stroke:var(--line);stroke-dasharray:3 3}
.mvt-res .strip .dot{fill:var(--c);stroke:var(--card);stroke-width:2;cursor:pointer}.mvt-res .strip .dot.idle{opacity:.55}.mvt-res .strip .dot:hover{stroke:var(--ink)}

/* first-click map */
.mvt-res .seg-group{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--card)}
.mvt-res .seg{background:none;border:0;padding:6px 11px;font-size:.8rem;font-weight:600;color:var(--mut);display:inline-flex;gap:5px;align-items:center;border-right:1px solid var(--line)}
.mvt-res .seg:last-child{border-right:0}.mvt-res .seg:hover{color:var(--ink)}.mvt-res .seg.on{background:var(--brand-s);color:var(--brand-ink)}.mvt-res .seg.on.ok{background:var(--ok-s);color:var(--ok)}.mvt-res .seg em{font-style:normal;opacity:.7}
.mvt-res .mapwrap{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:16px;align-items:start}
@media(max-width:760px){.mvt-res .mapwrap{grid-template-columns:1fr}}
.mvt-res .map{position:relative;height:0;max-height:none;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:repeating-linear-gradient(45deg,var(--soft),var(--soft) 9px,var(--card) 9px,var(--card) 18px)}
.mvt-res .map>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block}
.mvt-res .map .target,.mvt-res .map .heat{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.mvt-res .target polygon,.mvt-res .target rect{fill:rgba(27,127,85,.2);stroke:var(--ok);stroke-width:.5;vector-effect:non-scaling-stroke;stroke-width:2}
.mvt-res .cdot{position:absolute;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;border:2.5px solid #fff;background:var(--c);box-shadow:0 1px 4px rgba(0,0,0,.4);padding:0}
.mvt-res .cdot:hover{transform:scale(1.35);z-index:3}
.mvt-res .mapside{display:grid;gap:4px;max-height:520px;overflow:auto}.mvt-res .mapside h5{font-size:.8rem;color:var(--mut)}
.mvt-res .mrow{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;text-align:left;background:none;border:0;border-radius:7px;padding:5px 6px;font-size:.82rem}.mvt-res .mrow:hover{background:var(--soft)}
.mvt-res .mini-map{position:relative;max-width:300px;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:8px 0}.mvt-res .mini-map img{display:block;width:100%}.mvt-res .mini-map .cdot{pointer-events:none}

/* bars + questions */
.mvt-res .bar-row{display:grid;grid-template-columns:minmax(110px,1.1fr) 2fr 70px;gap:12px;align-items:center;padding:3px 0;font-size:.85rem}
.mvt-res .bar-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mvt-res .bar-l small{display:block}
.mvt-res .bar-t{height:10px;border-radius:99px;background:var(--soft);overflow:hidden}.mvt-res .bar-t i{display:block;height:100%;background:var(--brand);border-radius:99px}.mvt-res .bar-t.thin{height:6px}
.mvt-res .bar-n{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.mvt-res .bar-n small{margin-left:4px}
@media(max-width:600px){.mvt-res .bar-row{grid-template-columns:1fr 60px}.mvt-res .bar-t{grid-column:1/-1;order:3}}
.mvt-res .toolbar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.mvt-res .res-count{font-size:.85rem}
.mvt-res .qgroup{display:grid;gap:10px}.mvt-res .qgroup h3{display:flex;gap:8px;align-items:baseline;padding-top:6px}
.mvt-res .qgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:12px;align-items:start}
.mvt-res .qcard{background:var(--card);border:1px solid var(--line);border-radius:var(--r);min-width:0}
.mvt-res .qcard>summary{list-style:none;display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:start;padding:14px 16px;cursor:pointer}
.mvt-res .qcard>summary::-webkit-details-marker{display:none}.mvt-res .qcard>summary .ic{color:var(--mut);margin-top:4px;transition:transform .15s}.mvt-res .qcard[open]>summary .ic{transform:rotate(180deg)}
.mvt-res .q-t{display:grid;gap:2px}.mvt-res .q-t strong{font-size:.92rem;line-height:1.35}.mvt-res .q-n{font-weight:700;white-space:nowrap}
.mvt-res .qbody{padding:0 16px 14px;display:grid;gap:6px}
.mvt-res .sent{display:grid;gap:5px;margin-bottom:6px;font-size:.82rem}
.mvt-res details.more>summary{cursor:pointer;color:var(--brand-ink);font-weight:600;font-size:.82rem;list-style:none;padding:4px 0}.mvt-res details.more>summary::-webkit-details-marker{display:none}
.mvt-res .quote{margin:0;padding:9px 12px;border-left:3px solid var(--brand);background:var(--soft);border-radius:0 8px 8px 0;display:grid;gap:4px;overflow-wrap:anywhere}
.mvt-res .quote+.quote{margin-top:6px}.mvt-res .quote p{font-size:.88rem}
.mvt-res .quote footer{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;font-size:.75rem;color:var(--mut)}
.mvt-res .kind{font-style:normal;font-size:.68rem;font-weight:700;padding:1px 7px;border-radius:99px}.mvt-res .k-obs{background:var(--ok-s);color:var(--ok)}.mvt-res .k-self{background:var(--brand-s);color:var(--brand-ink)}

/* drawer */
.mvt-res .drawer-scrim{position:fixed;inset:0;background:rgba(10,15,30,.4);z-index:90}
.mvt-res .drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,100vw);background:var(--card);z-index:91;display:flex;flex-direction:column;box-shadow:-12px 0 40px rgba(10,15,30,.2);animation:dr .18s ease-out}
@keyframes dr{from{transform:translateX(24px);opacity:.4}}@media(prefers-reduced-motion:reduce){.mvt-res .drawer{animation:none}}
.mvt-res .drawer-h{display:flex;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);align-items:flex-start}.mvt-res .drawer-h h3{font-size:1.15rem;margin:2px 0 6px}
.mvt-res .drawer-tools{display:flex;gap:2px}.mvt-res .drawer-b{flex:1;overflow:auto;padding:14px 18px 24px;display:grid;gap:18px;align-content:start}.mvt-res .drawer-f{padding:12px 18px;border-top:1px solid var(--line)}
.mvt-res .dsec h4{margin-bottom:8px}.mvt-res .dtask{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:10px}.mvt-res .dtask>header{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:6px}
.mvt-res .dnote{font-style:italic;margin:4px 0}.mvt-res .qa{display:grid;gap:1px;padding:6px 0;border-top:1px solid var(--line2);font-size:.84rem}.mvt-res .qa span{color:var(--mut)}
.mvt-res .tip{position:fixed;z-index:200;transform:translate(-50%,-100%);background:#172033;color:#fff;padding:5px 9px;border-radius:7px;font-size:.76rem;pointer-events:none;max-width:280px;box-shadow:0 6px 18px rgba(0,0,0,.25)}

/* AI */
.mvt-res .ai-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--brand-s);color:var(--brand-ink);flex:none}
.mvt-res .ai-empty{max-width:640px;display:grid;gap:12px;justify-items:start;padding:26px}.mvt-res .ai-empty .btn-primary{margin-top:4px}
.mvt-res .ticks{margin:0;padding:0;list-style:none;display:grid;gap:7px}.mvt-res .ticks li{padding-left:22px;position:relative}.mvt-res .ticks li:before{content:"";position:absolute;left:3px;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--brand)}.mvt-res .ticks.warn li:before{background:#d29a2b}
.mvt-res .err{color:var(--bad);font-weight:600}
.mvt-res .ai-run{display:flex;gap:16px;align-items:center}.mvt-res .spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--brand-s);border-top-color:var(--brand);animation:sp .8s linear infinite;flex:none}@keyframes sp{to{transform:rotate(360deg)}}
.mvt-res .ai-head{display:grid;gap:12px}.mvt-res .ai-prov{display:flex;gap:12px;align-items:center}.mvt-res .ai-acts{display:flex;gap:8px;flex-wrap:wrap}
.mvt-res .ai-head{grid-template-columns:1fr auto}.mvt-res .trust{grid-column:1/-1;display:flex;gap:8px;font-size:.8rem;color:var(--mut);background:var(--soft);padding:9px 12px;border-radius:9px}
@media(max-width:760px){.mvt-res .ai-head{grid-template-columns:1fr}}
.mvt-res .summary .lead{font-size:1.02rem;line-height:1.65;max-width:75ch;margin-top:8px}
.mvt-res .banner{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:var(--r);background:var(--amb-s);color:var(--ink)}.mvt-res .banner>div{flex:1}.mvt-res .banner p{font-size:.84rem;color:var(--mut)}.mvt-res .banner .ic{color:var(--amb)}
.mvt-res .findings{display:grid;gap:12px}
.mvt-res .finding{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--c,var(--line));border-radius:var(--r);padding:16px 18px;display:grid;gap:10px;min-width:0}
.mvt-res .sev-b-high{--c:var(--bad)}.mvt-res .sev-b-medium{--c:#d29a2b}.mvt-res .sev-b-low{--c:#8b95a9}.mvt-res .sev-b-positive{--c:var(--ok)}
.mvt-res .finding>header{display:flex;gap:10px;align-items:flex-start}.mvt-res .finding h4{font-size:1rem;line-height:1.35}
.mvt-res .finding p{max-width:80ch}.mvt-res .finding.is-dismissed{opacity:.55}.mvt-res .finding.flash{box-shadow:0 0 0 3px var(--brand-s)}
.mvt-res .sev{display:inline-flex;padding:2px 9px;border-radius:99px;font-size:.72rem;font-weight:700;background:var(--soft);color:var(--mut);flex:none}
.mvt-res .sev-high{background:var(--bad-s);color:var(--bad)}.mvt-res .sev-medium{background:var(--amb-s);color:var(--amb)}.mvt-res .sev-positive{background:var(--ok-s);color:var(--ok)}
.mvt-res .fmeta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:.8rem;color:var(--mut)}.mvt-res .reach b{color:var(--ink)}
.mvt-res .conf{display:inline-flex;gap:3px;align-items:center}.mvt-res .conf i{width:14px;height:5px;border-radius:3px;background:var(--none)}.mvt-res .conf i.on{background:var(--brand)}.mvt-res .conf span{margin-left:4px}
.mvt-res .callout{padding:10px 12px;border-radius:9px;background:var(--soft);display:grid;gap:2px}.mvt-res .callout strong{font-size:.8rem}.mvt-res .callout p{font-size:.88rem}
.mvt-res .callout.rec{background:var(--ok-s)}.mvt-res .callout.rec strong{color:var(--ok)}.mvt-res .effort{font-style:normal;font-weight:600;font-size:.72rem;color:var(--mut);margin-left:6px}
.mvt-res .fact{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:4px}
.mvt-res .theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr));gap:12px;align-items:start}
.mvt-res .theme{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:grid;gap:8px}.mvt-res .theme>header{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mvt-res .theme h4{margin-right:auto}
.mvt-res .sent-negative{background:var(--bad-s);color:var(--bad)}.mvt-res .sent-positive{background:var(--ok-s);color:var(--ok)}
.mvt-res .mini-findings{margin:0 0 4px;padding:0;list-style:none;display:grid;gap:10px}.mvt-res .mini-findings li{display:flex;gap:10px;align-items:flex-start}.mvt-res .mini-findings p{font-size:.82rem;color:var(--mut)}
.mvt-res .empty{display:grid;gap:4px;justify-items:center;text-align:center;padding:26px 12px;color:var(--mut)}.mvt-res .empty strong{color:var(--ink)}
.mvt-res .ai-teaser .btn-primary{margin-top:8px}

@media print{.mvt-res .res-sticky,.mvt-res .drawer,.mvt-res .drawer-scrim,.mvt-res .tip,.mvt-res .res-actions,.mvt-res .fact{display:none!important}.mvt-res{background:#fff!important}.mvt-res .card,.mvt-res .finding,.mvt-res .qcard{break-inside:avoid;box-shadow:none}.mvt-res .tscroll,.mvt-res .matrix{max-height:none!important;overflow:visible!important}.mvt-res .qcard>summary .ic{display:none}}

/* export / share menus + admin host tweaks */
.mvt-res .menu{position:relative}.mvt-res .menu>summary{list-style:none;cursor:pointer}.mvt-res .menu>summary::-webkit-details-marker{display:none}
.mvt-res .menu[open]>summary{border-color:var(--brand);color:var(--brand-ink)}
.mvt-res .menu-pop{position:absolute;right:0;top:calc(100% + 6px);z-index:60;width:340px;max-width:92vw;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(10,15,30,.18);padding:8px;display:grid;gap:2px}
.mvt-res .menu-pop>p{padding:4px 8px}
.mvt-res .mi{display:flex;gap:10px;text-align:left;background:none;border:0;border-radius:9px;padding:9px 10px;align-items:flex-start}.mvt-res .mi:hover{background:var(--soft)}
.mvt-res .mi .ic{margin-top:3px;color:var(--brand-ink)}.mvt-res .mi span{display:grid}.mvt-res .mi small{font-weight:400}
.mvt-res .menu-pop label.mi-check{display:flex !important;flex-direction:row !important;gap:8px;align-items:center;justify-content:flex-start;text-align:left;font-size:.8rem;color:var(--mut);padding:2px 10px 8px 40px;cursor:pointer}
.mvt-res .mi-check input{width:16px;height:16px;min-height:0;flex:none;margin:0;padding:0}
.mvt-res .sharelink{display:flex;gap:6px;margin:6px 8px}.mvt-res .sharelink input{flex:1;min-width:0;height:34px;border:1px solid var(--line);border-radius:9px;padding:0 8px;background:var(--card);color:var(--ink)}
.mvt-res .menu-pop .btn-primary{margin:6px 8px;justify-self:start}
#stage-results .mvt-res{padding-top:6px}

#stage-results .mvt-res{--res-top:var(--workspace-header-height,88px)}
.mvt-res .map{max-width:100%}

.mvt-res label.f-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px;margin:0;font-weight:500;font-size:.85rem;height:34px;color:var(--ink)}
.mvt-res label.f-check input{margin:0;width:16px;height:16px}
.mvt-res .bar-row{grid-template-columns:minmax(140px,1.3fr) 2fr 70px}
.mvt-res .f select,.mvt-res .f input,.mvt-res .sharelink input{margin:0;box-shadow:none;line-height:normal}
.mvt-res .res-panel>*{min-width:0}

/* printable / report mode */
.mvt-res.is-print .res-sticky,.mvt-res.is-print .rail,.mvt-res.is-print .fact{display:none!important}
.mvt-res.is-print .master{display:block}.mvt-res.is-print .detail{border:0;padding:0}
.mvt-res.is-print .print-sec{display:grid;gap:14px;break-before:page}.mvt-res.is-print .print-sec:first-child{break-before:auto}
.mvt-res.is-print .print-sec>h2{font-size:1.25rem;padding-bottom:6px;border-bottom:2px solid var(--brand)}
.mvt-res.is-print .res-panel{gap:22px}
.mvt-res.is-print .qgrid{grid-template-columns:1fr}
.mvt-res.is-print .tscroll,.mvt-res.is-print .matrix{max-height:none!important;overflow:visible!important}
@media print{.mvt-res{--canvas:#fff}.mvt-res .print-sec{break-before:page}.mvt-res .kpi,.mvt-res .card,.mvt-res .finding,.mvt-res .qcard{break-inside:avoid}}

.mvt-res-portal{display:contents}
.mvt-res-portal .drawer-scrim{z-index:2000}.mvt-res-portal .drawer{z-index:2001}.mvt-res-portal .tip{z-index:2100}

/* ─── Method-aware results (results-methods.js) ─── */
.mvt-res .ev{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;padding:2px 7px;border-radius:99px;margin-right:6px;vertical-align:1px}
.mvt-res .ev-obs{background:var(--ok-s);color:var(--ok)}
.mvt-res .ev-self{background:var(--amb-s);color:var(--ink)}
.mvt-res .ev-qual{background:var(--brand-s);color:var(--brand-ink)}
.mvt-res .evidence-note{margin:8px 0 0;font-size:.84rem;color:var(--mut)}
.mvt-res .evidence-note.warn{color:var(--bad)}
.mvt-res .o-soft{opacity:.6}
.mvt-res .bar-row.is-bad .bar-t i{background:var(--bad)}
.mvt-res .path-list{margin:0;padding-left:20px;display:grid;gap:6px;font-size:.86rem}
.mvt-res .path-list li{display:flex;justify-content:space-between;gap:12px}
.mvt-res .path-list li span{overflow-wrap:anywhere}
.mvt-res .path-steps{margin:6px 0 0;padding-left:20px;font-size:.82rem;display:grid;gap:2px}
.mvt-res .path-steps small{margin-left:6px;color:var(--mut)}
.mvt-res .chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.mvt-res .chips li{padding:3px 10px;border-radius:99px;background:var(--soft);border:1px solid var(--line);font-size:.82rem}
.mvt-res .chips b{margin-left:4px;color:var(--mut)}
.mvt-res .plain{margin:0;padding-left:18px;display:grid;gap:4px;font-size:.86rem}
.mvt-res .cs-matrix th,.mvt-res .cs-matrix td{white-space:nowrap}
.mvt-res .cs-matrix thead th{max-width:120px;overflow:hidden;text-overflow:ellipsis}
.mvt-res .cs-matrix td.heat{text-align:center;background:color-mix(in srgb,var(--brand) calc(var(--v) * 70%),transparent);color:var(--ink);font-variant-numeric:tabular-nums}
.mvt-res .cs-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mvt-res .pref-row{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;padding:4px 0}
.mvt-res .pref-row img,.mvt-res .pref-noimg{width:64px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--line);background:var(--soft)}
.mvt-res .dmeth{margin-top:6px;font-size:.86rem}
.mvt-res .dmeth p{margin:4px 0}
.mvt-res .stimulus-thumb{max-width:min(100%,520px);border-radius:8px;border:1px solid var(--line)}

/* Primary buttons: white text in every state (the generic .btn-sm:hover rule turned it purple on purple). */
.mvt-res .btn-primary,.mvt-res .btn-primary:hover,.mvt-res .btn-primary:focus-visible,.mvt-res .btn-primary.btn-sm:hover{color:#fff;border-color:var(--brand)}
.mvt-res .btn-primary:hover{background:#4338ca;border-color:#4338ca;filter:none}
.mvt-res .btn-primary:focus-visible,.mvt-res .btn-sm:focus-visible,.mvt-res .rtab:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 45%,transparent);outline-offset:2px}
.mvt-res .btn-primary .ic{color:currentColor}
.mvt-res[data-theme=dark] .btn-primary,.mvt-res[data-theme=dark] .btn-primary:hover{color:#0d1426;background:#a49dff;border-color:#a49dff}

/* Sticky filter + tab bar: a distinct surface, so scrolled content never merges into it. */
.mvt-res .res-sticky{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:0 16px;margin:0 0 18px;box-shadow:0 1px 2px rgba(16,24,40,.06),0 10px 18px -14px rgba(16,24,40,.35)}
.mvt-res .res-filters{border-bottom:1px solid var(--line2);padding:12px 0}
.mvt-res .res-tabs{margin:0 -4px}
.mvt-res .rtab{padding:12px 14px}
.mvt-res .rtab.on{background:linear-gradient(to top,var(--brand-s),transparent 70%)}
.mvt-res[data-theme=dark] .res-sticky{box-shadow:0 10px 18px -12px rgba(0,0,0,.7)}
@media (max-width:640px){.mvt-res .res-sticky{padding:0 10px;border-radius:10px}}
.mvt-res .res-sticky::before{content:"";position:absolute;left:-3px;right:-3px;bottom:100%;height:16px;background:var(--canvas);pointer-events:none}
.mvt-res:not([data-theme=dark]){--ok:#157048}
/* Figma Embed API event reconstruction */
.mvt-res .prototype-behaviour .figma-journey{border-top:1px solid var(--line,#e5e7eb);padding:10px 0}
.mvt-res .prototype-behaviour .figma-journey summary{cursor:pointer;font-weight:600}
.mvt-res .prototype-behaviour .figma-journey ol{display:grid;gap:7px;margin:12px 0 0;padding-left:24px}
.mvt-res .prototype-behaviour .figma-journey li{padding-left:3px}
.mvt-res .prototype-behaviour .figma-journey time{display:block;color:var(--muted,#667085);font-size:12px;margin-bottom:2px}
.mvt-res .prototype-behaviour .figma-journey li span{overflow-wrap:anywhere}
.mvt-res .prototype-behaviour .figma-target-list{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.mvt-res .prototype-behaviour .figma-target-list li{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.mvt-res .prototype-behaviour .figma-target-list code{overflow-wrap:anywhere}
@media(max-width:640px){.mvt-res .prototype-behaviour .figma-target-list li{display:grid;gap:2px}}

/* ── Results polish (2026-11): table numbering, task performance, funnel, journey sort/filter ── */
.mvt-res .tbl td.num{display:table-cell;width:44px;background:none;border-radius:0;height:auto}
/* Task performance: fixed columns, no stray whitespace, numbers on one line */
.mvt-res .tperf{table-layout:fixed}
.mvt-res .tperf th,.mvt-res .tperf td{padding:9px 10px}
.mvt-res .tperf .tp-num{width:48px;padding-right:0}
.mvt-res .tperf td.tp-num{vertical-align:middle}
.mvt-res .tperf td.tp-num .num{display:inline-grid}
.mvt-res .tperf .tp-task strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mvt-res .tperf .tp-task small{color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mvt-res .tperf .tp-reach{width:150px}
.mvt-res .tperf .tp-reach-n{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}
.mvt-res .tperf .tp-reach-n small{display:inline;color:var(--mut);margin-left:2px}
.mvt-res .tp-meter{display:block;height:5px;margin-top:5px;border-radius:99px;background:var(--line2);overflow:hidden}
.mvt-res .tp-meter i{display:block;height:100%;border-radius:inherit;background:var(--brand)}
.mvt-res .tperf .tp-out{width:30%}
.mvt-res .tperf .tp-rate{width:130px}
.mvt-res .tperf .tp-time{width:130px;white-space:nowrap}
.mvt-res .tperf .tp-time small{color:var(--mut)}
.mvt-res .tperf.is-unscored .tp-reach{width:38%}
@media(max-width:760px){.mvt-res .tperf{table-layout:auto}.mvt-res .tperf .tp-out{display:none}.mvt-res .tperf .tp-reach{width:auto}}

/* Conversion funnel */
.mvt-res .cfunnel{display:grid;gap:0;padding:4px 0}
.mvt-res .cf-row{display:grid;grid-template-columns:minmax(140px,240px) 1fr 92px;align-items:center;gap:14px;padding:2px 6px;border-radius:10px}
.mvt-res .cf-row[role="button"]{cursor:pointer}.mvt-res .cf-row[role="button"]:hover{background:var(--soft)}
.mvt-res .cf-row[role="button"]:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.mvt-res .cf-label{font-size:.85rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mvt-res .cf-track{display:flex;justify-content:center;height:34px}
.mvt-res .cf-track i{display:block;height:100%;background:linear-gradient(180deg,color-mix(in srgb,var(--brand) 92%,#fff),color-mix(in srgb,var(--brand) 70%,#fff));border-radius:3px}
.mvt-res .cf-row.is-bad .cf-track i{background:linear-gradient(180deg,color-mix(in srgb,var(--bad) 75%,#fff),color-mix(in srgb,var(--bad) 55%,#fff))}
.mvt-res .cf-n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.mvt-res .cf-n strong{font-size:1rem}.mvt-res .cf-n small{display:inline;margin-left:6px;color:var(--mut)}
.mvt-res .cf-step{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 auto;padding:3px 0;font-size:.76rem;color:var(--mut);grid-column:1/-1}
.mvt-res .cfunnel>.cf-step{padding-left:calc(min(240px,30%));padding-right:92px}
.mvt-res .cf-arrow{font-weight:700}
.mvt-res .cf-step strong{color:var(--ink,inherit)}
.mvt-res .cf-lost{padding:1px 8px;border-radius:99px;background:var(--soft)}
.mvt-res .cf-step.is-bad .cf-lost{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad);font-weight:700}
.mvt-res .cf-keep{opacity:.8}
@media(max-width:700px){.mvt-res .cf-row{grid-template-columns:1fr 70px}.mvt-res .cf-track{grid-column:1/-1;order:3;height:24px}.mvt-res .cfunnel>.cf-step{padding:3px 0}}

/* Journey matrix: names, sort headers, status filter chips */
.mvt-res .mx-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;margin:4px 0 8px}
.mvt-res .mx-chips{display:flex;flex-wrap:wrap;gap:6px}
.mvt-res .mx-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid var(--line);border-radius:99px;background:var(--card);color:inherit;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
.mvt-res .mx-chip i{width:8px;height:8px;border-radius:50%;background:var(--none)}
.mvt-res .mx-chip b{font-weight:700;color:var(--mut)}
.mvt-res .mx-chip:hover{border-color:var(--brand)}
.mvt-res .mx-chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.mvt-res .mx-chip.on b{color:rgba(255,255,255,.85)}
.mvt-res .mx-chip:focus-visible,.mvt-res .mx-sort:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mvt-res .mx-sort{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;color:var(--mut);font:inherit;font-size:.72rem;font-weight:700;cursor:pointer;text-align:left}
.mvt-res .mx-sort span{opacity:.55}.mvt-res .mx-sort.on{color:var(--brand)}.mvt-res .mx-sort.on span{opacity:1}
.mvt-res .mx-who.link{display:flex;align-items:center;gap:8px;min-width:0}
.mvt-res .mx-ref{flex:0 0 auto;padding:1px 6px;border-radius:6px;background:var(--soft);color:var(--mut);font-size:.7rem;font-weight:700;font-variant-numeric:tabular-nums}
.mvt-res .mx-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mvt-res .mx-name.is-anon{color:var(--mut);font-style:italic;font-weight:500}
/* Compact funnel: one line per stage */
.mvt-res .cf-head,.mvt-res .cf-row{grid-template-columns:minmax(140px,260px) 1fr 84px 104px}
.mvt-res .cf-head{display:grid;gap:14px;padding:0 6px 6px;font-size:.72rem;font-weight:700;color:var(--mut);border-bottom:1px solid var(--line2);margin-bottom:4px}
.mvt-res .cf-head span:nth-child(2){text-align:center}.mvt-res .cf-head .r{text-align:right}
.mvt-res .cf-row{padding:3px 6px}
.mvt-res .cf-track{height:26px}
.mvt-res .cf-chg{justify-self:end;display:inline-flex;align-items:baseline;gap:4px;padding:2px 9px;border-radius:99px;font-size:.78rem;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.mvt-res .cf-chg small{font-weight:600;opacity:.85}
.mvt-res .cf-chg.is-start{background:var(--soft);color:var(--mut)}
.mvt-res .cf-chg.is-keep{background:color-mix(in srgb,var(--ok) 13%,transparent);color:color-mix(in srgb,var(--ok) 80%,#000)}
.mvt-res .cf-chg.is-lost{background:var(--soft);color:var(--ink)}
.mvt-res .cf-chg.is-bad{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}
@media(max-width:700px){.mvt-res .cf-head{display:none}.mvt-res .cf-row{grid-template-columns:1fr auto auto}.mvt-res .cf-track{grid-column:1/-1;order:3;height:20px}}

/* Deleting responses (workspace only) */
.mvt-res .btn-sm.btn-danger{color:#b42318;border-color:#fecdca;background:#fff}
.mvt-res .btn-sm.btn-danger:hover{background:#fef3f2;border-color:#fda29b;color:#912018}
.mvt-res .btn-sm.btn-danger:focus-visible{outline:2px solid #b42318;outline-offset:2px}
.mvt-res .p-delbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card);font-size:.85rem;color:var(--mut)}
.mvt-res .p-delbar.has-sel{border-color:#fecdca;background:#fffbfa;color:var(--ink)}
.mvt-res .p-delbar-count{margin-right:auto}
.mvt-res .ptable th.sel,.mvt-res .ptable td.sel{width:38px;padding-right:0}
.mvt-res .ptable td.sel input,.mvt-res .ptable th.sel input{width:16px;height:16px;cursor:pointer;accent-color:#b42318}
.mvt-res .ptable tr.is-sel td{background:#fff6f5}
.mvt-res .drawer-f{display:flex;flex-wrap:wrap;gap:8px}

/* Figma prototype funnels + observations (any task type) */
.mvt-res .figma-funnel .cf-row{grid-template-columns:minmax(140px,240px) 1fr 92px 84px}
.mvt-res .figma-funnel .cf-label{display:flex;flex-direction:column;line-height:1.25}
.mvt-res .figma-funnel .cf-node{font-weight:400;font-size:.72rem;color:var(--mut);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.mvt-res .figma-funnel .cf-chg{justify-self:end;font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums}
.mvt-res .figma-funnel .cf-chg.is-bad{color:var(--bad)}.mvt-res .figma-funnel .cf-chg.is-start{color:var(--mut);font-weight:500}
.mvt-res .figma-funnel-task{padding:14px 0;border-top:1px solid var(--line,#e3e6ed)}
.mvt-res .figma-funnel-task:first-of-type{border-top:0;padding-top:4px}
.mvt-res .figma-funnel-task>.link-btn{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;padding:4px 6px;border:0;background:none;font:inherit;font-weight:700;color:var(--ink,inherit);cursor:pointer;border-radius:8px}
.mvt-res .figma-funnel-task>.link-btn:hover{background:var(--soft)}
.mvt-res .figma-funnel-task>.link-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mvt-res .figma-funnel-task h4{margin:12px 0 6px;font-size:.85rem}
.mvt-res .figma-obs{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mvt-res .figma-obs li{position:relative;padding:8px 12px 8px 30px;border-radius:10px;background:var(--soft);font-size:.86rem;line-height:1.45}
.mvt-res .figma-obs li::before{content:"";position:absolute;left:12px;top:14px;width:8px;height:8px;border-radius:50%;background:var(--mut)}
.mvt-res .figma-obs li.is-warn::before{background:#B26A00}.mvt-res .figma-obs li.is-bad::before{background:var(--bad)}
.mvt-res .figma-obs li.is-bad{background:color-mix(in srgb,var(--bad) 8%,transparent)}
@media(max-width:700px){.mvt-res .figma-funnel .cf-row{grid-template-columns:1fr 70px 60px}.mvt-res .figma-funnel .cf-track{grid-column:1/-1;order:3;height:22px}}
.mvt-res .figma-obs li.is-good::before{background:var(--good,#12794F)}
/* Stop duplicate responses (duplicateGuard.php) */
.mvt-res .tag-dup{background:var(--brand-s);color:var(--brand-ink)}
.mvt-res .dup-notice{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;padding:10px 14px;border-radius:10px;border:1px solid var(--line,#e3e3ea);background:var(--card,#fff);font-size:.86rem;line-height:1.5}
.mvt-res .dup-notice .ic{flex:none;margin-top:3px;color:var(--mut)}
/* Learning objectives (Results > AI insights) */
.mvt-res .obj-card{display:grid;gap:12px}
.mvt-res .obj-card textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:var(--card);color:var(--ink)}
.mvt-res .obj-acts{display:flex;gap:8px;flex-wrap:wrap}
.mvt-res .obj-list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.mvt-res .obj-item{border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;background:var(--card);display:grid;gap:6px}
.mvt-res .obj-item>p{margin:0;font-size:.9rem}
.mvt-res .obj-top{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.mvt-res .obj-text{font-weight:700}
.mvt-res .obj-next{color:var(--mut)}
.mvt-res .obj-status{font-size:.75rem;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--none-s);color:var(--skip);white-space:nowrap}
.mvt-res .obj-status.s-met{background:var(--ok-s);color:var(--ok)}
.mvt-res .obj-status.s-partly_met{background:var(--amb-s);color:var(--amb)}
.mvt-res .obj-status.s-not_met{background:var(--bad-s);color:var(--bad)}
