/* r-1043-desk1: the desktop frame (bullsi.fun on laptops, desktops, iPads and dual-screen phones).
   Every rule is scoped under html.desk, which desktop.js sets only when the server allows the frame (DESKTOP_UI) and the
   device rule holds. Phones never match a rule in this file. The pages themselves are untouched: this file only reframes
   the same nodes (the header, #pages, #tabbar, #wallet-sky, #alz-box, #swroom and the pop-up pages) inside the board. */

html.desk, html.desk body { background: #0A0A0C; overscroll-behavior: none; }
html.desk body { overflow: hidden; }
/* r-1043c-desk2: no accidental text selection on the frame (board, widgets, grab bars, sidebar, header); inputs keep theirs; nothing at all while dragging, resizing, panning or pinching */
html.desk header, html.desk #desk-vp, html.desk #desk-side { -webkit-user-select: none; user-select: none; }
html.desk input, html.desk textarea, html.desk [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
html.desk.busy, html.desk.busy * { -webkit-user-select: none !important; user-select: none !important; }

/* ---------- hidden mobile-only chrome ---------- */
html.desk #tab-fade, html.desk .amb, html.desk #alz-overlay, html.desk #alz-dock, html.desk #ptr, html.desk #tut, html.desk #splash { display: none !important; }
html.desk-wait header, html.desk-wait #pages, html.desk-wait #tabbar, html.desk-wait #wallet-sky { visibility: hidden; } /* a laptop waits for the server's answer (at most one second), so the mobile frame never flashes */
html.desk.desk-hold #desk-vp, html.desk.desk-hold header { opacity: 0 !important; pointer-events: none; } /* r-1043e-desk3: until the account is decided the board is held under the dark body; the sign-in screens (#pvx, the skin picker) sit over it; a signed-out visitor never sees the board. r-1043g: opacity, because a descendant may set visibility: visible (the Original scene did, and showed alone) */

/* ---------- header: two equal columns, transparent, clicks pass through the empty area ---------- */
html.desk header { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 14px 0; align-items: start; pointer-events: none; background: transparent; transform: none !important; z-index: 30; }
html.desk header.hdr-hide { transform: none !important; }
html.desk #desk-hl, html.desk #desk-hr { display: flex; align-items: center; min-width: 0; pointer-events: none; position: relative; }
html.desk #desk-hl { gap: 28px; padding: 8px 8px 8px 16px; }
html.desk #desk-hr { justify-content: flex-end; gap: 8px; padding: 8px; }
html.desk #desk-hl > *, html.desk #desk-hr > * { pointer-events: auto; }
html.desk #blogo { flex: 0 0 32px; width: 32px; height: 32px; }
html.desk #candi-pill { margin-left: 0; min-height: 38px; height: 38px; border-radius: 12px; padding: 0 12px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); box-shadow: none; }
html.desk header .feed-btn { width: 38px !important; height: 38px !important; border-radius: 12px; padding: 0 !important; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); color: #C8C8CF; box-shadow: none; transition: background .15s, color .15s; }
html.desk header .feed-btn:hover, html.desk #candi-pill:hover { background: rgba(255,255,255,0.08); color: #fff; }
html.desk header .feed-btn svg { width: 18px; height: 18px; }
html.desk #ntf-menu { top: calc(100% + 6px); width: 320px; border-radius: 20px; padding: 18px 20px 20px; background: rgba(22,22,26,0.97); box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
html.desk #gmenu { top: calc(100% + 6px); width: 240px; border-radius: 20px; padding: 6px; background: rgba(22,22,26,0.97); box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
html.desk #gmenu button { min-height: 46px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 500; }
html.desk #gmenu button:hover { background: rgba(255,255,255,0.06); }

/* the search pill and its dropdown */
html.desk #desk-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 5px 0 14px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06); border-radius: 21px; color: #8B8B93; transition: border-color .15s; cursor: text; }
html.desk #desk-search.open { border-color: rgba(91,140,255,0.6); }
html.desk #desk-q { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #EDEDEF; font: 400 14px Inter, sans-serif; }
html.desk #desk-q::placeholder { color: #8B8B93; }
html.desk #desk-go { width: 32px; height: 32px; border-radius: 16px; border: 0; background: rgba(91,140,255,0.45); color: #0A0A0C; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 32px; transition: background .15s; }
html.desk #desk-search.typed #desk-go { background: #5B8CFF; }
html.desk #desk-dd { position: fixed; top: 76px; left: 14px; right: auto; width: calc(50% - 21px); max-height: min(600px, calc(100vh - 110px)); display: none; flex-direction: column; background: #121215; border: 1px solid rgba(255,255,255,0.09); border-radius: 22px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); overflow: hidden; pointer-events: auto; z-index: 31; animation: dk-rise .35s cubic-bezier(.2,.8,.2,1); }
html.desk #desk-dd.open { display: flex; }
html.desk #desk-dd .dd-scroll { overflow-y: auto; padding: 6px 6px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
html.desk .dd-h { padding: 12px 14px 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: #8B8B93; }
html.desk .dd-cmd { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 44px; border-radius: 12px; cursor: pointer; font-size: 14px; color: #EDEDEF; }
html.desk .dd-cmd i { width: 26px; height: 26px; border-radius: 8px; background: rgba(91,140,255,0.14); color: #8FB0FF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-style: normal; }
html.desk .dd-recent { display: flex; gap: 8px; padding: 2px 14px 6px; flex-wrap: wrap; }
html.desk .dd-chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #EDEDEF; font: 600 13px Inter, sans-serif; cursor: pointer; }
html.desk .dd-chip .dd-logo { width: 26px; height: 26px; border-radius: 13px; }
html.desk .dd-row { display: flex; align-items: center; gap: 14px; padding: 0 14px; min-height: 54px; border-radius: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; transition: background .15s; }
html.desk .dd-row:hover, html.desk .dd-cmd:hover { background: rgba(255,255,255,0.045); }
html.desk .dd-rank { width: 20px; text-align: center; font-size: 14px; color: #8B8B93; }
html.desk .dd-logo { width: 32px; height: 32px; border-radius: 16px; flex: 0 0 32px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: rgba(10,10,12,0.7); background: rgba(255,255,255,0.12); overflow: hidden; }
html.desk .dd-logo img { width: 100%; height: 100%; object-fit: cover; }
html.desk .dd-sym { font-weight: 600; font-size: 15px; }
html.desk .dd-nm { font-size: 13px; color: #8B8B93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
html.desk .dd-pct { font: 600 14px Inter, sans-serif; font-variant-numeric: tabular-nums; }
html.desk .dd-sp { flex: 1; }
html.desk .dd-pill { height: 30px; padding: 0 12px; border-radius: 15px; font: 600 13px Inter, sans-serif; display: flex; align-items: center; border: 1px solid; white-space: nowrap; }
html.desk .dd-none { padding: 14px; font-size: 14px; color: #A3A3AB; }
html.desk .dd-none b { color: #EDEDEF; font-weight: 600; }

/* ---------- the board ---------- */
html.desk { --dk-canvas: #1f2026; --dk-dot: rgba(255,255,255,0.08); } /* r-1043g: THE canvas color (and its dot), one value to swap; widgets (#121215) sit darker on it and stand out */
html.desk #desk-vp { position: fixed; inset: 0; z-index: 5; overflow: hidden; overflow: clip; touch-action: none; outline: none; cursor: grab; background-color: var(--dk-canvas); background-image: radial-gradient(var(--dk-dot) 1px, transparent 1px); transition: background-color .3s ease; font-family: Inter, sans-serif; color: #EDEDEF; }
html.desk #desk-vp.busy { cursor: grabbing; }
html.desk #desk-vp.space, html.desk #desk-vp.space * { cursor: grab !important; } /* r-1043h: Space held = pan from anywhere */
html.desk #desk-vp.busy, html.desk #desk-vp.busy * { user-select: none !important; }
html.desk #desk-vp.resizing { cursor: default; }
html.desk #desk-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
html.desk #desk-world.anim { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
html.desk .dk-guide { position: absolute; background: #5B8CFF; border-radius: 2px; opacity: 0.85; pointer-events: none; }

/* widgets */
html.desk .dw { position: absolute; display: flex; flex-direction: column; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; background: #121215; box-shadow: 0 20px 60px rgba(0,0,0,0.45); overflow: hidden; transform: translateZ(0); container-type: inline-size; transition: left .5s cubic-bezier(.2,.8,.2,1), top .5s cubic-bezier(.2,.8,.2,1), width .5s cubic-bezier(.2,.8,.2,1), height .5s cubic-bezier(.2,.8,.2,1), box-shadow .2s, opacity .3s, transform .3s; } /* r-1043e-desk3: the demo's motion: a widget's section is never re-created; its box always glides (left/top/width/height .5s), off only while it is being dragged or resized */
html.desk .dw.act, html.desk.desk-still .dw { transition: none; } /* live drag/resize; the first layout right after the frame turns on */
html.desk .dw.appear { animation: dk-appear .45s cubic-bezier(.2,.8,.2,1); } /* a widget coming on screen: opacity 0 + scale .96 → normal */
html.desk .dw.leaving { opacity: 0; transform: scale(.96) translateZ(0); pointer-events: none; } /* a closing widget fades out in place */
html.desk .dw.act { box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1.5px rgba(91,140,255,0.6); }
html.desk .dw[hidden] { display: none; }
html.desk .dw-grab { position: absolute; top: 0; left: 28%; right: 28%; height: 20px; display: flex; justify-content: center; align-items: center; z-index: 4; cursor: grab; touch-action: none; }
html.desk .dw-grab:active { cursor: grabbing; }
html.desk .dw-grab i { width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); display: block; }
html.desk .dw-hero:has(#tbi-0.on) .dw-grab i { background: rgba(255,255,255,0.4); }
html.desk .dw-hero:has(#tbi-0.on) { border-color: rgba(255,170,110,0.2); background: #170D08; }
html.desk .dw-hero.skinned:has(#tbi-0.on) { background: var(--dk-skin-dark, #121215); border-color: rgba(255,255,255,0.1); } /* r-1043e-desk3: the hero wears the skin's own dark below the art */
html.desk .dw-x { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
html.desk .dw:hover .dw-x { opacity: 1; }
@media (hover: none) { html.desk .dw .dw-x { opacity: 1; } }
html.desk .ib { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.03); color: #C8C8CF; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-family: inherit; transition: background .15s, color .15s; }
html.desk .ib:hover { background: rgba(255,255,255,0.08); color: #fff; }
html.desk .dw-x .ib { width: 28px; height: 28px; border-radius: 9px; background: rgba(10,10,12,0.6); }
/* r-1043g: the hero's eye and idle mode: the wallet fades out, the skin fills the whole widget (cover, framed on its subject); the widget stays movable and resizable */
html.desk .dw-hero .dw-x { z-index: 7; } html.desk .dw-hero.idle .dw-x, html.desk .dw-hero .dw-x .ib.on { opacity: 1; } html.desk .dw-hero .dw-x .ib.on { background: rgba(91,140,255,0.35); color: #fff; }
html.desk .dw-hero #pages, html.desk .dw-hero #tabbar, html.desk .dw-hero #wallet-sky { transition: opacity .45s cubic-bezier(.2,.8,.2,1); }
html.desk .dw-hero.idle #pages, html.desk .dw-hero.idle #tabbar { opacity: 0; pointer-events: none; }
html.desk .dw-hero .dw-idle { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: var(--dk-skin-url) 50% calc(var(--dk-subj, 0.5) * 100%) / cover no-repeat var(--dk-skin-dark, #121215); } /* r-1043h: THE skin layer, always: the whole widget, cover, framed on the skin's subject; the wallet sits over it */
html.desk .dw-hero.skinned .dw-idle { opacity: 1; }
html.desk .dw-hero .dw-idle::after { content: ""; position: absolute; inset: 0; background: rgba(10,8,6,0.34); opacity: 1; transition: opacity .45s cubic-bezier(.2,.8,.2,1); } /* the slight darkening under the wallet content */
html.desk .dw-hero.idle .dw-idle::after { opacity: 0; } /* idle: the same image, no darkening; the skin itself never moves */
html.desk .dw-hero .dw-body { z-index: 1; }
/* r-1047n-fix15l (item 9): Bullsi Original on the board is the phone's own look: the phone's charcoal (--sky) under the scene, and the sky scene in the phone's
   390 x 844 composition, scaled to cover the widget around its top centre (--dk-sky-scale, set with the widget's size), so the blue, green and amber glows
   sit where a phone shows them at every widget size (it used to stretch across the widget over a brown ground) */
html.desk .dw-hero:not(.skinned):has(#tbi-0.on), html.desk .dw-hero.idle:not(.skinned) { background: var(--sky, #131313); }
html.desk .dw-hero:not(.skinned) #wallet-sky { width: 390px; height: 844px; max-width: none; left: 50%; top: 0; bottom: auto !important; transform: translateX(-50%) scale(var(--dk-sky-scale, 1)); transform-origin: 50% 0; }
/* r-1047n-fix15l (item 10): Calm is one solid #131315: no darkening layer over it on the board */
html.desk .dw-hero[data-skin="calm"] .dw-idle::after { opacity: 0; }
html.desk .dw-hero.skinned #wallet-sky { display: none !important; } /* an image skin: the phone's own art layer is off here; the Original skin keeps its sky */
html.desk .dw-hero.idle #wallet-sky { display: block; } /* the Original skin (no image): the sky itself is the idle view */
html.desk .dw-body { position: relative; flex: 1; min-height: 0; }

/* the moved mobile nodes fill their widget (fixed children of a transformed ancestor) */
html.desk .dw-hero #pages { max-width: none; bottom: 0 !important; z-index: 1; }
html.desk .dw-hero #wallet-sky { max-width: none; transform: none; left: 0; bottom: 0 !important; display: none; }
html.desk .dw-hero:has(#tbi-0.on) #wallet-sky { display: block; }
html.desk .dw-hero.skinned #wallet-sky.custom-skin ~ #pages .w-card { background: rgba(8,8,10,0.34); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: rgba(255,255,255,0.09); } /* the cards over the art: translucent glass */
html.desk .dw-hero.skinned #wallet-sky.custom-skin ~ #pages .w-tok, html.desk .dw-hero.skinned #wallet-sky.custom-skin ~ #pages .w-act { background: rgba(8,8,10,0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(255,255,255,0.08); } /* r-1043f: the token rows and the Receive / Send / Buy pills are lighter glass, so the art (a "below" subject sits under the row) reads through them as in the demo */
html.desk .dw-hero #tabbar { left: 12px; right: 12px; margin-bottom: 12px; }
html.desk .dw-hero #pages .page { padding-top: 24px; }
html.desk .dw-hero .page.desk-ph { padding: 0; }
html.desk .dw .page.dw-page { position: absolute; inset: 0; width: 100%; min-width: 0; flex: none; padding: 24px 14px 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
html.desk .dw .page.dw-page::after { content: ""; display: block; height: 16px; flex: none; }
html.desk .dw .page.dw-page .anchor-slot { margin-top: 4px; }
@container (max-width: 400px) { html.desk .dw-page .w-spark, html.desk .dw-page .tok-spark, html.desk .dw-page canvas.spark { display: none; } html.desk .dw-hero #tabbar .tb-i span { display: none; } html.desk .dw-hero #tabbar .tb-i { height: 44px; } html.desk .dw .xf-tabs .xf-tab { font-size: 10px; padding: 7px 2px; } } /* a narrow widget: icons-only nav, tighter Feed filters */
@container (max-width: 340px) { html.desk .dw-page .addpod .addb, html.desk .dw-page .dsc-add { display: none; } }
@container (max-width: 420px) { html.desk .dw-anhome input { font-size: 14px; } html.desk .dw-anhome label { padding-left: 16px; } } /* r-1043e-desk3: the placeholder ("Search a token or paste a mint") fits a narrow Analyze widget */

/* Analyze */
html.desk .dw-an { background: #08080A; }
html.desk .dw-an #alz-box { position: absolute !important; inset: 0 !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; border: 0; border-radius: 0; background: #121215; animation: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 24px; z-index: 1; } /* r-1043g: under the widget's own close button (5) and resize handles (6); the page's 61 covered them */
html.desk .dw-an #alz-grab { display: none; }
@container (max-width: 440px) { html.desk .dw-an #alz-box { font-size: 14px; } } /* r-1043c-desk2: the report follows its widget's width, not the window's (the page's 720px media rule would set 18px in a 300px widget) */
@container (max-width: 340px) { html.desk .dw-an #alz-box { font-size: 12.5px; } }
@container (max-width: 440px) { html.desk .dw-an .lh-big { font-size: 32px; } html.desk .dw .xf-tabs .xf-tab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } } /* the lean word and the Feed filters follow the widget's width too (the page's 720px rule would set 44px) */
@container (max-width: 300px) { html.desk .dw-an .lh-big { font-size: 26px; } }
html.desk .dw-an #alz-top { top: -24px; padding-right: 14px; } /* r-1046b-fix1: while a report is open the widget's own ✕ is hidden (below), so the bar keeps its normal padding and "Trade $SYM" + the report's ✕ hug the right edge (r-1046a's 78px made room for the two widget buttons) */
html.desk .dw-an.report .dw-x { display: none; } /* r-1046b-fix1: ONE ✕ at a time: with a report open the report's own ✕ (closeAnalyze → the Analyze home state) is the only close; the widget ✕ (remove + Undo) returns in the home state */
html.desk .dw-an #alz-top > div { min-width: 7ch; } /* r-1046b-fix1: the name column never shrinks to nothing under Trade and ✕ */
html.desk .dw-an #alz-top .trow { flex-wrap: nowrap; } /* r-1046b-fix1: the badge shrinks (ellipsis) instead of wrapping under the name */
html.desk .dw-an #alz-top .tbadge:not(.slot) { flex: 0 999 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* r-1046b-fix1: the badge gives way long before the name */
html.desk .dw-an #alz-top .tname { flex: 0 1 auto; min-width: 5ch; } /* r-1046b-fix1: the name truncates with an ellipsis LAST (the badge and the meta line go first) and never shows under 5 characters */
@container report (max-width: 340px) { html.desk .dw-an #alz-top #alz-trade .tsym { display: none; } } /* r-1046b-fix1: a narrow widget (under about 375px: the report's content box is the widget minus 2px border and 28px padding) condenses the button to "Trade" so the name keeps its room; the default 380-420px Analyze widget keeps "Trade $SYM" */
html.desk .dw-an.collapsed #alz-box { overflow: hidden; }
html.desk .dw-anhome { position: absolute; inset: 0; box-sizing: border-box; padding: 24px 22px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(ellipse at 50% 42%, rgba(91,140,255,0.07), transparent 62%), #08080A; }
html.desk .dw-an.report .dw-anhome { display: none; }
html.desk .dw-anhome svg { width: 76px; height: 76px; filter: drop-shadow(0 0 24px rgba(91,140,255,0.18)); }
html.desk .dw-anhome .dk-word { font-size: 20px; font-weight: 700; letter-spacing: 0.42em; margin-right: -0.42em; color: #EDEDEF; }
html.desk .dw-anhome label { width: 100%; max-width: 440px; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 6px 0 22px; box-sizing: border-box; border-radius: 27px; background: #18181B; border: 1px solid rgba(255,255,255,0.06); cursor: text; }
html.desk .dw-anhome input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #EDEDEF; font: 400 16px Inter, sans-serif; }
html.desk .dw-anhome input::placeholder { color: #8B8B93; }
html.desk .dw-anhome label button { width: 42px; height: 42px; border-radius: 21px; border: 0; background: #5B8CFF; color: #0A0A0C; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 42px; }
html.desk .dw-anhome #desk-dd { position: relative; top: 0; left: 0; right: auto; width: 100%; max-width: 440px; flex: 1; min-height: 0; max-height: none; animation: none; } /* r-1043e-desk3: the header's dropdown, moved under this field while it has focus (one piece of code, the same rows) */
html.desk .dw-anhome.open { justify-content: flex-start; gap: 14px; padding-top: 34px; } /* while the field has focus the list takes the room: the mark and the word step aside */
html.desk .dw-anhome.open > svg, html.desk .dw-anhome.open > .dk-word { display: none; }
html.desk .dw-anfoot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; display: none; padding: 8px 14px 14px; background: linear-gradient(transparent, #121215 40%); pointer-events: none; } /* r-1046b-fix1: the bar itself passes pointer events through (only its button is a target), so the bottom edge and corner handles start a resize over it */
html.desk .dw-an.report.done .dw-anfoot { display: block; }
html.desk .dw-anfoot button { width: 100%; height: 40px; border-radius: 14px; border: 0; background: transparent; color: #A3A3AB; font: 500 14px Inter, sans-serif; cursor: pointer; pointer-events: auto; }
html.desk .dw-an .hdl { z-index: 40; } /* r-1046b-fix1: the Analyze widget's eight resize handles sit above the "Analyze another coin" bar (31); other widgets keep 6 */
html.desk .dw-anfoot button:hover { color: #EDEDEF; }
html.desk .dw-an.report.done #alz-box { padding-bottom: 60px; }

/* chart widgets (r-1043c-desk2): the expanded chart page, one instance per widget, inside the board */
html.desk .dw-chart { background: #16171c; }
html.desk .dw-chart .tf-box { position: absolute !important; inset: 0 !important; top: 0 !important; bottom: 0 !important; height: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; padding: 24px 16px 16px; background: #16171c; z-index: 1; } /* r-1043g: under the close button and the handles */
html.desk .dw-chart .tf-top { top: -24px; margin: -24px -16px 8px; padding: 18px 14px 10px; width: calc(100% + 32px); }
html.desk .dw-chart .tf-top .x { display: none; } /* the widget's own close */
html.desk .dw-chart .tf-chartwrap { height: 280px; }
html.desk .dw-chart .tf-box::-webkit-scrollbar { width: 6px; }

/* the three-step tour (r-1043c-desk2), once per device */
html.desk #desk-tour { position: absolute; inset: 0; z-index: 40; background: rgba(5,5,7,0.55); }
html.desk #desk-tour .tcard { position: absolute; width: 340px; max-width: calc(100% - 28px); padding: 20px; border-radius: 22px; background: #16161A; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 24px 70px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 10px; animation: dk-rise .35s cubic-bezier(.2,.8,.2,1); }
html.desk #desk-tour .tcount { font-size: 12px; color: #8FB0FF; font-weight: 500; }
html.desk #desk-tour .ttitle { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #EDEDEF; }
html.desk #desk-tour .tbody { font-size: 14px; line-height: 1.55; color: #C8C8CF; }
html.desk #desk-tour .trow { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
html.desk #desk-tour .tskip { height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; color: #A3A3AB; font: 500 14px Inter, sans-serif; cursor: pointer; }
html.desk #desk-tour .tnext { height: 40px; padding: 0 18px; border-radius: 12px; border: 0; background: #5B8CFF; color: #0A0A0C; font: 600 14px Inter, sans-serif; cursor: pointer; margin-left: auto; }
html.desk #tut-bubble, html.desk #tut-nextfab { display: none !important; } /* the phone tutorial never shows on the board */

/* resize handles */
html.desk .hdl { position: absolute; z-index: 6; touch-action: none; }
html.desk .hdl .bar { position: absolute; background: #5B8CFF; border-radius: 3px; opacity: 0; transition: opacity .15s; }
html.desk .hdl:hover .bar, html.desk .hdl.on .bar { opacity: 1; }
html.desk .locked .hdl { display: none; }

/* ---------- sidebar ---------- */
html.desk #desk-side { position: absolute; left: 14px; top: 76px; bottom: 14px; width: 72px; box-sizing: border-box; background: rgba(18,18,21,0.94); border: 1px solid rgba(255,255,255,0.07); border-radius: 22px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,0.4); z-index: 10; transition: width .25s cubic-bezier(.2,.8,.2,1); overflow: hidden; cursor: pointer; }
html.desk #desk-side.open { width: 260px; cursor: default; }
html.desk .ds-head { padding: 8px 8px 0; display: none; }
html.desk #desk-side.open .ds-head { display: block; }
html.desk .ds-banner { position: relative; height: 84px; border-radius: 16px; cursor: pointer; background: #3B1D0D; overflow: visible; }
html.desk .ds-banner .ds-art { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #1b2440, #10131c); }
html.desk .ds-banner .ds-art .skin-art { border-radius: 16px; } /* r-1043e-desk3: the public profile banner's own crop (.skin-banner-art + the account's --banner-x/--banner-y), built by desktop.js from the same classes */
html.desk .ds-banner .ds-collapse { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 10px; background: rgba(10,10,12,0.55); border-color: rgba(255,255,255,0.12); }
html.desk .ds-av { position: absolute; left: 12px; bottom: -22px; width: 48px; height: 48px; border-radius: 24px; border: 3px solid #121215; box-sizing: content-box; display: flex; align-items: center; justify-content: center; background: #111318 center / 100% 100% no-repeat; } /* r-1043c-desk2: the app's own avatar (avCircle): the picture on top once it loads. r-1043e-desk3: the Bullsi default art beneath (desktop.js sets the image), no letter; the + hint while no picture is set */
html.desk .ds-av .av-add { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 10px; background: #5B8CFF; color: #fff; font: 700 12px/1 Inter, sans-serif; font-style: normal; display: flex; align-items: center; justify-content: center; border: 2px solid #121215; cursor: pointer; z-index: 2; }
html.desk .ds-av img, html.desk .ds-av2 img { border-radius: inherit; }
html.desk .ds-av2 { background-color: #111318; background-size: 100% 100%; background-position: center; background-repeat: no-repeat; } /* r-1043g: longhands, so the default art desktop.js sets inline is never overridden (the shorthand with !important left a flat disc) */
html.desk .ds-av img, html.desk .ds-av2 img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: 0; }
html.desk .ds-av, html.desk .ds-av2 { position: absolute; }
html.desk .ds-av2 { position: relative; }
html.desk .ds-edit { position: absolute; right: 8px; bottom: -36px; width: 30px; height: 30px; border-radius: 10px; border: 0; background: transparent; }
html.desk .ds-who { padding: 30px 8px 4px; display: flex; flex-direction: column; gap: 4px; }
html.desk .ds-name { font-size: 16px; font-weight: 700; cursor: pointer; align-self: flex-start; color: #EDEDEF; background: none; border: 0; padding: 0; font-family: inherit; }
html.desk .ds-fol { font-size: 12px; color: #8B8B93; }
html.desk .ds-fol b { color: #EDEDEF; font-weight: 600; }
html.desk .ds-rule { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 6px 4px; }
html.desk .ds-closed { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 4px; }
html.desk #desk-side.open .ds-closed { display: none; }
html.desk .ds-closed .ds-av2 { width: 44px; height: 44px; border-radius: 22px; border: 0; background: #111318; color: #fff; font: 800 16px Inter, sans-serif; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 0; }
html.desk .ds-closed i { width: 28px; height: 1px; background: rgba(255,255,255,0.08); display: block; }
html.desk .ds-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
html.desk .wrow { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 4px 8px 4px 4px; border-radius: 14px; border: 0; background: transparent; color: #D6D6DC; font: 500 14px Inter, sans-serif; cursor: pointer; text-align: left; width: 100%; transition: background .15s; }
html.desk #desk-side.open .wrow { justify-content: flex-start; }
html.desk .wrow:hover { background: rgba(255,255,255,0.04); }
html.desk .wrow .tile { position: relative; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); color: #6B6B73; display: flex; align-items: center; justify-content: center; flex: 0 0 38px; transition: background .2s, color .2s; }
html.desk .wrow.on .tile { background: rgba(91,140,255,0.14); border-color: rgba(91,140,255,0.3); color: #8FB0FF; }
html.desk .wrow .tile i { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 5px; background: transparent; border: 2px solid #121215; }
html.desk .wrow.on .tile i { background: #34D399; }
html.desk .wrow span.lbl { flex: 1; color: #A3A3AB; white-space: nowrap; display: none; }
html.desk .wrow.on span.lbl { color: #EDEDEF; }
html.desk #desk-side.open .wrow span.lbl { display: block; }
html.desk .ds-presets { display: none; gap: 4px; padding: 4px; margin: 12px 4px 0; border-radius: 13px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
html.desk #desk-side.open .ds-presets { display: flex; }
html.desk .seg { flex: 1; height: 32px; border: 0; border-radius: 10px; font: 500 12px Inter, sans-serif; cursor: pointer; background: transparent; color: #A3A3AB; }
html.desk .seg.on { background: rgba(91,140,255,0.16); color: #8FB0FF; }
html.desk .ds-tools { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px 12px; border-top: 1px solid rgba(255,255,255,0.05); }
html.desk #desk-side.open .ds-tools { flex-direction: row; }
html.desk .ds-tools .ib { border: 0; color: #8B8B93; }
html.desk .ds-tools .ib.on { background: rgba(91,140,255,0.14); color: #8FB0FF; }

/* ---------- mini-map and zoom ---------- */
html.desk #desk-corner { position: absolute; right: 14px; bottom: 14px; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 10px 0 0 10px; transition: right .35s cubic-bezier(.2,.8,.2,1); }
html.desk #desk-corner.trade { right: 428px; }
html.desk #desk-mini, html.desk #desk-zoom { opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
html.desk #desk-corner.show #desk-mini, html.desk #desk-corner.show #desk-zoom { opacity: 1; pointer-events: auto; transform: none; }
html.desk #desk-mini { position: relative; width: 168px; height: 104px; padding: 0; cursor: pointer; border-radius: 14px; background: rgba(18,18,21,0.94); border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 12px 40px rgba(0,0,0,0.4); overflow: hidden; }
html.desk #desk-mini span { position: absolute; border-radius: 4px; }
html.desk #desk-mini .vb { border: 1.5px solid rgba(255,255,255,0.55); border-radius: 5px; pointer-events: none; background: transparent; }
html.desk #desk-zoom { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(18,18,21,0.94); border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
html.desk #desk-zoom .ib { border: 0; width: 34px; height: 34px; }
html.desk #desk-zoom b { width: 48px; text-align: center; font: 500 13px Inter, sans-serif; font-variant-numeric: tabular-nums; color: #C8C8CF; }

/* ---------- the docked Trade panel ---------- */
html.desk #desk-trade { position: absolute; right: 14px; top: 76px; bottom: 14px; width: 400px; box-sizing: border-box; z-index: 12; display: none; background: #121215; border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); overflow: hidden; transform: translateZ(0); animation: dk-slidein .4s cubic-bezier(.2,.8,.2,1); }
html.desk #desk-trade.open { display: block; }
html.desk #desk-trade #swroom { position: absolute !important; inset: 0 !important; background: transparent !important; }
html.desk #desk-trade #swroom > div { padding-top: 16px; max-width: none; }

/* ---------- pop-ups (the existing pages, centered over a blurred backdrop) ---------- */
html.desk .desk-pop { position: fixed; inset: 0; z-index: 60; /* r-1043c-desk2: under every sheet (69/70) and full-screen page (62+) the pop-up pages open, above the board (5) and the header (30) */ display: none; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: rgba(5,5,7,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.desk .desk-pop.open { display: flex; }
html.desk .desk-card { width: 100%; max-width: 480px; max-height: 100%; display: flex; flex-direction: column; background: #121215; border: 1px solid rgba(255,255,255,0.09); border-radius: 28px; box-shadow: 0 30px 90px rgba(0,0,0,0.6); overflow: hidden; animation: dk-rise .35s cubic-bezier(.2,.8,.2,1); }
html.desk .desk-pop.profile .desk-card { max-width: 600px; }
html.desk .desk-card > * { position: static !important; inset: auto !important; flex: 1; min-height: 0; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transform: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; max-width: none !important; display: block; }
html.desk .desk-card > #prof-overlay > div, html.desk .desk-card > #candiview > #cd-panel { position: static !important; inset: auto !important; max-height: none; overflow: visible; background: transparent; border: 0; border-radius: 0; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; width: auto; }
html.desk .desk-card > #candiview > #cd-panel { padding: 20px 20px 22px; }
html.desk .desk-card > #arena-overlay > #arena-view { padding: 20px 20px 24px; }
html.desk .desk-card > #account-page { padding: 20px 20px 24px; }
html.desk .desk-card > #key-sheet { padding: 20px 20px 24px; }
html.desk .desk-card > #key-sheet::before { display: none; }
html.desk .desk-card > #candiview.open { display: block; }
html.desk:has(#desk-pop-keys.open) #sheet-overlay.open { display: none; } /* the keys pop-up has its own backdrop; the other sheets keep theirs */

/* ---------- Hotkeys and Canvas pop-ups (r-1043h) ---------- */
html.desk .desk-pop.hot .desk-card, html.desk .desk-pop.canvas .desk-card { max-width: 520px; padding: 18px 20px 20px; gap: 6px; }
html.desk .desk-pop.canvas .desk-card { max-width: 440px; }
html.desk .dk-pophead { display: flex; align-items: center; justify-content: space-between; }
html.desk .dk-pophead h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #EDEDEF; }
html.desk .dk-popsub { margin: 0 0 6px; font-size: 13px; color: #8B8B93; line-height: 1.45; }
html.desk .dk-popbody { overflow-y: auto; min-height: 0; max-height: calc(100vh - 220px); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; margin: 0 -6px; padding: 0 6px; }
html.desk .dk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 2px 4px; border-bottom: 1px solid rgba(255,255,255,0.05); }
html.desk .dk-lbl { font-size: 14px; color: #D6D6DC; }
html.desk .dk-chip { min-width: 44px; height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #EDEDEF; font: 600 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
html.desk .dk-chip:hover { background: rgba(255,255,255,0.1); }
html.desk .dk-chip.waiting { border-color: #5B8CFF; color: #8FB0FF; background: rgba(91,140,255,0.12); }
html.desk .dk-chip.fixed { opacity: 0.6; cursor: default; }
html.desk .dk-ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 4px; font-size: 13px; color: #FFD166; }
html.desk .dk-ask span { flex: 1; }
html.desk .dk-popfoot { display: flex; justify-content: flex-end; padding-top: 10px; }
html.desk .dk-btn { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #EDEDEF; font: 500 13px Inter, sans-serif; cursor: pointer; }
html.desk .dk-btn.primary { background: #5B8CFF; border-color: #5B8CFF; color: #0A0A0C; font-weight: 600; }
html.desk .dk-tiles { display: flex; gap: 12px; }
html.desk .dk-tile { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 2px solid rgba(255,255,255,0.08); background: transparent; cursor: pointer; font: 500 13px Inter, sans-serif; color: #C8C8CF; transition: border-color .2s; }
html.desk .dk-tile.on { border-color: #5B8CFF; color: #EDEDEF; }
html.desk .dk-tilepv { display: block; height: 96px; border-radius: 10px; position: relative; overflow: hidden; background-color: var(--tc); background-image: radial-gradient(var(--td) 1px, transparent 1px); background-size: 12px 12px; }
html.desk .dk-tilepv i { position: absolute; top: 14px; bottom: 14px; width: 38%; border-radius: 8px; background: #121215; border: 1px solid rgba(255,255,255,0.08); }
html.desk .dk-tilepv i:first-child { left: 12%; } html.desk .dk-tilepv i:last-child { right: 12%; }
html.desk .dk-tilelbl { text-align: center; }
html.desk #gmenu .dk-menu { width: 100%; text-align: left; }
/* ---------- toast with an action ---------- */
html.desk #desk-toast { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 60; display: none; justify-content: center; pointer-events: none; }
html.desk #desk-toast.open { display: flex; }
html.desk #desk-toast > div { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(24,24,28,0.97); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 16px 50px rgba(0,0,0,0.5); font-size: 14px; white-space: nowrap; animation: dk-rise .35s cubic-bezier(.2,.8,.2,1); }
html.desk #desk-toast .act { height: 32px; padding: 0 12px; border-radius: 10px; border: 0; background: rgba(91,140,255,0.16); color: #8FB0FF; font: 600 13px Inter, sans-serif; cursor: pointer; }
html.desk #desk-toast .ib { width: 32px; height: 32px; border: 0; background: transparent; }

/* ---------- hide balances (H) ---------- */
/* r-1047k-fix15i (item 9): hide mode lives in public/index.html (html.blur-bal, both frames: the desktop's H and the balance card's eye share one state); nothing here */
/* r-1046g-genesis7 (item 11): the tour's AI-style glow — a soft candy gradient travelling around the target (conic gradient masked to a border), a soft outer glow; reduced motion = a still glow */
html.desk .desk-glow { position: fixed; z-index: 41; pointer-events: none; opacity: 0; transition: opacity .35s ease, left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); border-radius: var(--glow-r, 20px); --glow-a: 0deg; }
html.desk .desk-glow.on { opacity: 1; }
html.desk .desk-glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; background: conic-gradient(from var(--glow-a), #3DDC97, #5B8CFF, #FFD166, #FF8A3D, #FF5A5F, #6C8CFF, #3DDC97); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: desk-glow-turn 3.2s linear infinite; }
html.desk .desk-glow::after { content: ""; position: absolute; inset: -10px; border-radius: inherit; background: conic-gradient(from var(--glow-a), rgba(61,220,151,.35), rgba(91,140,255,.35), rgba(255,209,102,.35), rgba(255,90,95,.3), rgba(108,140,255,.35), rgba(61,220,151,.35)); filter: blur(16px); opacity: .55; animation: desk-glow-turn 3.2s linear infinite; }
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes desk-glow-turn { to { --glow-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { html.desk .desk-glow::before, html.desk .desk-glow::after { animation: none; } html.desk .desk-glow { transition: opacity .2s; } }

@keyframes dk-rise { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes dk-slidein { 0% { opacity: 0; transform: translateX(40px) translateZ(0); } 100% { opacity: 1; transform: translateZ(0); } }
@keyframes dk-appear { 0% { opacity: 0; transform: scale(.96) translateZ(0); } 100% { opacity: 1; transform: translateZ(0); } }
@media (prefers-reduced-motion: reduce) { html.desk .dw, html.desk #desk-world, html.desk #desk-side, html.desk #desk-trade, html.desk .desk-card, html.desk #desk-dd { animation: none !important; transition: none !important; } }
