/* Phone-first app shell. Bottom navigation stays reachable with one hand. */
.nav-icon{display:none}
.topbar .nav .nav-label{background:none;font-size:inherit;margin:0;padding:0}
.comparison-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#244f3e;color:white;border-radius:18px;padding:17px 20px;margin:0 0 16px}
.comparison-summary p{font-size:12px;color:#dbe9ce;margin:0 0 4px}
.comparison-summary strong{font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.15}
.comparison-summary small{display:block;font-size:11px;color:#dbe9ce;margin-top:6px}
.summary-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#ffffff12;color:#e2edb8;font-size:27px}
.comparison-filters{display:flex;gap:8px;margin:0 0 15px;overflow-x:auto;scrollbar-width:none}
.comparison-filters button{flex:none;border:1px solid #dde5d8;border-radius:22px;background:white;color:#586d4e;padding:9px 15px;min-height:42px;font-size:12px}
.comparison-filters button[aria-pressed=true]{background:#e2edb8;border-color:#c8d7a2;color:#244f3e;font-weight:700}
.coop-product-heading>small{font-size:10px;max-width:140px}
.french-replacement .replacement-thumb{width:43px;height:43px}
.french-replacement p{font-size:13px;line-height:1.3}
.french-replacement small{font-size:10px}
.replacement-thumb .empty-img,.replacement-photo .empty-img{font-size:9px;line-height:1.3;text-align:center;color:#87917f}
.offer-difference{display:block;color:#8b622e;font-size:11px;line-height:1.4;margin-top:4px}
.best-price-tag{display:inline-flex;align-items:center;gap:4px;color:#2f663c;font-size:10px;font-weight:650}
.coop-product.is-cheaper .store-side.france-side>strong{color:#2e6b3d}
.coop-product .tradeoff small{display:none}
.coop-product .tradeoff-values{flex-wrap:wrap}
.better-offer-button{display:block;width:100%;border:1px solid #cddcb9;background:#f0f6e7;border-radius:10px;text-align:left;color:#365a2e;padding:10px 12px;min-height:44px;font-size:12px;font-weight:600;margin-top:10px}
.usage-offer-button{display:block;width:100%;border:0;background:#f5f1e7;border-radius:10px;text-align:left;color:#806438;padding:9px 11px;min-height:44px;font-size:11px;line-height:1.45;margin-top:8px}
.price-coverage{font-size:11px;color:#74836b;margin:0 0 14px;line-height:1.5}
.replacement-list-note{font-size:12px;line-height:1.5;color:#617456;margin:0 0 12px}
.replacement-card .offer-difference{margin:5px 0 0}
.replacement-card .ticket-unit-line{display:none}
.comparison-empty{padding:30px 14px;text-align:center;color:#617456;background:white;border:1px solid #e1e8da;border-radius:16px}
.home-view .home-heading p{font-size:14px;line-height:1.5;color:#617358;margin:9px 0 0}
@media(max-width:680px){
 :root{--app-nav:calc(64px + env(safe-area-inset-bottom,0px))}
 html{scroll-padding-top:74px}
 body{overscroll-behavior-y:none}
 .topbar,.at-home .topbar{height:60px;min-height:60px;position:sticky;top:0;z-index:20;padding:8px 17px;background:#f8faf5;backdrop-filter:none;border-bottom:1px solid #e4e9df;gap:12px}
 .brand{font-size:26px}.brand-icon{width:34px;height:34px;border-radius:11px;margin-right:8px}.brand-icon svg{width:26px;height:26px}
 .topbar .header-actions{gap:9px;margin-left:auto}
 .topbar .scan-header{min-width:40px;min-height:40px;justify-content:center;padding:9px;border-radius:12px}
 .topbar .scan-header svg{width:20px;height:20px}
 .topbar .scan-header span{display:none}
 .topbar .icon-button{width:34px;height:34px;font-size:15px}
 .topbar nav{position:fixed;top:auto;bottom:0;left:0;right:0;height:var(--app-nav);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:5px 10px calc(5px + env(safe-area-inset-bottom,0px));background:#fffffff5;border-top:1px solid #dce4d5;box-shadow:0 -3px 14px #20372d06;backdrop-filter:blur(18px);z-index:25}
 .topbar .nav{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border:0;border-radius:13px;padding:6px 2px;font-size:10px;color:#819078;line-height:1.1}
 .topbar .nav.active{background:#eef4e5;color:#244f3e;font-weight:700}
 .nav-icon{display:block;width:22px;height:22px}
 .topbar .nav #navCount{position:absolute;right:13px;top:2px;background:#e1ebce;color:#55723f;font-size:8px;border-radius:9px;padding:2px 4px;margin:0;line-height:1.2}
 .shell{padding:18px 14px calc(var(--app-nav) + 24px);max-width:540px}
 .page-footer{display:none}
 .ticket-overview .shell{padding-top:12px;padding-bottom:calc(var(--app-nav) + 24px)}
 .ticket-overview .page-heading{margin-bottom:12px}
 .ticket-overview .ticket-tools{gap:8px}
 .ticket-overview .receipt-chip{padding:9px 10px;border-radius:13px;gap:9px}
 .ticket-overview .receipt-chip>span:first-child{font-size:22px}
 .ticket-overview .receipt-chip strong{font-size:11px}
 .ticket-overview .receipt-chip small{font-size:10px}
 .ticket-overview .receipt-chip b{font-size:17px}
 .ticket-overview .ticket-delete-link{display:none}
 .ticket-overview .ticket-comparison-heading{margin:16px 0 12px}
 .ticket-comparison-heading h2{font-size:26px;letter-spacing:-.8px;margin-bottom:4px}
 .ticket-comparison-heading p{font-size:12px}
 .comparison-summary{padding:13px 16px;border-radius:16px;margin-bottom:12px}
 .comparison-summary strong{font-size:29px}.comparison-summary p{font-size:11px}.comparison-summary small{font-size:10px;margin-top:4px}
 .summary-mark{width:40px;height:40px;font-size:23px}
 .comparison-filters{gap:7px;margin-bottom:13px}
 .comparison-filters button{font-size:11px;min-height:38px;padding:8px 12px}
 .price-coverage{font-size:10px;margin-bottom:12px}
 .ticket-overview .ticket-products{gap:12px}
 .coop-product{padding:13px 14px;border-radius:17px}
 .coop-product-heading{margin-bottom:10px;gap:9px}
 .coop-product-heading h3{font-size:16px;line-height:1.3}
 .coop-product-heading>small{font-size:9px;max-width:100px;padding-top:1px}
 .store-comparison{gap:10px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}
 .store-label{font-size:12px;margin-bottom:3px}
 .store-label small{display:inline;font-size:9px;margin-left:4px;color:#7d8d72}
 .original-side .store-label small{display:none}
 .store-side>strong{font-size:25px;letter-spacing:-.7px}
 .store-side>strong small{font-size:11px}
 .store-quantity{margin-top:2px;font-size:11px}
 .french-replacement{margin-top:8px;padding:6px 0;gap:9px;align-items:center}
 .french-replacement .replacement-thumb{width:42px;height:38px}
 .french-replacement small{font-size:9px}
 .french-replacement p{font-size:12px;margin-top:2px}
 .offer-difference{font-size:10px;margin-top:3px}
 .coop-product .tradeoff{padding:9px 11px;margin-top:5px;border-radius:11px}
 .coop-product .tradeoff-values{gap:8px}
 .coop-product .tradeoff-values strong{font-size:24px;letter-spacing:-.6px}
 .coop-card-bottom{margin-top:6px;padding-top:5px;gap:10px}
 .coop-card-bottom>.button{min-height:44px;padding:7px 14px;border-radius:10px;font-size:12px}
 .coop-card-bottom .ticket-card-details>summary{min-height:42px;font-size:11px;gap:9px}
 .comparison-save-bar{display:none}
 .comparison-save-bar .button{min-height:43px;border-radius:10px;font-size:13px}
 .ticket-overview .source-note{margin-bottom:0;margin-top:10px;font-size:10px}
 .comparison-export{padding:8px 2px 4px}
 .toast{bottom:calc(var(--app-nav) + 10px);max-width:calc(100% - 26px);font-size:12px;z-index:60}
 .home-view{gap:19px;padding:5px 2px 0}
 .home-view h1{font-size:29px;letter-spacing:-1px}
 .home-view .home-heading p{font-size:13px;max-width:290px}
 .home-view .home-camera{min-height:58px;font-size:15px;border-radius:16px}
 .home-view .home-upload{font-size:12px}
 .home-view .home-list-card{padding:14px;gap:12px}
 .home-view .home-recent{margin-top:2px}
 .home-view .home-pending{font-size:12px}
 input,select,textarea{font-size:16px!important}
 dialog{max-width:none!important;width:100%!important;max-height:calc(100dvh - 12px)!important;border-radius:22px 22px 0 0!important;margin:auto 0 0!important;padding:0;border:0}
 dialog::backdrop{background:#132b2390;backdrop-filter:blur(3px)}
 .modal-head{position:sticky;top:0;z-index:2;background:white;padding:16px!important;border-bottom:1px solid #e5eadf}
 .modal-head h2{font-size:18px!important}
 .modal-head .icon-button{height:44px;width:44px}
 .modal-body{padding:16px 15px calc(20px + env(safe-area-inset-bottom,0px))!important}
 .choice-modal .picker-intro{margin-bottom:9px}
 .picker-hint{font-size:11px;margin-bottom:12px}
 .replacement-grid{grid-template-columns:1fr;gap:10px}
 .replacement-card{position:relative;padding:12px!important;border-radius:15px}
 .replacement-card .replacement-top{margin-bottom:7px}
 .replacement-product{grid-template-columns:48px minmax(0,1fr);gap:10px}
 .replacement-photo{width:48px;height:48px}
 .replacement-product h3{font-size:14px}
 .replacement-product p{font-size:11px}
 .replacement-cash{margin:8px 0 3px}.replacement-cash strong{font-size:23px}
 .replacement-card .tradeoff{padding:8px 10px;margin:5px 0}
 .replacement-card .tradeoff-values strong{font-size:22px}
 .replacement-card .tradeoff small{display:none}
 .replacement-amount{font-size:10px;margin:4px 0}
 .replacement-detail>summary{min-height:40px;font-size:11px}
 .replacement-card>.button{min-height:44px}
 .picker-swiss{padding:12px}.picker-swiss p{font-size:11px}
 .habits-view .habits-heading h1,.tickets-view h1{font-size:27px}
 .habits-view .habit-item{padding:13px;border-radius:16px;gap:10px}
 .habits-view .habit-copy h4{font-size:15px;line-height:1.35}
 .habits-view .habit-copy p{font-size:12px;line-height:1.4}
 .habits-view .habit-copy .offer-difference{font-size:10px;line-height:1.4}
 .habits-view .habit-purchase{padding:10px 12px}
 .habits-view .habit-cash-label{display:none}
 .habits-view .habit-cash-quantity{font-size:25px}
 .habits-view .habit-purchase-total{font-size:12px;margin-top:5px}
 .habits-view .habit-purchase-total>span{display:none}
 .habits-view .habit-compare{display:none}
 .habits-view .habit-card-footer{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
 .habits-view .habit-detail{order:0;flex:1;min-width:0}
 .habits-view .habit-detail[open]{flex-basis:100%;order:2}
 .habits-view .habit-rechoose{order:1;margin-left:auto;font-size:12px;min-height:44px;border-radius:10px;padding:8px 15px}
 .habits-view .habit-detail>summary{font-size:11px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
