:root{font-family:Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color-scheme:dark;color:#fff;background-color:#000;--font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--font-label: "SFMono-Regular", "SF Mono", Consolas, monospace;--app-height: 100vh;--safe-area-top: 0px;--safe-area-bottom: 0px;--safe-area-left: 0px;--safe-area-right: 0px;--content-safe-area-top: 0px;--content-safe-area-bottom: 0px;--content-safe-area-left: 0px;--content-safe-area-right: 0px;--telegram-top-extra: 0px;--app-safe-top: max(env(safe-area-inset-top, 0px), var(--content-safe-area-top));--app-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--content-safe-area-bottom));--app-safe-left: max(env(safe-area-inset-left, 0px), var(--content-safe-area-left));--app-safe-right: max(env(safe-area-inset-right, 0px), var(--content-safe-area-right));--app-safe-top-total: calc(var(--app-safe-top) + var(--telegram-top-extra));--bg: #000000;--bg-alt: #020202;--surface: #050505;--surface-strong: #0b0b0b;--glass: rgba(5, 5, 5, .96);--stroke: rgba(255, 255, 255, .11);--stroke-strong: rgba(255, 255, 255, .24);--shadow: 10px 10px 0 rgba(10, 132, 255, .16), 0 28px 70px rgba(0, 0, 0, .72);--accent: #0a84ff;--accent-soft: rgba(10, 132, 255, .14);--muted: #86868c;--danger: #ff453a;--success: #32d74b;--text: #ffffff;--text-secondary: #c1c1c7;--chart-grid: rgba(255, 255, 255, .12);--gauge-track: rgba(255, 255, 255, .12)}[data-theme=light]{color-scheme:light;color:#0b0b0d;background-color:#f4f0e8;--bg: #f4f0e8;--bg-alt: #ece5da;--surface: rgba(255, 253, 247, .94);--surface-strong: #ffffff;--glass: rgba(255, 253, 247, .97);--stroke: rgba(11, 11, 13, .12);--stroke-strong: rgba(11, 11, 13, .24);--shadow: 10px 10px 0 rgba(11, 11, 13, .12), 0 28px 70px rgba(51, 36, 20, .14);--accent: #0057ff;--accent-soft: rgba(0, 87, 255, .1);--muted: #6a655e;--danger: #c9342b;--success: #16803c;--text: #0b0b0d;--text-secondary: #373840;--chart-grid: rgba(11, 11, 13, .12);--gauge-track: rgba(11, 11, 13, .12)}[data-theme=dark]{color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body,#root{min-height:var(--app-height)}button,.glass-card,[role=button],a{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}body{position:relative;min-height:var(--app-height);background:radial-gradient(circle at 14% 0%,rgba(10,132,255,.24),transparent 26%),radial-gradient(circle at 84% 10%,rgba(255,255,255,.08),transparent 18%),linear-gradient(180deg,var(--bg) 0%,var(--bg-alt) 100%);color:var(--text);transition:background .3s ease,color .3s ease;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.024) 1px,transparent 1px),linear-gradient(180deg,rgba(255,255,255,.024) 1px,transparent 1px);background-size:32px 32px;-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.4),transparent 86%);-webkit-mask-repeat:no-repeat;mask-image:linear-gradient(180deg,rgba(0,0,0,.4),transparent 86%);mask-repeat:no-repeat;pointer-events:none;opacity:.32}[data-theme=light] body:before{background:linear-gradient(90deg,rgba(11,11,13,.03) 1px,transparent 1px),linear-gradient(180deg,rgba(11,11,13,.03) 1px,transparent 1px);background-size:32px 32px}img{max-width:100%;display:block}button,input,select,textarea{font-family:inherit}button{color:inherit}input,select,textarea{color:var(--text)}a{color:inherit;text-decoration:none}.app-root{position:relative;min-height:var(--app-height);display:flex;flex-direction:column}.app-root:before{content:"";position:fixed;inset:0;background:linear-gradient(135deg,transparent 0 62%,rgba(10,132,255,.07) 62% 64%,transparent 64%),radial-gradient(circle at 50% -10%,rgba(255,255,255,.08),transparent 30%);pointer-events:none}.app-main{position:relative;flex:1;padding:24px 18px 124px;padding-top:calc(24px + var(--app-safe-top-total));padding-right:calc(18px + var(--app-safe-right));padding-bottom:calc(124px + var(--app-safe-bottom));padding-left:calc(18px + var(--app-safe-left))}.app-main.chat-main-active{padding-bottom:calc(18px + var(--app-safe-bottom))}.page{width:min(100%,860px);margin:0 auto;display:flex;flex-direction:column;gap:20px}.page-header,.page-header-block{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.page-header-leading,.page-header-trailing{min-width:32px}.page-header-titles{flex:1}.page-header-title,.page-header-block h1{font-family:var(--font-display);font-size:clamp(2.35rem,7vw,3.6rem);line-height:.88;font-weight:700;letter-spacing:-.08em;text-transform:uppercase;color:var(--text)}.page-header-subtitle{margin-top:8px;color:var(--text-secondary);font-size:.95rem;line-height:1.5}.page-eyebrow{margin-bottom:10px;font-family:var(--font-label);text-transform:uppercase;font-size:.72rem;font-weight:600;letter-spacing:.2em;color:var(--muted)}.header-actions,.sheet-header-actions,.sheet-toolbar,.page-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:14px}.glass-card,.gift-history-card,.widget-tip{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.045),transparent 32%),linear-gradient(135deg,rgba(10,132,255,.08),transparent 42%),var(--glass);border:1px solid var(--stroke-strong);border-radius:12px;padding:16px;box-shadow:var(--shadow);overflow:hidden}.glass-card:before,.gift-history-card:before,.widget-tip:before{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid rgba(255,255,255,.04);pointer-events:none}[data-theme=light] .glass-card:before,[data-theme=light] .gift-history-card:before,[data-theme=light] .widget-tip:before{border-color:#0b0b0d08}[data-theme=light] .icon-button,[data-theme=light] .secondary-button,[data-theme=light] .search-field,[data-theme=light] .picker-button,[data-theme=light] .segmented-control,[data-theme=light] .models-card-icon,[data-theme=light] .tools-icon,[data-theme=light] .settings-icon{box-shadow:4px 4px #0b0b0d14}.collection-row,.favorite-model-row,.tools-row,.settings-row,.models-card,.portfolio-row{transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}.glass-card:active{transform:translate(2px,2px);box-shadow:4px 4px #0a84ff1f,0 18px 40px #00000085}.icon-button,.secondary-button,.glass-button,.ghost-button,.picker-button,.segment,.tabbar-item,.theme-option{transition:transform .16s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}.icon-button,.secondary-button,.picker-button,.sort-select,.search-field{border:1px solid var(--stroke);background:var(--surface);color:var(--text)}.icon-button{width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:4px 4px #ffffff0a}.icon-button:hover:not(:disabled),.secondary-button:hover:not(:disabled),.picker-button:hover:not(:disabled),.theme-option:hover:not(:disabled){border-color:var(--stroke-strong);transform:translate(-2px,-2px)}.icon-button:active:not(:disabled),.secondary-button:active:not(:disabled),.picker-button:active:not(:disabled),.theme-option:active:not(:disabled),.tabbar-item:active:not(:disabled){transform:scale(.96)}.icon-button:disabled,.glass-button:disabled,.primary-button:disabled,.secondary-button:disabled,.ghost-button:disabled,.picker-button:disabled,.tabbar-item:disabled{opacity:.45;cursor:not-allowed}.primary-button{min-height:44px;border:1px solid rgba(10,132,255,.72);border-radius:10px;background:linear-gradient(135deg,#0a84fff2,#00bfffd1);color:#fff;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;cursor:pointer;box-shadow:4px 4px #0a84ff2e}.icon-button.favorite{color:var(--muted)}.icon-button.favorite.active{color:#ff5a54;border-color:#ff5a5452;background:#ff5a541f;box-shadow:4px 4px #ff5a5429}.glass-button{border:1px solid rgba(10,132,255,.5);border-radius:10px;padding:12px 16px;background:linear-gradient(180deg,#0a84ff38,#0a84ff1a);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-family:var(--font-label);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;box-shadow:6px 6px #0a84ff3d}.glass-button:hover:not(:disabled){background:linear-gradient(180deg,#0a84ff47,#0a84ff24);border-color:#0a84ffa6;transform:translate(-2px,-2px)}.ghost-button,.secondary-button{border-radius:10px;padding:10px 14px;cursor:pointer;font-family:var(--font-label);font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em}.ghost-button{border:1px solid var(--stroke);background:transparent;color:var(--muted)}.ghost-button:hover:not(:disabled){color:var(--text)}.secondary-button{background:#ffffff06;box-shadow:4px 4px #ffffff0a}.search-field{flex:1 1 auto;min-width:260px;min-height:44px;display:flex;align-items:center;gap:10px;padding:0 12px 0 14px;border-radius:10px;box-shadow:inset 0 1px #ffffff08,4px 4px #ffffff0a}.search-field input{flex:1;min-width:0;border:none;background:transparent;outline:none;font-size:.95rem}.search-field:focus-within{border-color:#0a84ffb8;box-shadow:inset 0 1px #ffffff08,4px 4px #0a84ff2e,0 0 0 3px #0a84ff2e}.search-field input::placeholder,.nickname-card input::placeholder{color:var(--muted)}.search-field .icon-button{width:30px;height:30px;border-radius:8px;border-color:transparent;background:transparent;box-shadow:none;color:var(--muted)}.sort-select{display:inline-flex;align-items:center;gap:6px;min-height:52px;padding:0 12px;border-radius:14px}.sort-select select{border:none;background:transparent;outline:none}.picker{position:relative}.picker-button{min-height:44px;border-radius:10px;padding:0 14px;display:inline-flex;align-items:center;gap:10px;cursor:pointer;box-shadow:inset 0 1px #ffffff08,4px 4px #ffffff0a}.picker-icon,.picker-chevron{color:var(--muted)}.picker-label{font-family:var(--font-label);font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em}.picker.open .picker-chevron{transform:rotate(180deg)}.icon-button:focus-visible,.secondary-button:focus-visible,.glass-button:focus-visible,.ghost-button:focus-visible,.picker-button:focus-visible,.segment:focus-visible,.tabbar-item:focus-visible,.theme-option:focus-visible,.widget-tip-close:focus-visible{outline:none;border-color:#0a84ffb8;box-shadow:4px 4px #0a84ff2e,0 0 0 3px #0a84ff2e}.picker-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:200px;padding:8px;border-radius:12px;border:1px solid var(--stroke);background:#050505fa;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;z-index:20;animation:fadeUp .16s ease}[data-theme=light] .picker-menu{background:#fffffffa}.picker-menu.right{right:0;left:auto}.picker-option{border:none;background:transparent;color:var(--text);padding:10px 12px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;font-size:.8rem;font-weight:600}.picker-option:hover:not(:disabled){background:#ffffff0d}[data-theme=light] .picker-option:hover:not(:disabled){background:#0b0b0d0d}.picker-option.selected{background:var(--accent-soft);color:var(--accent)}.picker-option.disabled{opacity:.45;cursor:not-allowed}.picker.sm .picker-button{min-height:40px;padding:0 12px}.picker.sm .picker-menu{min-width:160px}.segmented-control{display:inline-flex;flex-wrap:wrap;gap:6px;padding:6px;border-radius:12px;border:1px solid var(--stroke-strong);background:var(--surface);box-shadow:6px 6px #ffffff0a}.segmented-control .segment{border:1px solid transparent;border-radius:9px;background:transparent;padding:10px 12px;cursor:pointer;font-family:var(--font-label);font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.segmented-control .segment.active{border-color:#0a84ff57;background:var(--accent-soft);color:var(--accent);box-shadow:3px 3px #0a84ff2e}.collection-row{display:grid;grid-template-columns:84px minmax(0,1fr) auto auto auto;gap:16px;align-items:center;cursor:pointer}.collection-row:hover,.favorite-model-row:hover,.tools-row:hover,.settings-row:hover,.models-card:hover,.portfolio-row:hover{border-color:var(--stroke-strong);transform:translate(-3px,-3px)}.collection-image,.favorite-model-image,.detail-hero-image,.portfolio-image,.model-image{overflow:hidden;position:relative;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent),var(--surface-strong);border:1px solid rgba(255,255,255,.06)}.collection-image{width:84px;height:84px;border-radius:10px}.favorite-model-image{width:72px;height:72px;border-radius:10px}.detail-hero-image,.portfolio-image{width:96px;height:96px;border-radius:12px}.model-image{width:100%;height:84px;border-radius:10px;display:flex;align-items:center;justify-content:center}.collection-image img,.favorite-model-image img,.detail-hero-image img,.portfolio-image img{width:100%;height:100%;object-fit:cover}.model-image>div{width:64px!important;height:64px!important}.model-image img{width:auto!important;height:auto!important;max-width:64px!important;max-height:64px!important;object-fit:contain!important}.collection-info,.favorite-model-info,.portfolio-content,.widget-summary,.nickname-status,.native-app-promo-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.collection-title,.favorite-model-title,.tools-title,.settings-title,.models-card-heading,.portfolio-title,.nickname-title,.favorites-total-title,.totals-title,.widget-level,.sheet-title,.detail-hero-title{font-weight:700;letter-spacing:-.02em}.collection-title,.favorite-model-title,.detail-hero-title{font-size:1rem}.collection-subtitle,.favorite-model-subtitle,.collection-prices,.favorite-model-prices,.chart-provider,.price-muted,.sheet-subtitle,.state-subtitle,.metric-label,.provider-stats,.portfolio-price-row,.totals-values,.widget-footnote,.widget-tip,.models-card-subtitle,.detail-hero-subtitle,.portfolio-content .muted,.tools-row .muted,.settings-row .muted,.muted,.sync-subtitle{color:var(--muted)}.collection-prices,.price-tag,.favorite-model-prices,.portfolio-values,.totals-values>span,.provider-meta,.portfolio-provider,.health-metric-value{display:flex;align-items:center;gap:6px}.gift-history-price{display:flex;align-items:center;gap:6px}.collection-prices{flex-wrap:wrap;font-family:var(--font-label);font-size:.76rem}.price-tag{font-family:var(--font-label);font-size:.76rem;font-weight:700;color:var(--text)}.price-tag.muted,.favorite-model-prices .muted,.favorites-total-values .price-tag.muted{color:var(--muted)}.price-tag img,.favorite-model-prices img,.portfolio-values img,.totals-values img,.health-metric-value img{width:12px;height:12px}.mini-sparkline{width:68px;height:28px;display:flex;align-items:center;justify-content:center;justify-self:end}.mini-sparkline.placeholder{border-radius:999px;background:#ffffff14}.gift-history-card{display:flex;flex-direction:column;gap:14px}.gift-history-header,.gift-history-subheader,.chart-header,.provider-card-header,.widget-header,.portfolio-header,.favorites-total-card,.stat-row,.totals-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.gift-history-controls,.chart-values,.nickname-actions,.sync-actions,.native-app-promo-actions,.widget-row,.widget-title,.favorites-total-values,.favorites-total-card,.chart-value,.provider-meta,.tools-row,.settings-row,.models-card-title{display:flex;align-items:center;gap:10px}.gift-history-header,.gift-history-subheader,.chart-header,.provider-card-header{flex-wrap:wrap}.gift-history-price,.health-score,.widget-score{font-size:1.6rem;font-weight:700;letter-spacing:-.04em}.health-score{display:flex;align-items:baseline;gap:6px}.gift-history-price img{width:20px;height:20px}.gift-history-meta,.chart-value,.widget-summary,.native-app-promo-copy{display:flex;flex-direction:column;gap:4px}.gift-history-change{font-weight:700}.gift-history-date,.chart-eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;color:var(--muted)}.gift-history-currency select,.nickname-card input{width:100%;min-width:0;border:1px solid var(--stroke);border-radius:12px;background:var(--surface);padding:12px 14px;outline:none}.gift-history-currency select:focus,.nickname-card input:focus{border-color:#0a84ff61;box-shadow:0 0 0 3px #0a84ff1f}.gift-history-chart-area{min-height:220px}.gift-history-chart{width:100%;height:240px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}.gift-history-hitbox,.line-chart-hitbox{touch-action:pan-y}.chart-state,.state-panel{min-height:200px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;text-align:center;padding:28px 18px}.state-hero{color:var(--muted)}.state-title{font-size:1rem;font-weight:700}.state-title.muted{color:var(--muted)}.state-subtitle{max-width:320px;font-size:.9rem;line-height:1.5}.state-action{margin-top:8px}.gift-history-stats,.provider-metrics,.health-metrics,.stat-grid{display:grid;gap:10px}.gift-history-stats{grid-template-columns:repeat(3,minmax(0,1fr));text-align:center}.gift-history-stats>div,.stat-item{display:flex;flex-direction:column;gap:4px}.gift-history-stats span,.stat-item span{color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.12em}.gift-history-stats strong,.stat-item strong,.stat-row strong,.metric-value{font-size:.95rem;font-weight:700}.ohlc-row{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.8rem}.chevron{color:var(--muted)}.tabbar{position:fixed;left:max(calc(14px + var(--app-safe-left)),calc(50% - 430px));right:max(calc(14px + var(--app-safe-right)),calc(50% - 430px));bottom:calc(14px + var(--app-safe-bottom));width:auto;padding:8px;display:grid;grid-template-columns:repeat(var(--tab-count, 4),minmax(0,1fr));gap:4px;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 46%),#040404fa;border:1px solid var(--stroke-strong);border-radius:14px;box-shadow:10px 10px #0a84ff24,0 24px 60px #0000008c;z-index:40}.telegram-shell[data-telegram-platform=ios] .tabbar{left:max(calc(18px + var(--app-safe-left)),calc(50% - 420px));right:max(calc(18px + var(--app-safe-right)),calc(50% - 420px));bottom:calc(12px + var(--app-safe-bottom));box-shadow:0 18px 44px #0000006b}[data-theme=light] .tabbar{background:linear-gradient(180deg,#fffc,#ffffffeb),#ffffffeb}.tabbar-item{border:1px solid transparent;background:transparent;border-radius:10px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);cursor:pointer;min-width:0;overflow:hidden}.tabbar-item.active{color:var(--accent);background:#0a84ff1f;border-color:#0a84ff57}.tabbar-icon{display:inline-flex}.tabbar-label{font-family:var(--font-label);font-size:.58rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.spin{animation:spin 1.1s linear infinite}.sheet-backdrop{position:fixed;inset:0;background:#000000d1;display:flex;justify-content:center;align-items:flex-end;z-index:100}.sheet-backdrop.full{align-items:stretch}.sheet{width:min(100%,920px);max-height:92vh;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 28%),linear-gradient(135deg,rgba(10,132,255,.08),transparent 40%),#030303fa;border:1px solid var(--stroke-strong);border-bottom:none;border-radius:18px 18px 0 0;box-shadow:0 -12px 48px #00000080;display:flex;flex-direction:column;overflow:hidden;animation:slideUp .24s cubic-bezier(.32,.72,0,1);transform:translate3d(0,var(--sheet-drag-offset, 0px),0);will-change:transform}[data-theme=light] .sheet{background:linear-gradient(180deg,#ffffffb8,#ffffffeb),#fffffff5}.sheet.full{width:100%;max-height:none;border-radius:0}.native-app-promo-sheet{max-width:min(520px,calc(100vw - 24px))}.sheet.is-dragging{transition:none}.sheet-drag-region{min-height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:grab;touch-action:none}.sheet.is-dragging .sheet-drag-region{cursor:grabbing}.sheet-content{padding:18px 18px 38px;padding-top:calc(18px + var(--app-safe-top-total));padding-right:calc(18px + var(--app-safe-right));padding-bottom:calc(38px + var(--app-safe-bottom));padding-left:calc(18px + var(--app-safe-left));display:flex;flex-direction:column;gap:18px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.sheet-header{display:grid;grid-template-columns:minmax(44px,88px) minmax(0,1fr) minmax(44px,88px);align-items:center;gap:10px;min-height:44px}.sheet-header>:first-child{grid-column:1;justify-self:start}.sheet-header>:first-child:not(.icon-button):not(.sheet-header-actions):not(.sheet-header-spacer),.sheet-header>.icon-button:first-child+div{grid-column:2;justify-self:center;min-width:0;max-width:100%;text-align:center}.sheet-header-actions,.sheet-header-spacer{grid-column:3;justify-self:end}.sheet-header-spacer{width:38px;height:38px}.sheet-header-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.sheet-header-actions>svg{color:var(--muted)}.sheet-title{font-size:1.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-subtitle{margin-top:4px;font-family:var(--font-label);font-size:.72rem;text-transform:uppercase;letter-spacing:.16em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-handle{width:64px;height:5px;border-radius:999px;background:#ffffff2e;pointer-events:none}[data-theme=light] .sheet-handle{background:#0b0b0d29}.sheet.is-dragging .sheet-handle{cursor:grabbing}body.sheet-open{overflow:hidden}body.sheet-open .app-main,body.sheet-open .tabbar{pointer-events:none}.keyboard-open .tabbar{display:none}.loading-icon{width:84px;height:84px;display:grid;place-items:center}.loading-spinner{width:42px;height:42px;border-radius:999px;border:3px solid rgba(255,255,255,.12);border-top-color:var(--accent);animation:spin 1.1s linear infinite}[data-theme=light] .loading-spinner{border-color:#0b0b0d1f;border-top-color:var(--accent)}.detail-section{display:flex;flex-direction:column;gap:12px}.section-title,.native-app-promo-eyebrow{display:flex;align-items:center;gap:8px;font-family:var(--font-label);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.18em;color:var(--muted)}.detail-hero{display:flex;align-items:center;gap:16px;padding-bottom:4px}.detail-hero-meta{display:flex;flex-direction:column;gap:8px}.provider-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.provider-card{position:relative;display:flex;flex-direction:column;gap:12px}.provider-header{display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:700}.provider-header img,.provider-card img,.totals-provider img{width:18px;height:18px;border-radius:4px}.totals-provider{display:flex;align-items:center;gap:8px}.provider-price{font-size:1rem;font-weight:700;color:var(--accent)}.provider-stats,.provider-metrics{font-size:.78rem}.provider-card .icon-button{position:absolute;top:12px;right:12px}.provider-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.badge{border:1px solid var(--stroke);border-radius:999px;padding:6px 8px;font-family:var(--font-label);font-size:.64rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);background:#ffffff0a}[data-theme=light] .badge{background:#0b0b0d0a}.chart-card,.widget-card,.health-card,.sync-card,.totals-card{display:flex;flex-direction:column;gap:16px}.chart-title,.widget-title,.sync-title{font-weight:700}.chart-value{min-width:86px;font-size:.78rem}.chart-value img{width:12px;height:12px}.line-chart{width:100%;height:260px}.models-card{display:flex;align-items:center;justify-content:space-between;cursor:pointer}.models-card-icon,.tools-icon,.settings-icon{width:42px;height:42px;min-width:42px;border-radius:10px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);background:#ffffff0f;box-shadow:4px 4px #ffffff0a}[data-theme=light] .models-card-icon,[data-theme=light] .tools-icon,[data-theme=light] .settings-icon{border-color:#0b0b0d14;background:#0b0b0d0a}.social-brand-icon{width:22px;height:22px;object-fit:contain}.settings-icon.highlight{background:#ff5a5414;border-color:#ff5a5429}.settings-icon.accent{background:#0a84ff14;border-color:#0a84ff2e}.settings-icon.warning{background:#ff9f0a14;border-color:#ff9f0a2e}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.stat-row,.stat-item{font-size:.82rem}.stat-row span{color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.health-score{align-items:baseline}.health-bar{height:12px;border-radius:999px;background:#ffffff14;overflow:hidden}[data-theme=light] .health-bar{background:#0b0b0d14}.health-bar-fill{height:100%;background:linear-gradient(90deg,#ff453a,#ffd60a,#32d74b)}.health-metrics{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));font-size:.8rem}.health-metric-value{font-weight:700}.model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.model-card{position:relative;display:flex;flex-direction:column;gap:8px}.model-card .icon-button{position:absolute;top:8px;right:8px;z-index:1}.model-name{font-weight:700;font-size:.88rem}.model-prices{display:flex;flex-direction:column;gap:4px;font-size:.78rem}.model-prices>span{display:flex;align-items:center;gap:4px;white-space:nowrap}.model-prices img{width:12px;height:12px}.model-buy-button{width:100%;min-height:34px;border:1px solid var(--stroke);border-radius:9px;background:#0a84ff24;color:var(--text);font-size:.78rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.model-load-more{grid-column:1 / -1}.heatmap-sheet{max-width:min(1080px,100vw)}.heatmap-content,.purchase-content{display:flex;flex-direction:column;gap:16px;overflow:auto;min-width:0}.heatmap-toolbar{--heatmap-control-height: 48px;display:grid;grid-template-columns:minmax(148px,.9fr) minmax(150px,1fr) minmax(150px,1fr) minmax(132px,.72fr);gap:10px;align-items:stretch;min-width:0}.heatmap-control{min-width:0}.heatmap-toolbar .picker,.heatmap-toolbar .picker-button,.heatmap-toolbar .segmented-control{width:100%;height:var(--heatmap-control-height);min-width:0}.heatmap-toolbar .segmented-control{flex-wrap:nowrap;border-radius:10px;padding:4px;box-shadow:none}.heatmap-toolbar .segmented-control .segment{flex:1 1 0;min-width:0;min-height:0;height:calc(var(--heatmap-control-height) - 10px);padding:8px 9px;line-height:1.1;white-space:nowrap}.heatmap-toolbar .picker-button{justify-content:space-between;padding:0 11px;min-height:0}.heatmap-toolbar .picker-label{min-width:0;overflow:hidden;line-height:1.18;white-space:normal}.heatmap-stage{position:relative;width:100%;flex:1 1 auto;min-height:min(62vh,620px);border:1px solid var(--stroke);border-radius:12px;background:#ffffff09;overflow:hidden;touch-action:none}.heatmap-canvas{position:absolute;inset:0;transform-origin:center;transition:transform .12s ease}.heatmap-tile{position:absolute;border:2px solid rgba(0,0,0,.72);border-radius:5px;color:#fff;padding:8px;overflow:hidden;cursor:pointer;text-align:left;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:0}.heatmap-tile[data-label-mode=compact]{padding:5px}.heatmap-tile[data-label-mode=hidden]{padding:0}.heatmap-tile-icon{width:24px;height:24px;flex:0 0 auto;border-radius:6px;overflow:hidden;filter:drop-shadow(0 1px 3px rgba(0,0,0,.42))}.heatmap-tile .heatmap-tile-icon{width:24px;height:24px}.heatmap-tile[data-label-mode=compact] .heatmap-tile-icon{width:17px;height:17px;border-radius:5px}.heatmap-tile[data-label-mode=hidden] .heatmap-tile-icon{width:10px;height:10px;border-radius:3px}.heatmap-tile span,.heatmap-tile strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 4px rgba(0,0,0,.62);max-width:100%}.heatmap-tile span{font-size:clamp(.62rem,1.1vw,.88rem);font-weight:800}.heatmap-tile strong{font-size:clamp(.58rem,1vw,.8rem)}.heatmap-tile[data-label-mode=compact] span{font-size:.58rem}.heatmap-tile[data-label-mode=compact] strong,.heatmap-tile[data-label-mode=hidden] span,.heatmap-tile[data-label-mode=hidden] strong{display:none}.heatmap-footer,.heatmap-zoom,.purchase-actions{display:flex;align-items:center;gap:10px}.heatmap-footer{justify-content:space-between;min-width:0}.heatmap-footer .muted{min-width:0;overflow-wrap:anywhere}.heatmap-error{border:1px solid rgba(255,69,58,.34);border-radius:10px;color:var(--danger);padding:10px 12px;background:#ff453a14}.heatmap-empty,.purchase-empty{min-height:110px;display:flex;flex-direction:column;justify-content:center}.purchase-sheet{max-width:min(680px,100vw)}.purchase-hero{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center}.purchase-art{width:96px;height:96px;border:1px solid var(--stroke);border-radius:18px;padding:10px;background:#ffffff0d}.purchase-title{font-size:1.25rem;font-weight:900}.purchase-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.purchase-market-list{display:flex;flex-wrap:wrap;gap:8px}.purchase-market-list span{border:1px solid var(--stroke);border-radius:999px;padding:7px 10px;color:var(--muted);font-size:.82rem;font-weight:700}.purchase-offer{display:grid;grid-template-columns:58px minmax(0,1fr) max-content;grid-template-areas:"thumb main price" "action action action";gap:12px;align-items:stretch}.purchase-offer-thumbnail{grid-area:thumb;width:58px;height:58px;border:1px solid var(--stroke);border-radius:12px;background:#ffffff0f;color:var(--muted);padding:0;overflow:hidden;display:flex;align-items:center;justify-content:center}.purchase-offer-thumbnail img,.purchase-offer-thumbnail .remote-image-frame{width:100%;height:100%;object-fit:contain}.purchase-offer-thumbnail .remote-image{object-fit:contain!important}.purchase-offer-main{grid-area:main;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px}.purchase-offer-provider,.purchase-step{display:flex;align-items:center;gap:10px}.purchase-offer-provider{min-width:0;gap:6px;color:var(--muted);font-size:.72rem;font-weight:800}.purchase-offer-provider span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-offer-provider span:first-of-type{flex-shrink:0;max-width:42%}.purchase-offer-provider span:last-child{color:var(--muted-2)}.purchase-offer-provider img,.purchase-offer-price img{width:16px;height:16px;border-radius:5px;flex-shrink:0}.purchase-offer-title,.purchase-offer-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-offer-title{font-size:.98rem;font-weight:900;line-height:1.12}.purchase-offer-subtitle{color:var(--muted);font-size:.78rem;line-height:1.2}.purchase-offer-price{grid-area:price;min-width:88px;max-width:132px;align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-variant-numeric:tabular-nums;text-align:right}.purchase-offer-ton{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;max-width:100%}.purchase-offer-ton strong,.purchase-offer-price span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-offer-price span{color:var(--muted);font-size:.78rem}.purchase-offer-action{grid-area:action;width:100%;min-width:0}@media(max-width:430px){.purchase-offer{grid-template-columns:52px minmax(0,1fr);grid-template-areas:"thumb main" "price price" "action action"}.purchase-offer-thumbnail{width:52px;height:52px}.purchase-offer-price{max-width:none;width:100%;min-width:0;align-items:flex-start;text-align:left}}.purchase-card{display:flex;flex-direction:column;gap:12px}.purchase-input{width:100%;min-height:42px;border:1px solid var(--stroke);border-radius:10px;background:var(--surface);color:var(--text);padding:9px 11px;font:inherit}.purchase-suggested{display:flex;flex-direction:column;gap:10px;color:var(--text)}.purchase-review-row{display:flex;justify-content:space-between;gap:12px;font-size:.9rem}.purchase-review-row span{color:var(--muted)}.purchase-review-row strong{text-align:right}.purchase-status-title{font-size:1.1rem;font-weight:900}.purchase-steps{display:grid;gap:10px}.purchase-step svg{color:var(--muted)}.purchase-step svg.complete{color:var(--success)}.favorite-model-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto auto;gap:14px;align-items:center}.favorite-model-prices{flex-direction:column;align-items:flex-end;gap:4px;font-size:.8rem}.favorite-model-prices>div{display:flex;align-items:center;white-space:nowrap}.sync-title,.sync-actions{flex-wrap:wrap}.favorites-total-card{justify-content:space-between}.favorites-total-values{flex-direction:column;align-items:flex-end}.widget-tip{display:flex;align-items:center;gap:10px;font-size:.82rem}.widget-tip>span{flex:1}.widget-tip-close{background:none;border:none;padding:4px;color:var(--muted);cursor:pointer}.widget-footnote{display:flex;align-items:center;gap:6px}.switch{position:relative;display:inline-flex;width:48px;height:28px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;cursor:pointer;border-radius:999px;background:#ffffff1a;transition:.2s}[data-theme=light] .slider{background:#0b0b0d1a}.slider:before{content:"";position:absolute;left:4px;bottom:4px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}[data-theme=light] .slider:before{background:#0b0b0d}.switch input:checked+.slider{background:var(--accent)}.switch input:checked+.slider:before{transform:translate(20px)}.error-text{color:var(--danger);font-size:.8rem}.tools-row,.settings-row{display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer}.tools-row>div:nth-child(2),.settings-row>div:nth-child(2){flex:1;min-width:0}.telegram-profile-sheet{gap:16px}.telegram-profile-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.telegram-profile-avatar{width:58px;height:58px;max-width:58px;max-height:58px;border-radius:999px;overflow:hidden;border:1px solid var(--stroke);background:var(--surface);color:var(--muted);object-fit:cover;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;font-size:1.18rem;font-weight:700}.telegram-profile-avatar.remote-image-frame{width:58px;height:58px;max-width:58px;max-height:58px;flex:0 0 58px}.telegram-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.telegram-profile-avatar.placeholder{display:flex;align-items:center;justify-content:center}.telegram-profile-main{display:flex;flex-direction:column;gap:8px;min-width:0}.telegram-profile-grid{display:grid;grid-template-columns:1fr;gap:8px}.telegram-profile-grid>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 12px;align-items:baseline;font-size:.82rem}.telegram-profile-grid>div>span{color:var(--muted);line-height:1.3;white-space:nowrap}.telegram-profile-grid>div>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25;justify-self:end;text-align:right}.settings-copy{flex:1 1 220px;min-width:0}.settings-title,.settings-row .muted{overflow-wrap:anywhere}.settings-control{flex:0 1 auto;min-width:0}.settings-row.disabled{opacity:.6;cursor:not-allowed}.settings-row.theme-row{cursor:default}.theme-switcher{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%;gap:6px;padding:6px;border:1px solid var(--stroke-strong);border-radius:12px;background:#ffffff0a}[data-theme=light] .theme-switcher{background:#0b0b0d08}.theme-option{min-width:84px;max-width:100%;height:36px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:8px;font-family:var(--font-label);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em}.theme-option.active{border-color:var(--stroke-strong);background:var(--surface-strong);color:var(--accent);box-shadow:4px 4px #0a84ff24}.theme-option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nickname-card,.empty-card,.totals-block{display:flex;flex-direction:column;gap:12px}.empty-card{text-align:center}.empty-title{font-weight:700}.portfolio-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start}.portfolio-header{align-items:flex-start}.portfolio-prices{display:flex;flex-direction:column;gap:8px}.portfolio-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:#ffffff0a}[data-theme=light] .portfolio-price-row{border-color:#0b0b0d0f;background:#0b0b0d08}.portfolio-values{flex-shrink:0;flex-direction:column;flex-wrap:nowrap;align-items:flex-end;justify-content:flex-end;font-size:.8rem;text-align:right}.portfolio-values>span,.totals-values>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.portfolio-provider{flex:1;min-width:0}.portfolio-provider img{width:16px;height:16px;flex:0 0 auto;border-radius:4px;object-fit:cover}.portfolio-provider span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.totals-card{gap:14px}.totals-title{font-size:.72rem;text-transform:uppercase;letter-spacing:.18em;color:var(--muted)}.totals-row{font-size:.82rem}.totals-values{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.swap-sheet{background:#000}.swap-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;padding-top:calc(20px + var(--app-safe-top-total));padding-right:calc(16px + var(--app-safe-right));padding-left:calc(16px + var(--app-safe-left));color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.swap-title{font-size:.9rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.swap-frame{flex:1;width:100%;border:none}.onboarding{min-height:var(--app-height);display:flex;flex-direction:column;justify-content:space-between;gap:24px;padding:28px 22px;padding-top:calc(28px + var(--app-safe-top-total));padding-right:calc(22px + var(--app-safe-right));padding-bottom:calc(28px + var(--app-safe-bottom));padding-left:calc(22px + var(--app-safe-left));background:radial-gradient(circle at top,rgba(10,132,255,.2),transparent 34%),linear-gradient(180deg,#000,#050505)}.onboarding-header{display:flex;align-items:center;justify-content:space-between}.onboarding-icon{align-self:center;color:var(--accent);padding:24px;border-radius:28px;border:1px solid var(--stroke);background:linear-gradient(180deg,rgba(255,255,255,.03),transparent 50%),var(--surface);box-shadow:var(--shadow)}.onboarding-content{display:flex;flex-direction:column;gap:12px;text-align:left}.onboarding-content h1{font-size:clamp(2.2rem,8vw,3.75rem);line-height:.92;font-weight:700;letter-spacing:-.06em;text-transform:uppercase}.onboarding-content p{max-width:420px;font-size:1rem;line-height:1.55;color:var(--text-secondary)}.onboarding-indicator{display:flex;gap:8px}.onboarding-indicator span{width:18px;height:6px;border-radius:999px;background:#ffffff29}.onboarding-indicator span.active{width:42px;background:var(--accent)}.native-app-promo{gap:18px}.native-app-promo-media{overflow:hidden;border-radius:18px;border:1px solid var(--stroke);background:#ffffff08}.native-app-promo-image{width:100%;height:auto;aspect-ratio:16 / 10;object-fit:cover}.native-app-promo-copy h2{font-size:2rem;line-height:.98;font-weight:700;letter-spacing:-.05em;text-transform:uppercase;color:var(--text)}.native-app-promo-copy p{color:var(--text-secondary);line-height:1.55}.native-app-promo-actions{flex-direction:column}.native-app-promo-actions .glass-button{width:100%}.native-app-promo-secondary,.native-app-promo-secondary-link{align-self:center}.remote-image{animation:fadeIn .25s ease-in;width:100%;height:100%;object-fit:cover}.remote-image-frame{position:relative;width:100%;height:100%;display:block}.remote-image-placeholder{position:absolute;inset:0;background:#ffffff0d;overflow:hidden}[data-theme=light] .remote-image-placeholder{background:#0b0b0d0d}.remote-image-placeholder:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff0,#ffffff24,#fff0);transform:translate3d(-120%,0,0);animation:shimmer 2.6s ease-in-out infinite}.remote-image-frame.is-loaded .remote-image-placeholder{opacity:0;transition:opacity .18s ease-out;pointer-events:none}.page-header.large,.page-header.title{align-items:flex-start}.page-header.center{text-align:center}.page-header.center .page-header-leading,.page-header.center .page-header-trailing{visibility:hidden}.widget-list{display:flex;flex-direction:column;gap:8px}.widget-list-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:.82rem}.rank{color:var(--muted);font-weight:700}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score{font-weight:700}.gauge{width:80px;height:80px;border-radius:50%;display:grid;place-items:center}.gauge-center{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#000;border:1px solid rgba(255,255,255,.08);font-weight:700}[data-theme=light] .gauge-center{background:#fff;border-color:#0b0b0d14}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{transform:translate3d(0,100%,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes shimmer{to{transform:translate3d(120%,0,0)}}@media(prefers-reduced-motion:reduce){.loading-spinner,.picker-menu,.sheet,.remote-image,.remote-image-placeholder:after{animation:none}}@media(max-width:768px){.app-main{padding:20px 14px 116px;padding-top:calc(20px + var(--app-safe-top-total));padding-right:calc(14px + var(--app-safe-right));padding-bottom:calc(116px + var(--app-safe-bottom));padding-left:calc(14px + var(--app-safe-left))}.page{width:100%}.page-header-block h1{font-size:clamp(1.85rem,10vw,2.5rem)}.page-toolbar{flex-direction:column;align-items:stretch}.search-field,.picker-button,.segmented-control{width:100%}.search-field{min-width:0}.segmented-control .segment{padding:8px 10px;font-size:.7rem;letter-spacing:.08em}.heatmap-content{gap:14px;overflow-x:hidden}.heatmap-toolbar{--heatmap-control-height: 42px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.heatmap-range-control,.heatmap-currency-control{grid-column:1 / -1}.heatmap-toolbar .segmented-control,.heatmap-toolbar .picker-button{min-height:0}.heatmap-toolbar .segmented-control .segment{min-height:0;height:calc(var(--heatmap-control-height) - 10px);padding:7px 8px;font-size:.68rem}.heatmap-toolbar .picker-label{font-size:.68rem;letter-spacing:.08em}.heatmap-stage{min-height:min(52vh,420px)}.heatmap-footer{align-items:flex-start;gap:12px}.heatmap-zoom{flex-shrink:0}.page{gap:14px}.collection-row{grid-template-columns:72px minmax(0,1fr) auto auto;gap:12px}.collection-image{width:72px;height:72px}.collection-row .chevron{display:none}.mini-sparkline{width:52px;height:24px}.favorite-model-row{grid-template-columns:64px minmax(0,1fr) auto}.favorite-model-row>.icon-button{grid-column:3;grid-row:1 / span 2;align-self:center}.favorite-model-prices{align-items:flex-start}.provider-grid,.model-grid{grid-template-columns:1fr}.widget-row,.favorites-total-card,.detail-hero,.portfolio-row{align-items:flex-start}.detail-hero,.widget-row,.favorites-total-card,.portfolio-row{flex-direction:column}.settings-row{align-items:flex-start;flex-wrap:wrap}.settings-copy{flex-basis:calc(100% - 54px)}.theme-switcher{margin-left:54px;width:100%;justify-content:space-between}.settings-control.switch{margin-left:auto;align-self:center}.theme-option{flex:1;justify-content:center}.language-switcher .theme-option{flex-basis:100%}.portfolio-row{grid-template-columns:1fr}.tabbar{left:max(calc(12px + var(--app-safe-left)),calc(50% - 430px));right:max(calc(12px + var(--app-safe-right)),calc(50% - 430px));bottom:calc(10px + var(--app-safe-bottom));padding:6px 5px;gap:3px}.telegram-shell[data-telegram-platform=ios] .tabbar{left:calc(18px + var(--app-safe-left));right:calc(18px + var(--app-safe-right));bottom:calc(12px + var(--app-safe-bottom))}.tabbar-item{padding:7px 2px;gap:3px}.tabbar-label{font-size:.5rem;letter-spacing:.03em}.onboarding{padding-left:calc(18px + var(--app-safe-left));padding-right:calc(18px + var(--app-safe-right))}}.chat-view{--chat-composer-offset: 0px;display:flex;flex-direction:column;gap:18px;min-height:0;height:100%}.chat-layout{min-height:0;flex:1}.chat-layout.wide{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:18px;align-items:stretch}.chat-sidebar,.chat-main-panel{min-height:0}.chat-sidebar{display:flex;flex-direction:column}.chat-main-panel{display:flex;flex-direction:column;min-width:0}.chat-history-panel,.chat-conversation-shell{min-height:0;height:100%}.chat-history-panel{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--stroke-strong);border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 46%),#040404b8;box-shadow:8px 8px #0a84ff1f,0 20px 48px #0000005c}[data-theme=light] .chat-history-panel{background:linear-gradient(180deg,#ffffffd1,#ffffffeb),#ffffffe6}.chat-new-thread{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border:1px solid rgba(10,132,255,.28);border-radius:18px;background:#0a84ff1f;color:inherit;text-align:left}.chat-new-thread span{display:flex;flex-direction:column;gap:4px}.chat-new-thread small,.chat-history-empty span{color:var(--muted)}.chat-new-thread-icon{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#0000002e}.chat-history-section-title{font-family:var(--font-label);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.18em;color:var(--muted)}.chat-history-empty{display:flex;flex-direction:column;gap:6px;padding:16px}.chat-history-list{display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0;padding-right:4px}.chat-history-row{display:flex;align-items:stretch;gap:12px;padding:14px;border:1px solid var(--stroke);border-radius:18px;background:#ffffff08;transition:border-color .18s ease,background .18s ease,transform .18s ease}.chat-history-row:hover{border-color:var(--stroke-strong);background:#ffffff0e}.chat-history-row.selected{border-color:#0a84ff57;background:#0a84ff1f;box-shadow:4px 4px #0a84ff24}.chat-history-row-main{flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left}.chat-history-row-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.chat-history-row-topline{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.chat-history-row-topline strong,.chat-history-row-preview{overflow:hidden;text-overflow:ellipsis}.chat-history-row-topline strong{white-space:nowrap}.chat-history-row-topline span,.chat-history-row-preview{color:var(--muted);font-size:.84rem}.chat-history-row-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-history-row-delete{width:40px;min-height:40px;padding:0;border:1px solid transparent;background:#ffffff0a;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:12px;flex-shrink:0;cursor:pointer;position:relative;z-index:1}.chat-history-row-delete:hover{color:var(--danger, #ff6b6b);border-color:#ff6b6b3d;background:#ff6b6b1f}.chat-conversation-shell{position:relative;display:flex;flex-direction:column;overflow:visible}.chat-conversation-empty{min-height:min(70vh,780px);display:grid;place-items:center;padding:24px}.chat-gate-card{width:min(100%,460px);display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px;text-align:center}.chat-gate-icon{width:56px;height:56px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;background:#0a84ff1f;color:var(--accent)}.chat-gate-title{font-size:1.2rem;font-weight:700}.chat-gate-message{color:var(--muted);max-width:38ch}.chat-gate-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.chat-messages{flex:1;min-height:0;overflow:auto;padding:8px 2px 18px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth;overscroll-behavior:contain}.chat-draft-placeholder{display:flex;flex-direction:column;gap:8px;padding:12px 2px 8px;color:var(--muted)}.chat-message-row{display:flex;animation:fadeUp .18s ease}.chat-message-row.user{justify-content:flex-end}.chat-message-row.assistant{justify-content:flex-start}.chat-message-bubble{width:min(100%,560px);border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 34px #0000002e}.chat-message-bubble.user{background:#0a84ff29;border:1px solid rgba(10,132,255,.32)}.chat-message-bubble.assistant{background:#ffffff0d;border:1px solid var(--stroke)}[data-theme=light] .chat-message-bubble.assistant{background:#ffffffc7}.chat-message-text{line-height:1.55;overflow-wrap:anywhere}.chat-message-text>*{margin:0}.chat-message-text>*+*{margin-top:.9em}.chat-message-text :where(h1,h2,h3,h4,h5,h6){margin:0;font-family:var(--font-display);line-height:1.05;letter-spacing:-.04em;text-wrap:balance}.chat-message-text h1{font-size:1.5rem}.chat-message-text h2{font-size:1.3rem}.chat-message-text h3{font-size:1.14rem}.chat-message-text :where(h4,h5,h6){font-size:1rem;font-weight:700}.chat-message-text :where(p,li,blockquote,th,td){line-height:1.55}.chat-message-text :where(ul,ol){margin:0;padding-left:1.4rem}.chat-message-text li+li{margin-top:.34em}.chat-message-text li>*{margin:0}.chat-message-text li>*+*{margin-top:.5em}.chat-message-text li>:where(ul,ol){margin-top:.5em}.chat-message-text input[type=checkbox]{margin-right:.55rem;accent-color:var(--accent)}.chat-message-text a{color:var(--accent);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.18em}.chat-message-text strong{font-weight:700}.chat-message-text code{font-family:var(--font-label);font-size:.92em;padding:.12em .35em;border-radius:.45em;background:#ffffff14}.chat-message-text pre{overflow-x:auto;margin:0;padding:12px 14px;border-radius:14px;border:1px solid var(--stroke);background:#00000047}.chat-message-text pre code{display:block;padding:0;border-radius:0;background:transparent;white-space:pre}.chat-message-text blockquote{margin:0;padding-left:12px;border-left:3px solid rgba(10,132,255,.45);color:var(--text-secondary)}.chat-message-text hr{border:0;border-top:1px solid var(--stroke)}.chat-message-text table{width:100%;border-collapse:collapse;font-size:.95rem}.chat-message-text :where(th,td){padding:8px 10px;border:1px solid var(--stroke);text-align:left;vertical-align:top}.chat-message-text th{font-weight:700}.chat-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:10px}.chat-message-meta-button{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:var(--muted);font-size:.78rem;cursor:pointer}.chat-typing-indicator{display:inline-flex;align-items:center;gap:6px;padding:16px;border-radius:18px;background:#ffffff0d;border:1px solid var(--stroke)}.chat-typing-indicator span{width:8px;height:8px;border-radius:999px;background:var(--muted);animation:chat-dot 1s ease-in-out infinite}.chat-typing-indicator span:nth-child(2){animation-delay:.12s}.chat-typing-indicator span:nth-child(3){animation-delay:.24s}.chat-scroll-bottom{position:absolute;right:18px;bottom:calc(84px + var(--chat-composer-offset));width:42px;height:42px;border-radius:999px;border:1px solid var(--stroke-strong);background:#040404e6;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;box-shadow:4px 4px #0a84ff24}.chat-composer-wrap{position:sticky;bottom:0;z-index:2;display:flex;flex-direction:column;gap:10px;padding:12px 0 calc(12px + var(--chat-composer-offset));background:linear-gradient(180deg,#02020200,#020202c7 22%,#020202f5);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}[data-theme=light] .chat-composer-wrap{background:linear-gradient(180deg,#f4f0e800,#f4f0e8c2 22%,#f4f0e8f5)}.chat-error-banner{padding:12px 14px;border-radius:16px;background:#ff3b301f;border:1px solid rgba(255,59,48,.24);color:#ff8d85;font-size:.84rem}.chat-compact-gate{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px;border-radius:16px;background:#ffffff0a;border:1px solid var(--stroke)}.chat-compact-gate-copy{display:flex;flex-direction:column;gap:4px}.chat-compact-gate-copy span{color:var(--muted);max-width:60ch}.chat-compact-gate-actions{display:flex;flex-wrap:wrap;gap:8px}.chat-composer{display:flex;align-items:flex-end;gap:10px;padding:8px 9px 8px 12px;border:1px solid rgba(10,132,255,.24);border-radius:24px;background:#060a12e0;box-shadow:0 18px 40px #00000047;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}.chat-composer:focus-within{border-color:#0a84ff80;background:#070c16f5;box-shadow:0 18px 40px #00000052,0 0 0 3px #0a84ff1a}.chat-composer textarea{flex:1;min-height:50px;max-height:220px;display:block;box-sizing:border-box;resize:none;border:0;background:transparent;color:inherit;font:inherit;line-height:1.45;padding:13px 8px 11px 0;appearance:none;overflow-y:auto;scrollbar-width:thin}.chat-composer textarea:focus{outline:none}.chat-composer textarea::placeholder{color:var(--muted);opacity:.82}.chat-send-button{width:46px;height:46px;border-radius:999px;border:1px solid rgba(10,132,255,.34);background:#0a84ff2e;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:2px;transition:transform .16s ease,background .18s ease,border-color .18s ease}.chat-send-button:not(:disabled):hover{border-color:#0a84ff8f;background:#0a84ff42}.chat-send-button:not(:disabled):active{transform:scale(.94)}.chat-send-button:disabled{opacity:.45}.chat-history-sheet{max-width:min(100vw - 20px,560px)}@keyframes chat-dot{0%,80%,to{transform:scale(.7);opacity:.5}40%{transform:scale(1);opacity:1}}@media(max-width:980px){.app-main.chat-main-active:not(.chat-composer-focused) .chat-view{--chat-composer-offset: calc(92px + var(--app-safe-bottom))}.app-main.chat-main-active.chat-composer-focused .chat-view{--chat-composer-offset: 0px}.chat-layout{min-height:calc(var(--app-height, 100vh) - 172px - var(--app-safe-top-total, 0px) - var(--app-safe-bottom, 0px))}}@media(max-width:640px){.chat-history-panel{padding:14px}.chat-message-bubble{width:min(100%,100%)}.chat-compact-gate{align-items:flex-start}.chat-scroll-bottom{right:0}}
