.wgRoot { box-sizing:border-box; flex-direction:column; flex:1; width:100%; height:100%; max-height:100%; min-width:0; min-height:0; display:flex; overflow:hidden; } /* Remote SSH's legacy title matcher appends a globe to the first SVG it finds. Our row starts with a disclosure slot, so the badge can land on the wrong icon. Suppress only that injected decoration within this tree; keep the node in place so the remote plugin's observer does not reinsert it. */ .wgRoot [data-rssh-globe] { display:none !important; } .wgSectionHeader { flex:none; align-items:center; gap:4px; height:36px; padding:0 12px; display:flex; } .wgSectionLabel { text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:45%; color:var(--dsw-fg-1,inherit); flex:none; font-size:12px; font-weight:600; overflow:hidden; } .wgIconButton { width:26px; height:26px; color:var(--dsw-fg-2,inherit); cursor:pointer; background:0 0; border:none; border-radius:6px; justify-content:center; align-items:center; padding:0; display:inline-flex; } .wgIconButton:hover { background:var(--dsw-bg-hover,#7f7f7f1f); color:var(--dsw-fg-1,inherit); } .wgIconButton:disabled { opacity:.5; cursor:default; } .wgSearch { flex:1; align-items:center; min-width:0; max-width:28px; margin-left:auto; transition:max-width .18s; display:flex; } .wgSearchExpanded { max-width:100%; } .wgSearchInput { min-width:0; color:var(--dsw-fg-1,inherit); background:0 0; border:none; outline:none; flex:1; padding:0; font-size:12px; } .wgTreeBody { flex:1; min-width:0; min-height:0; padding:0 8px 8px; overflow-x:hidden; overflow-y:auto; } /* Bottom dock: the "not classified yet" bucket and the Host default workspace sit outside the tree's scroll area, so a long session list can never push them away. The dock owns the divider against the tree; the default-workspace bar adds a second one only when the bucket sits above it. The dock is bounded: it never grows past its cap, and it never shrinks below the height of its own rows. Only the expanded session list gives up height and scrolls, so no row is ever cut in half (a halved row reads as an overlap) and nothing from the tree is painted underneath the dock. */ .wgDock { flex:0 1 auto; min-width:0; /* A plain pixel floor (bucket row + workspace row + padding). A content-based floor would outweigh max-height, letting the dock grow to the whole session list and swallow the tree, so the floor stays a fixed length. */ min-height:84px; max-height:min(62vh,560px); display:flex; flex-direction:column; overflow:hidden; border-top:1px solid var(--dsw-alias-border-l2,#7f7f7f47); } /* The docked bucket never gives up height: it must be able to open its own children (a shrinkable bucket stays one row tall however far it is expanded, which reads as "cannot expand"). Past its cap it scrolls, so a big pile still cannot swallow the tree; the session list below is what gives way. */ .wgDockBucket { flex:0 0 auto; min-width:0; min-height:0; max-height:min(26vh,200px); padding:4px 8px 0; overflow-x:hidden; overflow-y:auto; } .wgDockBucket + .wgDefaultWorkspaceBar { border-top:1px solid var(--dsw-alias-border-l2,#7f7f7f47); } .wgRail .wgDock { display:none; } .wgDefaultWorkspaceBar { flex:1 1 auto; min-width:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; padding:6px 8px 8px; } /* The workspace row stays put; its expanded sessions scroll under it. */ .wgDockSessions { flex:1 1 auto; min-width:0; min-height:0; /* A share of its own, not "whatever is left": with the tree and the bucket also expanded, the session list stops growing at about a third of the sidebar and scrolls instead of pushing the other two out of view. */ max-height:min(26vh,400px); overflow-x:hidden; overflow-y:auto; } .wgDefaultWorkspaceBar .wgProjectRow { flex:none; margin-bottom:2px; } /* Every nesting container must be allowed to shrink below its min-content width. Otherwise a long title expands the grid track and pushes the action column beyond the visible scrollport, even though the title has ellipsis. */ .wgTreeWrap,.wgList,.wgRows,.wgRowsInner,.wgTreeChildren { min-width:0; max-width:100%; } .wgCategoryRow,.wgProjectRow,.wgFolderRow,.wgSessionRow { box-sizing:border-box; width:100%; min-width:0; max-width:100%; } /* Indentation belongs only on the left; all trailing action buttons share the same right inset, independent of title length and nesting depth. */ .wgRowActions:last-child { margin-left:auto; } .wgList { flex-direction:column; gap:1px; display:flex; } .wgEmpty { text-align:center; color:var(--dsw-fg-3,#7f7f7fcc); padding:16px 8px; font-size:12px; } .wgCategoryRow { cursor:pointer; user-select:none; border-radius:6px; align-items:center; gap:4px; height:28px; padding:0 4px; display:flex; position:relative; } /* Palette: one custom property per colour id, shared by the group row and the appearance picker swatches. An uncoloured group never gets data-wg-color, so existing overlays render byte-identically. */ [data-wg-color=red]{--wg-group-tint:#d9534f} [data-wg-color=orange]{--wg-group-tint:#e08a3c} [data-wg-color=amber]{--wg-group-tint:#d9a521} [data-wg-color=green]{--wg-group-tint:#3fa45b} [data-wg-color=teal]{--wg-group-tint:#2f9e93} [data-wg-color=blue]{--wg-group-tint:#4a90d9} [data-wg-color=indigo]{--wg-group-tint:#5b6fd6} [data-wg-color=purple]{--wg-group-tint:#9a63c9} [data-wg-color=pink]{--wg-group-tint:#d4659c} [data-wg-color=gray]{--wg-group-tint:#8a8a8a} /* inset shadow instead of a new element: no layout shift, no clash with the drag insert-line pseudo-elements above. */ .wgCategoryRow[data-wg-color] { box-shadow:inset 2px 0 0 var(--wg-group-tint); } .wgCategoryRow[data-wg-color] .wgCategoryIcon { color:var(--wg-group-tint); } .wgCategoryRow:hover { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgCategoryRow:hover .wgRowActions,.wgCategoryRow:focus-within .wgRowActions { opacity:1; } .wgDropTarget { background:var(--dsw-bg-selected,#4a90d92e); outline:1px dashed var(--dsw-accent,#4a90d9); outline-offset:-1px; } .wgInsertBefore:before,.wgInsertAfter:after { content:""; background:var(--dsw-accent,#4a90d9); height:2px; box-shadow:0 0 0 1px color-mix(in srgb, var(--dsw-accent,#4a90d9) 25%, transparent); pointer-events:none; z-index:6; border-radius:1px; position:absolute; left:2px; right:2px; } .wgInsertBefore:before { top:-1px; } .wgInsertAfter:after { bottom:-1px; } .wgChevron { width:14px; height:14px; color:var(--dsw-fg-3,#7f7f7fcc); flex:none; justify-content:center; align-items:center; transition:transform .12s; display:inline-flex; /* The slot owns exactly ONE glyph. Clip it so nothing that lands here from another layer (an overlay, a duplicated svg) can paint a second shape on top of the triangle — that stray shape reads as a broken, mushy icon. */ overflow:hidden; } /* Keep only the first svg in the slot; a second one is never part of a row. */ .wgChevron > svg:not(:first-child) { display:none; } .wgChevronOpen { transform:rotate(90deg); } .wgCategoryIcon { color:var(--dsw-fg-2,inherit); flex:none; justify-content:center; align-items:center; display:inline-flex; /* Fixed 16px slot: without an explicit box the glyph was free to be squashed by the row's flex track, which turned the project folder into a grey blob. */ width:16px; height:16px; } .wgCategoryIcon > svg { display:block; width:16px; height:16px; flex:none; } .wgCategoryLabel { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-fg-1,inherit); flex:1; font-size:12px; font-weight:600; overflow:hidden; } .wgCategoryCount, .wgProjectCount { color:var(--dsw-fg-3,#7f7f7fcc); flex:none; font-size:11px; } .wgCategoryGlyph { font-size:12px; line-height:1; } .wgCategoryPin { color:var(--dsw-fg-3,#7f7f7fcc); flex:none; display:inline-flex; } .wgProjectRow { cursor:pointer; user-select:none; border-radius:6px; align-items:center; gap:4px; height:28px; padding:0 4px 0 20px; display:flex; position:relative; } .wgProjectFlat { padding-left:4px; } .wgTopLevelArea { margin-top:2px; padding-bottom:10px; } .wgTopLevelEmpty { border-radius:4px; height:14px; position:relative; } .wgTopLevelEmptyLine { background:var(--dsw-accent,#4a90d9); height:2px; box-shadow:0 0 0 1px color-mix(in srgb, var(--dsw-accent,#4a90d9) 25%, transparent); pointer-events:none; border-radius:1px; position:absolute; top:50%; left:2px; right:2px; } .wgTopLevelEmptyActive { background:var(--dsw-bg-selected,#4a90d92e); } .wgProjectRow:hover { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgProjectActive .wgProjectLabel { font-weight:700; } .wgProjectLabel { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); /* Same face and size as the group and session rows: the three levels read as one list whose depth comes from the 16px indent and the weight ramp (600 group / 500 project / 400 session), not from a size jump. The mono face this used to use made project rows look larger and differently spaced than the rows around them. */ font-size:12px; font-weight:500; flex:1; overflow:hidden; } .wgRowActions { opacity:0; flex:none; align-items:center; gap:2px; display:inline-flex; } /* One trailing slot per row: the member count and the hover buttons are stacked in the same grid cell, pinned to the row's right edge. The count therefore sits exactly where the buttons appear (both right-aligned), the cell is always as wide as the widest of the two, and the swap cannot move either box. */ .wgRowTrail { display:grid; flex:none; margin-left:auto; align-items:center; justify-items:end; } .wgRowTrail > * { grid-area:1 / 1; } .wgProjectRow:hover .wgRowActions,.wgProjectRow:focus-within .wgRowActions { opacity:1; } /* Folder rows (multi-root workspaces): one row per folder under a project. The folder label lands on the session indent (74) and the folder's own sessions step one further (90), so the ladder reads 42 → 58 → 74 → 90 on the same 16px step the group/project/session rows already use. */ .wgFolderRow { cursor:pointer; user-select:none; border-radius:6px; align-items:center; gap:4px; height:28px; padding:0 4px 0 38px; display:flex; position:relative; } .wgFolderRow:hover { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgFolderRow:hover .wgRowActions,.wgFolderRow:focus-within .wgRowActions { opacity:1; } .wgFolderLabel { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); font-size:12px; font-weight:500; flex:1; overflow:hidden; } /* The base folder is the workspace's own directory: slightly stronger weight so the implicit folder #0 stays distinguishable from the extras. */ .wgFolderBase .wgFolderLabel { font-weight:600; } .wgFolderRoot { color:var(--dsw-accent,#4a90d9); flex:none; font-size:11px; line-height:1; } .wgFolderCount { color:var(--dsw-fg-3,#7f7f7fcc); flex:none; font-size:11px; } /* Trailing member count / session time and trailing actions are mutually exclusive: at rest a row states its count (groups, workspaces, folders) or the session's relative time, and as soon as it is hovered or reached by keyboard focus the "+" / "⋯" buttons take that trailing slot. Both live in the same .wgRowTrail cell and keep their boxes (opacity + visibility), so the count and the time are right-aligned on the row's right edge exactly where the buttons appear, and the swap never changes the row height nor reflows the label. */ .wgCategoryCount,.wgFolderCount,.wgProjectCount,.wgSessionTime { transition:opacity .12s ease; } .wgCategoryRow:hover .wgCategoryCount, .wgCategoryRow:focus-within .wgCategoryCount, .wgFolderRow:hover .wgFolderCount, .wgFolderRow:focus-within .wgFolderCount, .wgProjectRow:hover .wgProjectCount, .wgProjectRow:focus-within .wgProjectCount, .wgSessionRow:hover .wgSessionTime, .wgSessionRow:focus-within .wgSessionTime { opacity:0; visibility:hidden; } /* Sessions hanging off a folder row: one indent step deeper than a plain session title (74 → 90). */ .wgSessionNested { padding-left:70px; } .wgTreeWrap { position:relative; } /* The flower overlay holds only the bloom now; the stem and per-row dots were removed, so no stroke rules live here any more. */ .wgBranch { z-index:2; pointer-events:none; position:absolute; top:0; left:0; overflow:visible; transition:opacity .12s ease; } /* Disclosure animation moves rows before FlowerBranch re-measures: hide the bloom while any RowGroup animates so it never lags behind its row. */ .wgTreeWrap:has([data-wg-animating]) .wgBranch { opacity:0; } .wgTreeWrap>.wgList { z-index:1; position:relative; } .wgFlowerArt { transform-box:fill-box; transform-origin:50%; animation:4s linear infinite paused wg-flower-spin; } .wgFlowerSpinning .wgFlowerArt { animation-play-state:running; } @keyframes wg-flower-spin { 0%{transform:rotate(0)}to{transform:rotate(360deg)}; } @media (prefers-reduced-motion:reduce) { .wgFlowerArt{animation:none}.wgRowsOpening,.wgRowsClosing{animation:none}.wgBranch{transition:none}; } /* Animated disclosure body (RowGroup): 0fr ↔ 1fr interpolates the row box without measuring heights. The inner element must shrink during the +row collapse, and overflow is only clipped while a class is present so idle hover halos and focus rings are never cut off. */ .wgRows { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:1fr; } .wgRowsInner { min-height:0; } .wgRowsOpening { animation:wg-rows-in .18s cubic-bezier(.2,.8,.2,1); } .wgRowsClosing { pointer-events:none; animation:wg-rows-out .16s cubic-bezier(.4,0,1,1) forwards; } .wgRowsOpening .wgRowsInner,.wgRowsClosing .wgRowsInner { overflow:hidden; } @keyframes wg-rows-in { 0%{grid-template-rows:0fr;opacity:.35} to{grid-template-rows:1fr;opacity:1} } @keyframes wg-rows-out { 0%{grid-template-rows:1fr;opacity:1} to{grid-template-rows:0fr;opacity:0} } .wgTreeChildren { position:relative; } .wgSessionRow { cursor:pointer; user-select:none; border-radius:6px; align-items:center; gap:6px; height:28px; /* Nesting step: group label 42 → project label 58 → session title 74, i.e. a uniform 16px per level. The session used to start at 40 (+20 for the status slot = 60), which sat only 2px right of its project label and read as the same level. */ padding:0 4px 0 54px; display:flex; } .wgSessionRow:hover { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgSessionRow:hover .wgRowActions,.wgSessionRow:focus-within .wgRowActions { opacity:1; } .wgSelected { background:var(--dsw-bg-selected,#4a90d92e); } .wgStatusSlot { flex:none; justify-content:center; align-items:center; width:14px; height:14px; display:inline-flex; } .wgSessionTitle { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit)); flex:1; font-size:12px; overflow:hidden; } .wgSelected .wgSessionTitle { color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); font-weight:500; } .wgSessionTime { color:var(--dsw-fg-3,#7f7f7fcc); flex:none; font-size:11px; } .wgVisuallyHidden { clip:rect(0 0 0 0); white-space:nowrap; border:0; width:1px; height:1px; margin:-1px; padding:0; position:absolute; overflow:hidden; } .wgMatched { background:var(--dsw-bg-selected,#4a90d92e); } .wgSessionSnippet { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-fg-3,#7f7f7fcc); flex:1; font-size:11px; overflow:hidden; } .wgSearchStatus { color:var(--dsw-fg-3,#7f7f7fcc); text-align:center; padding:8px; font-size:11px; } .wgManualError { color:var(--dsw-fg-1,inherit); text-align:left; word-break:break-word; } .wgSmallAction { border:1px solid var(--dsw-border-1,#7f7f7f55); border-radius:4px; background:transparent; color:inherit; font:inherit; font-size:10.5px; line-height:1; padding:3px 6px; cursor:pointer; } .wgSmallAction:hover { border-color:var(--dsw-accent,#4c8dff); } .wgRail { flex-direction:column; align-items:center; gap:12px; padding:8px 0 0; display:flex; overflow:hidden; } .wgRail .wgSectionHeader { flex-direction:column; align-self:center; align-items:center; gap:12px; width:36px; height:auto; padding:0; } .wgRail .wgIconButton { border-radius:50%; width:36px; height:36px; } .wgRail .wgTreeBody { display:none; } .wgAddError { color:var(--dsw-fg-1,inherit); white-space:pre-wrap; word-break:break-word; max-height:200px; font-size:12px; overflow-y:auto; } .wgRenameInput { border:1px solid var(--dsw-border,#7f7f7f4d); background:var(--dsw-bg-1,transparent); width:100%; color:var(--dsw-fg-1,inherit); border-radius:6px; outline:none; padding:6px 8px; font-size:13px; } .wgRenameInput:focus { border-color:var(--dsw-accent,#4a90d9); } /* Folder dialog: project header, one card per folder, then the add section. Rows are two-line (name over path) so a generated mirror id never has to be read as a name, and the add action owns a full-width row so its label cannot wrap. */ .wgFolderBody { display:flex; flex-direction:column; gap:14px; } .wgFolderHead { display:flex; flex-direction:column; gap:2px; min-width:0; } .wgFolderHeadName { color:var(--dsw-fg-1,inherit); font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wgFolderHeadPath { color:var(--dsw-alias-label-secondary,inherit); font-family:var(--dsw-font-mono,ui-monospace,SFMono-Regular,monospace); font-size:11px; opacity:.65; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wgFolderSection { display:flex; flex-direction:column; gap:6px; min-width:0; } .wgFolderSectionTitle { color:var(--dsw-alias-label-secondary,inherit); font-size:11px; font-weight:600; letter-spacing:.03em; opacity:.7; } .wgFolderList { display:flex; flex-direction:column; gap:4px; max-height:280px; overflow:auto; padding:2px; margin:0 -2px; } .wgFolderListRow { display:flex; align-items:center; gap:8px; padding:7px 8px; border:1px solid transparent; border-radius:8px; background:#7f7f7f1a; transition:background .12s ease,border-color .12s ease; } .wgFolderListRow:hover { background:var(--dsw-bg-hover,#7f7f7f2e); } .wgFolderListRow[data-active="true"] { border-color:var(--dsw-alias-border-l2,#7f7f7f40); background:var(--dsw-bg-hover,#7f7f7f1f); } .wgFolderRootPick { display:inline-flex; align-items:center; flex:none; cursor:pointer; } .wgFolderRadio { appearance:none; width:14px; height:14px; margin:0; border:1.5px solid var(--dsw-alias-border-l2,#7f7f7f80); border-radius:50%; background:none; display:grid; place-content:center; cursor:pointer; transition:border-color .12s ease; } .wgFolderRadio:hover { border-color:var(--dsw-accent,#4a90d9); } .wgFolderRadio:checked { border-color:var(--dsw-accent,#4a90d9); } .wgFolderRadio:checked::after { content:""; width:7px; height:7px; border-radius:50%; background:var(--dsw-accent,#4a90d9); } .wgFolderRadio:focus-visible { outline:2px solid var(--dsw-accent,#4a90d9); outline-offset:2px; } .wgFolderEntry { display:flex; flex-direction:column; gap:1px; flex:1 1 auto; min-width:0; } .wgFolderListLabel { color:var(--dsw-fg-1,inherit); font-size:12.5px; font-weight:500; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wgFolderListPath { color:var(--dsw-alias-label-secondary,inherit); font-family:var(--dsw-font-mono,ui-monospace,SFMono-Regular,monospace); font-size:11px; line-height:1.35; opacity:.6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wgFolderListTags { display:inline-flex; align-items:center; gap:4px; flex:none; } .wgFolderListTag { padding:2px 6px; border:1px solid var(--dsw-alias-border-l2,#7f7f7f40); border-radius:999px; color:var(--dsw-alias-label-secondary,inherit); font-size:10px; line-height:1.4; white-space:nowrap; } .wgFolderListTag[data-tone="base"] { border-style:dashed; } .wgFolderListTag[data-tone="root"] { border-color:transparent; background:#4a90d92e; color:var(--dsw-fg-1,inherit); } .wgFolderListTag[data-tone="cloud"], .wgFolderListTag[data-tone="local"] { opacity:.85; } .wgFolderListTag[data-tone="danger"] { border-color:#d464644d; color:#e08a8a; } .wgFolderListActions { flex:none; align-items:center; gap:2px; display:inline-flex; opacity:.5; transition:opacity .12s ease; } .wgFolderListRow:hover .wgFolderListActions, .wgFolderListRow:focus-within .wgFolderListActions { opacity:1; } .wgFolderEmpty { margin:0; padding:10px 12px; border:1px dashed var(--dsw-alias-border-l2,#7f7f7f40); border-radius:8px; color:var(--dsw-alias-label-secondary,inherit); font-size:11.5px; line-height:1.5; opacity:.75; } /* Inline confirm shown when removing a remote member: the removal can take the backing workspace (and its sessions) with it, so the choice is explicit. */ .wgFolderConfirm { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:4px 0 6px; padding:8px 10px; border:1px solid var(--dsw-alias-border-l2,#7f7f7f40); border-radius:8px; font-size:11.5px; line-height:1.5; } .wgFolderConfirmText { flex:1 1 220px; } .wgFolderConfirmActions { display:flex; gap:6px; } .wgFolderConfirmButton { padding:3px 9px; border:1px solid var(--dsw-alias-border-l2,#7f7f7f40); border-radius:6px; background:transparent; color:inherit; font:inherit; cursor:pointer; } .wgFolderConfirmButton[data-tone="danger"] { color:var(--dsw-alias-status-danger,#d13438); border-color:var(--dsw-alias-status-danger,#d13438); } /* Add area: a segmented switch chooses local directory or cloud directory; the chosen action then owns its own row so nothing competes for its width. */ .wgFolderAdd { display:flex; flex-direction:column; gap:8px; padding-top:12px; border-top:1px solid var(--dsw-alias-border-l2,#7f7f7f33); } .wgFolderSegmented { display:inline-flex; align-self:flex-start; gap:2px; padding:2px; border-radius:999px; background:#7f7f7f29; } .wgFolderTab { padding:4px 12px; border:0; border-radius:999px; background:none; color:var(--dsw-alias-label-secondary,inherit); font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; transition:background .12s ease,color .12s ease; } .wgFolderTab:hover { color:var(--dsw-fg-1,inherit); } /* The selected pill must read as a raised chip inside the tinted track, so it never looks like the outlined buttons further down the dialog. */ .wgFolderTab[aria-selected="true"] { background:#ffffff2b; box-shadow:inset 0 0 0 1px #ffffff1f; color:var(--dsw-fg-1,inherit); font-weight:600; } .wgFolderLocalPane { display:flex; flex-direction:column; gap:6px; } .wgFolderPick { display:flex; align-items:center; gap:8px; width:100%; padding:9px 12px; border:1px dashed var(--dsw-alias-border-l2,#7f7f7f59); border-radius:8px; background:none; color:var(--dsw-fg-1,inherit); font:inherit; font-size:12.5px; font-weight:500; text-align:left; cursor:pointer; white-space:nowrap; transition:border-color .12s ease,background .12s ease; } .wgFolderPick:hover:not(:disabled) { border-color:var(--dsw-accent,#4a90d9); background:#4a90d91a; } .wgFolderPick:disabled { opacity:.5; cursor:default; } .wgFolderPickPlus { flex:none; color:var(--dsw-accent,#4a90d9); font-size:13px; line-height:1; } .wgFolderHint { margin:0; color:var(--dsw-alias-label-secondary,inherit); font-size:11px; line-height:1.55; opacity:.7; } .wgFolderActions { display:flex; gap:6px; } /* The add actions own their line: a primary button sharing a row with a field left it too narrow to render its label on one line. */ .wgFolderActions > button { width:100%; justify-content:center; } .wgFolderStack { display:flex; flex-direction:column; gap:6px; } .wgFolderField { position:relative; display:flex; align-items:center; } .wgFolderField .wgFolderFieldInput { width:100%; padding-right:30px; } /* Browse lives inside the path field: the dialog is too narrow to spend a whole button on it. */ .wgFolderFieldAction { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; padding:0; border:0; border-radius:5px; background:none; color:var(--dsw-fg-3,#a6abc4); cursor:pointer; } .wgFolderFieldAction:hover:not(:disabled) { background:var(--dsw-bg-hover,#ffffff1f); color:var(--dsw-fg-1,inherit); } .wgFolderFieldAction:disabled { opacity:.4; cursor:default; } .wgFolderAddRow { display:flex; align-items:center; gap:6px; margin-top:6px; } .wgFolderAddRow > button { flex:none; white-space:nowrap; } .wgFolderNote { margin:0; color:var(--dsw-alias-label-secondary,inherit); font-size:11px; line-height:1.5; opacity:.8; } /* Remote directory picker: location bar on top, directory list under it. */ .wgRemoteBar { display:flex; align-items:center; gap:6px; margin-bottom:8px; } .wgRemotePath { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--dsw-font-mono,ui-monospace,monospace); font-size:12px; color:var(--dsw-fg-1,inherit); } .wgRemoteActions { flex:none; display:inline-flex; gap:4px; } .wgRemoteList { max-height:260px; overflow:auto; border:1px solid var(--dsw-alias-border-l2,#7f7f7f33); border-radius:8px; padding:4px; margin:0 0 8px; } .wgRemoteRow { display:flex; align-items:center; gap:6px; width:100%; padding:5px 6px; border:0; border-radius:6px; background:none; color:var(--dsw-fg-1,inherit); font:inherit; font-size:12px; text-align:left; cursor:pointer; } .wgRemoteRow:hover { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgRemoteName { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .wgFolderSelect { flex:1 1 auto; width:100%; min-width:0; } .wgFolderSubpathInput { flex:1 1 auto; min-width:0; padding:4px 8px; border:1px solid var(--dsw-alias-border-l2,#7f7f7f40); border-radius:6px; background:var(--dsw-alias-bg-base,transparent); color:inherit; font:inherit; font-size:13px; } .wgFolderSubpathInput:focus { outline:none; border-color:var(--dsw-alias-label-primary,currentColor); } /* Appearance dialog: colour swatches, categorised icon picker, pin toggle. */ .wgAppearanceBody { display:flex; flex-direction:column; gap:16px; } /* Cap against the modal's padded viewport box (the host Modal documents `max-height:100%` for consumers) and scroll the card body instead of letting the card grow: the title row stays pinned while it scrolls, and the footer — the only "done" button — lives outside the scroller, so a taller icon picker can never push it out of the dialog. */ .wgAppearanceDialog { max-height:100%; } .wgAppearanceContent { overflow-x:hidden; overflow-y:auto; min-height:0; } .wgAppearanceContent > :first-child { position:sticky; top:0; z-index:1; background:var(--dsw-alias-bg-layer-2,transparent); } .wgAppearanceSection { display:flex; flex-direction:column; gap:6px; } .wgAppearanceLabel { color:var(--dsw-fg-3,#7f7f7fcc); font-size:11px; font-weight:600; } .wgSwatchRow { gap:6px; display:flex; flex-wrap:wrap; } .wgSwatch { cursor:pointer; border:1px solid var(--dsw-alias-border-l2,#7f7f7f47); width:20px; height:20px; border-radius:5px; padding:0; } .wgSwatch[data-wg-color] { background:var(--wg-group-tint); } .wgSwatch:disabled { cursor:default; opacity:.5; } .wgSwatchActive { outline:2px solid var(--dsw-accent,#4a90d9); outline-offset:1px; } .wgSwatchDefault { background:var(--dsw-bg-hover,#7f7f7f1f); } /* One height-capped scroller for every icon section (common presets, the four research families, emoji), so the picker grows sideways, not downwards. The 4px padding keeps edge cells' focus rings inside the clip. */ .wgIconSections { display:flex; flex-direction:column; gap:10px; max-height:216px; overflow-y:auto; padding:4px; scrollbar-gutter:stable; } .wgIconSection { display:flex; flex-direction:column; gap:4px; } .wgIconSectionLabel { color:var(--dsw-fg-3,#7f7f7fcc); font-size:11px; font-weight:600; line-height:14px; } .wgIconGrid { gap:4px; grid-template-columns:repeat(auto-fill,minmax(28px,1fr)); padding:1px; display:grid; } .wgEmojiGrid .wgIconCell { font-size:18px; } /* Restore-default + custom glyph: a row under the picker, kept clear of the picker's scroller (its focus ring never overlaps a cell). */ .wgIconCustom { display:flex; align-items:center; gap:8px; margin-top:2px; } .wgIconCustom .wgRenameInput { flex:1; min-width:0; } .wgIconCell.wgIconDefault { width:auto; padding:0 8px; } .wgIconCell { cursor:pointer; color:var(--dsw-fg-2,inherit); border:0; border-radius:5px; justify-content:center; align-items:center; width:28px; height:28px; padding:0; display:inline-flex; background:transparent; } .wgIconCell:hover:not(:disabled) { background:var(--dsw-bg-hover,#7f7f7f1f); } .wgIconCell[aria-pressed=true] { background:var(--dsw-bg-selected,#4a90d92e); box-shadow:inset 0 0 0 1px var(--dsw-accent,#4a90d9); } .wgIconCell:focus-visible { outline:2px solid var(--dsw-accent,#4a90d9); outline-offset:1px; } .wgIconCell:disabled { cursor:default; opacity:.5; } .wgQuickOverlay { z-index:1100; background:var(--dsw-alias-bg-mask-1,#00000052); backdrop-filter:var(--dsw-mask-blur,blur(2px)); justify-content:center; align-items:flex-start; padding:10vh 24px 24px; display:flex; position:fixed; inset:0; } .wgQuickCard { border:1px solid var(--dsw-border,#7f7f7f33); background:var(--dsw-alias-bg-layer-2,var(--dsw-bg-1,#fff)); width:min(640px,100%); max-height:min(560px,90vh - 48px); box-shadow:var(--dsw-elevation-prominent,0 16px 48px #00000040); box-sizing:border-box; border-radius:12px; flex-direction:column; gap:10px; padding:14px; display:flex; overflow:hidden; } .wgQuickHeader { flex:none; justify-content:space-between; align-items:center; gap:12px; display:flex; } .wgQuickTitle { color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); font-size:13px; font-weight:600; } .wgQuickTabs { gap:2px; display:flex; } .wgQuickTab { color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit)); cursor:pointer; background:0 0; border:none; border-radius:6px; align-items:center; gap:6px; padding:4px 12px; font-family:inherit; font-size:12px; display:inline-flex; } .wgQuickTab:hover { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f)); } .wgQuickTabActive { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-selected,#4a90d92e)); color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); font-weight:600; } .wgQuickTabCount { background:var(--dsw-accent,#4a90d9); color:#fff; text-align:center; border-radius:8px; min-width:16px; height:16px; padding:0 4px; font-size:10px; font-weight:600; line-height:16px; } .wgQuickSearchWrap { flex:none; } .wgQuickSearch { border:1px solid var(--dsw-border,#7f7f7f4d); background:var(--dsw-bg-1,transparent); width:100%; height:34px; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); box-sizing:border-box; border-radius:8px; outline:none; padding:0 10px; font-family:inherit; font-size:13px; } .wgQuickSearch:focus { border-color:var(--dsw-accent,#4a90d9); } .wgQuickList { flex-direction:column; flex:auto; gap:2px; min-height:64px; padding-right:2px; display:flex; overflow-y:auto; } .wgQuickRow { cursor:pointer; text-align:left; box-sizing:border-box; background:0 0; border:none; border-radius:8px; flex-direction:column; flex:none; gap:2px; width:100%; padding:7px 10px; font-family:inherit; display:flex; } .wgQuickRow:hover,.wgQuickRowActive { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f)); } .wgQuickRowSelected,.wgQuickRowCurrent { background:var(--dsw-bg-selected,#4a90d92e); } .wgQuickRowMain { align-items:center; gap:8px; width:100%; min-width:0; display:flex; } .wgQuickRowTitle { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); flex:1; font-size:13px; font-weight:500; overflow:hidden; } .wgQuickRunBadge { color:var(--dsw-accent,#4a90d9); flex:none; font-size:11px; } .wgQuickTime { color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc)); flex:none; font-size:11px; } .wgQuickRowSub { min-width:0; display:flex; } .wgQuickRowPath { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc)); flex:1; font-size:11px; overflow:hidden; } .wgQuickEmpty { text-align:center; color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc)); padding:24px 8px; font-size:12px; } .wgQuickFooter { flex:none; align-items:center; gap:8px; padding-top:2px; display:flex; } .wgQuickSelected { text-overflow:ellipsis; white-space:nowrap; min-width:0; color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc)); flex:1; font-size:12px; overflow:hidden; } .wgQuickHint { text-align:center; color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,#7f7f7fcc)); flex:none; font-size:11px; } .wgTabs { box-sizing:border-box; border-bottom:1px solid var(--dsw-alias-border-l2,#7f7f7f33); background:0 0; flex:none; align-items:stretch; gap:4px; min-width:0; height:56px; padding:8px 10px; display:flex; } .wgTabsScroll { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; box-sizing:border-box; flex:auto; align-items:stretch; gap:6px; min-width:0; padding:1px 0; display:flex; overflow:auto hidden; } .wgTabsScroll::-webkit-scrollbar { width:0; height:0; display:none; } .wgTab { min-width:0; max-width:240px; box-shadow:inset 0 0 0 1px var(--dsw-alias-border-l2,#7f7f7f2e); color:var(--dsw-alias-label-secondary,var(--dsw-fg-2,inherit)); border-radius:8px; flex:none; align-items:center; padding:0 6px 0 10px; transition:background .12s,box-shadow .12s; display:inline-flex; } .wgTabText { flex-direction:column; flex:auto; justify-content:center; align-items:flex-start; gap:3px; min-width:0; height:100%; display:flex; } .wgTabProject { text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:100%; font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace); letter-spacing:.02em; color:var(--dsw-alias-label-secondary,var(--dsw-fg-3,inherit)); opacity:.85; flex:none; font-size:10px; line-height:13px; overflow:hidden; } .wgTab:hover { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f)); } .wgTabActive { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f)); box-shadow:inset 0 0 0 1px var(--dsw-alias-label-secondary,#7f7f7f73); color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); } .wgTabActive .wgTabProject { opacity:1; } .wgTabMain { box-sizing:border-box; min-width:0; height:100%; color:inherit; cursor:pointer; background:0 0; border:none; flex:auto; align-items:center; gap:8px; padding:6px 0; font-family:inherit; font-size:12px; display:inline-flex; } .wgTabStatus { flex:none; justify-content:center; align-items:center; width:12px; height:12px; display:inline-flex; } .wgTabStatus[data-tab-state=idle] { opacity:.45; } .wgTabLabel { text-overflow:ellipsis; white-space:nowrap; min-width:0; max-width:100%; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); flex:none; font-size:12px; line-height:16px; overflow:hidden; } .wgTabText>.wgTabLabel:only-child { align-self:center; } .wgTabClose { width:20px; height:20px; color:inherit; cursor:pointer; opacity:0; background:0 0; border:none; border-radius:5px; flex:none; justify-content:center; align-items:center; margin-left:2px; padding:0; transition:opacity .12s,background .12s; display:inline-flex; } .wgTab:hover .wgTabClose,.wgTab:focus-within .wgTabClose,.wgTabActive .wgTabClose { opacity:1; } .wgTabClose:hover { background:var(--dsw-alias-interactive-bg-hover-solid,#7f7f7f33); } /* ---- tab strip: pin / drag / inline rename / context menu ------------------ */ .wgTab { position:relative; } .wgTabPinned { box-shadow:inset 0 0 0 1px var(--dsw-alias-label-secondary,#7f7f7f73); } .wgTabPin { flex:none; justify-content:center; align-items:center; width:12px; height:12px; margin-left:4px; opacity:.55; color:inherit; display:inline-flex; } .wgTabDragging { opacity:.42; } .wgTabDropBefore:before,.wgTabDropAfter:before { content:""; position:absolute; top:2px; bottom:2px; background:var(--dsw-alias-label-primary,var(--dsw-fg-1,#4a90d9)); border-radius:2px; width:2px; } .wgTabDropBefore:before { left:-4px; } .wgTabDropAfter:before { right:-4px; } .wgTabRename { box-sizing:border-box; min-width:88px; height:100%; color:inherit; background:var(--dsw-alias-bg-elevated,var(--dsw-bg-1,transparent)); border:1px solid var(--dsw-alias-label-secondary,#7f7f7f73); border-radius:6px; outline:none; flex:auto; margin:2px 0; padding:0 6px; font-family:inherit; font-size:12px; } .wgTabMenu { z-index:2147483000; box-sizing:border-box; min-width:196px; background:var(--dsw-alias-bg-popup,var(--dsw-bg-2,#1e1e1e)); border:1px solid var(--dsw-alias-border-l2,#7f7f7f33); border-radius:8px; flex-direction:column; padding:4px; display:flex; position:fixed; box-shadow:0 8px 24px #00000033,0 1px 2px #0000001f; } .wgTabMenuItem { width:100%; color:var(--dsw-alias-label-primary,var(--dsw-fg-1,inherit)); text-align:left; cursor:pointer; background:0 0; border:none; border-radius:5px; padding:6px 10px; font-family:inherit; font-size:12px; line-height:16px; } .wgTabMenuItem:hover:not(:disabled) { background:var(--dsw-alias-interactive-bg-hover,var(--dsw-bg-hover,#7f7f7f1f)); } .wgTabMenuItem:disabled { cursor:default; opacity:.4; } .wgTabMenuDanger { color:var(--dsw-alias-label-error,var(--dsw-fg-error,#d9534f)); } .wgTabMenuSeparator { background:var(--dsw-alias-border-l2,#7f7f7f33); height:1px; margin:4px 6px; }