/* VisionVix mini calculators: phone layout. Every rule sits under body.vvm, which only the phone script adds. */
body.vvm{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
body.vvm .main{overflow:visible!important;padding:10px 12px 24px!important}
body.vvm .shell{display:block!important;min-height:0}
body.vvm [data-vvm=hide],body.vvm .vvm-hidebtn{display:none!important}
/* show only the blocks of the open tab */
body.vvm[data-vvm-tab] [data-vvm]:not(#vvm_){display:none!important}
body.vvm[data-vvm-tab=inputs] [data-vvm=inputs]:not(#vvm_),body.vvm[data-vvm-tab=result] [data-vvm=result]:not(#vvm_),body.vvm[data-vvm-tab=share] [data-vvm=share]:not(#vvm_),
body.vvm[data-vvm-tab=whatif] [data-vvm=whatif]:not(#vvm_),body.vvm[data-vvm-tab=questions] [data-vvm=questions]:not(#vvm_),body.vvm[data-vvm-tab=inputs] [data-vvm=head]:not(#vvm_),
body.vvm[data-vvm-tab=inputs] [data-vvm=pin]:not(#vvm_),body.vvm[data-vvm-tab=whatif] [data-vvm=pin]:not(#vvm_),body.vvm[data-vvm-tab=result] [data-vvm=pin]:not(#vvm_){display:block!important}
body.vvm[data-vvm-tab=share] .vv-share:not(#vvm_){display:block!important}
/* one column, pinned result first */
body.vvm #vv-main,body.vvm .main{display:flex!important;flex-direction:column}
body.vvm[data-vvm-tab] [data-vvm=grid]:not(#vvm_){display:contents!important}
body.vvm [data-vvm]{order:3}body.vvm [data-vvm=head]{order:0}body.vvm [data-vvm=pin]{order:1}body.vvm [data-vvm=inputs]{order:2}
body.vvm [data-vvm=result],body.vvm [data-vvm=share],body.vvm [data-vvm=whatif],body.vvm [data-vvm=questions],body.vvm [data-vvm=inputs]{margin:0 0 12px!important}
/* page title: one line */
body.vvm [data-vvm=head]{padding:2px 2px 8px!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important}
body.vvm [data-vvm=head] h1{font-size:1.3rem!important;line-height:1.2!important;margin:0!important}
body.vvm [data-vvm=head]>*:not(h1):not(:has(h1)){display:none!important}
body.vvm [data-vvm=head] *:has(>h1)>*:not(h1){display:none!important}
/* pinned result card */
body.vvm .vvm-pin{position:sticky!important;top:var(--nav-h,52px);z-index:60;margin:0 -12px 12px!important;border-radius:0!important;border-left:0!important;border-right:0!important;padding:8px 12px 10px!important;box-shadow:0 6px 16px -10px rgba(20,32,74,.35)!important;background:#fff!important}
body.vvm .vvm-pin .vv-r3d-stage{height:210px!important;max-height:210px!important;min-height:0!important;transition:height .25s}
body.vvm .vvm-pin.vvm-small .vv-r3d-stage{height:132px!important;max-height:132px!important}
body.vvm .vvm-pin .mc-head,body.vvm .vvm-pin .card-title,body.vvm .vvm-pin .mc-chips,body.vvm .vvm-pin .vv-r3d-bar .vv-r3d-cap,body.vvm .vvm-pin .bmi-old{display:none!important}
body.vvm .vvm-pin.vvm-small .mc-scale,body.vvm .vvm-pin.vvm-small .mc-meter,body.vvm .vvm-pin.vvm-small .mc-status{display:none!important}
body.vvm .vvm-pin .mc-num{font-size:2rem!important;margin:4px 0 2px!important}
body.vvm .vvm-pin.vvm-small .mc-num{font-size:1.5rem!important}
body.vvm[data-vvm-tab=result] .vvm-pin .vv-r3d,body.vvm[data-vvm-tab=result] .vvm-pin .mc-meter,body.vvm[data-vvm-tab=result] .vvm-pin .mc-scale{display:none!important}
body.vvm[data-vvm-tab=inputs] .vvm-pin.vvm-pin:not(#vvm_),body.vvm[data-vvm-tab=whatif] .vvm-pin.vvm-pin:not(#vvm_),body.vvm[data-vvm-tab=result] .vvm-pin.vvm-pin:not(#vvm_){display:flex!important;flex-direction:column}
body.vvm .vvm-pin .vv-r3d{order:-1;margin:0!important}
body.vvm .vvm-pin .vv-r3d-bar{display:none!important}
body.vvm .vvm-pin .mc-status{padding:6px 10px!important;margin-top:6px!important;min-height:0!important}
body.vvm .vvm-pin .mc-status .mc-tick{width:20px!important;height:20px!important}
body.vvm .vvm-pin .mc-meter{margin-top:8px!important}
body.vvm .vvm-pin.vvm-small .mc-status{display:flex!important}
body.vvm[data-vvm-tab=questions] .vvm-pin.vvm-pin.vvm-pin:not(#vvm_),body.vvm[data-vvm-tab=share] .vvm-pin.vvm-pin.vvm-pin:not(#vvm_){display:none!important}
/* result list: the summary cards become plain rows */
body.vvm .summary-bar{display:block!important;background:#fff;border:1px solid #e2e6f0;border-radius:16px;padding:4px 16px!important;margin:0 0 12px!important}
body.vvm .summary-bar .sum-card{display:grid!important;grid-template-columns:1fr auto;gap:0 12px;align-items:baseline;background:none!important;border:0!important;border-bottom:1px solid #eef0f5!important;border-radius:0!important;box-shadow:none!important;padding:11px 0!important;margin:0!important;min-height:0!important}
body.vvm .summary-bar .sum-card:last-child{border-bottom:0!important}
body.vvm .summary-bar .sum-icon{display:none!important}
body.vvm .summary-bar .sum-label{grid-column:1;font-size:.9rem!important;text-transform:none!important;letter-spacing:0!important;color:#14204a!important;font-weight:500!important}
body.vvm .summary-bar .sum-val{grid-column:2;grid-row:1;font-size:1rem!important;text-align:right;white-space:nowrap}
body.vvm .summary-bar .sum-sub{grid-column:1/3;text-align:right;font-size:.76rem!important}
/* share panel */
body.vvm .vvm-share{background:#fff;border:1px solid #e2e6f0;border-radius:16px;padding:16px;margin:0 0 12px}
body.vvm .vvm-share h2{font-size:1.05rem;margin:0 0 6px;color:#14204a}
body.vvm .vvm-cap{margin:0 0 12px;color:#4b5568;font-size:.92rem}
body.vvm .vvm-native{width:100%;height:46px;border:0;border-radius:12px;background:#1e3a6e;color:#fff;font:600 1rem/1 inherit;margin-bottom:12px}
body.vvm .vvm-nh{margin:2px 0 9px;font-size:.82rem;font-weight:600;color:#4a5670}
body.vvm .vvm-nets{display:flex;flex-wrap:wrap;gap:8px}
body.vvm .vvm-nets a{display:inline-flex;align-items:center;gap:7px;padding:7px 12px 7px 8px;border:1px solid #e2e6f0;border-radius:10px;background:#fff;color:#14204a;text-decoration:none;font-size:.8rem;font-weight:600;line-height:1;white-space:nowrap}
body.vvm .vvm-nets svg{width:20px;height:20px;flex:none}
/* tab bar: 56 px bar, 23 px icons, 10 px labels, 50 px centre button */
body.vvm .vvm-tabs{position:fixed!important;left:0;right:0;bottom:0;z-index:9000!important;height:calc(56px + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);border-top:1px solid #e2e6f0;box-shadow:0 -4px 18px rgba(20,32,74,.08);backdrop-filter:blur(14px)}
body.vvm .vvm-tabs.few{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
.vvm-tabs button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7a8396;-webkit-tap-highlight-color:transparent}
.vvm-tabs .ic{width:23px;height:23px;display:block}.vvm-tabs svg{width:23px;height:23px;display:block}
.vvm-tabs .lb{font:600 10px/1 -apple-system,'Segoe UI',sans-serif;letter-spacing:.1px}
.vvm-tabs button[aria-current=page]{color:#1e3a6e}
.vvm-tabs .mid .ic{width:50px;height:50px;margin-top:-22px;border-radius:50%;background:#1e3a6e;color:#fff;display:grid;place-items:center;box-shadow:0 0 0 4px #fff,0 6px 14px rgba(30,58,110,.35)}
.vvm-tabs .mid svg{width:23px;height:23px}
.vvm-tabs .mid[aria-current=page] .ic{background:#c9a24a}
/* cookie notice and other bottom bars sit above the tab bar */
body.vvm #vvCookieBar{bottom:calc(56px + env(safe-area-inset-bottom))!important}
body.vvm .vv-simcard,body.vvm .vvx-gift{display:none!important}
