/* Last-loaded Fair Match layout. Desktop retains the existing showroom. */
.fm-mobile-shell{display:contents}.fm-app-bar{display:none}
body.fm-app-mode{overscroll-behavior:none}
body.fm-app-mode .topbar,body.fm-app-mode .site-head,body.fm-app-mode>.task-nav,
body.fm-app-mode>.customer-utility-nav,body.fm-app-mode>.page-hero,body.fm-app-mode>footer,
body.fm-app-mode>.beta-banner,body.fm-app-mode>.skip,body.fm-app-mode .mobile-bar,
body.fm-app-mode .gar-fab,body.fm-app-mode .support-chat-launch{display:none!important}
body.fm-app-mode #main>.wrap>:not(.auto-shopping-grid),
body.fm-app-mode .auto-vehicle-browser>:not(.fm-mobile-shell){display:none!important}
body.fm-app-mode .fm-mobile-shell{position:fixed;inset:0;z-index:800;box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100vh;height:100svh;height:100dvh;max-width:none;margin:0;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden;overscroll-behavior:none;background:#f4f6f8;color:#17212b;isolation:isolate}
body.fm-app-mode .fm-app-bar{flex:0 0 54px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #dde3e9;background:#f4f6f8}
.fm-app-bar a{display:inline-flex;align-items:center;gap:3px;min-height:44px;color:#263746;text-decoration:none;font-size:16px;font-weight:700}
.fm-app-bar svg{width:20px;height:20px}.fm-app-bar strong{font-size:21px;font-weight:800;white-space:nowrap}
body.fm-app-mode #fair-match-app{box-sizing:border-box;display:flex;flex:1 1 0;flex-direction:column;gap:0;min-height:0;width:100%;max-width:520px;margin:0 auto;padding:0;overflow:hidden;scroll-margin:0}
body.fm-app-mode #fair-match-app .fm-head{flex:0 0 auto;margin:0;padding:8px 0;text-align:center}
body.fm-app-mode #fair-match-app .fm-head .fm-title{font-size:22px;line-height:1.2;margin:0 0 6px}
body.fm-app-mode .fm-mobile-shell--cards .fm-head .fm-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.fm-app-mode #fair-match-app .fm-head .fm-sub{display:block;max-width:none;font-size:16px;line-height:1.3;margin:0;color:#465563}
body.fm-app-mode #fair-match-app .fm-deck{flex:1 1 0;min-height:0!important;height:auto!important;max-height:none;width:100%;margin:0;perspective:none;overflow:hidden;border-radius:20px;contain:layout}
body.fm-app-mode #fair-match-app .fm-card{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;height:100%;border:1px solid #dce2e8;border-radius:20px;box-shadow:none;overflow:hidden;background:#fff;transition:none;overflow-anchor:none}
body.fm-app-mode #fair-match-app .fm-card--2,body.fm-app-mode #fair-match-app .fm-card--3{visibility:hidden;transform:none}
body.fm-app-mode #fair-match-app .fm-img{position:relative;inset:auto;flex:0 0 47%;height:47%;min-height:0!important;width:100%;object-fit:contain;object-position:center;background:#edf1f4}
body.fm-app-mode #fair-match-app .fm-warranty{flex:none;position:static;align-self:flex-start;max-width:calc(100% - 24px);margin:8px 12px 0;padding:4px 9px;font-size:13px;line-height:1.3;white-space:normal;border-radius:6px;color:#354451;background:#f1f4f7;border:1px solid #dce2e8}
body.fm-app-mode #fair-match-app .fm-info{position:relative;inset:auto;box-sizing:border-box;flex:1 1 0;min-height:0;width:100%;padding:10px 62px 14px 14px;gap:4px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;overflow-anchor:none;color:#17212b}
body.fm-app-mode #fair-match-app .fm-name{order:1;font-size:21px;line-height:1.15;margin:0;flex:none}
body.fm-app-mode #fair-match-app .fm-subtitle{display:none}
body.fm-app-mode #fair-match-app .fm-spec{order:2;flex:none;font-size:16px;line-height:1.35;margin:0;color:#465563}
body.fm-app-mode #fair-match-app .fm-price{order:3;flex:none;margin:4px 0 0;padding:0;font-size:25px;line-height:1.15}
body.fm-app-mode #fair-match-app .fm-price-note{font-size:13px;line-height:1.35;margin-top:4px;padding:0;color:#4c5966;opacity:1}
body.fm-app-mode #fair-match-app #fm-top .fm-fit-eyebrow{order:4;flex:none;margin:12px 0 2px;font-size:16px;line-height:1.35}
body.fm-app-mode #fair-match-app #fm-top .fm-reasons{order:5;flex:none;display:flex;flex-direction:column;max-height:none;overflow:visible;gap:5px;margin:0}
body.fm-app-mode #fair-match-app .fm-reason{white-space:normal;font-size:16px;line-height:1.4}
body.fm-app-mode #fair-match-app .fm-carfax{order:6;flex:none;font-size:14px;line-height:1.4;margin:6px 0 0}
body.fm-app-mode #fair-match-app #fm-top .fm-estimate-basis{order:7;flex:none;font-size:14px;line-height:1.45;margin:6px 0 0}
body.fm-app-mode #fair-match-app .fm-up{position:absolute;right:10px;bottom:10px;width:44px;height:44px;min-height:44px;margin:0;z-index:5;border-radius:12px;background:#17212b;color:#fff}
body.fm-app-mode #fair-match-app .fm-controls{flex:0 0 62px;display:grid;grid-template-columns:1fr 1fr 1.2fr;align-items:center;gap:10px;width:100%;margin:0;padding:8px 0 0;box-sizing:border-box}
body.fm-app-mode #fair-match-app .fm-btn,body.fm-app-mode #fair-match-app .fm-btn--yes{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;flex:none;width:auto;min-width:0;min-height:48px;height:48px;margin:0;padding:8px;border:1px solid #d5dee7;border-radius:12px;box-shadow:none;background:#fff;color:#263746}
body.fm-app-mode #fair-match-app .fm-btn--yes{background:#b91409;border-color:#b91409;color:#fff}
body.fm-app-mode #fair-match-app .fm-btn svg{width:21px;height:21px;flex:none}
body.fm-app-mode #fair-match-app .fm-control-label{position:static;inset:auto;transform:none;display:inline!important;white-space:normal;font-size:16px;line-height:1.2;color:inherit}
body.fm-app-mode #fair-match-app .fm-foot{flex:0 0 42px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0;box-sizing:border-box;min-height:42px}
body.fm-app-mode #fair-match-app .fm-progress{margin:0;font-size:15px;line-height:1.25;white-space:nowrap}
body.fm-app-mode #fair-match-app #fm-see{min-height:44px;font-size:16px}
body.fm-app-mode #fair-match-app .fm-hint{display:none}
body.fm-app-mode #fair-match-app .fm-footnote{flex:none;margin:0 0 2px;text-align:center;font-size:16px!important;line-height:1.3;color:#51606d}
body.fm-app-mode #fair-match-app:has(.fm-intake),body.fm-app-mode #fair-match-app:has(.fm-matches){overflow:auto;overscroll-behavior:contain}
body.fm-app-mode #fair-match-app .fm-intake{margin:0;padding:0 4px 18px;max-width:none}
body.fm-app-mode #fair-match-app .fm-chips{gap:10px}
body.fm-app-mode #fair-match-app .fm-chip-btn{min-height:52px;font-size:18px}
body.fm-app-mode #fair-match-app .fm-stamp{top:28px;font-size:20px}
body.fm-app-mode .fm-app-bar a:focus-visible{outline:3px solid #a97419;outline-offset:2px;border-radius:4px}
@media(max-height:570px){body.fm-app-mode .fm-app-bar{flex-basis:46px}body.fm-app-mode #fair-match-app .fm-head{padding:4px 0}body.fm-app-mode #fair-match-app .fm-img{flex-basis:40%;height:40%}body.fm-app-mode #fair-match-app .fm-footnote{display:none}}
@media(max-height:540px) and (min-width:540px){body.fm-app-mode #fair-match-app{max-width:850px}body.fm-app-mode #fair-match-app .fm-card{display:grid;grid-template-columns:46% 54%;grid-template-rows:auto minmax(0,1fr)}body.fm-app-mode #fair-match-app .fm-img{grid-column:1;grid-row:1 / 3;min-height:0;height:100%;width:100%}body.fm-app-mode #fair-match-app .fm-warranty{grid-column:2;grid-row:1}body.fm-app-mode #fair-match-app .fm-info{grid-column:2;grid-row:2;height:100%;width:100%;padding-top:6px}body.fm-app-mode #fair-match-app .fm-controls{flex-basis:54px;padding-top:4px}body.fm-app-mode #fair-match-app .fm-foot{flex-basis:36px;min-height:36px}}
@media(prefers-reduced-motion:reduce){body.fm-app-mode *{scroll-behavior:auto!important}body.fm-app-mode .fm-card--swipe-hint{animation:none!important}}

/* The private readable-default layer is preserved; these scoped rules fit its text in the phone frame. */
body.fm-app-mode #fair-match-app .fm-swipe-instructions{flex:none;margin:0 0 8px;gap:2px;font-size:16px!important;line-height:1.3}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info{padding:10px 68px 14px 14px;gap:4px;order:1}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-name{font-size:21px;line-height:1.15;order:1}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-spec{font-size:16px!important;line-height:1.35;order:2}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-price{font-size:25px;line-height:1.15;order:3}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-price-note{font-size:16px!important;line-height:1.35}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fd-badge{order:4;margin:10px 0 2px;max-width:100%}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-fit-eyebrow{order:5;font-size:16px!important}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-reasons{display:flex!important;order:6}
body.fm-app-mode #fair-match-app .fm-card--top .fm-up{position:absolute;inset:auto 8px 10px auto;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-height:54px;width:54px;height:54px;padding:4px;margin:0;border-radius:10px;overflow:hidden}
body.fm-app-mode #fair-match-app .fm-card--top .fm-up::after{content:'Details';font-size:12px;line-height:1.1}
body.fm-app-mode #fair-match-app .fm-card--top .fm-up svg{width:19px;height:19px;transform:rotate(90deg)}
body.fm-app-mode #fair-match-app .fm-controls .fm-btn{flex-direction:row;min-height:48px;height:48px}
body.fm-app-mode #fair-match-app .fm-foot .fm-progress{font-size:15px!important;line-height:1.3}
body.fm-app-mode #fair-match-app .fm-foot #fm-see{min-height:44px;font-size:16px!important}
body.fm-app-mode #fair-match-app .fm-head .fm-sub{font-size:16px!important;line-height:1.3}

body.fm-app-mode #fair-match-app .fm-card--top.fm-card--swipe-hint{--fm-demo-shift:8px;--fm-demo-turn:.6deg;--fm-demo-scale:1}
body.fm-app-mode .fm-app-bar{position:relative;z-index:20}
.fm-app-menu{position:relative}.fm-app-menu>summary{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:50px;padding:0 4px;font-size:16px;font-weight:700;list-style:none;cursor:pointer}
.fm-app-menu>summary::-webkit-details-marker{display:none}.fm-app-menu-panel{position:absolute;right:0;top:100%;z-index:30;display:flex;flex-direction:column;width:min(280px,calc(100vw - 28px));padding:12px;border:1px solid #d7e0e7;border-radius:12px;background:#fff;box-shadow:0 12px 35px #17212b26}
.fm-app-menu-panel a,.fm-app-menu-panel button{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:6px;background:#fff;color:#263746;text-align:left;text-decoration:none;font:700 17px/1.35 system-ui;cursor:pointer}
.fm-app-menu-panel :is(a,button):hover{background:#f2f5f8}.fm-app-menu-panel .language-access{margin:8px 0 0;padding:8px 12px;border-top:1px solid #e0e5eb;display:flex;flex-direction:column;align-items:stretch;gap:8px}.fm-app-menu-panel .language-access label{position:static;clip-path:none;width:auto;height:auto;font-size:16px}.fm-app-menu-panel .language-access select{width:100%;min-height:48px;font-size:18px}
@media(max-height:700px){body.fm-app-mode #fair-match-app .fm-img{flex-basis:40%;height:40%}}
@media(max-height:620px){body.fm-app-mode #fair-match-app .fm-head{padding:0}body.fm-app-mode #fair-match-app .fm-head .fm-sub{display:none!important}}
html[lang^="es"] body.fm-app-mode #fair-match-app .fm-card--top .fm-up::after{content:'Detalles'}

@media(max-height:540px) and (min-width:540px){body.fm-app-mode #fair-match-app .fm-img{height:100%}}

body.fm-app-mode #fair-match-app .fm-card--top.fm-card--leaving{transition:transform .22s ease-in,opacity .22s ease-in!important}
@media(prefers-reduced-motion:reduce){body.fm-app-mode #fair-match-app .fm-card--top.fm-card--leaving{transition:none!important}}
/* Account preferences stay in My Garage; async account prompts cannot resize the swipe frame. */
body.fm-app-mode .fm-mobile-shell>.preference-save-strip{display:none}
body.fm-app-mode #fair-match-app .fm-card--top .fm-up,body.fm-app-mode #fair-match-app .fm-card--top .fm-up:hover{background:#17212b;color:#fff;opacity:1}

/* Stable instruction slot and desktop card task; details can scroll inside the card. */
#fair-match-app{overflow-anchor:none}
#fair-match-app .fm-swipe-instructions{box-sizing:border-box;flex:0 0 auto;min-height:54px;margin:0;padding:7px 0;font-size:16px;line-height:1.25;text-align:center}
#fair-match-app .fm-swipe-instructions strong{display:block;font-size:16px;line-height:1.3}
#fair-match-app .fm-swipe-instructions span{display:block;font-size:14px;line-height:1.25}
#fair-match-app .fm-card{overflow-anchor:none}
@media(min-width:768px) and (min-height:541px){
 body:not(.fm-app-mode) #fair-match-app{display:flex;flex-direction:column;box-sizing:border-box;max-width:640px;height:calc(100dvh - 112px);max-height:820px;margin:0 auto;padding:0;scroll-margin-top:92px}
 body:not(.fm-app-mode) #fair-match-app .fm-head{flex:0 0 auto;margin:0;padding:4px 0}
 body:not(.fm-app-mode) #fair-match-app .fm-title{font-size:26px;line-height:1.15;margin:0}
 body:not(.fm-app-mode) #fair-match-app .fm-deck{flex:1 1 0;min-height:0!important;height:auto!important;margin:0;width:100%;overflow:hidden}
 body:not(.fm-app-mode) #fair-match-app .fm-card{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;height:100%;border-radius:18px;overflow:hidden}
 body:not(.fm-app-mode) #fair-match-app .fm-card--2,body:not(.fm-app-mode) #fair-match-app .fm-card--3{visibility:hidden}
 body:not(.fm-app-mode) #fair-match-app .fm-img{position:relative;inset:auto;flex:0 0 46%;height:46%;min-height:0!important;width:100%;object-fit:contain;background:#edf1f4}
 body:not(.fm-app-mode) #fair-match-app .fm-warranty{position:static;flex:none;align-self:flex-start;margin:6px 12px 0;padding:4px 8px;font-size:13px;line-height:1.25}
 body:not(.fm-app-mode) #fair-match-app .fm-info{position:relative;inset:auto;flex:1 1 0;min-height:0;width:100%;padding:10px 64px 12px 14px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
 body:not(.fm-app-mode) #fair-match-app .fm-name{font-size:24px;line-height:1.15;margin:0}
 body:not(.fm-app-mode) #fair-match-app .fm-spec{font-size:16px;line-height:1.3;margin:4px 0}
 body:not(.fm-app-mode) #fair-match-app .fm-price{font-size:26px;line-height:1.15;margin:5px 0 0}
 body:not(.fm-app-mode) #fair-match-app .fm-price-note{font-size:14px;line-height:1.3;margin-top:4px}
 body:not(.fm-app-mode) #fair-match-app .fm-up{position:absolute;bottom:10px;right:10px;width:44px;height:44px;min-height:44px}
 body:not(.fm-app-mode) #fair-match-app .fm-controls{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:10px;flex:0 0 64px;align-items:center;margin:0;padding:8px 0 0}
 body:not(.fm-app-mode) #fair-match-app .fm-btn{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:7px;width:auto;height:48px;min-height:48px;padding:8px;border-radius:12px}
 body:not(.fm-app-mode) #fair-match-app .fm-btn svg{width:22px;height:22px}
 body:not(.fm-app-mode) #fair-match-app .fm-control-label{position:static;transform:none;font-size:16px;line-height:1.2;white-space:normal}
 body:not(.fm-app-mode) #fair-match-app .fm-foot{flex:0 0 44px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0}
 body:not(.fm-app-mode) #fair-match-app .fm-progress{font-size:15px;margin:0}
 body:not(.fm-app-mode) #fair-match-app .fm-hint{display:none}
 body:not(.fm-app-mode) #fair-match-app .fm-footnote{font-size:14px!important;line-height:1.3;margin:0 0 4px;flex:0 0 auto}
 body:not(.fm-app-mode) #fair-match-app:has(.fm-intake),body:not(.fm-app-mode) #fair-match-app:has(.fm-matches){overflow:auto}
}
@media(max-height:620px){body.fm-app-mode #fair-match-app .fm-swipe-instructions{min-height:44px;padding:4px 0}body.fm-app-mode #fair-match-app .fm-swipe-instructions span{display:none}body.fm-app-mode #fair-match-app .fm-control-label{font-size:15px}}

@media(min-width:768px) and (min-height:541px){
 body:not(.fm-app-mode) #fair-match-app .fm-name{order:1;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-spec,body:not(.fm-app-mode) #fair-match-app .fm-subtitle{order:2;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-price{order:3;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-info>.fd-badge{order:4;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-fit-eyebrow{order:5;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-reasons{order:6;flex:none}
 body:not(.fm-app-mode) #fair-match-app .fm-carfax{order:7;flex:none}
}

/* Keep the detailed accessible name while using a compact visible Details label. */
@media(min-width:768px) and (min-height:541px){
 body:not(.fm-app-mode) #fair-match-app .fm-up{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;inset:auto 10px 10px auto;margin:0;padding:4px;width:54px;height:54px;background:#17212b;color:#fff}
 body:not(.fm-app-mode) #fair-match-app .fm-up::after{content:'Details';font-size:12px;line-height:1.1}
 body:not(.fm-app-mode) #fair-match-app .fm-up svg{width:18px;height:18px}
 html[lang^="es"] body:not(.fm-app-mode) #fair-match-app .fm-up::after{content:'Detalles'}
}
/* The in-frame saved count/Undo remain visible; keep desktop save feedback off the controls. */
body:has(#fair-match-app) .gar-fab{display:none!important}
@media(min-width:768px) and (min-height:541px){body:has(#fair-match-app) .gar-toast{top:12px;bottom:auto;max-width:min(480px,calc(100vw - 400px));}}
@media(max-width:360px){
 body.fm-app-mode #fair-match-app .fm-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex-basis:52px;min-height:52px}
 body.fm-app-mode #fair-match-app .fm-foot .fm-progress{font-size:14px!important;white-space:normal}
 body.fm-app-mode #fair-match-app #fm-see{font-size:14px!important;white-space:normal;padding:2px;min-width:0;width:100%;line-height:1.2}
 body.fm-app-mode #fair-match-app #fm-undo svg{display:none}
}

@media(max-width:360px) and (max-height:620px){body.fm-app-mode #fair-match-app .fm-img{flex-basis:28%;height:28%}}
/* Match the existing top-card rules so price precedes the certification details. */
@media(min-width:768px) and (min-height:541px){
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fm-price{order:3}
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fd-badge{order:4}
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fm-name{font-size:24px;line-height:1.15}
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fm-subtitle{display:none}
}

/* Fill with the actual inventory photo; crop studio space rather than stretching the car. */
body.fm-app-mode #fair-match-app #fm-top .fm-img{object-fit:cover;object-position:50% 64%}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-warranty{order:4;align-self:flex-start;max-width:100%;margin:6px 0 2px;white-space:normal}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fd-badge{order:5}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-fit-eyebrow{order:6}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-reasons{order:7}
body.fm-app-mode #fair-match-app .fm-card--top .fm-info .fm-carfax{order:8}
@media(min-width:768px) and (min-height:541px){
 body:not(.fm-app-mode) #fair-match-app{max-width:430px}
 body:not(.fm-app-mode) #fair-match-app #fm-top .fm-img{flex-basis:56%;height:56%;object-fit:cover;object-position:50% 64%}
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fm-warranty{order:4;align-self:flex-start;max-width:100%;margin:6px 0 2px;white-space:normal}
 body:not(.fm-app-mode) #fair-match-app .fm-card--top .fm-info .fd-badge{order:5}
 body:not(.fm-app-mode) #fair-match-app .fm-fit-eyebrow{order:6}
 body:not(.fm-app-mode) #fair-match-app .fm-reasons{order:7}
 body:not(.fm-app-mode) #fair-match-app .fm-carfax{order:8}
}
@media(max-width:360px) and (max-height:620px){body.fm-app-mode #fair-match-app .fm-img{flex-basis:35%;height:35%}}

body.fm-app-mode #fair-match-app #fm-top .fm-info .fm-fit-eyebrow{order:6}
body.fm-app-mode #fair-match-app #fm-top .fm-info .fm-reasons{order:7}

/* The phone photo handles one-finger swipes; details retain vertical scrolling. */
body.fm-app-mode #fair-match-app #fm-top .fm-img {
  pointer-events: auto;
  touch-action: pinch-zoom;
  -webkit-user-drag: none;
}

/* October 17: the left/right choices match the direction of the swipe. */
#fair-match-app .fm-swipe-instructions{min-height:64px;padding:6px 0}
#fair-match-app .fm-swipe-instructions .fm-direction-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#fair-match-app .fm-swipe-instructions .fm-direction{display:block;font-size:16px;line-height:1.2;color:#344351}
#fair-match-app .fm-swipe-instructions .fm-direction--yes{color:#a4130a}
#fair-match-app .fm-swipe-instructions .fm-direction small{display:block;font-size:14px;font-weight:600;line-height:1.2}
#fair-match-app .fm-swipe-instructions .fm-swipe-alternative{display:block;margin-top:4px;font-size:14px;line-height:1.2}
#fair-match-app .fm-controls,body.fm-app-mode #fair-match-app .fm-controls,body:not(.fm-app-mode) #fair-match-app .fm-controls{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:8px}
#fair-match-app .fm-controls .fm-btn{gap:4px;padding:6px;min-height:50px}
#fair-match-app .fm-controls #fm-undo{flex-direction:column;gap:2px}
#fair-match-app .fm-controls #fm-undo svg{width:18px;height:18px}
#fair-match-app .fm-controls #fm-undo .fm-control-label{font-size:13px}
#fair-match-app .fm-controls :is(#fm-no,#fm-yes) .fm-control-label{font-weight:750;font-size:16px;line-height:1.15}
#fair-match-app .fm-stamp--yes{left:auto;right:16px;transform:none}
#fair-match-app .fm-stamp--no{right:auto;left:16px;transform:none}
#fair-match-app .fm-stamp{max-width:calc(100% - 32px);padding:8px 10px;font-size:18px;line-height:1.2;pointer-events:none}
@media(max-width:360px){#fair-match-app .fm-controls,body.fm-app-mode #fair-match-app .fm-controls{grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr);gap:6px}#fair-match-app .fm-controls :is(#fm-no,#fm-yes) .fm-control-label{font-size:14px}#fair-match-app .fm-swipe-instructions .fm-direction{font-size:15px}}
@media(max-height:620px){body.fm-app-mode #fair-match-app .fm-swipe-instructions{min-height:44px;padding:2px 0}body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-direction-pair,body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-direction{display:grid}body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-direction small{display:block}body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-direction>span{display:block}body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-swipe-alternative{display:none}}

/* Full-height phone shopping: the car owns the frame; fit details remain in More. */
body.fm-app-mode .fm-mobile-shell{padding-right:max(8px,env(safe-area-inset-right));padding-left:max(8px,env(safe-area-inset-left))}
body.fm-app-mode .fm-app-bar{flex-basis:48px}
body.fm-app-mode .fm-mobile-shell--cards #fair-match-app .fm-head{display:none}
body.fm-app-mode #fair-match-app .fm-swipe-instructions{display:flex;justify-content:center;min-height:48px;margin:0;padding:4px 0 6px;gap:0}
body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-direction-pair{width:100%}
body.fm-app-mode #fair-match-app .fm-swipe-instructions .fm-swipe-alternative{display:none}
body.fm-app-mode #fair-match-app #fm-top .fm-img{flex:0 0 min(55%,78vw);height:min(55%,78vw);object-fit:contain;object-position:center;background:#edf1f4}
body.fm-app-mode #fair-match-app .fm-deck,body.fm-app-mode #fair-match-app .fm-card{border-radius:16px}
body.fm-app-mode .fm-menu-fit-note{box-sizing:border-box;margin:8px 0 0;padding:12px;border-top:1px solid #dde3e9;white-space:normal;color:#465563;font:14px/1.45 system-ui;text-align:left}
body.fm-app-mode .fm-app-menu-panel{max-height:calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
@media(max-height:700px){body.fm-app-mode #fair-match-app #fm-top .fm-img{flex-basis:min(49%,69vw);height:min(49%,69vw)}}
@media(max-height:620px){body.fm-app-mode #fair-match-app #fm-top .fm-img{flex-basis:min(44%,62vw);height:min(44%,62vw)}}
@media(max-height:540px) and (min-width:540px){body.fm-app-mode #fair-match-app #fm-top .fm-img{height:100%;object-fit:contain}}

@media(max-width:360px){body.fm-app-mode #fair-match-app .fm-controls{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)}}
@media(max-width:360px) and (max-height:620px){body.fm-app-mode #fair-match-app #fm-top .fm-img{flex-basis:35%;height:35%}}
