:root {
  --pwa-ink: #071410;
  --pwa-ink-soft: #0d211a;
  --pwa-emerald: #0b8f67;
  --pwa-mint: #36d399;
  --pwa-gold: #d7ad55;
  --pwa-red: #d94b57;
  --pwa-bg: #eff4f1;
  --pwa-card: #fff;
  --pwa-line: #dfe8e3;
  --pwa-muted: #718078;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--pwa-bg); }
body { margin: 0; color: var(--pwa-ink); background: var(--pwa-bg); font-family: Vazirmatn, Tahoma, Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.pwa-splash { display: none; }
html.pwa-splash-active,html.pwa-splash-active body { overflow: hidden; background: #071410; }
html.pwa-splash-active .pwa-app { visibility: hidden; }
html.pwa-splash-active .pwa-splash { position: fixed; z-index: 1000; inset: 0; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: max(28px,env(safe-area-inset-top)) 24px max(25px,env(safe-area-inset-bottom)); color: #fff; background: radial-gradient(circle at 50% 42%,#0d3226 0,#092018 32%,#071410 68%); opacity: 1; transition: opacity .42s ease,transform .42s ease,visibility .42s; }
html.pwa-splash-leaving .pwa-app { visibility: visible; }
html.pwa-splash-leaving .pwa-splash { opacity: 0; visibility: hidden; transform: scale(1.025); }
.splash-atmosphere,.splash-atmosphere i { position: absolute; border-radius: 50%; pointer-events: none; }
.splash-atmosphere { width: min(120vw,620px); aspect-ratio: 1; border: 1px solid rgba(54,211,153,.1); }
.splash-atmosphere::before,.splash-atmosphere::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(54,211,153,.075); border-radius: inherit; }
.splash-atmosphere::after { inset: 25%; }
.splash-atmosphere i:nth-child(1) { width: 7px; height: 7px; top: 11%; right: 18%; background: #36d399; box-shadow: 0 0 20px #36d399; animation: splash-float 2.8s ease-in-out infinite; }
.splash-atmosphere i:nth-child(2) { width: 5px; height: 5px; bottom: 17%; left: 11%; background: #d7ad55; box-shadow: 0 0 18px #d7ad55; animation: splash-float 3.2s .3s ease-in-out infinite reverse; }
.splash-atmosphere i:nth-child(3) { width: 3px; height: 3px; top: 31%; left: 5%; background: #91b9a9; animation: splash-float 2.5s .7s ease-in-out infinite; }
.splash-brand { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.splash-logo { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; background: rgba(255,255,255,.045); box-shadow: 0 28px 70px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.06); animation: splash-logo-in .7s cubic-bezier(.2,.85,.25,1) both; }
.splash-logo::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(54,211,153,.1); border-radius: 36px; }
.splash-logo img { width: 86px; height: 86px; }
.splash-brand strong { font: 900 1.75rem/1 Arial,sans-serif; letter-spacing: .22em; text-indent: .22em; }
.splash-brand > span { margin-top: 10px; color: #f0f7f4; font-size: .92rem; font-weight: 900; letter-spacing: .02em; }
.splash-brand small { margin-top: 7px; color: #81968d; font: 500 .51rem/1.4 Arial,sans-serif; letter-spacing: .14em; }
.splash-progress { position: relative; z-index: 1; width: 112px; height: 2px; overflow: hidden; margin-top: 37px; border-radius: 99px; background: rgba(255,255,255,.09); }
.splash-progress i { position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit; background: linear-gradient(90deg,#0b8f67,#36d399,#d7ad55); box-shadow: 0 0 12px rgba(54,211,153,.5); animation: splash-progress 1.05s ease-in-out infinite; }
.pwa-splash > p { position: absolute; z-index: 1; bottom: max(22px,env(safe-area-inset-bottom)); margin: 0; color: #6f847b; font-size: .58rem; font-weight: 700; }

.pwa-app { width: min(100%, 940px); min-height: 100vh; margin-inline: auto; padding-bottom: calc(88px + var(--safe-bottom)); background: var(--pwa-bg); box-shadow: 0 0 80px rgba(7,20,16,.08); }
.pwa-offline-banner { position: sticky; top: 0; z-index: 100; padding: 7px 16px; color: #fff4d1; background: #795e19; text-align: center; font-size: .7rem; }

.pwa-header { position: sticky; top: 0; z-index: 60; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; color: #fff; background: rgba(7,20,16,.95); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.pwa-brand { display: flex; align-items: center; gap: 9px; }
.pwa-brand img { width: 40px; height: 40px; }
.pwa-brand > span { display: grid; line-height: 1.1; }
.pwa-brand b { font: 800 1rem/1 Arial, sans-serif; letter-spacing: .11em; }
.pwa-brand small { margin-top: 5px; color: #a9bbb4; font-size: .62rem; }
.pwa-header-actions { display: flex; align-items: center; gap: 8px; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; color: #a9bbb4; font-size: .62rem; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--pwa-mint); box-shadow: 0 0 0 4px rgba(54,211,153,.1); }
.connection-state.offline i { background: var(--pwa-gold); box-shadow: 0 0 0 4px rgba(215,173,85,.12); }
.install-button { min-height: 36px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid rgba(54,211,153,.32); border-radius: 10px; color: #d8f8eb; background: rgba(54,211,153,.09); font-size: .65rem; font-weight: 800; cursor: pointer; }
.install-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pwa-main { display: grid; gap: 16px; padding: 14px 12px 30px; }
.pwa-hero { position: relative; min-height: 305px; overflow: hidden; padding: 24px 21px 20px; border-radius: 25px; color: #fff; background: linear-gradient(145deg,#071410 0%,#0a2119 62%,#0d3326 100%); box-shadow: 0 20px 50px rgba(7,20,16,.18); }
.pwa-hero::after { content: ""; position: absolute; width: 210px; height: 210px; left: -80px; top: -75px; border: 1px solid rgba(54,211,153,.15); border-radius: 50%; box-shadow: 0 0 0 30px rgba(54,211,153,.025), 0 0 0 65px rgba(54,211,153,.02); }
.pwa-hero-glow { position: absolute; width: 180px; height: 180px; right: 45%; bottom: -135px; border-radius: 50%; background: rgba(54,211,153,.16); filter: blur(50px); }
.hero-status { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #9eb3aa; font-size: .68rem; }
.hero-status > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--pwa-mint); box-shadow: 0 0 0 5px rgba(54,211,153,.1); }
.hero-status time { direction: ltr; }
.pwa-hero h1 { position: relative; z-index: 1; margin: 24px 0 8px; font-size: clamp(2.15rem,10vw,3.3rem); line-height: 1.22; letter-spacing: -.05em; font-weight: 900; }
.pwa-hero h1 em { color: var(--pwa-gold); font-style: normal; }
.pwa-hero > p { position: relative; z-index: 1; max-width: 480px; margin: 0; color: #b7c7c1; font-size: .77rem; }
.market-pulse { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 22px; }
.market-pulse > div { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.045); }
.market-pulse p { min-width: 0; display: grid; margin: 0; line-height: 1.25; }
.market-pulse small { color: #83988f; font-size: .57rem; }
.market-pulse b { margin-top: 3px; overflow: hidden; color: #eff8f4; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.pulse-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; font-size: .75rem; font-weight: 900; direction: ltr; }
.pulse-icon.positive { color: var(--pwa-mint); background: rgba(54,211,153,.1); }
.pulse-icon.negative { color: #ff8c96; background: rgba(217,75,87,.12); }
.pulse-icon.neutral { color: var(--pwa-gold); background: rgba(215,173,85,.1); }

.watchlist-section,.movers-section,.pwa-news { padding: 21px 14px; border: 1px solid var(--pwa-line); border-radius: 22px; background: var(--pwa-card); box-shadow: 0 8px 28px rgba(7,20,16,.035); }
.pwa-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.pwa-section-head > div:first-child { min-width: 0; }
.pwa-section-head span { color: var(--pwa-emerald); font-size: .63rem; font-weight: 800; }
.pwa-section-head h2 { margin: 1px 0 0; font-size: 1.2rem; line-height: 1.35; font-weight: 900; letter-spacing: -.025em; }
.pwa-section-head p { margin: 2px 0 0; color: var(--pwa-muted); font-size: .62rem; }
.watchlist-sync-state { font-style: normal; font-weight: 750; }
.watchlist-sync-state.account { color: #087452; }.watchlist-sync-state.device { color: #7c8982; }
.watchlist-sync-state.syncing { color: #9a6c0b; }.watchlist-sync-state.failed { color: #bd3f4a; }
.pwa-section-head.compact { margin-bottom: 13px; }
.pwa-section-head > a { color: var(--pwa-emerald); font-size: .65rem; font-weight: 800; }
.section-actions { display: flex; align-items: center; gap: 7px; }
.section-actions button { min-height: 38px; border: 1px solid #d9e5df; border-radius: 11px; background: #f7faf8; cursor: pointer; }
.section-actions > button:first-child { width: 38px; display: grid; place-items: center; padding: 0; }
.section-actions svg { width: 17px; fill: none; stroke: #53665d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section-actions button.loading svg { animation: pwa-spin .8s linear infinite; }
.add-market-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; color: #075b42; font-size: .64rem; font-weight: 800; }
.add-market-button span { font-size: 1rem; line-height: 1; }

.watchlist-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pwa-market-card { position: relative; min-width: 0; overflow: hidden; padding: 13px; border: 1px solid #e2e9e5; border-radius: 17px; background: #fbfcfb; transition: transform .2s,border-color .2s,box-shadow .2s; }
.pwa-market-card:active { transform: scale(.985); }
.pwa-market-card > header { display: flex; align-items: center; gap: 7px; padding-left: 16px; }
.pwa-asset-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font: 800 .68rem/1 Arial,sans-serif; direction: ltr; }
.pwa-asset-icon.currency { color: #087554; background: #e4f7ef; }
.pwa-asset-icon.gold { color: #9a6c0b; background: #fff3d1; }
.pwa-asset-icon.crypto { color: #5548b5; background: #eeebff; }
.pwa-asset-icon.car { color: #2965a7; background: #e7f0fb; }
.pwa-asset-title { min-width: 0; flex: 1; line-height: 1.2; }
.pwa-asset-title h3 { margin: 0; overflow: hidden; font-size: .72rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.pwa-asset-title span { color: #8a9791; font: .56rem/1.4 Arial,sans-serif; }
.pwa-change { flex: 0 0 auto; padding: 3px 5px; border-radius: 6px; font-size: .56rem; font-weight: 800; direction: ltr; }
.pwa-change.up { color: #087452; background: #e3f7ee; }
.pwa-change.down { color: #bf3b47; background: #ffedef; }
.pwa-change.flat { color: #6c7771; background: #eef2ef; }
.pwa-price { display: flex; align-items: baseline; gap: 5px; margin-top: 13px; direction: rtl; }
.pwa-price strong { overflow: hidden; font: 850 1.05rem/1.25 Tahoma,Arial,sans-serif; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.pwa-price span { color: #89958f; font-size: .52rem; white-space: nowrap; }
.mini-chart { height: 54px; margin: 8px -3px 3px; }
.mini-chart canvas { width: 100%; height: 100%; display: block; }
.pwa-market-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8b9892; font-size: .52rem; }
.pwa-market-card > footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwa-market-card > footer time { flex: 0 0 auto; direction: ltr; }
.pwa-card-detail-link { position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.pwa-card-detail-link:focus-visible { outline: 3px solid rgba(54,211,153,.6); outline-offset: -3px; }
.remove-market { position: absolute; z-index: 3; top: 3px; left: 3px; width: 23px; height: 23px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #98a49e; background: transparent; font-size: .9rem; cursor: pointer; opacity: 0; transition: opacity .2s,background .2s; }
.pwa-market-card:hover .remove-market,.remove-market:focus-visible { opacity: 1; }
.remove-market:hover { color: #b93542; background: #fff0f1; }

.pwa-state { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 16px; border-radius: 14px; background: #f4f7f5; }
.pwa-state > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #b6313e; background: #ffeaec; font-weight: 900; }
.pwa-state b { font-size: .72rem; }.pwa-state p { margin: 2px 0 0; color: var(--pwa-muted); font-size: .6rem; }
.pwa-state button { grid-column: 1/-1; min-height: 38px; border: 0; border-radius: 10px; color: #064b38; background: #dff6ec; font-size: .65rem; font-weight: 800; }
.pwa-empty { padding: 28px 12px; text-align: center; }
.pwa-empty > span { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 15px; color: var(--pwa-emerald); background: #e6f8f0; font-size: 1.2rem; }
.pwa-empty h3 { margin: 0; font-size: .85rem; }.pwa-empty p { margin: 3px 0 12px; color: var(--pwa-muted); font-size: .64rem; }
.pwa-empty button { min-height: 39px; padding: 7px 15px; border: 0; border-radius: 10px; color: #052218; background: var(--pwa-mint); font-size: .66rem; font-weight: 850; }

.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mover-card { position: relative; overflow: hidden; min-height: 102px; padding: 14px; border-radius: 15px; }
.mover-card::after { content: ""; position: absolute; width: 75px; height: 75px; left: -30px; bottom: -35px; border-radius: 50%; background: currentColor; opacity: .06; }
.mover-card.up { color: #087452; background: #e9f8f1; border: 1px solid #d2f0e2; }
.mover-card.down { color: #bc3b47; background: #fff0f1; border: 1px solid #f4d8db; }
.mover-card span { font-size: .56rem; opacity: .75; }.mover-card h3 { margin: 8px 0 1px; overflow: hidden; color: var(--pwa-ink); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }.mover-card b { font: 850 .85rem/1 Arial,sans-serif; direction: ltr; }

.pwa-news-list { display: grid; gap: 2px; }
.pwa-news-list article { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 11px; padding: 10px 0; border-bottom: 1px solid #edf1ef; }
.pwa-news-list article:last-child { border-bottom: 0; }
.news-thumb { width: 76px; height: 65px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #e6eee9; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }.news-thumb span { color: var(--pwa-emerald); font: 900 .85rem/1 Arial,sans-serif; }
.pwa-news-list article > div { min-width: 0; align-self: center; }
.pwa-news-list article > div > span { color: var(--pwa-emerald); font-size: .52rem; font-weight: 800; }
.pwa-news-list h3 { margin: 2px 0; display: -webkit-box; overflow: hidden; font-size: .7rem; line-height: 1.65; font-weight: 800; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pwa-news-list time { color: #8c9892; font-size: .52rem; }
.news-empty { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 13px; background: #f2f6f3; }
.news-empty span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--pwa-emerald); background: #e2f7ed; font: 900 .7rem/1 Arial,sans-serif; }
.news-empty p { margin: 0; color: var(--pwa-muted); font-size: .62rem; }

.pwa-bottom-nav { position: fixed; z-index: 70; right: 50%; bottom: 0; width: min(100%,940px); min-height: calc(67px + var(--safe-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding: 7px 8px var(--safe-bottom); transform: translateX(50%); border-top: 1px solid rgba(7,20,16,.1); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: 0 -12px 35px rgba(7,20,16,.08); }
.pwa-bottom-nav a { position: relative; min-height: 53px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 12px; color: #87938d; font-size: .56rem; font-weight: 750; }
.pwa-bottom-nav a.active { color: var(--pwa-emerald); background: #edf8f3; }
.pwa-bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(4,14,10,.64); backdrop-filter: blur(4px); }
.market-picker { width: min(100% - 16px,560px); max-height: calc(100dvh - 20px); margin: auto auto 8px; border-radius: 25px 25px 17px 17px; background: transparent; }
.picker-sheet { max-height: calc(100dvh - 20px); display: flex; flex-direction: column; overflow: hidden; border-radius: inherit; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.28); }
.picker-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 18px 12px; }
.picker-sheet > header span { color: var(--pwa-emerald); font-size: .59rem; font-weight: 850; }.picker-sheet > header h2 { margin: 1px 0; font-size: 1rem; }.picker-sheet > header p { margin: 0; color: var(--pwa-muted); font-size: .58rem; }
.picker-sheet > header button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; color: #617068; background: #edf2ef; font-size: 1.15rem; cursor: pointer; }
.picker-search { min-height: 46px; display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 0 12px; border: 1px solid #dbe5df; border-radius: 12px; background: #f7faf8; }
.picker-search:focus-within { border-color: #6ab99a; box-shadow: 0 0 0 4px rgba(11,143,103,.08); background: #fff; }
.picker-search svg { width: 18px; fill: none; stroke: #7d8a83; stroke-width: 1.8; stroke-linecap: round; }
.picker-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: .7rem; }
.picker-categories { display: flex; gap: 6px; overflow-x: auto; padding: 11px 16px 9px; scrollbar-width: none; }
.picker-categories::-webkit-scrollbar { display: none; }
.picker-categories button { flex: 0 0 auto; min-height: 32px; padding: 5px 10px; border: 1px solid #dce5e0; border-radius: 999px; color: #6c7972; background: #fff; font-size: .59rem; cursor: pointer; }
.picker-categories button.active { border-color: #0b8f67; color: #07583f; background: #e5f8ef; font-weight: 850; }
.picker-list { min-height: 220px; overflow-y: auto; padding: 0 12px 8px; }
.picker-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto 24px; align-items: center; gap: 8px; min-height: 57px; padding: 7px 5px; border-bottom: 1px solid #edf1ef; cursor: pointer; }
.picker-item .pwa-asset-icon { width: 34px; height: 34px; }
.picker-item-copy { min-width: 0; display: grid; line-height: 1.35; }.picker-item-copy b { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }.picker-item-copy small { color: #8a9690; font-size: .51rem; }
.picker-item-price { display: grid; justify-items: end; line-height: 1.35; }.picker-item-price b { max-width: 100px; overflow: hidden; font: 800 .65rem/1.35 Tahoma,Arial,sans-serif; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }.picker-item-price small { color: #8a9690; font-size: .49rem; }
.picker-item input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #ccd8d1; border-radius: 7px; background: #fff; }
.choice-mark svg { width: 13px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.picker-item input:checked + .choice-mark { border-color: var(--pwa-emerald); background: var(--pwa-emerald); }.picker-item input:checked + .choice-mark svg { opacity: 1; }
.picker-loading { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--pwa-muted); font-size: .62rem; }.picker-loading i { width: 24px; height: 24px; border: 2px solid #d8e6de; border-top-color: var(--pwa-emerald); border-radius: 50%; animation: pwa-spin .8s linear infinite; }
.picker-no-result { padding: 35px 15px; color: var(--pwa-muted); text-align: center; font-size: .65rem; }
.picker-load-more { min-height: 35px; margin: 0 16px 7px; border: 1px solid #dce6e0; border-radius: 10px; color: #587067; background: #f7faf8; font-size: .6rem; font-weight: 800; }
.picker-sheet > footer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + var(--safe-bottom)); border-top: 1px solid #e6ece8; background: #fff; }
.picker-sheet > footer > span { color: var(--pwa-muted); font-size: .59rem; }.picker-sheet > footer > span b { color: var(--pwa-emerald); font-size: .73rem; }
.picker-sheet > footer > div { display: flex; gap: 7px; }.picker-sheet > footer button { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: .62rem; font-weight: 850; cursor: pointer; }
.picker-clear { border: 1px solid #e1e7e3; color: #6d7973; background: #fff; }.picker-apply { border: 0; color: #052218; background: var(--pwa-mint); box-shadow: 0 8px 20px rgba(54,211,153,.2); }

.install-help { width: min(calc(100% - 32px),390px); border-radius: 23px; background: #fff; }
.install-help > div { padding: 27px 22px 20px; text-align: center; }.install-help img { border-radius: 18px; }.install-help h2 { margin: 12px 0 4px; font-size: 1.05rem; }.install-help p { margin: 0 0 17px; color: var(--pwa-muted); font-size: .68rem; line-height: 2; }.install-help button { width: 100%; min-height: 43px; border: 0; border-radius: 11px; color: #052218; background: var(--pwa-mint); font-weight: 850; font-size: .68rem; }
.pwa-toast { position: fixed; z-index: 120; right: 50%; bottom: calc(82px + var(--safe-bottom)); width: min(calc(100% - 30px),420px); padding: 11px 14px; transform: translateX(50%); border-radius: 12px; color: #fff; background: #10281f; box-shadow: 0 12px 35px rgba(0,0,0,.23); text-align: center; font-size: .66rem; }
.pwa-toast.error { background: #8b3039; }

@keyframes pwa-spin { to { transform: rotate(360deg); } }
@keyframes splash-logo-in { from { opacity: 0; transform: translateY(12px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes splash-progress { 0% { transform: translateX(-120%); } 55%,100% { transform: translateX(340%); } }
@keyframes splash-float { 50% { transform: translateY(-10px); opacity: .55; } }

@media (min-width: 720px) {
  .pwa-main { grid-template-columns: 1fr 1fr; padding: 18px; }
  .pwa-hero,.watchlist-section { grid-column: 1/-1; }
  .pwa-hero { min-height: 325px; padding: 30px; }
  .watchlist-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .movers-section,.pwa-news { align-self: start; }
  .market-picker { margin: auto; border-radius: 25px; }
}

@media (max-width: 380px) {
  .pwa-main { padding-inline: 8px; }
  .pwa-hero { padding-inline: 17px; }
  .market-pulse > div { padding: 8px 6px; gap: 5px; }
  .watchlist-grid { grid-template-columns: 1fr; }
  .pwa-market-card { padding: 14px; }
  .mini-chart { height: 62px; }
  .connection-state { display: none; }
}

@media (hover: none) { .remove-market { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
