@font-face {
    font-family: BMW;
    src: url('assets/fonts/bmwtypenextlatintt-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: BMW;
    src: url('assets/fonts/bmwtypenextlatintt-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap
}

:root {
    --scale: 1;
    --height: 932px;
    --font-scale: 1;
    --ink: #080808;
    --muted: #858585;
    --tile: #f1f1f1;
    --blue: #1c69d4
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

html,body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden
}

body {
    background: #fff;
    color: var(--ink);
    font-family: BMW,'Noto Sans CJK SC','Microsoft YaHei',sans-serif;
    overscroll-behavior: none
}

button,input,select {
    font: inherit;
    color: inherit
}

button {
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation
}

button:focus-visible,[role=button]:focus-visible {
    outline: 2px solid #1c69d4;
    outline-offset: 3px
}

img {
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    display: block
}

h1,h2,h3,p {
    margin: 0
}

h2 {
    font-size: 22px;
    font-weight: 700
}

button:disabled {
    cursor: default
}

small {
    font-size: 13px
}

[hidden] {
    display: none!important
}

#app {
    width: 430px;
    height: var(--height);
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -215px;
    transform: scale(var(--scale));
    transform-origin: top center;
    overflow: hidden;
    background: #fff
}

.page {
    position: absolute;
    inset: 0 0 93px;
    display: none;
    background: white;
    overflow: hidden
}

.page.active {
    display: block
}

.scroll-area {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain
}

.scroll-area::-webkit-scrollbar {
    display: none
}

.hero {
    height: 453px;
    position: relative;
    overflow: hidden
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url('assets/bmw/index/back1.jpg') center/100% 100% no-repeat;
    transition: opacity .65s
}

.hero-background.gradient {
    background: linear-gradient(#1e274e,#fff)
}

.update-time {
    position: absolute;
    top: 108px;
    left: 0;
    right: 0;
    min-height: 25px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: calc(17px * var(--font-scale));
    white-space: nowrap
}

.car-carousel {
    position: absolute;
    left: 0;
    right: 0;
    top: 218px;
    height: 235px;
    overflow: hidden;
    touch-action: pan-y
}

.car-track {
    height: 100%;
    display: flex;
    transition: transform .3s ease
}

.car-slide {
    height: 235px;
    flex: 0 0 430px;
    overflow: hidden
}

.car-slide img {
    width: 430px;
    height: 235px;
    object-fit: contain;
    transform-origin: center;
    transition: transform .15s
}

.vehicle-header {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 0;
    height: 100px;
    padding: 54px 22px 0;
    display: flex;
    align-items: center;
    color: white
}

.vehicle-header.white {
    background: #fff;
    color: var(--ink)
}

.vehicle-header>button:first-child {
    width: 22px;
    flex-shrink: 0
}

.vehicle-header>button:first-child img {
    width: 22px;
    height: 26px
}

.vehicle-header>button:last-child {
    width: 30px;
    flex-shrink: 0
}

.vehicle-header>button:last-child img {
    width: 30px;
    height: 30px
}

.vehicle-remark {
    flex: 1;
    text-align: center;
    font-size: calc(18px * var(--font-scale));
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap
}

.vehicle-cards {
    padding: 12px 15px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 16px
}

.data-tile {
    height: 112px;
    border-radius: 6px;
    background: var(--tile);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative
}

.tile-title {
    font-size: calc(17px * var(--font-scale));
    line-height: 1.2
}

.tile-subtitle {
    font-size: calc(15px * var(--font-scale));
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.2
}

.tile-icon {
    width: 30px;
    height: 28px;
    margin-top: auto
}

.tile-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

.tile-bottom .tile-icon {
    margin: 0
}

.fuel-edit {
    display: flex;
    flex-direction: column
}

.fuel-value {
    font-size: calc(16px * var(--font-scale));
    font-weight: 700
}

.range strong,#engine-minutes strong {
    font-size: 29px;
    font-weight: 700;
    line-height: 1
}

.range small {
    font-size: 13px;
    font-weight: 700
}

#engine-minutes {
    display: none;
    white-space: nowrap
}

#engine-tile.on {
    background: #000;
    color: #fff
}

#engine-tile.on #engine-minutes {
    display: inline
}

.controls {
    display: flex;
    gap: 15px
}

.controls button {
    height: 48px;
    flex: 1;
    background: var(--tile);
    border-radius: 6px;
    display: grid;
    place-items: center;
    position: relative
}

.controls button img {
    width: 26px;
    height: 26px
}

.controls button.on {
    background: #000
}

.busy:after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    left: 50%;
    top: 50%;
    margin: -16px 0 0 -16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

.controls .on.busy {
    color: white
}

#engine-tile.busy:after {
    width: 30px;
    height: 30px;
    top: auto;
    bottom: 15px;
    left: 31px;
    margin: 0
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.location-card {
    height: 140px;
    position: relative;
    border-radius: 6px;
    overflow: hidden
}

.map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: fill
}

.map-image:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#f1f1f1ee,#ffffff59)
}

.location-card h2 {
    position: absolute;
    left: 15px;
    top: 17px;
    pointer-events: none;
    font-size: 15px;
    line-height: 1.05
}

.parked {
    position: absolute;
    left: 15px;
    top: 38px;
    padding: 0 25px 12px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.05
}

.parking-icon {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 21px;
    height: 21px;
    pointer-events: none
}

.location-car {
    position: absolute;
    right: 66px;
    bottom: 23px;
    width: 30px;
    height: 55px;
    pointer-events: none
}

.trips-card {
    height: 320px;
    background: #f2f2f2;
    border-radius: 6px;
    position: relative;
    overflow: hidden
}

.trip-background {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 115px
}

.trips-card h2 {
    position: absolute;
    left: 18px;
    top: 14px;
    line-height: 1.25
}

.trip-metrics {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 86px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.trip-metrics button {
    min-width: 0
}

.trip-metrics button>span {
    font-size: 15px;
    color: #696969;
    font-weight: 700
}

.trip-metrics button>div {
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    white-space: nowrap
}

.trip-metrics strong {
    font-size: 32px;
    line-height: 1.1
}

.trip-metrics small {
    font-size: 14px;
    font-weight: 700
}

.trend {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    font-size: 14px;
    font-style: normal;
    background: #50c85a;
    color: #fff;
    border-radius: 50%
}

.trip-month {
    position: absolute;
    left: 18px;
    top: 142px;
    padding: 0 30px 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #707070
}

.trip-actions {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 183px;
    padding-top: 17px;
    border-top: 1px solid #dcdcdc;
    display: flex;
    justify-content: space-between
}

.trip-actions button {
    width: 78px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap
}

.trip-actions button>span {
    width: 78px;
    height: 72px;
    border-radius: 5px;
    background: #e6e6e6;
    display: grid;
    place-items: center;
    margin-bottom: 10px
}

.trip-actions img,.trip-actions svg {
    width: 36px;
    height: 36px
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 93px;
    padding: 12px 0 20px;
    background: #fff;
    display: flex;
    border-top: .5px solid #efefef;
    z-index: 8
}

.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: calc(15px * var(--font-scale));
    color: var(--muted)
}

.bottom-nav button.active {
    font-weight: 700;
    color: var(--ink)
}

.bottom-nav img {
    width: 27px;
    height: 27px
}

.chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    transform: rotate(-45deg);
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    flex-shrink: 0
}

.discover-header {
    height: 89px;
    padding: 37px 18px 8px 24px;
    display: flex;
    gap: 20px;
    align-items: center
}

.discover-header>img {
    width: 22px;
    height: 24px
}

.search-box {
    height: 44px;
    flex: 1;
    background: #f4f4f4;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 16px;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 16.56px
}

.search-box img {
    width: 24px;
    height: 24px
}

.discover-tabs {
    height: 45px;
    display: flex
}

.discover-tabs button {
    flex: 1;
    text-align: center;
    font-size: 16.56px;
    color: var(--muted);
    border-bottom: 2px solid #eee
}

.discover-tabs button.selected {
    color: var(--ink);
    border-color: #000
}

.discover-content {
    height: calc(100% - 134px)
}

.features {
    padding: 30px 19px 0;
    display: grid;
    gap: 18px
}

.features .feature-top {
    display: grid;
    grid-template-columns: 215fr 100fr;
    gap: 18px
}

.features .feature-bottom {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.features img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 7px
}

.posts {
    padding-top: 50px
}

.post {
    padding: 0 19px 25px;
    font-size: 16.56px;
    line-height: 1.2
}

.post-author {
    display: flex;
    align-items: center;
    gap: 9px
}

.post-author>img {
    width: 43px;
    height: 43px
}

.post-author strong {
    display: flex;
    align-items: center;
    gap: 7px
}

.post-author strong img {
    width: 30px;
    height: 15px
}

.post-author small {
    display: block;
    color: var(--muted);
    font-size: 14.72px;
    margin-top: 2px
}

.post-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px
}

.post-title>span {
    display: flex;
    align-items: center;
    background: var(--tile);
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 15.64px;
    white-space: nowrap
}

.post-title img {
    width: 16px;
    height: 16px
}

.post-title h3 {
    font-size: 19.32px
}

.post p {
    margin-top: 14px
}

.post-photo {
    width: 100%;
    height: auto;
    margin-top: 10px
}

.post-actions {
    display: flex;
    gap: 7px;
    align-items: center;
    height: 70px;
    border-bottom: 1px solid #dedede
}

.post-actions img {
    width: 24px;
    height: 24px
}

.post-actions img:first-child {
    width: 20px;
    height: 23px;
    margin-right: auto
}

.post-actions img:nth-of-type(3) {
    margin-left: 25px
}

.recommendations {
    padding: 20px 19px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    align-items: start
}

.recommendations img {
    width: 100%;
    border-radius: 6px;
    height: auto
}

.recommendations>div {
    display: grid;
    gap: 12px
}

.mine-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 88px;
    padding: 46px 24px 14px;
    gap: 20px;
    background: white
}

.mine-header>span {
    flex: 1
}

.mine-header button:first-child img {
    width: 23px;
    height: 27px
}

.mine-header button:nth-last-child(2) img {
    width: 24px;
    height: 24px
}

.mine-header button:last-child img {
    width: 26px;
    height: 26px
}

.mine-scroll {
    padding: 108px 24px 24px
}

.greeting {
    height: 88px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.greeting>span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px
}

.greeting strong {
    font-size: 29.44px;
    line-height: 1.2
}

.greeting-name {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 29.44px;
    line-height: 1.2
}

.greeting-name .chevron {
    width: 11px;
    height: 11px;
    border-width: 3px
}

.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    box-shadow: 0 0 35px #00000026
}

.rights {
    margin-top: 36px;
    height: 62px;
    border-radius: 6px;
    background: linear-gradient(90deg,#2288e2,#173e5d);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 18.4px
}

.rights .chevron {
    width: 10px;
    height: 10px
}

.wallet-cards {
    margin-top: 18px
}

.wallet-card {
    height: 86px;
    padding: 16px;
    background: var(--tile);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.wallet-card>strong {
    font-size: 16.56px;
    line-height: 1.2
}

.wallet-card>span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14.72px;
    color: var(--muted)
}

.quick-heading {
    margin-top: 34px;
    font-size: 22.08px
}

.quick-access {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px 8px
}

.quick-item {
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.25
}

.quick-item>span {
    width: 52px;
    height: 52px;
    background: var(--tile);
    border-radius: 6px;
    display: grid;
    place-items: center;
    margin-bottom: 10px
}

.quick-item img {
    width: 30px;
    height: 30px
}

.help-card {
    margin-top: 40px;
    padding: 20px;
    background: var(--tile);
    border-radius: 6px
}

.help-card h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22.08px
}

.help-service {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px
}

.help-service>img {
    width: 35px;
    height: 35px
}

.help-service>span {
    flex: 1
}

.help-service strong {
    font-size: 16.56px
}

.help-service small,.menu-row small {
    display: block;
    font-size: 12.88px;
    color: var(--muted);
    margin-top: 6px
}

.help-service>b {
    color: var(--blue);
    font-size: 12.88px;
    white-space: nowrap
}

.menu-row {
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 73px;
    position: relative
}

.menu-row+.menu-row:before,.help-service+.menu-row:before {
    content: '';
    position: absolute;
    top: 0;
    left: 47px;
    right: 0;
    border-top: 1px solid #dedede
}

.menu-row>img {
    width: 32px;
    height: 32px
}

.menu-row>span,.menu-row>strong {
    flex: 1
}

.menu-row strong {
    font-size: 16.56px
}

.menu-row>.chevron {
    flex: 0;
    color: var(--muted);
    margin-right: 3px
}

.theme-card {
    margin-top: 24px
}

.theme-banner {
    width: 100%;
    height: auto;
    border-radius: 7px 7px 0 0
}

.theme-options {
    padding: 0 20px;
    background: var(--tile);
    border-radius: 0 0 7px 7px
}

.menu-row>.down-arrow {
    flex: 0;
    font-size: 22px;
    color: var(--muted)
}

.factory-banner {
    width: 100%;
    height: auto;
    margin: 36px 0
}

.mine-scroll>h2 {
    font-size: 22.08px
}

.privacy-row {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dedede;
    font-size: 16.56px
}

.mine-scroll>h2+.privacy-row {
    margin-top: 16px
}

.road-help {
    margin-top: 38px;
    height: 51px;
    display: grid;
    place-items: center;
    border: 1px solid #000;
    font-size: 15.64px;
    font-weight: 700
}

.about {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 12.88px
}

.about span {
    color: var(--blue)
}

#subpage {
    position: absolute;
    inset: 0;
    background: white;
    z-index: 12;
    overflow: auto;
    scrollbar-width: none
}

.sub-header {
    height: 110px;
    padding-top: 46px;
    display: flex;
    align-items: center;
    background: white
}

.sub-header>button {
    width: 48px;
    display: grid;
    place-items: center;
    height: 48px
}

.sub-header h1 {
    flex: 1;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    margin-right: 48px
}

.back-chevron {
    width: 13px;
    height: 13px;
    display: block;
    transform: rotate(45deg);
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor
}

.settings-person {
    display: flex;
    padding: 20px;
    gap: 16px;
    align-items: center
}

.settings-person img {
    width: 56px;
    height: 56px;
    border-radius: 50%
}

.settings-person>span {
    flex: 1;
    font-size: 22px
}

.settings-person small {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px
}

.settings-person>button {
    font-size: 16px
}

.settings-section {
    padding: 28px 20px 20px;
    font-size: 22px;
    display: flex;
    justify-content: space-between
}

.settings-section small {
    font-size: 15px
}

.setting-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 19px 20px;
    gap: 16px;
    border-bottom: .5px solid #eee;
    font-size: 16px
}

.setting-row img {
    width: 26px;
    height: 26px
}

.setting-row>span {
    flex: 1
}

.setting-row small {
    font-size: 14px
}

.setting-description {
    padding: 20px
}

.setting-description strong {
    font-size: 18px;
    font-weight: 400
}

.setting-description p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4
}

.profile-cover {
    height: 204px;
    position: relative
}

.profile-cover>.cover {
    height: 192px;
    width: 100%;
    object-fit: cover
}

.profile-cover>.profile-back,.profile-edit {
    position: absolute;
    top: 37px;
    left: 14px;
    width: 48px;
    height: 48px;
    color: white;
    display: grid;
    place-items: center
}

.profile-edit {
    left: auto;
    right: 14px;
    font-size: 25px
}

.profile-ip {
    position: absolute;
    top: 132px;
    right: 12px;
    font-size: 13px;
    background: #0004;
    color: white;
    padding: 3px 8px;
    border-radius: 3px
}

.profile-avatar {
    position: absolute;
    top: 100px;
    left: 18px;
    border: 2px solid white;
    border-radius: 50%;
    overflow: hidden
}

.profile-avatar img {
    width: 102px;
    height: 102px
}

.profile-info {
    padding: 15px 19px 25px
}

.profile-name {
    font-size: 23px;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center
}

.profile-level {
    font-size: 13px;
    background: #dedfe1;
    color: #5d6064;
    height: 20px;
    display: flex;
    align-items: center
}

.profile-level b {
    background: #36393b;
    color: white;
    padding: 0 7px;
    font-style: italic;
    height: 20px;
    display: grid;
    place-items: center
}

.profile-level span {
    padding: 0 7px
}

.profile-id {
    display: block;
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 9px
}

.profile-stats {
    display: flex;
    gap: 25px;
    margin-top: 23px
}

.profile-stats button {
    font-size: 17px
}

.profile-stats span {
    color: var(--muted)
}

.profile-links {
    padding: 12px 0 0 19px
}

.profile-link {
    height: 56px;
    display: flex;
    gap: 13px;
    align-items: center
}

.profile-link>img {
    width: 24px;
    height: 24px
}

.profile-link>span {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    border-bottom: 1px solid #e4e4e4;
    padding-right: 19px;
    font-size: 17px;
    font-weight: 700;
    gap: 12px
}

.profile-link small {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    font-weight: 400
}

.profile-link .chevron {
    color: var(--muted)
}

.profile-link .medal {
    margin-left: auto;
    width: 31px;
    height: 31px
}

.profile-tabs {
    margin-top: 20px;
    display: flex
}

.profile-tabs button {
    flex: 1;
    height: 47px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    color: var(--muted)
}

.profile-tabs .selected {
    border-bottom: 2px solid #000;
    color: var(--ink);
    font-weight: 700
}

.profile-empty {
    margin-top: 70px;
    text-align: center;
    font-size: 17px;
    color: #aaa
}

.glass {
    background: linear-gradient(135deg,#f8f8f9f2,#dde2e8f2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid #ffffffd9
}

.sheet .glass {
    background: linear-gradient(135deg,#f8f8f9d9,#dde2e8d9)
}

#overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: #0006;
    display: flex;
    align-items: center;
    justify-content: center
}

.sheet {
    position: absolute;
    bottom: 6.5px;
    left: 12.3px;
    right: 12.3px;
    display: flex;
    flex-direction: column;
    gap: 10.5px;
    max-height: calc(100% - 40px)
}

.sheet-group {
    border-radius: 30px;
    overflow: auto;
    scrollbar-width: none
}

.sheet-row {
    width: 100%;
    min-height: 58px;
    text-align: center;
    position: relative;
    font-size: 18px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0
}

.sheet-row+.sheet-row:before {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    border-top: .5px solid #c9cbd0
}

.sheet-row.muted {
    min-height: 64px;
    color: #7d7d7d;
    font-size: 16px
}

.sheet-cancel {
    min-height: 58px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-align: center
}

.selected-check {
    color: #2a83b8;
    font-size: 17px
}

.edit-dialog {
    width: 350px;
    max-width: calc(100% - 80px);
    padding: 40px 28px 30px 32px;
    border-radius: 36px
}

.edit-dialog h2 {
    font-size: 20px;
    line-height: 1.2
}

.edit-hint {
    font-size: 14px;
    color: #686868;
    margin-top: 10px;
    line-height: 1.4
}

.input-wrap {
    margin-top: 20px;
    position: relative
}

.edit-input {
    height: 54px;
    width: 100%;
    padding: 16px 45px 16px 24px;
    font-size: 18px;
    background: #cbd1dab3;
    border: .8px solid #fff4;
    border-radius: 30px;
    outline: 0;
    user-select: text;
    min-width: 0
}

.clear-input {
    position: absolute;
    right: 12px;
    top: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #85888b;
    color: #d7dbe0;
    font-size: 18px;
    line-height: 20px;
    text-align: center
}

.dialog-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px
}

.pill {
    flex: 1;
    height: 54px;
    border-radius: 40px;
    background: #ccd1d8a6;
    border: 1px solid #ffffff47;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    display: grid;
    place-items: center
}

.pill.primary {
    background: linear-gradient(90deg,#3287f2,#0868df);
    border: 0;
    color: white;
    box-shadow: 0 8px 18px #3287f224
}

.field-error {
    font-size: 13px;
    color: #c72525;
    margin-top: 6px
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px 14px;
    padding: 20px 20px 18px
}

.background-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    gap: 8px
}

.background-option img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    padding: 2px;
    border: 1px solid #b8bdc6
}

.sheet-footer {
    display: flex;
    height: 60px;
    border-radius: 32px;
    align-items: center
}

.sheet-footer button {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700
}

.sheet-footer button+button {
    border-left: 1px solid #c9cbd0
}

.font-panel {
    border-radius: 32px;
    padding: 24px 30px 22px
}

.font-panel>div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700
}

.font-panel input[type=range] {
    width: 100%;
    height: 42px;
    margin: 24px 0 26px;
    accent-color: #009dff
}

.font-panel input[type=checkbox] {
    width: 46px;
    height: 26px;
    accent-color: #009dff;
    margin-left: auto
}

.font-panel .reset-size {
    margin-left: auto;
    border-radius: 30px;
    background: #77c4ef;
    color: white;
    font-size: 17px;
    padding: 12px
}

.date-dialog {
    width: 390px;
    border-radius: 32px;
    padding: 24px
}

.date-dialog h2 {
    font-size: 20px
}

.date-fields {
    margin-top: 24px;
    display: flex;
    gap: 10px
}

.date-fields label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 14px
}

.date-fields select {
    min-width: 0;
    width: 100%;
    font-size: 20px;
    border: 0;
    border-radius: 12px;
    background: #cbd1dab3;
    padding: 12px 4px;
    text-align: center
}

.crop-dialog {
    width: 406px;
    border-radius: 30px;
    padding: 20px
}

.crop-viewport {
    height: 140px;
    margin-top: 18px;
    overflow: hidden;
    background: #eee;
    touch-action: none
}

.crop-viewport img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none
}

.crop-dialog p {
    font-size: 14px;
    color: #686868;
    margin-top: 12px
}

.crop-dialog input[type=range] {
    width: 100%;
    margin-top: 18px;
    accent-color: #1c69d4
}

.chart-page {
    background: #071337!important;
    overflow: hidden!important
}

.chart-surface {
    position: absolute;
    background: #071337;
    color: white;
    padding: 20px 20px 12px 55px;
    display: flex;
    flex-direction: column
}

.chart-header {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0
}

.chart-header h1 {
    font-size: 20px;
    flex: 1
}

.chart-header>button {
    color: white;
    font-size: 18px
}

.chart-header .chart-month {
    color: #a8b2cc;
    font-size: 16px;
    margin-right: 12px
}

.chart-bars {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 0
}

.chart-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    touch-action: none;
    font-size: 11px;
    gap: 7px
}

.bar-touch {
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end
}

.bar-track {
    height: 100%;
    width: 7px;
    border-radius: 8px;
    background: #0d2957;
    position: absolute
}

.bar-fill {
    width: 7px;
    background: #d9dfe9;
    min-height: 2px;
    border-radius: 8px;
    z-index: 1;
    pointer-events: none
}

#toast {
    position: absolute;
    z-index: 50;
    bottom: 66px;
    left: 20px;
    right: 20px;
    text-align: center;
    pointer-events: none
}

#toast span {
    display: inline-block;
    max-width: 100%;
    background: #292929eb;
    color: white;
    border: 1px solid #ffffff1f;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 16px
}

.font-bold .vehicle-cards .tile-title,.font-bold .vehicle-cards .tile-subtitle,.font-bold .bottom-nav button {
    font-weight: 700
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none!important;
        transition: none!important
    }
}

@font-face {
    font-family: Chinese;
    src: url('assets/bmw/fonts') format('woff2');
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: MaterialIcons;
    src: url('assets/fonts/MaterialIcons-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: block
}

body {
    font-family: BMW,Chinese,sans-serif;
    text-rendering: optimizeLegibility
}

.material-icon {
    font-family: MaterialIcons!important;
    font-weight: 400!important;
    font-style: normal;
    font-size: 25px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga'
}

.profile-edit {
    font-family: MaterialIcons;
    font-size: 25px
}

.font-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0
}

.font-panel>div:first-child {
    gap: 10px
}

.font-panel .reset-size {
    font-size: 17px;
    padding: 0 12px;
    height: 42px;
    white-space: nowrap
}

.font-brand {
    width: 114px;
    height: 42px;
    background: #009dff;
    border-radius: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white
}

.font-panel input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(90deg,#009dff 50%,#e4e4e4 50%);
    border-radius: 30px;
    outline: none;
    margin: 24px 0 26px
}

.font-panel input[type=range]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 2px #0002
}

.font-panel input[type=range]::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: white
}

.font-panel .toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 52px;
    height: 31px;
    margin: 0 8px 0 auto;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer
}

.font-panel .toggle:before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px #0003;
    transition: transform .15s
}

.font-panel .toggle:checked {
    background: #009dff
}

.font-panel .toggle:checked:before {
    transform: translateX(21px)
}

.date-dialog {
    width: 350px;
    padding: 28px 20px 30px;
    border-radius: 36px
}

.date-dialog.month-only {
    width: 334px;
    padding-left: 26px
}

.date-title {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0 12px
}

.date-title h2 {
    font-size: 20px;
    flex: 1;
    white-space: nowrap
}

.date-title>button {
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    padding: 8px 12px;
    background: #cbd1d8a6;
    white-space: nowrap
}

.date-hint {
    font-size: 14px;
    color: #686868;
    margin: 10px 0 0 12px
}

.date-wheels {
    height: 200px;
    margin-top: 20px;
    display: flex;
    position: relative;
    overflow: hidden
}

.month-only .date-wheels {
    height: 182px
}

.date-selection {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 48px;
    margin-top: -24px;
    background: #cbd1daa6;
    border: 1px solid #fff4;
    border-radius: 16px;
    pointer-events: none
}

.date-wheel {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
    padding: 79px 0;
    overscroll-behavior: contain
}

.month-only .date-wheel {
    padding: 70px 0
}

.date-wheel::-webkit-scrollbar {
    display: none
}

.wheel-item {
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 18px;
    white-space: nowrap;
    scroll-snap-align: center;
    transform-origin: center;
    user-select: none
}

.date-dialog .dialog-actions {
    padding: 0 8px;
    margin-top: 24px
}

.date-dialog .pill {
    height: 50px
}

.chevron {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-block;
    transform: none;
    border: 0;
    font-family: MaterialIcons;
    font-size: 24px;
    line-height: 24px;
    font-style: normal
}

.chevron:before {
    content: '\e15f'
}

.greeting-name .chevron {
    width: 30px;
    height: 30px;
    font-size: 30px;
    line-height: 30px;
    flex-basis: 30px;
    border: 0
}

.greeting-name {
    gap: 12px
}

.rights .chevron {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 26px;
    flex-basis: 26px
}

.wallet-card .chevron {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 22px;
    flex-basis: 22px
}

.menu-row>.chevron {
    flex: 0 0 24px
}

.profile-link .chevron {
    font-size: 26px;
    width: 26px;
    height: 26px;
    flex-basis: 26px
}

.trip-actions img {
    filter: brightness(0)
}

.mine-scroll h2 {
    line-height: 1.2
}

.quick-heading {
    line-height: 1.2
}

.simulator-settings {
    background: #f5f5f5!important
}

.simulator-settings .sub-header {
    background: #f5f5f5;
    height: 108px;
    padding-top: 47px
}

.simulator-settings .sub-header h1 {
    font-size: 20px;
    font-weight: 700
}

.simulator-settings .sub-header button {
    width: 72px
}

.simulator-settings .sub-header h1 {
    margin-right: 72px
}

.simulator-group {
    margin: 14px 17px 0;
    border-radius: 14px;
    overflow: hidden;
    background: white
}

.simulator-group:first-of-type {
    margin-top: 11px
}

.simulator-row {
    height: 70px;
    padding: 0 18px 0 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: relative;
    font-size: 17px
}

.simulator-row+.simulator-row:before {
    content: '';
    position: absolute;
    left: 68px;
    right: 0;
    top: 0;
    border-top: .8px solid #e9e9e9
}

.simulator-icon {
    height: 38px;
    width: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f5f5f5;
    font-size: 24px
}

.simulator-row>span {
    flex: 1
}

.simulator-row small {
    font-size: 15px;
    color: #999
}

.simulator-row>.chevron {
    font-size: 22px;
    width: 18px;
    flex-basis: 18px;
    color: #999;
    margin-left: -8px
}

.simulator-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px
}

.simulator-logout {
    margin: 24px 17px 50px;
    height: 54px;
    width: calc(100% - 34px);
    background: white;
    border: 1.2px solid #e5e5e5;
    border-radius: 14px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #ff493b
}

/* Keep the design canvas inside the actual visible viewport on iOS and Android. */
:root {
    color-scheme: light;
    --system-bar-color: #20274b;
    --bottom-extra: max(0px,calc(env(safe-area-inset-bottom,0px)/var(--scale) - 20px))
}

html,body {
    background: var(--system-bar-color);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

#app {
    position: fixed;
    left: 0;
    margin-left: 0;
    transform-origin: top left
}

#status-bar-fill {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--system-bar-color);
    z-index: 100;
    pointer-events: none
}

.vehicle-cards {
    padding-left: max(15px,calc(15px/var(--scale)));
    padding-right: max(15px,calc(15px/var(--scale)))
}

.vehicle-header {
    padding-left: max(22px,calc(22px/var(--scale)));
    padding-right: max(22px,calc(22px/var(--scale)))
}

/* Default iOS Web Clips already place the document below the native status bar. */
.ios-compact-header .vehicle-header {
    height: 46px;
    padding-top: 0
}

.vehicle-header.dark-ink {
    color: var(--ink)
}

.vehicle-header img {
    filter: brightness(0) invert(1)
}

.vehicle-header.dark-ink img {
    filter: brightness(0)
}

.vehicle-remark {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis
}

.page {
    bottom: calc(93px + var(--bottom-extra))
}

.bottom-nav {
    height: calc(93px + var(--bottom-extra));
    padding-bottom: calc(20px + var(--bottom-extra))
}

.controls button,#engine-tile {
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: currentColor
}

.controls button:disabled,#engine-tile:disabled {
    opacity: 1;
    -webkit-text-fill-color: currentColor
}

.controls button img,#engine-icon {
    filter: brightness(0)
}

.controls button.on img,#engine-tile.on #engine-icon {
    filter: brightness(0) invert(1)
}

.controls button.busy,#engine-tile.busy {
    background: #000;
    color: #fff
}

.controls button.busy>img,#engine-tile.busy #engine-icon {
    visibility: hidden
}

#engine-tile.on .tile-subtitle,#engine-tile.busy .tile-subtitle {
    color: #bfbfbf
}

.busy:after,#engine-tile.busy:after {
    width: 32px;
    height: 32px;
    left: var(--busy-x,50%);
    top: var(--busy-y,50%);
    bottom: auto;
    margin: -16px 0 0 -16px;
    color: #fff
}

.vehicle-scroll {
    -webkit-overflow-scrolling: touch
}

/* iOS alone uses real document scrolling; there is no mirrored scroll container. */
html.ios-document-scroll {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none
}

html.ios-document-scroll body {
    height: auto;
    min-height: 100%;
    overflow: visible
}

.ios-document-scroll #app {
    position: relative;
    transform: none;
    zoom:var(--scale);overflow: visible
}

.ios-document-vehicle #app {
    height: auto;
    min-height: var(--height)
}

.ios-document-scroll #vehicle {
    position: relative;
    inset: auto;
    overflow: visible;
    padding-bottom: calc(93px + var(--bottom-extra))
}

.ios-document-scroll .vehicle-scroll {
    height: auto;
    overflow: visible
}

.ios-document-scroll .vehicle-header {
    position: fixed;
    left: var(--canvas-left,0px);
    right: auto;
    width: 430px
}

.ios-document-scroll .bottom-nav {
    position: fixed;
    left: var(--canvas-left,0px);
    right: auto;
    width: 430px
}

.ios-document-scroll #overlay,.ios-document-scroll #subpage {
    position: fixed;
    top: 0;
    left: var(--canvas-left,0px);
    right: auto;
    bottom: auto;
    width: 430px;
    height: var(--height)
}

.ios-document-scroll #toast {
    position: fixed;
    left: calc(var(--canvas-left,0px) + 20px);
    right: auto;
    width: 390px
}

html.ios-document-locked,html.ios-document-locked body {
    overflow-y: hidden
}

/* WebKit samples fixed edges 4px inside the viewport. Its direct background-color
   path also requires a box taller than 10px. Keep an opaque computed color on a
   12px fixed box; text clipping leaves its empty area unpainted, so only the
   existing 4px edge remains visible and header icons stay unobstructed. */
.ios-document-scroll #status-bar-fill {
    height: 12px;
    -webkit-background-clip: text;
    background-clip: text
}

.ios-document-scroll #status-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--system-bar-color)
}

/* The compact iOS title already omits the original 54px status-bar reservation.
   Remove that same reservation from the scrolling hero. Offset the background
   instead of squeezing it, preserving the artwork and car image dimensions. */
.ios-compact-header .hero {
    height: 399px
}

.ios-compact-header .hero-background {
    top: -54px
}

.ios-compact-header .update-time {
    top: 54px
}

.ios-compact-header .car-carousel {
    top: 164px
}
