/** * dsh-ui-tweaks — browser half. * * A single client-only plugin that bundles six independent UI tweaks, each * toggleable in the CONFIG block below: * * 0) BASE_BG — soften the near-black base background token * (`--dsw-alias-bg-base`, #151517 by default). Drives the main content and, * via feature (1), the sidebar, so both tone together. * * 1) MATCH_SIDEBAR_BG — the left sidebar root paints * `background: var(--dsw-specific-sidebar-fill)` while the main content * paints `var(--dsw-alias-bg-base)`. We alias the former token to the * latter so the sidebar shares the transcript background (theme-agnostic). * * 2) SIDEBAR_BRAND_TEXT / HIDE_NEW_SESSION — keep the sidebar's logo row so * its NATIVE collapse/expand toggle stays available (that toggle is what * the compact-sidebar tweak used to remove), but replace the DeepSeek brand * logo with plain text (e.g. "Harness"), and optionally hide the New * Session button. Sidebar CSS-module classes are content-hashed, so we * match the stable suffix; the brand button is pinpointed with * `[class*="_brand"]:has([class*="_brandIdentity"])`. * * 3) COLLAPSE_HEADER — collapse the conversation-header utility pills * (Session log, Stop All, Resume…, Git) behind one `⋯` dropdown. We never * move or synthetically click the real buttons — their React handlers stay * intact; we only restyle the `.headerUtilities` container into a panel and * add a vanilla trigger. A MutationObserver re-applies after React * re-renders. Open/close state lives in `data-*` attrs React won't clobber. * * 4) PANEL_BG — tone the elevated surfaces so they sit close to the base * background: the "Message the agent" composer (`--dsw-specific-input-major`), * code blocks (`--dsw-alias-markdown-code-block` + `…-banner`), the Ongoing * Goal bar (`--dsw-specific-tip`), and generic panels/dropdowns * (`--dsw-alias-bg-layer-1/2`). All are overridden to one shade. * * 5) STYLE_PROCESSED_LIKE_PROMPT — restyle the smooth-stream "Processed