/* Production layout counterpart of cyrex/platform-style (not the demo data).
   Scoped to System so Original can be restored without reloading sessions. */
html[data-ui-appearance="system"] {
    --ui-page-width: 540px;
    --ui-dock-width: min(calc(100% - 26px),514px);
    --ui-page-inset: 20px;
    --ui-header-height: 76px;
    --ui-bg: #101016;
    --ui-card: #1c1b23;
    --ui-muted: #aaa6b4;
    --ui-border: #ffffff20;
    --ui-accent: #e5b9f5;
    --ui-on-accent: #38213f;
    color-scheme: dark;
    background: var(--ui-bg);
    scrollbar-width:none;
}
html[data-ui-appearance="system"]::-webkit-scrollbar { display:none; }
html[data-ui-skin="material"] { --ui-bg:#17121c; --ui-card:#241e2a; --ui-border:#ffffff12; --ui-accent:#e7b8f6; }
html[data-ui-appearance="system"] body { margin:0 auto; width:100%; max-width:var(--ui-page-width); min-height:100dvh; background:var(--ui-bg); color:var(--ui-text); font-family:var(--font-sans); padding:0 20px calc(110px + env(safe-area-inset-bottom)); }
html[data-ui-appearance="system"] :is(button,input,select,textarea) { font-family:inherit; }
html[data-ui-appearance="system"] :is(.hdr,body>header,.topbar) { min-height:76px; margin:0; padding:16px 0; display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
html[data-ui-appearance="system"] :is(.logo h1,body>header h1,.tp-brand-txt) { font-size:22px; letter-spacing:-1px; font-weight:650; white-space:nowrap; }
html[data-ui-appearance="system"] :is(.logo-icon img,header h1 img,.tp-brand img) { width:26px!important; height:26px!important; }
html[data-ui-appearance="system"] :is(.hdr .logo,.tp-brand) { flex:none; gap:5px; }
html[data-ui-appearance="system"] :is(.hdr-actions,.hdr>.nav,header .links) { flex:1; min-width:0; gap:5px; justify-content:flex-end; flex-wrap:nowrap; }
html[data-ui-appearance="system"] [data-nav-slot="lang"],html[data-ui-appearance="system"] :is(.hdr,header,.topbar) label:has(#sols-lang) { display:none!important; }
html[data-ui-appearance="system"] :is(.sols-bio-header,.ui-icon-button) { width:44px!important; min-width:44px!important; height:44px!important; padding:10px!important; display:inline-flex; align-items:center; justify-content:center; border:1px solid #ffffff30; border-radius:50%; color:var(--ui-text); background:linear-gradient(145deg,#ffffff20,#51475f30); backdrop-filter:blur(22px) saturate(1.4); -webkit-backdrop-filter:blur(22px) saturate(1.4); cursor:pointer; }
html[data-ui-appearance="system"] .ui-icon-button svg { width:22px; height:22px; }
html[data-ui-skin="material"] :is(.ui-icon-button,.sols-bio-header) { border:0; border-radius:16px!important; background:#403348; backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-ui-appearance="system"] .sols-tabbar { left:50%; right:auto; bottom:max(12px,env(safe-area-inset-bottom)); transform:translateX(-50%); width:var(--ui-dock-width); box-sizing:border-box; height:72px; padding:5px; gap:2px; border:1px solid #ffffff30; border-top-color:#ffffff65; border-radius:38px; background:linear-gradient(155deg,#ffffff1c,#45404d88 35%,#98829940); backdrop-filter:blur(28px) saturate(1.5); -webkit-backdrop-filter:blur(28px) saturate(1.5); box-shadow:inset 0 1px 0 #fff2,inset 0 -1px 0 #fff1,0 8px 24px #0005; transition:transform .24s ease,opacity .24s ease; }
html[data-ui-appearance="system"] .sols-tab { justify-content:center; gap:5px; min-width:0; max-width:none; border-radius:32px; font-size:11px; font-weight:550; color:var(--ui-muted)!important; }
html[data-ui-appearance="system"] .sols-tab-ic { height:28px; }
html[data-ui-appearance="system"] .sols-tab[aria-current="page"] { color:var(--ui-accent)!important; background:#ddb3ef20; box-shadow:inset 0 1px 0 #fff1; }
html[data-ui-skin="material"] .sols-tabbar { bottom:0; width:min(100%,540px); height:calc(80px + env(safe-area-inset-bottom)); padding:8px 8px calc(8px + env(safe-area-inset-bottom)); background:#261f2d; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-ui-skin="material"] .sols-tab[aria-current="page"] { background:none; box-shadow:none; }
html[data-ui-skin="material"] .sols-tab .sols-tab-ic { width:56px; border-radius:18px; }
html[data-ui-skin="material"] .sols-tab[aria-current="page"] .sols-tab-ic { background:#60416e; color:#f5d9ff; }
html[data-ui-appearance="system"][data-ui-scrolling]:not([data-ui-product="media"]) .sols-tabbar:not(:focus-within) { transform:translate(-50%,calc(100% + 40px)); opacity:0; pointer-events:none; }
html[data-ui-appearance="system"] :is(.btn,.priv-btn,.set-seg button) { min-height:48px; padding:12px 18px; font-size:14px; font-weight:600; border:1px solid var(--ui-border); border-radius:24px; background:var(--ui-control); color:var(--ui-text); box-shadow:inset 0 1px #ffffff0c; }
html[data-ui-appearance="system"] :is(.btn-primary,.btn.primary,.btn-success,.priv-btn.accent) { background:var(--ui-accent); color:var(--ui-on-accent); border-color:transparent; }
html[data-ui-appearance="system"] .btn-danger { background:#ff576b20; border-color:transparent; color:#ff8291; }
html[data-ui-appearance="system"] :is(button,input,select,textarea):disabled { opacity:.45; cursor:default; }
html[data-ui-skin="material"] :is(.btn,.priv-btn,.set-seg button) { border-radius:16px; box-shadow:none; }
html[data-ui-appearance="system"] :is(input.set-input,select,textarea) { min-height:48px; font-size:15px; padding:12px; background:var(--ui-control); color:var(--ui-text); }
html[data-ui-appearance="system"] .card { border:1px solid var(--ui-border); background:var(--ui-card); border-radius:24px; margin:0 0 14px; padding:20px; backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-ui-skin="material"] .card { border-radius:18px; }
html[data-ui-appearance="system"] .card h2 { font-size:19px; font-weight:650; margin:0 0 16px; }
html[data-ui-appearance="system"] .card h2 .ico { display:none; }
/* Shared product chrome keeps the brand and controls at the same coordinates. */
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) {
    box-sizing:border-box; height:var(--ui-header-height)!important; min-height:var(--ui-header-height)!important;
    padding:16px 12px!important; gap:5px!important; align-items:center!important; flex-wrap:nowrap!important;
}
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) :is(h1,.tp-brand-txt,.audio-brand) { font:650 20px/28px var(--font-sans,system-ui)!important; letter-spacing:-.5px!important; white-space:nowrap; margin:0; }
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) :is(.logo,.tp-brand,.audio-brand) { display:flex; align-items:center; gap:5px!important; flex-shrink:0; }
html[data-ui-appearance="system"] #prod-chip #prod-brand { padding:0; }
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) :is(.logo-icon img,.tp-brand img,.audio-brand img,h1 img),html[data-ui-appearance="system"] .games-header>img { width:26px!important; height:26px!important; flex-shrink:0; margin:0; }
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) :is(.sols-bio-header,.sols-network-trigger,.ui-icon-button,.flt-btn,.ui-media-menu,.social-header-add,.chat-group-call,.ui-host-setting,.ui-stream-menu summary,#audio-add,#audio-menu,#audio-avatar,#audio-filter-icons>button) {
    box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
    width:44px!important; min-width:44px!important; height:44px!important; min-height:44px!important; padding:10px!important; margin:0!important;
    border:1px solid var(--ui-border); border-radius:50%; background:var(--ui-control); color:var(--ui-text); line-height:1;
}
html[data-ui-appearance="system"] :is(#prod-chip,.ui-product-header) :is(.ui-system-icon,button>svg,summary>svg,#audio-avatar>svg) { width:22px!important; height:22px!important; flex:none; }
html[data-ui-skin="material"] :is(#prod-chip,.ui-product-header) :is(.sols-bio-header,.ui-icon-button,.flt-btn,.ui-media-menu,.social-header-add,.chat-group-call,.ui-host-setting,.ui-stream-menu summary,#audio-add,#audio-menu,#audio-avatar,#audio-filter-icons>button) { border-radius:16px!important; }
html[data-ui-appearance="system"]:not([data-ui-product="media"]) body>.ui-product-header:not(#prod-chip),
html[data-ui-appearance="system"] :is(.audio-shell,.games-page)>.ui-product-header { width:calc(100% + 2 * var(--ui-page-inset)); margin:0 calc(-1 * var(--ui-page-inset))!important; }
html[data-ui-appearance="system"] :is(.audio-shell,.games-page) { padding-top:0; padding-left:0; padding-right:0; }
html[data-ui-appearance="system"] header.ui-product-header { position:sticky; top:0; z-index:100; background:var(--ui-bg); }
html[data-ui-appearance="system"] .audio-header-actions { flex:1; min-width:0; justify-content:flex-end; gap:5px; }
html[data-ui-appearance="system"] .audio-header.filters-expanded #audio-filter-icons { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
html[data-ui-appearance="system"] .ui-media-expanded #flt-bar { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
html[data-ui-appearance="system"] .ui-product-header h1:has(>img) { display:flex; align-items:center; gap:0; }
html[data-ui-appearance="system"] .ui-product-header h1>img { margin-right:5px!important; }
html[data-ui-appearance="system"] .audio-player { width:var(--ui-dock-width); bottom:calc(84px + max(12px,env(safe-area-inset-bottom))); }
html[data-ui-skin="material"] .audio-player { width:min(100%,540px); bottom:calc(88px + env(safe-area-inset-bottom)); }
html[data-ui-appearance="system"] :is(.set-hint,.card-sub,.bal-meta) { font-size:13px; color:var(--ui-muted); line-height:1.5; }
/* Bio uses the same main card hierarchy as mobile. Auxiliary information stays
   reachable through Settings / Your link instead of crowding the main page. */
html[data-ui-product="bio"][data-ui-appearance="system"] header .sols-bio-header { display:none!important; }
html[data-ui-appearance="system"] #profile-card .prof-counts { display:none; }
html[data-ui-appearance="system"] .prof-top { gap:14px; padding:0 0 16px; }
html[data-ui-appearance="system"] .prof-av { width:56px; height:56px; flex:none; border-radius:50%; }
html[data-ui-appearance="system"] .prof-name { font-size:23px; font-weight:650; }
html[data-ui-appearance="system"] .prof-top::after { content:'›'; font-size:26px; color:var(--ui-muted); }
html[data-ui-appearance="system"] .ui-profile-actions { display:flex; gap:8px; border-top:1px solid var(--ui-border); padding-top:12px; }
html[data-ui-appearance="system"] #lock-session-btn { flex:1!important; }
html[data-ui-appearance="system"] #handle-card { display:flex; align-items:center; justify-content:space-between; gap:16px; }
html[data-ui-appearance="system"] #handle-card[style*="display: none"] { display:none; }
html[data-ui-appearance="system"] .ui-handle-summary { display:flex; flex-direction:column; gap:6px; min-width:0; }
html[data-ui-appearance="system"] .ui-handle-summary small { font-size:12px; color:var(--ui-muted); }
html[data-ui-appearance="system"] .ui-handle-summary strong { overflow-wrap:anywhere; font-size:18px; }
html[data-ui-appearance="system"] #backup-secure-card>h2 { display:flex; justify-content:space-between; align-items:center; }
html[data-ui-appearance="system"] #backup-secure-card>.set-hint { display:none; }
html[data-ui-appearance="system"] #backup-secure-btn { width:100%; background:#ff576b20; color:#ff8291; border-color:transparent; margin-top:12px; }
html[data-ui-appearance="system"] .ui-account-balances { display:contents; }
html[data-ui-appearance="system"] #balances-block { display:flex; flex-direction:column; margin:0; padding:0; border:0; gap:14px; }
html[data-ui-appearance="system"] #balances-block>.bal-row { border:1px solid var(--ui-border); background:var(--ui-card); border-radius:24px; padding:20px; margin:0; }
html[data-ui-skin="material"] #balances-block>.bal-row { border-radius:18px; }
html[data-ui-appearance="system"] .bal-head { display:flex; align-items:center; margin:0 0 10px; }
html[data-ui-appearance="system"] .bal-name { font-size:19px; font-weight:650; color:var(--ui-text); text-transform:none; letter-spacing:0; }
html[data-ui-appearance="system"] .ui-balance-line { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:10px 0; }
html[data-ui-appearance="system"] .ui-balance-line .bal-meta { flex:1; min-width:0; margin:0; overflow-wrap:anywhere; }
html[data-ui-appearance="system"] .ui-balance-line .bal-amt { font:600 15px var(--font-sans); text-align:right; white-space:nowrap; color:var(--ui-text); }
html[data-ui-appearance="system"] .ui-root-balance { padding:0; margin:0; border:0; }
html[data-ui-appearance="system"] .ui-root-balance .bal-head { display:none; }
html[data-ui-appearance="system"] .bal-actions { display:flex; flex-wrap:wrap; gap:8px; }
html[data-ui-appearance="system"] .bal-actions>.btn { flex:1; min-width:0; padding:12px 8px; }
html[data-ui-appearance="system"] .ui-account-dialog { position:fixed; inset:0; width:min(100%,540px); height:100dvh; max-height:none; max-width:100%; margin:0 auto; padding:20px 20px calc(28px + env(safe-area-inset-bottom)); border:0; color:var(--ui-text); background:var(--ui-bg); overflow-y:auto; overscroll-behavior:contain; }
html[data-ui-appearance="system"] .ui-account-dialog::backdrop { background:#0009; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
html[data-ui-appearance="system"] .ui-dialog-heading { display:flex; gap:16px; align-items:center; margin-bottom:24px; }
html[data-ui-appearance="system"] .ui-dialog-heading h2 { font-size:22px; line-height:1.3; margin:0; }
html[data-ui-appearance="system"] .ui-account-dialog>.btn { width:100%; margin-top:12px; }
html[data-ui-appearance="system"] .ui-account-dialog p { color:var(--ui-muted); line-height:1.5; }
html[data-ui-appearance="system"] .ui-button-row { display:flex; gap:8px; }
html[data-ui-appearance="system"] .ui-button-row>* { flex:1; }
html[data-ui-appearance="system"] .ui-sheet { top:auto; bottom:0; height:auto; max-height:90dvh; border:1px solid var(--ui-border); border-radius:30px 30px 0 0; background:var(--ui-card); padding-top:28px; }
html[data-ui-appearance="system"] .ui-sheet::before { content:''; display:block; width:36px; height:4px; border-radius:2px; background:var(--ui-muted); margin:-16px auto 22px; opacity:.5; }
html[data-ui-appearance="system"] .ui-sheet .ui-dialog-heading>.ui-icon-button { display:none; }
html[data-ui-appearance="system"] #amount-overlay { align-items:flex-end; }
html[data-ui-appearance="system"] #amount-overlay>div { width:min(100%,540px); max-width:540px; padding:28px 24px calc(28px + env(safe-area-inset-bottom)); background:var(--ui-card); border:1px solid var(--ui-border); border-radius:30px 30px 0 0; box-shadow:none; }
/* Social / Chat: app-width list, quiet header and one horizontal sub-navigation. */
html[data-ui-appearance="system"] .wrap { padding:0; }
html[data-ui-appearance="system"] .surfbar { padding:4px 0 18px; gap:4px; flex-wrap:nowrap; overflow:auto; scrollbar-width:none; }
html[data-ui-appearance="system"] .surftab { flex:1; justify-content:center; font-size:14px; padding:12px 8px; white-space:nowrap; border:0; background:transparent; border-radius:0; min-height:48px; color:var(--ui-muted); }
html[data-ui-appearance="system"] .surftab.on { border-bottom:2px solid var(--ui-accent); color:var(--ui-text); background:none; }
html[data-ui-appearance="system"] .surftab .pk { display:none; }
html[data-ui-appearance="system"] :is(.panel,.composecard) { border-radius:24px; background:var(--ui-card); border-color:var(--ui-border); box-shadow:none; }
html[data-ui-appearance="system"] :is(.person,.chatrow,#s-channels .chan-card) { padding:16px 0; border-width:0 0 1px; border-color:var(--ui-border); background:transparent; border-radius:0; min-height:76px; }
html[data-ui-appearance="system"] :is(.cardgrid,.people-grid) { grid-template-columns:1fr; }
/* Media: full-height reel beneath transparent chrome, desktop retains the
   centered phone composition rather than a different grid or stretched feed. */
html[data-ui-product="media"][data-ui-appearance="system"] body { padding:0; height:100dvh; overflow:hidden; }
html[data-ui-product="media"][data-ui-appearance="system"] .hdr { position:fixed; top:0; left:50%; transform:translateX(-50%); width:min(100%,540px); padding:14px 20px; z-index:100; color:#fff; background:linear-gradient(#0006,transparent); }
html[data-ui-product="media"][data-ui-appearance="system"] .hdr h1 { font-size:20px; }
html[data-ui-product="media"][data-ui-appearance="system"] #flt-bar { gap:2px; flex-wrap:nowrap; }
html[data-ui-product="media"][data-ui-appearance="system"] .flt-btn { width:32px; height:36px; padding:6px; font-size:15px; border:0; background:transparent; }
html[data-ui-product="media"][data-ui-appearance="system"] .flt-sel { display:none; }
html[data-ui-product="media"][data-ui-appearance="system"] .filters { position:fixed; top:76px; width:min(100%,540px); z-index:90; padding:0 20px; }
html[data-ui-product="media"][data-ui-appearance="system"] .flt-panel { padding:12px; border-radius:18px; background:var(--ui-card); }
html[data-ui-product="media"][data-ui-appearance="system"] #posts-grid { width:100%; max-width:none; height:100dvh; overflow-y:auto; scroll-snap-type:y mandatory; padding:0; margin:0; scrollbar-width:none; }
html[data-ui-product="media"][data-ui-appearance="system"] #posts-grid .pcell { height:100dvh; margin:0; border:0; border-radius:0; scroll-snap-align:start; scroll-snap-stop:always; }
html[data-ui-product="media"][data-ui-appearance="system"] #posts-grid .pc-media { aspect-ratio:auto; height:100%; max-height:none; }
html[data-ui-product="media"][data-ui-appearance="system"] #posts-grid .pc-info { bottom:120px; }
html[data-ui-product="media"][data-ui-appearance="system"] #posts-grid .pc-actions { bottom:180px; }
/* Stream keeps the actual camera, transport and control state. */
html[data-ui-product="stream"][data-ui-appearance="system"] .vp,html[data-ui-product="viewer"][data-ui-appearance="system"] .vp { left:50%; right:auto; transform:translateX(-50%); width:min(100%,540px); background:var(--ui-bg); }
html[data-ui-product="stream"][data-ui-appearance="system"] .topbar,html[data-ui-product="viewer"][data-ui-appearance="system"] .topbar { left:50%; right:auto; transform:translateX(-50%); width:min(100%,540px); padding:14px 20px; flex-wrap:wrap; }
html[data-ui-appearance="system"] .topbar .tp-brand { margin-right:auto; }
html[data-ui-appearance="system"] .topbar :is(.tp-nick,.tp-addr,.tp-bal,.tp-sep) { display:none; }
html[data-ui-appearance="system"] .ctrl { max-width:calc(min(100vw,540px) - 40px); border-radius:32px; background:linear-gradient(145deg,#ffffff20,#51475f55); backdrop-filter:blur(28px) saturate(1.5); -webkit-backdrop-filter:blur(28px) saturate(1.5); border:1px solid #ffffff40; gap:8px; padding:8px; }
html[data-ui-appearance="system"] .ctrl .cb { width:48px; height:48px; min-width:48px; border-radius:50%; background:var(--ui-control); border:1px solid var(--ui-border); }
html[data-ui-skin="material"] .ctrl { border-radius:24px; background:#261f2d; border:0; backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-ui-skin="material"] .ctrl .cb { border-radius:16px; }
@media (max-width:380px) {
    html[data-ui-appearance="system"] { --ui-page-inset:16px; }
    html[data-ui-appearance="system"] body { padding-left:16px; padding-right:16px; }
    html[data-ui-appearance="system"] .card,html[data-ui-appearance="system"] #balances-block>.bal-row { padding:16px; }
    html[data-ui-product="media"][data-ui-appearance="system"] .hdr { padding-left:12px; padding-right:12px; gap:4px; }
    html[data-ui-product="media"][data-ui-appearance="system"] .logo-icon { display:none; }
    html[data-ui-product="media"][data-ui-appearance="system"] .flt-btn { width:28px; }
}
@media (prefers-reduced-transparency:reduce) {
    html[data-ui-skin="glass"] :is(.sols-tabbar,.ui-icon-button,.sols-bio-header,.ctrl) { background:#302b36; backdrop-filter:none; -webkit-backdrop-filter:none; }
}
@media (prefers-reduced-motion:reduce) {
    html[data-ui-appearance="system"] .sols-tabbar { transition:none; }
}

html[data-ui-appearance="system"] .ui-account-dialog .handle-row { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0; }
html[data-ui-appearance="system"] .ui-account-dialog .handle-row input { flex-basis:100%!important; width:100%; }

html[data-ui-appearance="system"] .bal-meta { font-family:var(--font-sans); }
html[data-ui-appearance="system"] .ui-root-balance { background:none; }
html[data-ui-appearance="system"] .session-sols-line { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13px; padding:8px 0; color:var(--ui-muted); }
html[data-ui-appearance="system"] .session-sols-line strong { color:var(--ui-text); white-space:nowrap; font-weight:600; }
html[data-ui-appearance="system"] #backup-secure-card .bal-meta { font-family:var(--font-sans); }
html[data-ui-appearance="system"] .ui-account-dialog .ui-language-row { display:flex; justify-content:space-between; align-items:center; padding:16px 0; }
html[data-ui-appearance="system"] .ui-account-dialog .ui-language-row label { display:flex!important; }
html[data-ui-appearance="system"] #prestream-setup { left:50%; right:auto; transform:translateX(-50%); width:min(100%,540px); background:var(--ui-bg); padding:96px 20px calc(114px + env(safe-area-inset-bottom)); }
html[data-ui-appearance="system"] .ps-card { color:var(--ui-text); }
html[data-ui-appearance="system"] .ps-field { margin-bottom:24px; }
html[data-ui-appearance="system"] .ps-lbl { font:500 14px var(--font-sans); color:var(--ui-muted); text-transform:none; letter-spacing:0; margin-bottom:10px; }
html[data-ui-appearance="system"] :is(.ps-sgl,.mp-btn,.fchip) { min-height:44px; border:1px solid var(--ui-border); border-radius:24px; padding:10px 14px; color:var(--ui-text); background:var(--ui-control); font:500 14px var(--font-sans); }
html[data-ui-appearance="system"] :is(.ps-sgl.on,.fchip.on,.mp-btn.primary) { background:var(--ui-accent); color:var(--ui-on-accent); border-color:transparent; }
html[data-ui-appearance="system"] .ps-input { min-height:50px; background:var(--ui-card); border-radius:16px; font-size:16px; border-color:var(--ui-border); }
html[data-ui-appearance="system"] .ps-start { min-height:56px; font-size:18px; font-weight:650; }
html[data-ui-skin="material"] :is(.ps-sgl,.mp-btn,.fchip) { border-radius:16px; }

/* Same token lockups and device/status hierarchy as the native session card. */
.session-device-line { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 6px; font-size:15px; font-weight:500; }
.session-device-line[hidden] { display:none; }
.session-status { padding:4px 10px; border-radius:20px; color:var(--ui-success,#59cf91); background:color-mix(in srgb,var(--ui-success,#59cf91) 13%,transparent); font-size:12px; font-weight:600; }
#bal-session-amt,#bal-owner-amt,#bal-vault-amt,#bal-session-sols,#bal-owner-sols { display:inline-flex; align-items:center; justify-content:flex-end; gap:6px; }
#bal-session-amt::before,#bal-owner-amt::before,#bal-vault-amt::before,#bal-session-sols::before { content:''; display:block; flex:0 0 18px; width:18px; height:18px; background:center/contain no-repeat; }
#bal-session-amt::before,#bal-owner-amt::before { background-image:url('coins/solana.svg'); }
#bal-vault-amt::before,#bal-session-sols::before { background-image:url('coins/sols.png'); }
#bal-session-meta { display:flex; align-items:center; gap:6px; }

.session-balances { display:flex; justify-content:flex-end; align-items:center; gap:18px; margin:10px 0; font-size:14px; font-variant-numeric:tabular-nums; }
.session-balances #bal-session-amt,.session-balances #bal-session-sols { font-size:14px; font-weight:600; white-space:nowrap; }

/* Account and Device funds remain a single address/token row at phone widths. */
html[data-ui-appearance="system"] #balances-block.hidden { display:none; }
html[data-ui-appearance="system"] .ui-balance-line { align-items:center; gap:8px; }
html[data-ui-appearance="system"] .ui-balance-line .bal-meta { display:flex; align-items:center; white-space:nowrap; overflow:hidden; font-size:12px; }
html[data-ui-appearance="system"] .ui-balance-line .session-balances { margin:0; gap:10px; flex:none; }
html[data-ui-appearance="system"] .ui-balance-line .session-balances :is(.bal-amt,strong) { font-size:12px; gap:4px; }
html[data-ui-appearance="system"] .ui-balance-line .copy { width:24px; min-width:24px; height:28px; padding:3px; font-size:12px; }
html[data-ui-appearance="system"] #bal-vault-pda { display:flex; align-items:center; }
html[data-ui-appearance="system"] .bal-head { justify-content:space-between; border:0; }
html[data-ui-appearance="system"] .bal-actions>button { flex:1; }
html[data-ui-appearance="system"] #backup-secure-btn[hidden] { display:none; }
#bal-owner-sols { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
#bal-owner-sols::before { content:''; display:block; flex:0 0 18px; width:18px; height:18px; background:url('coins/sols.png') center/contain no-repeat; }
.bio-devices-dialog { box-sizing:border-box; position:fixed; inset:0; width:min(100%,540px); max-width:100%; height:100dvh; max-height:100dvh; margin:0 auto; padding:20px 20px calc(24px + env(safe-area-inset-bottom)); border:0; color:var(--ui-text,#fff); background:var(--ui-bg,#15151b); overflow-y:auto; }
.bio-devices-dialog::backdrop { background:#0008; backdrop-filter:blur(16px); }
.bio-devices-dialog>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.bio-devices-dialog h2 { margin:0; font-size:22px; }
.bio-device-card { border-radius:24px; padding:18px; margin-bottom:14px; border:1px solid var(--ui-border,#fff2); background:var(--ui-card,#24212c); }
.bio-device-card h3 { margin:0 0 12px; font-size:17px; }
.bio-device-card .bal-meta { display:flex; align-items:center; gap:8px; }
.bio-device-card .bal-actions { display:flex; gap:10px; margin-top:16px; }
html[data-ui-skin="material"] .bio-device-card { border-radius:18px; }
@media (max-width:380px) {
    html[data-ui-appearance="system"] .ui-balance-line { gap:5px; }
    html[data-ui-appearance="system"] .ui-balance-line .session-balances { gap:5px; }
    html[data-ui-appearance="system"] .ui-balance-line .session-balances :is(.bal-amt,strong) { font-size:11px; }
    html[data-ui-appearance="system"] .ui-balance-line :is(.bal-amt,strong)::before { flex-basis:14px; width:14px; height:14px; }
}

html[data-ui-appearance="system"] .ui-balance-line:has(.session-balances) { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,2.2fr); }
html[data-ui-appearance="system"] .ui-balance-line .session-balances { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:8px; }
html[data-ui-appearance="system"] .ui-balance-line .session-balances :is(.bal-amt,strong) { font-size:clamp(9px,2.9vw,13px); font-weight:500; }
html[data-ui-appearance="system"] .ui-balance-line .session-balances :is(.bal-amt,strong)::before { width:16px; height:16px; flex-basis:16px; }
.balance-address { display:block; width:100%; min-height:32px; border:0; padding:0; background:none; color:inherit; font:500 12px/1.4 var(--font-sans,system-ui); text-align:left; cursor:pointer; white-space:nowrap; }
html[data-ui-appearance="system"] .ui-balance-line .bal-meta { overflow:visible; }
html[data-ui-appearance="system"] .ui-balance-line .session-balances :is(#bal-session-amt,#bal-session-sols,#bal-owner-amt,#bal-owner-sols) { font-size:clamp(9px,2.9vw,13px); font-weight:500; white-space:nowrap; }

/* Shared account readiness notices sit above the product navigation. */
.onboarding-banner { position:fixed; inset:auto 13px max(12px,env(safe-area-inset-bottom)); z-index:8990; width:var(--ui-dock-width,min(calc(100% - 26px),514px)); margin-inline:auto; box-sizing:border-box; padding:16px; border:1px solid var(--ui-border,#ffffff30); border-top-color:#ffffff65; border-radius:var(--ui-radius,24px); color:var(--ui-text,#f6f1fa); background:linear-gradient(155deg,#ffffff1c,#302a38ed 45%,#51435ad9); backdrop-filter:blur(28px) saturate(1.5); -webkit-backdrop-filter:blur(28px) saturate(1.5); box-shadow:inset 0 1px 0 #fff2,0 8px 24px #0005; font:inherit; max-height:50dvh; overflow:auto; }
body:has(.sols-tabbar) .onboarding-banner { bottom:calc(84px + max(12px,env(safe-area-inset-bottom))); }
html[data-ui-skin="material"] .onboarding-banner { background:var(--ui-card,#1f1a25); backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-ui-skin="material"] body:has(.sols-tabbar) .onboarding-banner { bottom:calc(92px + env(safe-area-inset-bottom)); }
.onboarding-banner-content { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.onboarding-banner-copy { flex:1 1 200px; min-width:0; }
.onboarding-banner-title { font-size:15px; font-weight:600; line-height:1.4; }
.onboarding-banner-message { font-size:13px; line-height:1.5; opacity:.8; margin-top:4px; }
.onboarding-banner-actions { display:flex; gap:8px; flex-wrap:wrap; }
.onboarding-banner-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; box-sizing:border-box; border:1px solid var(--ui-border,#ffffff30); border-radius:999px; background:var(--ui-control,#ffffff15); color:inherit; font:inherit; font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; cursor:pointer; }
.onboarding-banner-button.is-primary { background:var(--ui-accent,#edb1fa); color:var(--ui-on-accent,#35213c); border-color:transparent; }
.onboarding-banner-button:disabled { opacity:.5; cursor:wait; }
.onboarding-banner-details { font-size:12px; margin-top:8px; opacity:.8; }
.onboarding-banner-details summary { width:fit-content; cursor:pointer; padding-block:4px; }
.onboarding-banner-details div { margin-top:4px; overflow-wrap:anywhere; }
@media(prefers-reduced-transparency:reduce) { .onboarding-banner { background:#302b36; backdrop-filter:none; -webkit-backdrop-filter:none; } }

body .onboarding-banner.onboarding-banner-top { top:max(12px,env(safe-area-inset-top)); bottom:auto; z-index:9995; }
.onboarding-banner-message { overflow-wrap:anywhere; }
.onboarding-banner-dismiss { width:44px; min-width:44px; padding:0; font-size:20px; }
