/* Shared mobile app shell. Desktop keeps its two-column calculator. */
.mobile-heading{display:none}
@media(min-width:901px){
  .calc>.panel{grid-column:1;grid-row:1}
  .calc>.result{grid-column:2;grid-row:1}
}
@media(max-width:900px){
  .desktop-heading{display:none}
  .mobile-heading{display:inline}
  .seller-page .hero h1{text-wrap:balance}
  .seller-page .exchange-hero.hero{padding-top:24px;padding-bottom:24px}
  html{scroll-padding-top:84px;scroll-padding-bottom:90px}
  html:has(.appbar.show){scroll-padding-top:156px}
  body,body:has(.appbar){padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  header .wrap{height:64px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .brand img{width:210px;max-width:calc(100vw - 96px)}
  .menu-toggle{width:44px;height:44px;border-radius:14px;background:#ffffff80}
  header nav{top:72px;left:12px;right:12px;max-height:calc(100dvh - 164px - env(safe-area-inset-bottom));border-radius:20px;box-shadow:0 12px 40px #18211e18}
  .mobile-routes{position:fixed;z-index:70;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(244,243,238,.97);backdrop-filter:blur(18px);border-top:1px solid var(--line2);box-shadow:0 -4px 24px #18211e06}
  .mobile-routes a:not(.btn){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:6px 4px;border-radius:14px;font-size:11px;line-height:1.3;color:var(--muted);touch-action:manipulation}
  .mobile-routes a[aria-current=page]{background:var(--soft-green);color:var(--deep-green);font-weight:600}
  .mobile-routes svg{flex:none}
  .wrap{padding-left:16px;padding-right:16px}
  .exchange-hero.hero,.exchange-hero.hero.hero-left{padding:28px 16px}
  .hero .eyebrow{margin-bottom:14px}
  .hero h1,.hero.hero-left h1{font-size:clamp(30px,8.5vw,42px);margin-bottom:16px;line-height:1.08}
  .hero p,.hero.hero-left p{margin-bottom:20px}
  .hero .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .hero .actions .btn{padding:12px 10px;min-height:48px;font-size:13px}
  .seller-page .hero .trust{display:grid;gap:6px;margin-top:18px;font-size:12px}
  .seller-page main{display:flex;flex-direction:column}
  .seller-page main>.hero{order:-3;width:100%}
  .seller-page main>#value{order:-2}
  .seller-page main>.logoband{order:-1}
  section{padding:32px 0}
  .sec-head{margin-bottom:20px}
  h2,.sec-head h2{font-size:26px}
  .sec-head p{font-size:15px}
  .calc{gap:14px}
  .panel,.result,.card,.supply-item,.path-card,.business-card,.form-layout{border-radius:20px}
  .panel,.result{padding:20px}
  .result .k{font-size:13px}
  .result .val{font-size:clamp(30px,8.5vw,40px);margin-top:8px}
  .result .bar{margin-top:16px}
  .result .note{font-size:14px;line-height:1.5;margin-top:12px}
  .result .note a{text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:12px 0;margin:-12px 0}
  .result .btn{margin-top:18px;min-height:48px}
  input,select,textarea{font-size:16px;border-radius:12px;min-height:50px}
  .field{margin-bottom:20px}
  label{font-size:14px}
  #sys{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #sys .system-choice{min-height:54px;border-radius:12px;padding:10px 22px 10px 8px;gap:6px;font-size:12px}
  #sys .brand-mark{flex-basis:20px;width:20px;height:24px}
  .chip,.seg button{min-height:44px}
  .btn:active,.chip:active,.mobile-routes a:active{filter:brightness(.94)}
  .appbar{top:72px;bottom:auto;left:12px;right:12px;padding:10px 12px;border-radius:16px;transform:translateY(-180%);visibility:hidden;pointer-events:none;box-shadow:0 4px 24px #18211e14}
  .appbar.show{transform:translateY(0);visibility:visible;pointer-events:auto}
  .appbar .est .k{font-size:11px}
  .appbar .est .v{font-size:18px}
  .appbar .btn{min-height:44px;padding:10px 14px;font-size:13px}
  body:has(input:focus,textarea:focus,select:focus) .mobile-routes{visibility:hidden;pointer-events:none}
  .analytics-consent{bottom:calc(84px + env(safe-area-inset-bottom));max-height:calc(100dvh - 170px);overflow:auto}
  .legal-content{padding-top:28px;padding-bottom:36px}
  footer{padding:28px 0}
  footer .footer-details nav a{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:359px){
  #sys{grid-template-columns:1fr}
  #sys .system-choice{font-size:14px}
  .hero .actions{grid-template-columns:1fr}
  .panel,.result{padding:16px}
}
/* keep money ranges on one line in narrow tables */
.table-scroll td:last-child{white-space:nowrap}
