/* PRESENTATION LAB: every card outside the climb (menu, leaderboard, friends, achievements, give-up check, help) and the end panel share the
   climb HUD look: a calm semi-transparent dark panel floating over the scene. Appearance only; see lab-panels.js. */
body.labpan header.top,body.labpan #hud2,body.labpan #hudBar,body.labpan .cmbHud{opacity:0!important;pointer-events:none!important}
#ov.labpanel{position:fixed!important;inset:0;z-index:30;flex:none!important;flex-direction:column;align-items:center;justify-content:center;padding:56px 20px;background:linear-gradient(rgba(6,10,18,.3),rgba(6,10,18,.55));-webkit-backdrop-filter:none;backdrop-filter:none}
#ov.labpanel .card,#endPanel.labend{--ink:#fff;--muted:rgba(255,255,255,.66);--panel:rgba(255,255,255,.1);--bg:rgba(8,12,20,.6);--tile:#f1e2bd;--board:#d9812c;--board-edge:rgba(0,0,0,.25);
  position:relative;flex:none!important;width:min(100%,350px);max-width:350px!important;height:auto;min-height:0;max-height:calc(100vh - 112px)!important;box-sizing:border-box;padding:22px 18px 18px;border-radius:20px;background:rgba(8,12,20,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 10px 40px rgba(0,0,0,.35);color:#fff;display:flex;flex-direction:column;overflow:hidden}
#ov.labpanel .card:has(.ach),#ov.labpanel .card:has(.lb){max-width:380px!important;width:min(100%,380px)}
#ov.labpanel #ovB{flex:1 1 auto;min-height:0;display:block;overflow-y:auto;overflow-x:hidden}
#ov.labpanel .card h2{font:700 .8rem system-ui,sans-serif;letter-spacing:.35em;text-transform:uppercase;color:#ffcf6b;margin:0 0 14px;text-align:center;padding:0 30px}
#ov.labpanel .card p,#ov.labpanel .card .small{color:rgba(255,255,255,.7)}
#ov.labpanel .card a{color:rgba(255,255,255,.7)}
#ov.labpanel .card button{border-radius:14px}
#ov.labpanel .card #ovBtns{flex:none;padding-top:2px}
#ov.labpanel .card #ovBtns button{background:#d9812c;border:1px solid #e6963f;color:#1b1206;font-weight:700;letter-spacing:.08em;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2);width:100%;max-width:none}
#ov.labpanel .card #ovBtns button.alt2,#ov.labpanel .card button.alt2{background:rgba(255,159,67,.12);border:1px solid rgba(255,190,110,.5);color:#fff;box-shadow:none}
#ov.labpanel .card .labx{display:none}
#ov.labpanel .card.hasx .labx{display:flex}
.labx{position:absolute;right:12px;top:12px;width:34px;height:34px;padding:0!important;margin:0!important;border-radius:50%!important;background:rgba(255,255,255,.1)!important;border:0!important;color:#ddd!important;align-items:center;justify-content:center;font-size:1rem;box-shadow:none!important;min-width:0!important}
#ov.labpanel .card .labgone{display:none!important}
/* inputs */
#ov.labpanel .field{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:12px}
/* menu: Practice first and prominent, then two half buttons, then a small link row */
#ov.labpanel .menu{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#ov.labpanel .menu button{margin:0!important;width:100%;height:48px;font-size:.9rem;letter-spacing:.06em;background:rgba(255,159,67,.12);border:1px solid rgba(255,190,110,.5);color:#fff;box-shadow:none}
#ov.labpanel .menu button.lab-pri{grid-column:1/-1;height:54px;font-size:1.02rem;letter-spacing:.1em;background:#d9812c;border-color:#e6963f;color:#1b1206;font-weight:700;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
#ov.labpanel .menu button.lab-full{grid-column:1/-1}
#ov.labpanel .menu button.lab-link{grid-column:1/-1;height:auto;background:none;border:0;text-decoration:underline;color:rgba(255,255,255,.65);font-size:.8rem;padding:4px;letter-spacing:.02em}
#ov.labpanel .menu .copy{grid-column:1/-1;text-align:center;font-size:.72rem;color:rgba(255,255,255,.45);text-decoration:none}
#ov.labpanel .menu .freechip{background:#2f9d6a;color:#fff;border-radius:6px;padding:2px 7px;font-size:.68rem;margin-left:8px;letter-spacing:.04em}
/* leaderboard: quieter tabs, lighter rows */
#ov.labpanel .seg{background:rgba(255,255,255,.08);border-radius:12px;margin:2px 0 6px}
#ov.labpanel .seg button{color:rgba(255,255,255,.75);font-size:.8rem;letter-spacing:.1em;border-radius:9px}
#ov.labpanel .seg button.on{background:#d9812c;color:#1b1206;font-weight:700;box-shadow:none}
#ov.labpanel .datenav{font-size:.8rem;font-weight:600;color:rgba(255,255,255,.7);justify-content:center;gap:4px}
#ov.labpanel .datenav button{background:none!important;box-shadow:none!important;color:#fff;font-size:1.1rem;padding:0 10px}
#ov.labpanel .datenav button:disabled{opacity:.25}
#ov.labpanel .chips{margin:6px 0 4px}
#ov.labpanel .chips button{background:transparent;color:rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);font-size:.75rem;letter-spacing:.08em;padding:5px 12px}
#ov.labpanel .chips button.on{background:rgba(255,159,67,.9);color:#1b1206;box-shadow:none;font-weight:700}
#ov.labpanel .lb li{padding:11px 6px;border-radius:0;border-bottom:1px solid rgba(255,255,255,.08);background:none!important;font-size:.95rem}
#ov.labpanel .lb li.me{background:rgba(255,159,67,.14)!important;border-radius:8px}
#ov.labpanel .lb .lbnote{border:0;padding:44px 8px;color:rgba(255,255,255,.55);font-size:.9rem}
/* achievements: fewer, calmer tiles; empty history is one line */
#ov.labpanel .ach .tabs{background:rgba(255,255,255,.08)}
#ov.labpanel .ach .tabs button{color:rgba(255,255,255,.7);font-size:.8rem;letter-spacing:.08em}
#ov.labpanel .ach .tabs button.on{background:#d9812c;color:#1b1206;box-shadow:none}
#ov.labpanel .ach .statgrid div,#ov.labpanel .badges li,#ov.labpanel .mgrid li{background:rgba(255,255,255,.07)}
#ov.labpanel .ach .statgrid b{font-weight:500}
#ov.labpanel .ach.labempty .statgrid.three,#ov.labpanel .ach.labempty h3,#ov.labpanel .ach.labempty .cal,#ov.labpanel .ach.labempty .legend,#ov.labpanel .ach.labempty .dist,#ov.labpanel .ach.labempty .achsum,#ov.labpanel .ach.labempty .statgrid>div:nth-child(n+4){display:none}
#ov.labpanel .ach.labempty .statgrid{grid-template-columns:repeat(3,1fr)}
#ov.labpanel .labnote{margin:46px 8px 12px;text-align:center;line-height:1.5;color:rgba(255,255,255,.65);font-size:.92rem}
/* give-up check */
#ov.labpanel .gubar,#ov.labpanel .dbar{background:rgba(255,255,255,.12)}
/* end panel */
body.ended:not(.ovopen) #endPanel.labend{position:fixed!important;left:50%;top:50%;transform:translate(-50%,-46%);z-index:25;margin:0;padding:22px 18px 18px;text-align:center;align-items:stretch;overflow:visible}
#endPanel.labend .ehead{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0}
#endPanel.labend .ehead b{font:700 .72rem system-ui,sans-serif;letter-spacing:.3em;text-transform:uppercase;color:rgba(255,255,255,.65);font-size:.72rem}
#endPanel.labend .ehead span{font-size:.95rem;color:rgba(255,255,255,.85)}
#endPanel.labend .ehead em.bigpct{display:block;font:600 2.8rem system-ui,sans-serif;font-style:normal;color:#ffb560;line-height:1.1;margin-top:4px}
#endPanel.labend .eline{color:rgba(255,255,255,.65);font-size:.85rem;margin:8px 0 0}
#endPanel.labend .eline b{color:#fff}
#endPanel.labend .ebtns{margin-top:14px}
#endPanel.labend .ebtns>button{width:100%;height:54px;border-radius:14px;background:#d9812c;border:1px solid #e6963f;color:#1b1206;font-weight:700;letter-spacing:.1em;text-transform:uppercase;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
#endPanel.labend .erows{display:flex;gap:10px;margin-top:10px}
#endPanel.labend .erows button{flex:1;height:46px;border-radius:14px;background:rgba(255,159,67,.12);border:1px solid rgba(255,190,110,.5);color:#fff;font-size:.85rem;letter-spacing:.06em;box-shadow:none;padding:0 6px}
#endPanel.labend #postBox .postrow{background:rgba(255,255,255,.07);border-radius:12px;color:rgba(255,255,255,.8)}
body.ended:not(.ovopen) #ov{pointer-events:none}
/* climb over: the distance/letters panels are not needed behind the result */
body.ended:not(.ovopen) #hud2{opacity:0!important}
/* keep the mountain scene visible behind the floating panels (the original game hides it to make room) */
body.labpan .app>.mtn{display:block!important}
#ov.labpanel .ach.labempty .hleg,#ov.labpanel .ach.labempty .pbar,#ov.labpanel .ach.labempty .hbar{display:none}
#ov.labpanel .wlogo{font-size:1.7rem;margin-top:12px}
#ov.labpanel .wlogo svg{width:44px;height:27px}
/* the end panel is only there once the climb is over (my panel look must not override its hidden state) */
#endPanel.labend[hidden],body:not(.ended) #endPanel.labend{display:none!important}

/* the leaderboard card is always the same size, whichever tab (Everyone, Friends, a league) or period is showing; only the list scrolls */
#ov.labpanel .card:has(.lb){display:flex!important;flex-direction:column;height:min(600px,calc(100vh - 70px - 150px))!important;max-height:none!important}
#ov.labpanel .card:has(.lb) #ovB{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#ov.labpanel .card:has(.lb) #bNote{min-height:1.2em;margin:4px 0}
#ov.labpanel .card:has(.lb) #bList{flex:1 1 auto;min-height:0;overflow-y:auto;margin-bottom:0}
@media (max-height:700px){#ov.labpanel .card:has(.lb){height:calc(100vh - 70px - 132px)!important}}

/* the achievements card is always the same size as the leaderboard card, on Stats, Badges and Mountains; the content is tightened so each tab fits without scrolling */
#ov.labpanel .card:has(.ach){display:flex!important;flex-direction:column;height:min(600px,calc(100vh - 70px - 150px))!important;max-height:none!important}
#ov.labpanel .card:has(.ach) #ovB{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden}
@media (max-height:700px){#ov.labpanel .card:has(.ach){height:calc(100vh - 70px - 132px)!important}}
/* stats: numbers never cut off */
#ov.labpanel .ach .statgrid b{font-size:1.5rem!important;white-space:nowrap;overflow:visible;text-overflow:clip}
#ov.labpanel .ach .statgrid.three b{font-size:1.3rem!important}
#ov.labpanel .ach .statgrid div{padding-left:4px;padding-right:4px;min-width:0}
/* badges: five across so all 30 fit */
#ov.labpanel .ach .bgrid{grid-template-columns:repeat(5,1fr)!important;gap:7px 4px!important}
#ov.labpanel .ach .bgrid .bi{width:38px!important;height:38px!important;font-size:1.2rem!important}
#ov.labpanel .ach .bgrid small{font-size:.68rem!important;line-height:1.08!important;overflow-wrap:anywhere}
#ov.labpanel .ach-badges .bfeat{margin-bottom:8px}
#ov.labpanel .ach .bgrid{gap:3px 2px!important}
#ov.labpanel .ach .bgrid .bi{width:34px!important;height:34px!important;font-size:1.05rem!important;margin-bottom:2px}
#ov.labpanel .ach .bgrid small{font-size:.64rem!important}
#ov.labpanel .ach-badges .bfeat{padding:8px 12px!important;margin-bottom:6px!important;gap:10px!important}
#ov.labpanel .ach-badges .bfeat .bvicon{width:44px!important;height:44px!important;font-size:1.5rem!important}
#ov.labpanel .ach-badges .bfeat h3{font-size:.95rem!important;margin:0!important}
#ov.labpanel .ach-badges .bfeat p{margin:0!important;font-size:.85rem!important}
#ov.labpanel .ach-badges .bfeat .bstat{margin-top:4px!important}
#ov.labpanel .card:has(.ach) h2,#ov.labpanel .card:has(.lb) h2{margin-bottom:10px}
#ov.labpanel .ach-badges .bfeat{margin-bottom:4px!important}
#ov.labpanel .ach .bgrid .bi{margin-bottom:1px}

/* achievements: a taller card so the badges have room to breathe */
#ov.labpanel.labdock{--achh:calc(100vh - 70px - 134px)}
#ov.labpanel .card:has(.ach){height:min(660px,calc(100vh - 70px - 134px))!important}
@media (max-height:700px){#ov.labpanel .card:has(.ach){height:calc(100vh - 70px - 132px)!important}}
#ov.labpanel .ach .bgrid{gap:8px 3px!important}
#ov.labpanel .ach .bgrid .bi{width:36px!important;height:36px!important;margin-bottom:3px}
#ov.labpanel .ach .bgrid small{font-size:.66rem!important;line-height:1.12!important}
#ov.labpanel .ach-badges .bfeat{margin-bottom:10px!important}
#ov.labpanel.labdock:has(.ach){padding-bottom:122px}
#ov.labpanel .card:has(.ach){height:min(680px,calc(100vh - 70px - 122px))!important}
#ov.labpanel .ach .bgrid{gap:5px 3px!important}
#ov.labpanel .ach .bgrid .bi{margin-bottom:2px}
#ov.labpanel .ach-badges .bfeat{margin-bottom:8px!important}
#ov.labpanel .ach .bgrid{gap:4px 3px!important}
#ov.labpanel .ach .achfoot{margin:6px 0 0!important}
#ov.labpanel .ach .bgrid small{overflow-wrap:normal!important;letter-spacing:-.03em;font-weight:600!important;font-size:.65rem!important}
#ov.labpanel .ach .bgrid button{padding-left:0;padding-right:0}

/* badges: spare height in the card is shared out between the rows instead of left empty at the bottom */
#ov.labpanel .ach-badges{display:flex;flex-direction:column;min-height:100%}
#ov.labpanel .ach-badges .achbody{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
#ov.labpanel .ach-badges .bgrid{flex:1 1 auto;align-content:space-evenly;row-gap:4px!important}

/* ONE size for every card that sits above the icon row: start screen, Ranks, Badges, Friends and Options. The card fills the space between the chips and the icon row (up to 680px). */
#ov.labdock{padding-top:calc(env(safe-area-inset-top,0px) + 70px)!important;padding-bottom:122px!important}
#ov.labdock:has(#adWelcome:not([hidden])){padding-bottom:208px!important}
#ov.labdock .card{flex:1 1 auto!important;align-self:center;width:min(100%,380px)!important;max-width:380px!important;height:auto!important;min-height:0!important;max-height:680px!important;box-sizing:border-box;display:flex!important;flex-direction:column}
#ov.labdock .card #ovB{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
#ov.labdock .card:has(.ach) #ovB,#ov.labdock .card:has(.lb) #ovB{display:flex;overflow-x:hidden}
#ov.labdock .card #ovBtns{flex:none}
/* the start screen's contents are spread through the taller card */
#ov.labwel .card #ovB{justify-content:space-evenly}
#ov.labwel .card .welcome{display:flex;flex-direction:column;justify-content:space-evenly;flex:1 1 auto;gap:8px}
/* the options list is centred in its card */
#ov.labpanel .card:not(:has(.ach)):not(:has(.lb)) #ovB{justify-content:center}
@media (max-height:700px){#ov.labdock{padding-bottom:132px!important}}
#ov.labpanel.labdock .card,#ov.labpanel.labdock .card:has(.ach),#ov.labpanel.labdock .card:has(.lb){max-height:680px!important;height:auto!important}
#ov.labpanel.labdock{padding-bottom:122px!important}
#ov.labpanel.labdock:has(#adWelcome:not([hidden])){padding-bottom:208px!important}
@media (max-height:700px){#ov.labpanel.labdock{padding-bottom:132px!important}}
#ov.labdock .card #ovB{display:block}
#ov.labwel .card #ovB{display:flex;flex-direction:column;justify-content:space-evenly}
#ov.labpanel .card:not(:has(.ach)):not(:has(.lb)) #ovB{display:block}
#ov.labpanel .card:not(:has(.ach)):not(:has(.lb)) #ovB{display:flex;flex-direction:column;justify-content:center}

/* ---- Options: four equal buttons ---- */
#ov.labpanel .menu{display:flex;flex-direction:column;gap:12px;width:100%}
#ov.labpanel .menu button.lab-eq{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:62px;padding:0 20px;border-radius:16px;background:rgba(255,255,255,.09)!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;color:#fff;font:700 1.05rem "Figtree",system-ui,sans-serif!important;letter-spacing:.01em;text-transform:none;text-align:left;cursor:pointer;margin:0}
#ov.labpanel .menu button.lab-eq i{font-style:normal;font-size:.8rem;font-weight:800;letter-spacing:.08em;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.75)}
#ov.labpanel .menu button.lab-eq i.on{background:#d9812c;color:#1b1206}
#ov.labpanel .menu button.lab-eq em{font-style:normal;font-size:1.4rem;color:rgba(255,255,255,.6)}
#ov.labpanel .menu button.lab-sec{background:none!important;box-shadow:none!important;border:0!important;color:rgba(255,255,255,.75);font:600 .95rem "Figtree",system-ui,sans-serif!important;text-decoration:underline;text-underline-offset:3px;width:auto;margin:10px auto 0;padding:8px 12px}
#ov.labpanel .menu a.copy{margin-top:4px}

/* ---- How to play: the same card, rules large and easy to read ---- */
#ov.labpanel .welcome.help{display:block;padding:0}
#ov.labpanel .welcome.help .wlogo,#ov.labpanel .welcome.help .whello{display:none}
#ov.labpanel .welcome.help .wtoday{background:rgba(255,255,255,.07);border-radius:14px;margin:0 0 14px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;justify-content:center;color:#fff}
#ov.labpanel .welcome.help .wtoday .wpeak{font-size:1.05rem;margin:0;color:#fff}
#ov.labpanel .welcome.help .wtoday .wnum,#ov.labpanel .welcome.help .wtoday .wmeta{color:rgba(255,255,255,.8);font-size:.85rem}
#ov.labpanel .welcome.help .wsteps{gap:16px}
#ov.labpanel .welcome.help .wsteps i{width:32px;height:32px;font-size:1rem;background:#d9812c;color:#1b1206}
#ov.labpanel .welcome.help .wsteps b{font-size:1.1rem;color:#fff}
#ov.labpanel .welcome.help .wsteps span{font-size:.98rem;line-height:1.4;color:rgba(255,255,255,.85)}
#ov.labpanel .welcome.help .wsteps .wex em{color:rgba(255,255,255,.9);font-style:normal}
#ov.labpanel .card:has(.welcome.help) #ovBtns{display:flex;gap:10px}
#ov.labpanel .card:has(.welcome.help) #ovBtns button{flex:1;background:rgba(255,255,255,.09)!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;color:#fff!important;font:700 .95rem "Figtree",system-ui,sans-serif!important;min-height:52px}
#ov.labpanel .card:has(.welcome.help) h2{display:block!important;visibility:visible!important;position:static!important;height:auto!important;clip:auto!important;opacity:1!important}
#ov.labpanel .card:has(.welcome.help) #ovBtns button{font-size:.82rem!important;letter-spacing:.02em!important;text-transform:none!important;white-space:nowrap}
#ov.labpanel .welcome.help .mt,#ov.labpanel .welcome.help .mt small{color:#000!important;opacity:1!important}
#ov.labpanel .welcome.help .mt{font-weight:800;text-shadow:none}
#ov.labwel .card #ovBtns{display:flex;flex-direction:column;gap:10px}
#ov.labwel .card #ovBtns #labPrac{width:100%;min-height:52px;background:rgba(255,255,255,.09)!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)!important;color:#fff!important;font:700 .95rem "Figtree",system-ui,sans-serif!important;letter-spacing:.08em;text-transform:uppercase;border-radius:14px;margin:0}
#endPanel .labgone{display:none!important}
/* the end panel steps aside while another screen (leaderboard etc.) is open on top of it */
body.ovopen #endPanel.labend{visibility:hidden}
/* Continue is the main action; Share is secondary */
#endPanel.labend .labcont ~ button[data-a="0"],#endPanel.labend .labcont + button{background:rgba(255,255,255,.09)!important;border:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)!important;color:#fff!important}
/* end panel: only Continue and Share; best word readable; no leaderboard/options icons at the top right */
html[data-hud="2"] header.top .hbtns{display:none!important}
#endPanel.labend .ebest b{color:#000!important;font-weight:800}
#endPanel.labend .ebest span{color:#ffd27a}
#endPanel.labend .erow:not(:has(button:not(.labgone))){display:none}
#endPanel.labend button.labagain{background:rgba(255,159,67,.14)!important;border:1px solid rgba(255,190,110,.6)!important;box-shadow:none!important;color:#fff!important}
/* Options panel: no close icon (the bottom row is the way out) */
#ov.labpanel .card:has(#mList) .labx{display:none!important}
#ov.labpanel .card:has(.welcome.help) .labx{display:none!important}

/* more air between the profile / date chips and the card */
#ov.labdock{padding-top:calc(env(safe-area-inset-top,0px) + 92px)!important}
@media (max-height:700px){#ov.labdock{padding-top:calc(env(safe-area-inset-top,0px) + 84px)!important}}
#ov.labdock #labTop{top:calc(env(safe-area-inset-top,0px) + 14px)}
#ov.labpanel .card.labnox .labx{display:none!important}

/* bottom row: icons only, no text underneath; panels and the dock tighten up to match */
#ov.labdock #labDock{padding:10px 10px}
#ov.labdock #labDock button,#labDock button{font-size:0!important;line-height:0}
#labDock button i{margin:0 auto!important}
#ov.labdock,#ov.labpanel.labdock{padding-bottom:98px!important}
#ov.labdock:has(#adWelcome:not([hidden])),#ov.labpanel.labdock:has(#adWelcome:not([hidden])){padding-bottom:174px!important}
@media (max-height:700px){#ov.labdock,#ov.labpanel.labdock{padding-bottom:92px!important}}

/* Mountains tab: selected-mountain box always fits its frame */
#ov.labpanel .mfeat{height:auto!important;min-height:116px!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;overflow:hidden!important;gap:10px!important;padding:10px!important;align-items:center!important}
#ov.labpanel .mfeat .mvpic{flex:0 0 30%!important;max-width:30%!important;min-width:0!important}
#ov.labpanel .mfeat .mvpic svg{width:100%!important;height:70px!important}
#ov.labpanel .mfeat .ftxt{flex:1 1 0!important;min-width:0!important;height:auto!important;overflow:visible!important}
#ov.labpanel .mfeat h3{display:flex!important;flex-wrap:wrap;align-items:center;gap:2px 6px;white-space:normal!important;overflow:visible!important;font-size:1.1rem!important;line-height:1.15;min-width:0}
#ov.labpanel .mfeat h3 span.nm{overflow:visible!important;text-overflow:clip!important;white-space:normal;overflow-wrap:anywhere;min-width:0}
#ov.labpanel .card .mfeat p,#ov.labpanel .mfeat .ftxt>p{display:block!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;font-size:.8rem!important;line-height:1.25!important;margin:2px 0 0!important}
#ov.labpanel .mfeat .mres b{font-size:.95rem!important}
#ov.labpanel .mfeat .mdate{font-size:.74rem!important}
#ov.labpanel .ach-mountains .pgrid{box-sizing:border-box;max-width:100%;min-width:0}

/* polish: no close X on Leaderboard / Achievements (the bottom row navigates) */
#ov.labpanel .card:has(.lb) .labx,#ov.labpanel .card:has(.ach) .labx{display:none!important}
/* polish: short phones keep Badges on one screen */
@media (max-height:700px){
 #ov.labpanel .ach-badges #achFeat{display:none!important}
 #ov.labpanel .ach .bgrid .bi{width:30px!important;height:30px!important;font-size:.95rem!important;margin-bottom:1px!important}
 #ov.labpanel .ach .bgrid small{font-size:.58rem!important;line-height:1.05!important}
 #ov.labpanel .ach .bgrid{gap:2px 2px!important}
}
/* polish: Friends intro and Mountains hint */
.labnote.lab-mtn{margin:8px 12px 0;text-align:center;font-size:.8rem;color:rgba(255,255,255,.7)}
@media (max-height:700px){
 #ov.labpanel .mfeat{min-height:88px!important;padding:6px 10px!important}
 #ov.labpanel .mfeat .mvpic svg{height:52px!important}
}
