/* Shared mobile palette and navigation. Visual revision 2: sharper, brighter artwork. */
body:not(.auth-screen) {
  --ev-ink: #f5f8ef;
  --ev-muted: #c4d8c8;
  --ev-lime: #dcff57;
  --ev-line: #4a7753;
  --yellow: #c6fa6a;
  --bg: #002317;
  --panel: #06361f;
  --line: #426e4d;
  --text: var(--ev-ink);
  --muted: #b9d0c0;
  --nav: calc(78px + env(safe-area-inset-bottom, 0px));
  font-family: Manrope,system-ui,-apple-system,sans-serif;
}
body:is(.catalog-screen,.balance-page,.flow-screen,.station-screen) { background: radial-gradient(ellipse at 48% 40%, #00523455, transparent 65%), #002317; }
body:is(.catalog-screen,.balance-page,.flow-screen,.station-screen) #screen .card { background: linear-gradient(140deg,#043d25,#022b1e); border-color: #426e4d; }
body:not(.auth-screen) #tabs {
  height: var(--nav);
  padding: 6px max(5px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(5px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #789280;
  background: #002317f7;
  backdrop-filter: blur(14px);
}
body:not(.auth-screen) #tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: #e1ead7;
  font-family: inherit;
  font-weight: 750;
  font-size: clamp(10px, 2.75vw, 14px);
  line-height: 1.3;
  background: none;
  box-shadow: none;
}
body:not(.auth-screen) #tabs button.selected { color: var(--ev-lime); }
body:not(.auth-screen) #tabs button::after { display: none; }
body:not(.auth-screen) #tabs .ev-nav-art {
  display: block;
  flex: 0 0 44px;
  width: 48px;
  height: 44px;
  background-image: url("profile-design/assets/navigation.webp");
  background-size: 386px 45px;
  background-repeat: no-repeat;
  filter: brightness(1.16) contrast(1.12) saturate(1.08);
  mask-image: radial-gradient(ellipse at center, #000 60%, #000e 76%, transparent 100%);
}
body:not(.auth-screen) #tabs .selected .ev-nav-art { filter: sepia(.6) saturate(2.7) hue-rotate(22deg) brightness(1.2) contrast(1.08); }
.ev-nav-map { background-position: -4px 0; }
.ev-nav-stations { background-position: -84.5px 0; }
.ev-nav-favorites { background-position: -170px 0; }
.ev-nav-balance { background-position: -252px 0; }
.ev-nav-profile { background-position: -336px 0; }
body:not(.auth-screen) #tabs .ev-nav-profile { filter: grayscale(1) brightness(1.2) contrast(1.12); }
body:not(.auth-screen) #tabs .selected .ev-nav-profile { filter: brightness(1.12) contrast(1.08) saturate(1.1); }
body:not(.auth-screen) #tabs .ev-nav-map { filter: brightness(1.12) contrast(1.08) saturate(1.16); }
body:not(.auth-screen) #tabs .ev-unread { position: absolute; top: 1px; left: calc(50% + 12px); }
.ev-unread { display: inline-grid; place-items: center; min-width: 17px; min-height: 17px; padding: 1px 4px; border: 1px solid #ffbebd; border-radius: 20px; background: #c6333c; color: #fff; font-size: 10px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
body.profile-screen { background: radial-gradient(ellipse at 48% 43%, #00523466, transparent 63%), #002317; }
body.profile-screen #screen { max-width: 520px; padding: clamp(20px, 6.3vw, 29px) clamp(13px, 3.5vw, 19px) calc(var(--nav) + 22px); }
.profile-screen #screen > .updated { display: none; }
.ev-profile-page { color: var(--ev-ink); }
.ev-profile-brand { margin: 0 0 11px 3px; }
.ev-profile-heading, .balance-page #screen .wallet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ev-profile-heading .ev-profile-brand.evcar-logo { margin-bottom: 0; }
.ev-profile-heading h1, .balance-page #screen .wallet-heading h1 {
  margin: 0;
  font-size: clamp(21px, 5.5vw, 28px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.025em;
  text-align: right;
}
.ev-profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(144px, 43%);
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ev-profile-person { display: flex; align-items: center; min-width: 0; gap: 8px; }
.ev-profile-person > div { min-width: 0; }
.ev-profile-avatar { display: grid; place-items: center; flex: 0 0 clamp(38px, 11vw, 58px); aspect-ratio: 1; border: 1px solid #8cbb59; border-radius: 50%; font-size: clamp(23px, 6.5vw, 33px); line-height: 1; font-weight: 800; color: #f3fff3; background: radial-gradient(ellipse at 30% 12%, #66a447, #086136 64%, #2e611b); box-shadow: inset 0 0 12px #c4f26f33; }
.ev-profile-person h2 { margin: 0 0 2px; font-size: clamp(16px, 4.6vw, 24px); line-height: 1.2; font-weight: 850; overflow-wrap: anywhere; }
.ev-profile-person p, .ev-profile-person small { margin: 2px 0 0; color: #f3f5eb; font-size: clamp(11px, 3vw, 15px); line-height: 1.3; display: block; overflow-wrap: anywhere; }
.ev-profile-person small { color: #b1e9bd; }
.ev-profile-wallet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ev-profile-wallet button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(14px, 4.35vw, 17px);
  line-height: 1;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ev-profile-wallet button:not(.ev-map-bonus-offer) { background: linear-gradient(115deg,#bcff77,#a8f359); color: #071b0f; box-shadow: 0 4px 10px #0003; }
.ev-profile-wallet button::before { content: ''; position: absolute; inset: -3px 0; }
.ev-profile-hero, .ev-profile-tile { width: 100%; position: relative; overflow: hidden; text-align: left; color: var(--ev-ink); font-family: inherit; border: 1px solid #619356; border-radius: 18px; background: radial-gradient(ellipse at 78% 80%, #11753a66, transparent 72%), #01341f; box-shadow: inset 0 0 25px #16582b55; }
.ev-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  grid-template-rows: auto 1fr;
  gap: 5px 10px;
  min-height: clamp(106px, 28vw, 137px);
  padding: 10px 12px;
  margin-bottom: 9px;
}
.ev-profile-hero-copy { grid-area: 1 / 1; }
.ev-profile-hero strong { display: block; font-size: clamp(17px, 4.9vw, 25px); line-height: 1.2; font-weight: 850; }
.ev-profile-hero small { display: block; margin-top: 3px; font-size: clamp(10px, 3.05vw, 15px); line-height: 1.3; }
.ev-profile-hero-visual {
  grid-area: 1 / 2 / 3;
  background: url("profile-design/assets/charging-scene-v3.webp") top right / contain no-repeat;
}
.ev-profile-hero-links { display: flex; flex-wrap: wrap; align-self: end; gap: 3px 9px; font-size: clamp(11px, 3vw, 14px); }
.ev-profile-hero-links > span { display: inline-flex; align-items: center; gap: 4px; }
.ev-profile-hero-links .icon { width: 14px; height: 14px; }
.ev-profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.ev-profile-tile { min-height: clamp(88px, 23vw, 121px); padding: 10px 14px; }
.ev-profile-tile strong, .ev-profile-tile > small { display: block; position: absolute; left: 14px; right: 17px; z-index: 1; }
.ev-profile-tile strong { top: 10px; font-size: clamp(15px, 3.9vw, 20px); font-weight: 850; line-height: 1.12; }
.ev-profile-tile > small { top: calc(14px + clamp(15px, 3.9vw, 20px) * 1.12); font-size: clamp(11px, 2.9vw, 15px); line-height: 1.2; white-space: nowrap; }
.ev-profile-chevron { color: #f2fff1; font-size: 25px; line-height: 1; }
.ev-profile-tile > .ev-profile-chevron { position: absolute; right: 11px; top: 7px; }
.ev-profile-tile > .ev-unread { position: absolute; right: 9px; bottom: 11px; z-index: 3; }
.ev-profile-art { display: block; position: absolute; bottom: 2px; max-height: 64%; background-repeat: no-repeat; background-position: center; background-size: contain; }
.ev-profile-art-rfid { width: 78%; left: 12%; bottom: 7px; max-height: 60%; aspect-ratio: 267/152; background-image: url("profile-design/assets/rfid-v2.webp"); transform: rotate(-6deg); transform-origin: center; filter: drop-shadow(0 4px 3px #00150c88); }
.ev-profile-art-news { width: 82%; left: 10%; aspect-ratio: 315/153; background-image: url("profile-design/assets/news-v2.webp"); }
.ev-profile-art-support { width: 78%; left: 12%; aspect-ratio: 243/189; background-image: url("profile-design/assets/support-v2.webp"); }
.ev-profile-art-settings { width: 79%; left: 12%; aspect-ratio: 298/162; background-image: url("profile-design/assets/settings-v2.webp"); }
.ev-profile-art-support, .ev-profile-art-settings { max-height: 66%; }
.ev-profile-art-support { max-height: 72%; }
.ev-profile-home .ev-profile-art { max-height: min(50%, calc(100% - 46px)); }
.ev-profile-logout { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; width: 100%; border: 1px solid #d0ebbd; border-radius: 15px; margin: 10px 0 0; background: #00351e88; color: var(--ev-ink); font-family: inherit; font-size: 16px; font-weight: 850; }
.ev-profile-logout .icon { width: 21px; height: 21px; }

body.profile-screen #screen:has(> .ev-profile-home),
body.balance-page #screen:has(> .wallet-page) {
  padding-block: max(12px, env(safe-area-inset-top, 0px)) calc(var(--nav) + 8px);
}
.balance-page #screen:has(> .wallet-page) > .updated { display: none; }
.balance-page #screen > .wallet-page .wallet-summary { padding: 10px 12px; margin-bottom: 8px; }
.balance-page #screen > .wallet-page .wallet-total { font-size: clamp(25px, 7.6vw, 35px); line-height: 1.2; margin: 2px 0 5px; }
.balance-page #screen > .wallet-page .wallet-current {
  display: flex;
  align-items: baseline;
  gap: 3px 7px;
  flex-wrap: wrap;
  width: auto;
  padding-top: 4px;
}
.balance-page #screen > .wallet-page .wallet-current strong { margin: 0; font-size: 13px; }
.balance-page #screen > .wallet-page .wallet-art { top: 8%; width: 27%; max-height: 88%; }
.balance-page #screen > .wallet-page .wallet-topup { padding: 10px 12px; margin-bottom: 0; }
.balance-page #screen > .wallet-page .wallet-topup-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.balance-page #screen > .wallet-page .wallet-topup-heading h2 { font-size: clamp(15px, 4.4vw, 18px); margin: 0; }
.balance-page #screen > .wallet-page .wallet-topup-heading .meta { margin: 0; }
.balance-page #screen > .wallet-page .wallet-amounts { margin-block: 5px 1px; }
.balance-page #screen > .wallet-page .wallet-methods { margin-bottom: 6px; }
.balance-page #screen > .wallet-page .wallet-methods legend { margin-block: 5px 3px; }
.balance-page #screen > .wallet-page .wallet-method-segments label > span { min-height: 44px; }
.balance-page #screen > .wallet-page .wallet-topup .primary { min-height: 44px; }
.balance-page #screen > .wallet-page .wallet-payment-note { margin-top: 4px; }
.balance-page #screen > .wallet-page .wallet-drawer { margin-top: 6px; }
.balance-page #screen > .wallet-page .wallet-menu-row { min-height: 44px; padding-block: 7px; }
.balance-page #screen > .active-shortcut { margin: 8px 0 0; min-height: 44px; padding-block: 6px; }

@media (max-height: 700px) {
  .balance-page #screen > .wallet-page .wallet-summary { padding-block: 8px; }
  .balance-page #screen > .wallet-page .wallet-topup .wallet-form > label,
  .balance-page #screen > .wallet-page .wallet-methods legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .balance-page #screen > .wallet-page .wallet-methods { margin-top: 5px; }
}

@media (max-height: 620px) {
  .ev-profile-home .ev-profile-hero { min-height: 100px; }
  .ev-profile-home .ev-profile-tile { min-height: 80px; }
  .ev-profile-home .ev-profile-logout { margin-top: 8px; }
}

@media (max-height: 670px) {
  .balance-page #screen > .wallet-page .wallet-drawers:not(:has([aria-expanded="true"])) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .balance-page #screen > .wallet-page .wallet-drawers:not(:has([aria-expanded="true"])) .wallet-menu-row {
    height: 100%;
    padding-inline: 6px;
    gap: 4px;
    line-height: 1.2;
    font-size: 12px;
  }
  .balance-page #screen > .wallet-page .wallet-drawers:not(:has([aria-expanded="true"])) .wallet-menu-row small { display: block; font-size: 10px; }
  .balance-page #screen > .wallet-page .wallet-drawers:not(:has([aria-expanded="true"])) .wallet-menu-row svg { width: 16px; height: 16px; }
}

.ev-profile-page .ev-profile-subtitle { margin: 20px 0 24px; }
.ev-profile-detail .page-title h1 { font-size: 25px; }
.ev-profile-intro, .ev-profile-note { color: var(--ev-muted); font-size: 13px; line-height: 1.6; margin: 14px 0; }
.ev-account-list { margin: 24px 0; }
.ev-account-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #31583e; padding: 15px 0; }
.ev-account-list dt { color: var(--ev-muted); font-size: 13px; }
.ev-account-list dd { margin: 0; max-width: 64%; text-align: right; overflow-wrap: anywhere; font-size: 15px; font-weight: 650; }
.ev-profile-list { margin-top: 16px; }
.ev-profile-row { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 58px; padding: 12px 2px; color: var(--ev-ink); font: inherit; font-size: 15px; border: 0; border-bottom: 1px solid #31583e; border-radius: 0; background: none; text-align: left; }
.ev-profile-row > .icon { width: 21px; height: 21px; flex: 0 0 21px; }
.ev-profile-row > span:not(.ev-profile-chevron) { flex: 1; }
.ev-profile-detail .profile-support { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.ev-profile-detail .profile-support h2 { display: none; }
.ev-profile-detail .profile-support > button { min-height: 62px; padding: 13px 2px; font-size: 15px; }
.ev-profile-account-controls .menu-card { border: 0; background: none; border-radius: 0; padding: 0; }
.ev-profile-account-controls .menu-card button { font-size: 14px; padding: 15px 0; }
.ev-profile-account-controls [data-delete-status] { margin-top: 12px; }
.ev-charges-page .page-title { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 5px; margin: 14px 0 16px; }
.ev-charges-page .page-title h1 { font-size: clamp(19px, 5.1vw, 25px); text-align: center; }
.ev-charges-page .page-title button { width: 44px; height: 44px; }
.ev-profile-grid.ev-charges-menu { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ev-profile-tile.ev-charges-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 43%) auto;
  align-items: center;
  gap: 8px;
  min-height: clamp(112px, 30vw, 140px);
  padding: 8px 14px;
  cursor: pointer;
}
.ev-charges-tile:active { border-color: var(--ev-lime); }
.ev-profile-tile.ev-charges-tile strong {
  position: static;
  grid-area: 1 / 1;
  font-size: clamp(15px, 4.65vw, 21px);
  overflow-wrap: anywhere;
}
.ev-profile-tile.ev-charges-tile > .ev-profile-chevron { position: static; grid-area: 1 / 3; }
.ev-charges-tile .ev-profile-art {
  position: static;
  grid-area: 1 / 2;
  height: clamp(82px, 25vw, 105px);
  max-height: none;
  pointer-events: none;
}
.ev-profile-art-booking { background-image: url("profile-design/assets/booking-calendar.webp"); }
.ev-profile-art-charge-history { background-image: url("profile-design/assets/charging-scene-v3.webp"); }
.ev-charges-page .history-card { border: 0; border-bottom: 1px solid #31583e; border-radius: 0; background: none; padding: 10px 0; box-shadow: none; margin: 0; }
.ev-charges-page .history-card .station-summary { font-size: 12px; margin: 0 0 4px; }
.ev-history-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.ev-history-main { display: grid; gap: 3px; min-width: 0; }
.ev-charges-page .ev-history-main h2 { font-size: 15px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.ev-history-arrow { margin-left: 2px; color: var(--ev-lime); }
.ev-charges-page .ev-history-main p { font-size: 12px; margin: 0; line-height: 1.3; color: var(--ev-muted); overflow-wrap: anywhere; }
.ev-charges-page .ev-history-energy, .ev-charges-page .ev-history-detail .fiscal-amount strong { font-size: clamp(15px, 4.4vw, 18px); line-height: 1.25; font-variant-numeric: tabular-nums; }
.ev-charges-page .ev-history-energy { color: #b5f575; }
.ev-charges-page .ev-history-detail .fiscal-amount { gap: 2px; }
.ev-charges-page .ev-history-detail .fiscal-open { min-height: 32px; padding-block: 4px; }
.ev-bookings-section .booking-list-item { border: 0; border-bottom: 1px solid #31583e; border-radius: 0; background: none; padding: 14px 0; color: var(--ev-ink); margin: 0; }
.ev-bookings-section .booking-list-item strong { font-size: 14px; }
.ev-bookings-section .booking-list-item span { color: var(--ev-muted); font-size: 12px; }
.client-news-page .page-title h1 { font-size: clamp(20px, 5.7vw, 27px); }
.client-news-page .client-news-item { border: 0; border-bottom: 1px solid #31583e; border-radius: 0; background: none; box-shadow: none; padding: 16px 0; }
.client-news-page .client-news-item h2 { font-size: 17px; }
.ev-news-settings { margin: 8px 0 20px; }
.ev-notice-history h2, .ev-news-title { margin: 24px 0 8px; font-size: 18px; }
.ev-notice-row > span:first-child { min-width: 0; }
.ev-notice-row strong, .ev-notice-row small { display: block; }
.ev-notice-row strong { font-size: 15px; }
.ev-notice-row small { margin-top: 3px; color: var(--ev-muted); font-size: 12px; overflow-wrap: anywhere; }
.ev-profile-row > .ev-notice-new { flex: 0 0 auto; color: #ffd1d1; font-size: 11px; }
body:not(.auth-screen) .primary { background: linear-gradient(115deg,#bcff77,#a8f359); color: #071b0f; font-family: inherit; }
body:not(.auth-screen) button:focus-visible, body:not(.auth-screen) a:focus-visible { outline: 3px solid #dcff57; outline-offset: 3px; }
@media (max-width:350px) {
  .ev-profile-tile { padding: 9px 10px; border-radius: 15px; }
  .ev-profile-tile strong { font-size: 15px; }
  .ev-profile-tile strong, .ev-profile-tile > small { left: 10px; right: 14px; }
  .ev-profile-tile > small { font-size: 11px; }
  .ev-profile-tile > .ev-profile-chevron { right: 8px; }
  body:not(.auth-screen) #tabs button { font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) { .ev-profile-page *, #tabs * { scroll-behavior: auto; } }
@media (max-height:740px) {
  body.charging-screen { --nav: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.charging-screen #tabs .ev-nav-art { transform: scale(.85); margin-block: -4px; }
  body.charging-screen #tabs button { font-size: 10px; }
}
