:root{color-scheme:dark;--card:var(--panel);--soft:var(--panel-2);--bg:#080f14;--panel:#101b23;--panel-2:#14242c;--line:#24353d;--text:#f3f8fb;--muted:#99acb8;--teal:#49e1c3;--teal-dark:#102c2b;--red:#ff7b88;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.45}a{color:inherit}button,a,input,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;color:var(--muted);background:transparent;flex:none}.icon-button:hover{color:var(--text);background:#ffffff07}.icon-button.framed{background:var(--panel);border:1px solid var(--line)}.eyebrow{font-size:10px;line-height:1.4;font-weight:700;letter-spacing:1.8px;color:var(--muted)}.button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 16px;border:1px solid transparent;border-radius:14px;font-size:14px;font-weight:650;text-decoration:none}.primary{background:var(--teal);color:#09221c}.secondary{background:#18302f;color:#d4fff5;border-color:#2a4943}.subtle{background:transparent;color:var(--muted)}.wide{width:100%}.status{font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere;min-height:21px}.status.error{color:var(--red)}
.auth-view{min-height:100svh;max-width:480px;margin:auto;padding:calc(42px + var(--safe-top)) 26px calc(24px + var(--safe-bottom));display:flex;flex-direction:column}.auth-brand{display:flex;align-items:center;gap:13px;font-size:25px;font-weight:800;letter-spacing:1px}.auth-brand img{width:48px;height:48px;object-fit:contain;border-radius:14px}.auth-copy{padding:48px 0 28px}.auth-copy .eyebrow{color:var(--teal);font-size:9px;letter-spacing:1.3px}.auth-copy h1{font-size:36px;line-height:1.35;letter-spacing:-1.5px;margin:13px 0 17px;font-weight:700}.auth-copy p{font-size:14px;color:var(--muted);line-height:1.9}.auth-card{padding:23px;background:var(--panel);border:1px solid var(--line);border-radius:22px}.auth-card label,.export-sheet label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}input,textarea{width:100%;background:#0a131a;color:var(--text);border:1px solid #2e414b;border-radius:11px;min-height:48px;padding:12px 13px;font-size:16px;outline:none}input:focus,textarea:focus{border-color:var(--teal)}input::placeholder{color:#657c89}.auth-card input{margin-bottom:20px}.auth-card .button{width:100%}.auth-card .primary{justify-content:space-between}.auth-card h2{font-size:21px;margin:12px 0}.auth-card p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:24px}.auth-view>.status{padding:14px 5px}.auth-footer{margin-top:auto;padding-top:35px;text-align:center;font-size:10px;letter-spacing:3px;color:#5f7682}
.install-help{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:11px;background:none;border:0;min-height:44px;padding:12px 0;width:100%}.install-help .icon{width:13px;height:13px}.install-steps{padding-left:22px;margin:15px 0 24px;font-size:14px;line-height:1.9}.install-steps li{padding-left:4px;margin-bottom:10px}
.app-shell{height:100vh;height:100dvh;max-width:760px;margin:auto;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(12px + var(--safe-top)) 21px 10px;min-height:64px;flex:none}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:.5px}.brand img{border-radius:8px;width:29px;height:29px;object-fit:contain}.brand-dot{width:5px;height:5px;background:var(--teal);border-radius:100%;align-self:flex-end;margin-bottom:8px}.header-right{display:flex;gap:5px;align-items:center;min-width:0}.server-label{max-width:150px;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--line);padding:6px 9px;border-radius:8px}.header-right>.icon-button{width:32px;height:36px}.header-right .icon{width:18px;height:18px}.main-content{flex:1;min-height:0;display:flex;flex-direction:column}.home-view{padding:14px 21px 24px;overflow-y:auto;overscroll-behavior-y:contain;flex:1}.section-caption{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-caption h1,.workspace-heading h1{font-size:27px;line-height:1.5;letter-spacing:-.6px;margin-top:4px}.section-caption .eyebrow{font-size:9px}.wallet-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.wallet-picker{display:flex;align-items:center;gap:11px;min-width:0;max-width:100%;border:0;background:none;color:var(--text);padding:0;text-align:left;min-height:44px}.wallet-avatar{width:41px;height:41px;background:var(--panel-2);border:1px solid #27413f;display:flex;align-items:center;justify-content:center;border-radius:13px;color:var(--teal);flex:none}.wallet-picker>span:nth-child(2){min-width:0}.wallet-picker strong{display:block;font-size:15px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wallet-family{display:block;font-size:10px;color:var(--muted);margin-top:5px}.wallet-picker .chevron{width:15px;height:15px;color:var(--muted)}.address-button{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums;min-height:34px;background:none;border:0;padding:6px 0}.address-button .icon{width:13px;height:13px}.balance-card{background:radial-gradient(ellipse at 100% 0,#184c421a,transparent 75%),var(--panel);border:1px solid #294039;border-radius:23px;padding:17px 19px 19px;box-shadow:0 8px 30px #00000016}.balance-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:500;color:var(--muted)}.balance-heading .icon-button{width:28px;height:28px}.balance-heading .icon{width:17px;height:17px}.wallet-total{font-size:40px;font-weight:650;letter-spacing:-1.9px;font-variant-numeric:tabular-nums;margin:8px 0 7px;overflow-wrap:anywhere}.valuation-status{color:var(--muted);font-size:10px;line-height:1.6;min-height:16px}.balance-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.balance-actions .button{min-height:43px;font-size:13px;padding:10px 7px;border-radius:12px}.balance-actions .icon{width:17px;height:17px}.notice{font-size:11px;line-height:1.8;color:#d9ba81;background:#5f421615;border:1px solid #6550235e;padding:12px 13px;border-radius:12px;margin-top:14px;overflow-wrap:anywhere}.asset-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:26px 0 9px}.asset-heading h2{font-size:17px;display:flex;gap:8px;align-items:center}.count{font-size:10px;color:var(--muted);font-weight:400}.asset-heading>span{font-size:10px;color:#738995}.asset-row{display:flex;align-items:center;gap:12px;width:100%;padding:15px 0;border:0;border-bottom:1px solid #1c2b34;background:transparent;text-align:left;color:var(--text);min-height:80px}.asset-avatar{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:14px;background:#172831;color:#d9e8ec;font-size:12px;font-weight:700;letter-spacing:-.5px}.asset-info{flex:1;min-width:0}.asset-name{display:flex;align-items:center;gap:5px;min-width:0;font-size:14px;font-weight:600}.asset-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.native-tag{font-size:8px;border:1px solid #3c4a4e;color:#a2b0b7;padding:2px 4px;border-radius:3px;font-weight:400;flex:none}.asset-chain{font-size:10px;color:var(--muted);margin-top:6px;display:flex;align-items:center;gap:5px}.chain-dot{width:5px;height:5px;border-radius:100%;background:var(--teal)}.asset-amount{flex:none;text-align:right;max-width:50%}.asset-value{font-size:14px;display:block;font-variant-numeric:tabular-nums}.asset-balance{font-size:10px;color:var(--muted);display:block;margin-top:6px;overflow-wrap:anywhere}.empty-state{text-align:center;padding:25px 12px 15px}.empty-icon{width:52px;height:52px;background:var(--panel);border:1px solid var(--line);border-radius:18px;color:#698995;display:grid;place-items:center;margin:0 auto 14px}.empty-state h3{font-size:15px;font-weight:600;margin-bottom:9px}.empty-state p{font-size:12px;line-height:1.8;color:var(--muted);max-width:260px;margin:auto}.empty-state .button{font-size:12px;min-height:41px;max-width:230px;margin:17px auto 0}.empty-state .icon{width:18px;height:18px}.home-footnote{font-size:10px;line-height:1.8;color:#6f8794;padding-top:18px}.bottom-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));flex:none;padding:8px 12px calc(9px + var(--safe-bottom));border-top:1px solid #20323c;background:#0b151c}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:49px;border:0;background:transparent;color:#8299a7;border-radius:12px;font-size:10px}.bottom-nav .icon{width:22px;height:22px}.bottom-nav button[aria-current="page"]{color:var(--teal)}.bottom-nav button[aria-current="page"] .icon{stroke-width:2}.workspace-view{display:flex;flex-direction:column;flex:1;min-height:0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 21px 12px;flex:none}.workspace-heading .eyebrow{font-size:8px}.workspace-heading h1{font-size:24px;margin:3px 0 0}.workspace-heading .icon-button{width:37px;height:37px}.workspace-heading .icon{width:18px;height:18px}.frame-host{flex:1;min-height:0;overflow:hidden}.frame-host iframe{display:block;width:100%;height:100%;border:0;background:var(--bg)}.workspace-status{font-size:12px;color:var(--muted);margin:0 21px 12px;line-height:1.7}.segmented{display:flex;background:var(--panel);padding:4px;border:1px solid var(--line);border-radius:13px;margin:0 21px 8px;gap:4px;flex:none}.segmented button{flex:1;min-height:38px;border:0;color:var(--muted);background:none;border-radius:9px;font-size:12px}.segmented button[aria-selected="true"]{color:var(--teal);background:#24433887;box-shadow:0 1px 4px #0002}.monitor-note{font-size:9px;line-height:1.6;color:#8295a0;margin:0 21px 10px;flex:none}
.sheet{padding:10px 23px calc(25px + var(--safe-bottom));background:#111d25;color:var(--text);border:1px solid #2b3d48;border-radius:27px 27px 0 0;max-height:88dvh;width:100%;max-width:540px;margin:auto auto 0;box-shadow:0 -12px 60px #0009;overflow-y:auto;overscroll-behavior:contain}.sheet::backdrop{background:#02090dc9;backdrop-filter:blur(5px)}.sheet-handle{width:33px;height:4px;background:#485861;border-radius:10px;margin:0 auto 15px}.sheet-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.sheet-title h2{font-size:21px;line-height:1.5}.sheet-title .eyebrow{font-size:8px}.sheet-hint{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:19px;overflow-wrap:anywhere}.wallet-list{margin-bottom:17px}.wallet-option{display:flex;gap:9px;align-items:center;border-bottom:1px solid var(--line);padding:5px 0}.wallet-option-main{display:flex;align-items:center;flex:1;min-width:0;padding:11px 0;text-align:left;color:var(--text);background:none;border:0;gap:12px}.wallet-option-main>span:last-child{min-width:0}.wallet-option-main strong{display:block;font-size:14px;overflow-wrap:anywhere}.wallet-option-main small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.wallet-option[aria-current="true"] .wallet-avatar{background:#244a42;color:var(--teal)}.wallet-option .icon-button[aria-pressed="true"]{color:#f3ca72}.wallet-option .icon-button[aria-pressed="true"] .icon{fill:#f3ca7225}.wallet-option .icon-button .icon{width:19px;height:19px}.address-block{display:block;font-size:15px;padding:19px 15px;line-height:1.85;background:#09141b;border:1px solid var(--line);border-radius:13px;overflow-wrap:anywhere;word-break:break-all;margin-bottom:18px;user-select:all}.sheet-action{display:flex;align-items:center;gap:12px;padding:16px 4px;width:100%;text-align:left;color:var(--text);font-size:14px;border:0;border-bottom:1px solid var(--line);background:none}.sheet-action.danger{color:var(--red)}.sheet-action .icon{width:21px;height:21px}.export-warning{color:#ffd3a6;font-size:12px;line-height:1.8;border:1px solid #75522964;background:#51372128;padding:12px;border-radius:11px;margin-bottom:14px}.export-sheet form .button{margin:16px 0}.export-sheet textarea{resize:none;min-height:130px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;line-height:1.8;word-break:break-all;margin:9px 0 13px}.export-sheet #exportStatus{margin-top:12px}.toast{position:fixed;left:50%;bottom:calc(91px + var(--safe-bottom));transform:translateX(-50%);max-width:min(85vw,420px);padding:11px 17px;border:1px solid #335149;background:#152e28;box-shadow:0 4px 30px #0008;color:#e5fff8;border-radius:12px;font-size:12px;line-height:1.6;z-index:100;pointer-events:none;text-align:center}.busy .icon{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:350px){.app-header{padding-left:16px;padding-right:16px}.home-view{padding-left:16px;padding-right:16px}.server-label{max-width:105px}.section-caption{margin-bottom:14px}.wallet-total{font-size:34px}.wallet-picker strong{max-width:155px}.balance-card{padding:14px 15px 16px}.balance-actions{gap:7px}.wallet-line{gap:6px}.asset-row{gap:9px}.asset-value{font-size:12px}.asset-balance{font-size:9px}.asset-avatar{width:34px;height:34px;border-radius:11px}.auth-view{padding-left:20px;padding-right:20px}.auth-copy{padding-top:32px}.auth-copy h1{font-size:32px}.auth-card{padding:19px}.workspace-heading{padding-left:16px;padding-right:16px}}
@media(min-width:600px){body{background:#060c10}.app-shell{border-left:1px solid #192934;border-right:1px solid #192934}.home-view{padding:24px 32px 32px}.app-header{padding-left:32px;padding-right:32px}.balance-card{padding:25px}.wallet-total{font-size:48px}.balance-actions{max-width:350px}.sheet{border-radius:25px;margin:auto;max-height:85dvh;padding-bottom:28px}.sheet-handle{display:none}.sheet-title{padding-top:10px}}
@media(orientation:landscape) and (max-height:500px){.app-header{padding-top:calc(5px + var(--safe-top));padding-bottom:4px;min-height:42px}.bottom-nav{padding-top:4px;padding-bottom:calc(4px + var(--safe-bottom))}.bottom-nav button{flex-direction:row;min-height:44px;gap:7px}.bottom-nav .icon{width:18px;height:18px}.workspace-heading{padding-top:0;padding-bottom:5px}.workspace-heading .eyebrow{display:none}.workspace-heading h1{font-size:18px}.monitor-note{display:none}.segmented{margin-bottom:5px}.segmented button{min-height:28px}.auth-view{padding-top:20px}}

/* Community panes share the desktop message renderer while keeping one trading iframe. */
.header-right{min-width:0;gap:3px}.header-right .server-label{max-width:104px}.header-right .icon-button{width:35px;height:38px}.header-right .icon{width:20px;height:20px}
.community-view{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}.community-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 21px 12px;flex:none}.community-heading .eyebrow{font-size:8px}.community-heading h1{font-size:24px;margin:3px 0 0}.community-heading-actions{display:flex;gap:7px}.community-heading .icon-button{width:37px;height:37px}.community-heading .icon{width:18px;height:18px}.mobile-community-host{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0 12px 10px}.mobile-community-host> *{min-width:0}.settings-community-actions{display:flex;gap:8px;padding:0 21px 10px;flex:none}.settings-community-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;color:var(--teal);background:var(--panel);border:1px solid var(--line);border-radius:10px;font-size:12px}.settings-community-actions .icon{width:16px;height:16px}.bottom-nav button{min-width:0;padding-left:2px;padding-right:2px;white-space:nowrap}.bottom-nav{padding-left:max(8px,var(--safe-left));padding-right:max(8px,var(--safe-right))}.community-view textarea{font-size:16px}
@media(max-width:350px){.header-right .server-label{max-width:69px;font-size:9px}.app-header{gap:7px}.community-heading{padding-left:16px;padding-right:16px}.mobile-community-host{padding-left:8px;padding-right:8px}.bottom-nav button{font-size:10px}.settings-community-actions{padding-left:16px;padding-right:16px}}
@media(orientation:landscape) and (max-height:500px){.community-heading{padding-top:0;padding-bottom:5px}.community-heading .eyebrow{display:none}.community-heading h1{font-size:18px}.community-heading .icon-button{height:30px;width:32px}.settings-community-actions{padding-bottom:5px}.settings-community-actions button{min-height:30px;padding:5px 10px}}
.mobile-community-host .community-shell{flex:1;height:auto;min-height:0;width:100%}.mobile-community-host .community-head{flex:none;padding:10px 12px}.mobile-community-host .community-head h2{font-size:15px}.mobile-community-host .community-compose{flex:none}.mobile-community-host .community-compose textarea{min-height:44px}.mobile-community-host .community-feed{min-height:0}#mobileFlashConfigHost{overflow:auto;overscroll-behavior:contain}#mobileFlashConfigHost>.community-config{flex:none;max-width:none;width:100%}.mobile-community-host .community-config{width:100%}
@media(orientation:landscape) and (max-height:500px){.mobile-community-host .community-head{padding:6px 10px}.mobile-community-host .community-subtitle{display:none}.mobile-community-host .community-compose{padding:6px 10px}.mobile-community-host .community-compose textarea{min-height:38px}.mobile-community-host .community-compose .community-status:empty{display:none}}

.bottom-nav button[data-view="flash"]{position:relative}.flash-unread-badge{position:absolute;right:calc(50% - 23px);top:0;display:inline-flex;align-items:center;justify-content:center;min-width:14px;height:14px;padding:0 3px;border-radius:8px;background:#e6bb4b;color:#1c1809;font-size:8px;font-weight:800;line-height:1}.header-right #chatButton[aria-pressed="true"]{color:var(--teal);background:#24433887}
.mobile-community-host .community-check{white-space:nowrap}.mobile-community-host .community-check input[type="checkbox"]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:none;accent-color:var(--teal)}

/* The exchange follows the same selected palette as the rest of the app. */
body[data-mobile-view="swap"]{background:var(--bg)}
body[data-mobile-view="swap"] .app-shell{background:var(--bg)}
body[data-mobile-view="swap"] .app-header{background:var(--bg);color:var(--text);border-bottom:1px solid var(--line)}
body[data-mobile-view="swap"] .brand-dot{background:var(--teal)}
body[data-mobile-view="swap"] .header-right .icon-button{color:var(--muted)}
body[data-mobile-view="swap"] .server-label{color:var(--muted);border-color:var(--line)}
body[data-mobile-view="swap"] .workspace-heading{display:none}
body[data-mobile-view="swap"] .workspace-status{margin-top:16px;color:var(--muted)}
body[data-mobile-view="swap"] .frame-host iframe{background:var(--bg)}
body[data-mobile-view="swap"] .bottom-nav{border-top-color:var(--line);background:var(--bg)}
body[data-mobile-view="swap"] .bottom-nav button{color:var(--muted)}
body[data-mobile-view="swap"] .bottom-nav button[aria-current="page"]{color:var(--teal)}

.asset-avatar{overflow:hidden}.asset-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.asset-price{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Color-only light palette; existing spacing, sizes and navigation remain intact. */
html[data-theme="day"]{color-scheme:light;--bg:#f7f9fa;--panel:#fff;--panel-2:#edf2f5;--line:#d9e2e6;--text:#17252e;--muted:#627681;--teal:#087e68;--teal-dark:#e3f5ef;--red:#c33d53}
#mobileThemeIcon{font-size:23px;line-height:1}
html[data-theme="day"] .icon-button:hover{background:#15252e08}
html[data-theme="day"] .primary{background:var(--teal);color:#fff}
html[data-theme="day"] .secondary{background:#e3f5ef;color:#126c5b;border-color:#baded2}
html[data-theme="day"] input,html[data-theme="day"] textarea{background:#fff;border-color:var(--line)}
html[data-theme="day"] .wallet-avatar,html[data-theme="day"] .balance-card{border-color:#c8ded6}
html[data-theme="day"] .notice{color:#816015;background:#fff7e2;border-color:#e4d4a8}
html[data-theme="day"] .asset-row{border-color:var(--line)}
html[data-theme="day"] .asset-avatar{background:#e1ecf0;color:#365965}
html[data-theme="day"] .native-tag{border-color:#c7d5dc;color:#627681}
html[data-theme="day"] .bottom-nav{background:#fff;border-top-color:var(--line)}
html[data-theme="day"] .bottom-nav button{color:var(--muted)}
html[data-theme="day"] .bottom-nav button[aria-current="page"]{color:var(--teal)}
html[data-theme="day"] .sheet{background:var(--panel);border-color:var(--line);box-shadow:0 -12px 60px #17313b25}
html[data-theme="day"] .sheet::backdrop{background:#1a35475e}
html[data-theme="day"] .sheet-handle{background:#b7c6cf}
html[data-theme="day"] .address-block{background:var(--panel-2)}
html[data-theme="day"] .wallet-option[aria-current="true"] .wallet-avatar{background:#d9f2e8}
html[data-theme="day"] .export-warning{color:#87541a;background:#fff5e6;border-color:#edd4ab}
html[data-theme="day"] .toast{background:#e5f7f0;color:#175646;border-color:#9dcebb;box-shadow:0 4px 30px #19352a25}
html[data-theme="day"] .segmented button[aria-selected="true"],html[data-theme="day"] .header-right #chatButton[aria-pressed="true"]{background:#dceee7}
html[data-theme="day"] .community-status.error,html[data-theme="day"] .community-button.danger{color:#b43c48}
@media(min-width:600px){html[data-theme="day"] body{background:#edf2f5}html[data-theme="day"] .app-shell{border-color:var(--line)}}

/* Wallet overview: real snapshot history with a compact, readable balance. */
.home-view .section-caption{margin-bottom:15px}.home-view .section-caption h1{font-size:19px;margin-top:2px}.home-view .section-caption .eyebrow{font-size:8px;letter-spacing:1.5px}
.wallet-line{justify-content:flex-start;gap:12px;margin-bottom:10px}.wallet-picker{gap:9px}.wallet-picker strong{font-size:21px;font-weight:700;letter-spacing:-.5px;max-width:235px}.wallet-picker>.wallet-avatar{width:32px;height:32px;border-radius:9px}.wallet-picker>.wallet-avatar .icon{width:20px;height:20px}.wallet-family{font-size:9px;margin-top:4px}.address-button{margin-left:auto;gap:5px;min-height:40px}.address-button .icon{width:17px;height:17px}.address-button span{display:none}
.balance-card{padding:0;border:0!important;border-radius:0;background:transparent;box-shadow:none}.balance-heading{font-size:10px}.balance-heading .icon-button{width:35px;height:35px}.wallet-total{font-size:clamp(38px,10.8vw,60px);line-height:1.13;font-weight:750;letter-spacing:-2px;margin:3px 0 12px}.balance-change-line{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;font-variant-numeric:tabular-nums}.balance-change{font-size:clamp(15px,4.7vw,22px);font-weight:500;letter-spacing:-.25px}.balance-period{font-size:11px;color:var(--muted)}.gain{color:var(--teal)}.loss{color:#d968a4}.unknown,.flat{color:var(--muted)}.valuation-status{font-size:10px;margin-top:6px}
.asset-history-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;margin-top:8px;padding:3px 0;border:0;background:transparent;color:var(--muted);font-size:11px;text-align:left;cursor:pointer}.asset-history-toggle-action{display:inline-flex;align-items:center;gap:5px}.asset-history-toggle .icon{width:16px;height:16px}.asset-history-toggle[aria-expanded="true"] .icon{transform:rotate(180deg)}.asset-history-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:5px}.asset-chart{position:relative;margin:4px -4px 0;min-height:183px}.asset-chart-values{display:flex;justify-content:space-between;gap:10px;padding:0 4px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.asset-history-svg{display:block;width:100%;height:170px;overflow:visible;touch-action:pan-y}.asset-chart-dates{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted);padding:2px 4px 0}.asset-chart-tooltip{position:absolute;left:50%;top:23px;transform:translateX(-50%);white-space:nowrap;background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:9px;padding:6px 10px;font-size:10px;pointer-events:none;box-shadow:0 3px 15px #0002}.asset-chart-coverage{font-size:10px;color:var(--muted);text-align:center;margin-top:8px}.asset-chart-empty{min-height:179px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--line);border-radius:15px;color:var(--muted);background:linear-gradient(180deg,transparent,#ffffff02)}.asset-chart-empty-mark{font-size:30px;color:var(--teal);font-weight:300}.asset-chart-empty strong{font-size:12px;font-weight:500}.asset-chart-empty>span:last-child{font-size:10px}.asset-periods{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.asset-periods button{min-height:35px;border:0;border-radius:20px;font-size:12px;color:var(--muted);background:none}.asset-periods button[aria-pressed="true"]{background:var(--panel-2);color:var(--text);font-weight:650}.balance-actions{margin-top:20px;max-width:none}.balance-actions .button{min-height:42px}.asset-heading{margin-top:25px}.asset-row{gap:10px;padding:13px 0;min-height:86px}.asset-amount{max-width:63%}.asset-pnl{display:block;font-size:10px;margin-top:7px;font-variant-numeric:tabular-nums;line-height:1.5;overflow-wrap:anywhere}.asset-pnl.unknown{font-size:9px}.asset-avatar{width:36px;height:36px;border-radius:50%}.home-footnote{padding-top:12px;font-size:9px}
html[data-theme="day"] .loss{color:#b4437d}html[data-theme="day"] .asset-chart-empty{background:#ffffff50}
@media(max-width:350px){.wallet-picker strong{max-width:210px;font-size:19px}.wallet-total{font-size:38px}.balance-change{font-size:15px}.asset-row{gap:8px}.asset-pnl{font-size:9px}.asset-name{font-size:12px}.asset-balance{font-size:9px}.asset-amount{max-width:65%}.asset-avatar{width:30px;height:30px}.asset-history-svg{height:146px}.asset-chart{min-height:160px}.asset-chart-empty{min-height:156px}.balance-period{font-size:10px}}
@media(min-width:600px){.wallet-total{font-size:62px}.asset-history-svg{height:240px}.asset-chart-empty{min-height:240px}.home-view .section-caption h1{font-size:22px}.balance-actions{max-width:400px}.asset-pnl{font-size:12px}.asset-periods{max-width:440px;margin-left:auto;margin-right:auto}}

/* Shared mobile surfaces: clear section levels, quiet chrome and one accent. */
:root{--bg:#09121c;--panel:#101e2c;--panel-2:#162838;--line:#233749;--text:#eef5fb;--muted:#91a5b8;--teal:#53dbc1;--teal-dark:#12352f;--red:#fb7f8d;--mobile-radius:18px}
html[data-theme="day"]{--bg:#f2f5f8;--panel:#fff;--panel-2:#eaf0f5;--line:#dce5ec;--text:#192c3b;--muted:#657c8e;--teal:#087f6b;--teal-dark:#e0f3ec;--red:#c64559}
.app-header{padding:calc(9px + var(--safe-top)) 18px 9px;min-height:60px;border-bottom:1px solid var(--line);background:var(--bg)}
.brand{font-size:17px;letter-spacing:1px;gap:8px}.brand img{width:27px;height:27px;border-radius:8px}.brand-dot{display:none}
.header-right{gap:2px}.header-right .server-label{max-width:115px;border:0;background:var(--panel-2);border-radius:20px;padding:6px 9px;font-size:10px}
.header-right .icon-button{width:33px;height:36px;border-radius:11px}.header-right .icon{width:18px;height:18px}#mobileThemeIcon{font-size:20px}
.home-view{padding:18px 18px 24px}.home-view .section-caption{margin-bottom:14px}.home-view .section-caption h1{font-size:23px;line-height:1.4;letter-spacing:-.6px;margin:0}
.home-view .section-caption .eyebrow,.workspace-heading .eyebrow,#communityView>.community-heading .eyebrow{display:none}
.section-caption .icon-button.framed{width:36px;height:36px;border:0;background:var(--panel-2);border-radius:11px}.section-caption .icon{width:18px;height:18px}
.wallet-line{gap:8px;margin-bottom:14px;flex-wrap:nowrap}.wallet-picker{flex:1;min-width:0;gap:9px}.wallet-picker strong{font-size:17px;letter-spacing:-.2px;max-width:min(51vw,320px)}
.wallet-picker>.wallet-avatar{width:36px;height:36px;border-radius:12px;border-color:var(--line);background:var(--panel-2)}.wallet-family{font-size:10px;color:var(--muted);margin-top:4px}.address-button{width:36px;min-height:36px;justify-content:center;padding:0;background:var(--panel-2);border-radius:11px}
.balance-card{padding:16px 17px 17px;border:1px solid var(--line)!important;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#53dbc10b,transparent 65%),var(--panel);box-shadow:0 5px 18px #0000000c}
.balance-heading{font-size:11px;font-weight:500}.balance-heading .icon-button{width:30px;height:30px}.wallet-total{font-size:clamp(35px,10vw,48px);letter-spacing:-1.5px;font-weight:700;line-height:1.18;margin:5px 0 9px}
.balance-change-line{gap:7px;align-items:center}.balance-change{font-size:14px;font-weight:600;letter-spacing:0}.balance-period{font-size:10px}.valuation-status{font-size:10px;margin-top:7px}
.asset-history-toggle{min-height:37px;font-size:11px;margin-top:9px;border-top:1px solid var(--line);padding-top:6px}.asset-chart{min-height:148px;margin:3px 0 0}.asset-history-svg{height:132px}.asset-chart-empty{min-height:146px;border-radius:12px;background:var(--bg);border:0}.asset-chart-empty-mark{font-size:26px}.asset-chart-empty>span:last-child{padding:0 8px;text-align:center;line-height:1.6}
.asset-periods{gap:4px;margin-top:12px;padding:3px;background:var(--bg);border-radius:11px}.asset-periods button{min-height:30px;font-size:11px;border-radius:8px}.asset-periods button[aria-pressed="true"]{background:var(--panel-2);color:var(--teal)}
.balance-actions{margin-top:16px;gap:9px;max-width:none}.balance-actions .button{min-height:43px;font-size:13px;border-radius:12px}.secondary{background:var(--panel-2);color:var(--text);border-color:var(--line)}
.asset-heading{margin:23px 1px 11px}.asset-heading h2{font-size:17px;font-weight:650}.asset-heading>span{color:var(--muted);font-size:10px}.count{background:var(--panel-2);min-width:20px;padding:3px 6px;border-radius:6px;text-align:center;font-size:10px}
.asset-list:not(:empty){padding:0 13px;background:var(--panel);border:1px solid var(--line);border-radius:var(--mobile-radius);overflow:hidden}.asset-row{gap:9px;min-height:85px;padding:14px 0;border-color:var(--line)}.asset-row:last-child{border-bottom:0}.asset-row:active{background:var(--panel-2)}.asset-avatar{width:35px;height:35px;border-radius:11px;background:var(--panel-2);font-size:10px;color:var(--text)}.asset-name{font-size:13px;gap:4px;font-weight:650}.asset-chain{font-size:10px;margin-top:6px}.asset-amount{max-width:58%}.asset-value{font-size:14px;font-weight:600}.asset-balance,.asset-price{font-size:10px}.asset-pnl{font-size:10px;line-height:1.5;margin-top:5px}.native-tag{font-size:8px;padding:2px 3px;color:var(--muted);border-color:var(--line)}
.empty-state{margin-top:8px;padding:24px 15px;border:1px dashed var(--line);border-radius:var(--mobile-radius);background:var(--panel)}.empty-state p{font-size:12px}.empty-icon{color:var(--teal);background:var(--panel-2);width:45px;height:45px;border-radius:14px}.home-footnote{color:var(--muted);font-size:10px;line-height:1.7;padding:12px 3px 0}
.bottom-nav{padding:6px max(8px,var(--safe-right)) calc(7px + var(--safe-bottom)) max(8px,var(--safe-left));gap:3px;background:var(--panel);border-color:var(--line)}.bottom-nav button{min-height:49px;gap:5px;font-size:10px;color:var(--muted);border-radius:12px}.bottom-nav .icon{width:20px;height:20px}.bottom-nav button[aria-current="page"]{background:var(--teal-dark);color:var(--teal);font-weight:650}.flash-unread-badge{right:calc(50% - 21px);top:2px;background:#efb955;color:#312109}
.workspace-heading,#communityView>.community-heading{padding:16px 18px 12px;min-height:64px;gap:10px}.workspace-heading h1,#communityView>.community-heading h1{font-size:23px;line-height:1.4;letter-spacing:-.6px;margin:0}.workspace-heading .icon-button,#communityView>.community-heading .icon-button{width:34px;height:34px;border:0;background:var(--panel-2);border-radius:11px}
.segmented{margin:0 18px 9px;border:0;background:var(--panel-2);padding:4px;border-radius:12px}.segmented button{min-height:35px;font-size:12px;border-radius:9px}.segmented button[aria-selected="true"]{background:var(--panel);color:var(--teal);font-weight:600;box-shadow:0 2px 7px #00000012}.monitor-note{font-size:10px;color:var(--muted);margin:0 18px 11px}.workspace-status{margin-left:18px;margin-right:18px;font-size:12px}
.settings-community-actions{padding:0 18px 12px;gap:9px}.settings-community-actions button{flex:1;min-height:40px;border-radius:12px;background:var(--panel);color:var(--text);border-color:var(--line)}.settings-community-actions .icon{color:var(--teal)}
.mobile-community-host{padding:0 12px 12px}.mobile-community-host .community-shell{border-radius:var(--mobile-radius);border-color:var(--line)}#mobileFlashHost .community-head h2,#mobileFlashHost .community-subtitle{display:none}#mobileFlashHost .community-head{padding:10px 12px}#mobileFlashConfigHost>.community-config{border-radius:var(--mobile-radius)}
.auth-brand{font-size:23px}.auth-copy h1{font-size:34px;font-weight:700}.auth-copy p{font-size:13px}.auth-card{border-radius:20px;background:var(--panel);box-shadow:0 12px 36px #00000010}.auth-card input{background:var(--bg);border-color:var(--line)}.auth-footer{color:var(--muted)}
.sheet{border-color:var(--line);background:var(--panel)}.sheet-title h2{font-size:20px}.sheet-hint{font-size:12px}.address-block{background:var(--bg)}
html[data-theme="day"] .balance-card{background:radial-gradient(ellipse at 100% 0,#25b2940d,transparent 70%),var(--panel)}html[data-theme="day"] .secondary{background:var(--panel-2);color:var(--text);border-color:var(--line)}html[data-theme="day"] .asset-avatar{background:var(--panel-2);color:var(--text)}html[data-theme="day"] .asset-chart-empty{background:var(--bg)}html[data-theme="day"] .segmented button[aria-selected="true"]{background:var(--panel)}html[data-theme="day"] .bottom-nav{background:var(--panel)}
body[data-mobile-view="swap"] .bottom-nav{background:var(--panel)}

/* Chat opens directly in its tab, with one conversation header and persistent navigation. */
body[data-mobile-view="chat"]{overflow:hidden;overscroll-behavior:none}
body[data-mobile-view="chat"] .app-shell{position:fixed;top:var(--mobile-chat-top,0px);left:50%;transform:translateX(-50%);width:100%;height:var(--mobile-chat-height,100dvh);max-height:var(--mobile-chat-height,100dvh)}
body[data-mobile-view="chat"] .app-header,body[data-mobile-view="chat"] #communityView>.community-heading{display:none}
body[data-mobile-view="chat"] .main-content,body[data-mobile-view="chat"] #communityView{min-height:0;overflow:hidden}
body[data-mobile-view="chat"] #mobileChatHost{padding:0;min-height:0}
body[data-mobile-view="chat"] #mobileChatHost .community-chat-shell{border:0;border-radius:0;box-shadow:none;background:var(--bg);min-height:0}
body[data-mobile-view="chat"] #mobileChatHost .community-chat-head{padding:calc(9px + var(--safe-top)) 12px 9px;min-height:56px;background:var(--panel);border-bottom:1px solid var(--line);gap:8px}
body[data-mobile-view="chat"] #mobileChatHost .community-chat-head h2{font-size:16px;font-weight:650}
body[data-mobile-view="chat"] #mobileChatHost .community-chat-head,body[data-mobile-view="chat"] #mobileChatHost .community-feed,body[data-mobile-view="chat"] #mobileChatHost .community-compose{padding-left:max(12px,var(--safe-left));padding-right:max(12px,var(--safe-right))}
body[data-mobile-view="chat"] #mobileChatHost .community-feed{padding-top:16px;padding-bottom:16px;overscroll-behavior:contain}
body[data-mobile-view="chat"] #mobileChatHost .community-compose{padding-bottom:9px;background:var(--panel)}
body[data-mobile-view="chat"] .bottom-nav{padding-left:max(8px,var(--safe-left));padding-right:max(8px,var(--safe-right))}
body[data-mobile-view="chat"][data-keyboard-open="true"] .bottom-nav{padding-bottom:3px}
body[data-mobile-view="chat"] .toast{bottom:calc(75px + var(--safe-bottom))}
@media(max-width:350px){.app-header{padding-left:14px;padding-right:14px}.header-right .server-label{max-width:77px}.brand{font-size:16px;gap:6px}.brand img{width:25px;height:25px}.header-right .icon-button{width:30px}.home-view{padding:16px 14px 22px}.wallet-picker strong{font-size:16px;max-width:48vw}.balance-card{padding:14px}.wallet-total{font-size:34px}.balance-change{font-size:13px}.balance-period{font-size:9px}.asset-list:not(:empty){padding:0 10px}.asset-row{gap:7px}.asset-avatar{width:30px;height:30px;border-radius:10px}.asset-name{font-size:12px}.asset-value{font-size:12px}.asset-price,.asset-pnl,.asset-balance{font-size:9px}.asset-amount{max-width:58%}.workspace-heading,#communityView>.community-heading{padding-left:14px;padding-right:14px}.segmented{margin-left:14px;margin-right:14px}.settings-community-actions{padding-left:14px;padding-right:14px}}
@media(min-width:600px){.app-header{padding-left:28px;padding-right:28px}.home-view{padding:24px 28px 30px}.balance-card{padding:21px}.wallet-total{font-size:48px}.asset-history-svg{height:180px}.asset-chart-empty{min-height:194px}.asset-periods{max-width:none}.asset-pnl{font-size:11px}.bottom-nav{gap:8px;padding-left:20px;padding-right:20px}.app-shell{border-color:var(--line)}}
@media(orientation:landscape) and (max-height:500px){.app-header{padding-top:calc(4px + var(--safe-top));padding-bottom:4px;min-height:43px}.workspace-heading,#communityView>.community-heading{min-height:42px;padding-top:7px;padding-bottom:7px}.workspace-heading h1,#communityView>.community-heading h1{font-size:19px}.bottom-nav{padding-top:3px;padding-bottom:calc(3px + var(--safe-bottom))}.bottom-nav button{min-height:44px}.segmented button{min-height:29px}body[data-mobile-view="chat"] #mobileChatHost .community-chat-head{min-height:44px;padding-top:calc(4px + var(--safe-top));padding-bottom:4px}}
body[data-mobile-view="chat"] #communityStatus:not([hidden]){margin-top:calc(20px + var(--safe-top))}
/* The outer flash heading owns the title; the inner head is a tools row. */
#mobileFlashHost .community-head>.community-title-group{display:none}
#mobileFlashHost .community-head{padding:9px 12px;min-height:52px}
#mobileFlashHost .community-head>.community-actions{display:flex;flex:1;width:100%;max-width:none;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 9px}
#mobileFlashHost .community-head .community-button{flex:none;min-height:34px;padding:6px 9px;font-size:11px}
#mobileFlashHost .community-head .community-status{flex:1;min-width:70px;max-width:none;min-height:0;text-align:right;font-size:10px;line-height:1.6}

.home-heading-actions{display:flex;align-items:center;gap:8px}

/* System push settings stay separate from the live flash feed. */
.settings-community-actions{flex-wrap:wrap;gap:6px}.settings-community-actions button{padding:8px 10px}
.flash-push-entry{display:flex;align-items:center;gap:11px;flex:none;margin:0 12px 10px;padding:12px 14px;min-width:0;text-align:left;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--text)}.flash-push-icon,.push-hero-icon{display:flex;align-items:center;justify-content:center;flex:none;background:var(--teal-dark);color:var(--teal);border-radius:12px;width:38px;height:38px}.flash-push-copy{flex:1;min-width:0}.flash-push-copy strong{display:block;font-size:12px;line-height:1.6}.flash-push-copy small{display:block;font-size:10px;line-height:1.6;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flash-push-arrow{font-size:25px;line-height:1;color:var(--muted)}.push-intro{display:flex;gap:13px;margin:18px 0 20px}.push-hero-icon{width:46px;height:46px;border-radius:15px}.push-intro strong{font-size:14px;line-height:1.7}.push-intro p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:5px}.push-status-line{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:13px}.push-status-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--muted)}.push-status-dot.is-enabled{background:var(--teal);box-shadow:0 0 0 4px #49e1c312}.push-actions{display:flex;flex-direction:column;gap:9px;margin:20px 0}.push-actions .subtle{min-height:40px}.push-notes{padding-top:17px;border-top:1px solid var(--line);font-size:11px;line-height:1.85;color:var(--muted)}.push-notes p+p{margin-top:13px}.push-notes strong{color:var(--text);font-weight:550}.push-sheet .install-help{margin-top:10px}@media(max-width:350px){.flash-push-entry{margin-left:8px;margin-right:8px;padding:10px}.push-sheet{padding-left:18px;padding-right:18px}.push-intro{gap:10px}}
html[data-theme="day"] .flash-push-icon,html[data-theme="day"] .push-hero-icon{background:#e3f5ee;color:#157c62}

/* Flash controls open from the title bar, keeping the timeline unobstructed. */
.community-heading-actions .community-settings-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);color:var(--text);font:inherit;font-size:12px;font-weight:600}
.community-heading-actions .community-settings-button .icon{width:17px;height:17px}.community-heading-actions .community-settings-button[hidden]{display:none}
#mobileFlashHost .community-flash-shell>.community-head[hidden]{display:none}
.community-flash-settings-dialog .flash-push-entry{margin:0;width:100%;padding:13px;border-radius:13px;background:var(--cc-soft);color:var(--cc-text);border-color:var(--cc-line)}
.community-flash-settings-dialog .flash-push-copy strong{font-size:13px}.community-flash-settings-dialog .flash-push-copy small{font-size:11px;white-space:normal;overflow-wrap:anywhere}
#mobileFlashHost .community-flash-settings-dialog .community-subtitle{display:block}

/* Mobile app pages use a fixed scale while keeping every scrollable surface usable. */
html,body,.app-shell,.main-content,.home-view,.mobile-community-host,.community-feed,.sheet{touch-action:pan-x pan-y}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),textarea,select,[contenteditable="true"]{font-size:16px!important}
/* Fix all tabs to the same viewport so a keyboard-induced document scroll cannot
   leave the navigation shifted after returning from chat. */
.app-shell{position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%}

/* Keep the bar flush with the screen and move its buttons down: reserve only a
   compact home-indicator gap, rather than adding the full safe area below them. */
.bottom-nav{padding-bottom:clamp(3px,var(--safe-bottom),12px)}
