.mobile-more-button, .mobile-install-card, .mobile-offline-pill { display: none; }
.mobile-app-toast { position: fixed; z-index: 130; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #172c4e; color: #fff; padding: 13px 17px; border-radius: 13px; box-shadow: 0 8px 28px #0b1b3530; font-size: 13px; }
.mobile-sheet { padding: 23px; color: var(--text); }
.mobile-sheet h2 { font-size: 20px; margin: 0; letter-spacing: -.4px; line-height: 1.45; }
.mobile-sheet > .row > .icon-btn { width: 44px; height: 44px; font-size: 25px; }
.mobile-sheet-intro { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 20px; }
.mobile-tools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.mobile-tools-grid a { display: flex; flex-direction: column; gap: 12px; padding: 17px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text); min-width: 0; }
.mobile-tools-grid a:hover { text-decoration: none; background: var(--primary-soft); }
.mobile-tools-grid a > span { color: var(--primary); }
.mobile-tools-grid b { font-size: 12px; font-weight: 650; }
.mobile-menu-install { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px; background: var(--primary-soft); color: var(--text); border: 1px solid color-mix(in srgb,var(--primary) 20%,var(--border)); border-radius: 14px; text-align: left; cursor: pointer; }
.mobile-menu-install img { border-radius: 10px; flex: none; }
.mobile-menu-install > span { min-width: 0; flex: 1; }
.mobile-menu-install b { display: block; font-size: 12px; margin-bottom: 5px; color: var(--primary); }
.mobile-menu-install small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mobile-menu-install > svg { flex: none; color: var(--primary); }
.mobile-sheet-foot, .mobile-installed-note { font-size: 11px; color: var(--muted); text-align: center; margin: 18px 0 0; line-height: 1.6; }
.mobile-guide-app { display: flex; align-items: center; gap: 13px; margin: 23px 0; }
.mobile-guide-app img { border-radius: 15px; box-shadow: 0 4px 12px #172c4e12; }
.mobile-guide-app b { font-size: 16px; }
.mobile-guide-app p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.mobile-guide-steps { list-style: none; margin: 0; padding: 0; }
.mobile-guide-steps li { display: flex; gap: 13px; margin: 20px 0; }
.mobile-guide-steps li > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-size: 14px; font-weight: 700; flex: none; }
.mobile-guide-steps li b { font-size: 13px; display: block; padding-top: 3px; }
.mobile-guide-steps li p { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.75; }
.mobile-guide-benefit { color: var(--muted); background: var(--surface-2); border-radius: 11px; padding: 12px; font-size: 11px; line-height: 1.7; margin-bottom: 18px; }
.mobile-browser-note { background: var(--warn-soft); color: var(--text); padding: 11px 13px; border-radius: 10px; margin-bottom: 12px; font-size: 12px; line-height: 1.7; }
.mobile-sheet-primary { border: 0; border-radius: 12px; background: var(--primary); color: var(--primary-ink); min-height: 48px; font-size: 14px; font-weight: 650; width: 100%; cursor: pointer; }
@media (max-width: 1023px) {
  :root { --nav-h: 72px; }
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top)); }
  .topbar { padding-left: 15px; padding-right: 15px; min-height: calc(64px + env(safe-area-inset-top)); }
  .topbar-actions { padding-right: 44px; gap: 2px; flex-wrap: nowrap; }
  .topbar .icon-btn { min-width: 40px; width: 40px; min-height: 44px; height: 44px; padding: 8px; }
  .topbar .brand { gap: 8px; font-size: 15px; white-space: nowrap; }
  .topbar .brand-logo { width: 29px; height: 29px; }
  .mobile-more-button { position: fixed; display: grid; place-items: center; z-index: 45; right: 13px; top: calc(10px + env(safe-area-inset-top)); width: 44px; height: 44px; border: 0; border-radius: 12px; color: var(--text); background: transparent; cursor: pointer; }
  .mobile-more-button:active { background: var(--primary-soft); color: var(--primary); }
  .tabbar { height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 4px max(5px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(5px,env(safe-area-inset-left)); box-shadow: 0 -4px 24px #172c4e05; }
  .tabbar a { position: relative; gap: 4px; min-height: 62px; font-size: 10px; color: var(--muted); z-index: 0; }
  .tabbar a::before { content: ''; position: absolute; z-index: -1; width: 46px; height: 29px; top: 7px; left: calc(50% - 23px); border-radius: 11px; background: transparent; transition: background .18s; }
  .tabbar a.active::before { background: var(--primary-soft); }
  .tabbar a.active { font-weight: 750; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a:active svg { transform: scale(.92); }
  .mobile-keyboard .tabbar { display: none; }
  .content, .content.home-layout { padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
  .btn, button.opt { min-height: 46px; }
  input.input, select.input, textarea.input { font-size: 16px; min-height: 46px; }
  .md { line-height: 1.85; }
  .q-footer { gap: 8px; }
  .q-footer .btn { min-height: 48px; }
  .sim-control { min-width: 44px; min-height: 44px; }
  .sim-hazard { min-height: 64px; }
  .mobile-offline-pill { display: block; position: fixed; z-index: 49; top: calc(67px + env(safe-area-inset-top)); right: 14px; padding: 5px 9px; background: var(--warn-soft); border: 1px solid var(--border); border-radius: 20px; font-size: 10px; color: var(--text); box-shadow: var(--shadow); }
  .modal-back:has(> .mobile-sheet) { align-items: end; padding: 0; background: #0b142975; backdrop-filter: blur(3px); }
  .mobile-sheet { max-width: 560px; margin: 0 auto; max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; border-radius: 25px 25px 0 0; padding: 15px 22px calc(22px + env(safe-area-inset-bottom)); animation: mobile-sheet-enter .22s cubic-bezier(.2,.7,.2,1); }
  .mobile-sheet::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 10px; background: var(--border); margin: 0 auto 13px; }
  .is-standalone body { overscroll-behavior-y: contain; }
}
@media (max-width: 600px) {
  .content.home-layout { padding-top: 18px; }
  .home-topline { margin-bottom: 15px; }
  .home-hero-grid { gap: 11px; }
  .home-hero { min-height: 0; }
  .home-hero-copy { padding: 21px; }
  .home-view .home-hero-kicker { font-size: 8px; margin-bottom: 12px; }
  .home-hero h1 { font-size: 31px; line-height: 1.2; margin-bottom: 12px; }
  .home-view .home-hero-copy > p { font-size: 12px; margin-bottom: 16px; }
  .home-hero-foot { display: none; }
  .home-hero-actions { gap: 10px; }
  .home-view .home-button { min-height: 46px; }
  .home-driving-art { height: 160px; width: 180px; bottom: -11px; right: -75px; opacity: .22; }
  .home-readiness { padding: 13px 15px; gap: 0 13px; }
  .home-readiness-head { margin-bottom: 7px; }
  .home-readiness-main .home-ring, .home-readiness-main .home-ring > svg { width: 61px!important; height: 61px!important; }
  .home-view .home-readiness-main h2 { font-size: 11px; }
  .home-view .home-readiness-stats > div > span { font-size: 8px; }
  .home-readiness-stats { margin-bottom: 5px; }
  .home-overview { margin: 14px 0 25px; }
  .home-mini-stat { min-height: 78px; }
  .home-view .home-section-head h2 { font-size: 18px; }
  .home-feature-grid { gap: 11px; }
  .home-feature { padding: 16px; }
  .home-feature h3 { line-height: 1.4; }
  .home-view .home-feature > p { font-size: 12px; }
  .home-feature-foot { gap: 5px; }
  .home-feature-foot .home-arrow-round { flex: none; }
  .home-view .home-feature-foot > span:first-child { font-size: 10px; }
  .home-plan-step { min-height: 57px; }
  .home-view .home-priority-row b { font-size: 13px; }
  .home-priority-row { min-height: 66px; }
  .home-priority-critical { min-height: 79px; }
  .mobile-install-card { position: relative; display: grid; grid-template-columns: 43px minmax(0,1fr) 40px; align-items: center; column-gap: 11px; row-gap: 13px; padding: 15px; margin-top: 14px; border: 1px solid color-mix(in srgb,var(--primary) 22%,var(--border)); border-radius: 17px; background: var(--surface); }
  .mobile-app-icon { border-radius: 12px; box-shadow: 0 3px 8px #172c4e10; }
  .mobile-install-copy b { display: block; font-size: 12px; line-height: 1.6; color: var(--text); }
  .mobile-install-copy p { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 3px 0 0; }
  .mobile-install-close { border: 0; color: var(--muted); background: transparent; height: 44px; width: 44px; margin-left: -2px; align-self: start; font-size: 23px; cursor: pointer; }
  .mobile-install-action { display: flex; align-items: center; justify-content: center; gap: 8px; grid-column: 1 / -1; border: 0; border-radius: 10px; min-height: 46px; padding: 9px 11px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 650; cursor: pointer; }
  .mobile-install-action svg:last-child { margin-left: auto; }
  .mobile-install-action svg:first-child { margin-right: auto; }
}
@media (max-width: 359px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .topbar .brand { font-size: 13px; gap: 6px; }
  .topbar .brand-logo { width: 25px; height: 25px; }
  .topbar .icon-btn { min-width: 35px; width: 35px; }
  .mobile-more-button { right: 10px; }
  .home-hero h1 { font-size: 28px; }
  .home-topline { gap: 8px; }
  .home-view .home-greeting { font-size: 15px; }
  .home-greeting > span { display: none; }
  .home-license { white-space: nowrap; flex-shrink: 0; padding: 9px 10px; gap: 5px; }
  .home-license svg:first-child { display: none; }
  .home-hero-actions { flex-wrap: wrap; }
  .home-view .home-feature h3 { font-size: 13px; }
  .home-view .home-feature > p { font-size: 11px; }
  .home-view .home-feature-foot > span:first-child { font-size: 9px; }
  .mobile-sheet { padding-left: 17px; padding-right: 17px; }
}
@keyframes mobile-sheet-enter { from { transform: translateY(22px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mobile-sheet, .tabbar a::before, .tabbar svg { animation: none!important; transition: none!important; } }
