/** * Tasks page chrome — the plugin's native scale, the same one the other tabs * (sidebar / changes / sidechat) are cut to: 12px body (`--dsw-font-xxs-*`), * 11px meta (`--dsw-font-xxxs-11`), 10px micro labels, 28px controls (the host * `Button sm`), 1px `--dsw-alias-border-l2` edges with `-l1` hairlines, hover * fill `--dsw-alias-interactive-bg-hover`, no shadow on any in-flow panel, and * `--dsw-shadow-lv2/3` reserved for the floating layers. One accent, used * sparingly (current node, team/workflow relations, live lines). * * Design target: the native right sidebar at its NARROW width (~360px). Every * block must be readable there — nothing may rely on horizontal room. * * Skin contract: every color resolves to a --dsw-* token (tests/theme.spec.ts * guards `color:`). */ /* ── Graph canvas ──────────────────────────────────────────────────────── */ .graphView { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } .canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; /* Panning must never turn into a text selection. */ user-select: none; /* Graph paper: the dotted grid is part of the language. */ background-image: radial-gradient(circle, var(--dsw-alias-border-l1) 0.6px, transparent 0.6px); background-size: 16px 16px; background-position: 0 0; } .canvasDragging { cursor: grabbing; } .canvasInner { position: absolute; top: 0; left: 0; transform-origin: 0 0; } .edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; } /* A connector is the graph's spine: ink line art at FULL strength (the old 0.7 fade put it under the cards' own borders). It keeps an ink token rather than the `-l1`/`-l2` edge rungs: the canvas is scaled by the fit (0.78 at the narrow end), so a 4%/10% black stroke lands at ~0.8 device px and reads as nothing — measured by swapping the token on the rendered page. The relation accents below are the semantic exceptions (state tokens). */ .edge { fill: none; stroke: var(--dsw-alias-label-tertiary); /* 1.5px, not 1: at the narrow panel's fit scale (0.78–0.86) a 1px stroke lands under a device pixel and the whole hierarchy fades out — measured on the rendered page by swapping the token and the width. */ stroke-width: 1.5; stroke-linecap: round; } .edgeTeam { stroke: var(--dsw-alias-state-business-primary); stroke-dasharray: 3 3; opacity: 0.9; } .edgeWorkflow { stroke: var(--dsw-alias-state-business-primary); opacity: 0.9; } .edgeFold { stroke-dasharray: 1 4; opacity: 0.5; } /* A phase frame is a BACKDROP: a dashed 1px `-l2` contour — the same 1px edge rung as the cards, and one rung above the `-l1` dotted grid — so the frame groups its members without competing with the solid cards and the ink connectors drawn over it. Its label is the part a reader actually reads, so the label — and only the label — climbs onto a text ink. */ /* The phase frame is the SPATIAL grouping of one workflow phase; the phase badges on its member cards carry the same colour, so the reader can match frame ↔ member without reading the frame's own label. It stays a hairline: the frame must not compete with the cards it encloses. */ .phaseFrame { position: absolute; border: 1px dashed var(--dsw-alias-border-l2); border-radius: 4px; pointer-events: none; } .phaseFrame.phase0 { border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 42%, transparent); } .phaseFrame.phase1 { border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 34%, transparent); } .phaseFrame.phase2 { border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 27%, transparent); } .phaseFrame.phase3 { border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 21%, transparent); } .phaseLabel { position: absolute; top: -7px; left: 8px; padding: 0 5px; background: var(--dsw-alias-bg-layer-1); font-family: var(--ds-font-family-code, monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dsw-alias-label-secondary); } /* ── Nodes ─────────────────────────────────────────────────────────────── */ /* The card. `border-box` and the 6px/8px inset are load-bearing: the layout reserves a height per card SHAPE (tasks-graph-layout.ts `nodeHeight` sums the rows the card renders) and `box.h` positions the edges and the phase frames, so the card must RENDER exactly the height its box reserved — with the default content-box the 6px paddings and the edges were added on top of every reserve. Keep this padding in step with the layout's `NODE_PAD_Y`. A shape whose title ends up on ONE line renders fewer rows than its reserve: centering the column turns that leftover into even padding around the block instead of a hole under it (the box size itself is fixed — the edges and the phase frames are placed from it, so a card can never be content-sized). */ /* The two-segment node card. The segments own their padding because each one paints its own surface: the TOP segment carries the identity (kind badge, name, meta, task line) over the level's faint tint, the BOTTOM bar carries the state and the merged activity. The layout in tasks-graph-layout.ts reserves both rows, so the box handed to a card is exactly its height. */ .node { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; padding: 0; background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); /* 8px, the same rounding the floating window wears: the page's cards and its windows are one family, and the square-ish 4px read as a table cell next to them. The border is INSIDE the box (border-box + the layout's min-height), so a thicker border never changes the card's outer size. */ border-radius: 8px; cursor: pointer; overflow: hidden; } .node:hover { background: var(--dsw-alias-interactive-bg-hover); } /* The current session: a THICKER accent edge (the reader's ask was "边框加粗 高亮", and the previous 2px left stripe was the card's one leftover piece of chrome — it also doubled the level edge on the root card, which is why the two read as a single bar). 2px, not 1.5px: Chromium FLOORS a sub-pixel border width at device-pixel ratio 1, so 1.5px computes (and paints) as 1px — measured on the real host, where the "thicker" edge was indistinguishable from the plain one. The border sits inside the border box, so the layout's height/width budgets are untouched (the card's own content absorbs the extra pixel). */ .nodeCurrent { border-color: var(--dsw-alias-state-business-primary); border-width: 2px; } /* Teammates and the workflow run wear the accent edge; the run adds its tint, so the two read apart without a second border weight. */ .nodeTeam { border-color: var(--dsw-alias-state-business-primary); } .nodeWorkflow { border-color: var(--dsw-alias-state-business-primary); background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, var(--dsw-alias-bg-layer-1)); } .nodeSettled { opacity: 0.62; } .nodeError { border-color: var(--dsw-alias-state-error-primary); } /* ── The two-segment card: identity on top, state bar at the bottom ─────── */ /* The group colour of a node is its DEPTH. The host ships no chart palette and the skin contract forbids literal colours, so the ramp mixes the one accent token. The level is carried by the TOP SEGMENT'S FAINT TINT alone — the 2px left edge it used to add was the one piece of card chrome the reader asked to remove ("就是左侧的竖条,这个去掉"), and the tint was lifted a notch (7/5/3.5/2.5% → 9/7/5/3.5%) to compensate for the lost contrast. */ .depth0 { --card-tint: 9%; } .depth1 { --card-tint: 7%; } .depth2 { --card-tint: 5%; } .depth3 { --card-tint: 3.5%; } .cardTop { position: relative; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; padding: 6px 8px 5px; background: color-mix( in srgb, var(--dsw-alias-state-business-primary) var(--card-tint, 6%), var(--dsw-alias-bg-layer-1) ); } .cardBadges { display: flex; align-items: center; gap: 4px; min-width: 0; } /* The kind badge names WHAT the node is (main agent / subagent / teammate / workflow / completed aggregate) — the vocabulary the page header already uses, never a glyph the reader has to decode. */ .kindBadge { flex: none; padding: 0 4px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 2px; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-secondary); } /* The workflow phase badge: the SECOND grouping axis. It takes the ink family (the level edge owns the accent family) so the two never read as one. */ .phaseBadge { flex: none; max-width: 62%; padding: 0 4px; border: 1px solid; border-radius: 2px; font: var(--dsw-font-xxxs-11); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .phase0 { color: var(--dsw-alias-label-primary); border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 45%, transparent); } .phase1 { color: color-mix(in srgb, var(--dsw-alias-label-primary) 78%, transparent); border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 38%, transparent); } .phase2 { color: color-mix(in srgb, var(--dsw-alias-label-primary) 58%, transparent); border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 30%, transparent); } .phase3 { color: color-mix(in srgb, var(--dsw-alias-label-primary) 42%, transparent); border-color: color-mix(in srgb, var(--dsw-alias-label-primary) 24%, transparent); } .cardName { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: var(--dsw-font-xxs-strong-12); color: var(--dsw-alias-label-primary); } /* The aggregate carries a count instead of a name: one rung down in weight and ink, so a settled summary never competes with a live node. */ .cardNamePlain { -webkit-line-clamp: 1; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-secondary); } .cardMeta { font: var(--dsw-font-xxxs-11); font-family: var(--ds-font-family-code, monospace); color: var(--dsw-alias-label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── The state bar ──────────────────────────────────────────────────────── */ .cardBar { position: relative; display: flex; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 6px 0 8px; border-top: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-base); font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-secondary); overflow: hidden; } /* Executing: a light band SWEEPS the bar left → right (the same motion the main conversation's shimmer uses, applied to a strip instead of text). The band is as WIDE as the bar and travels a full width either side of it: it enters at the left edge, covers the whole bar mid-flight, and leaves past the right edge — a narrower band with `background-position` (the first cut) only ever lit a 45% slice, which read as a blob wandering in the middle instead of a sweep. `transform` is used rather than background-position because the travel is then literal (`translateX(-100%) → translateX(100%)` of the bar's own width), so it stays correct at every bar width. The last third of the cycle holds the band off the right edge: a clean pause between sweeps, and a fast glance still catches the bar at rest. */ .cardBar[data-running='true']::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background-image: linear-gradient( 90deg, transparent 0%, color-mix(in srgb, var(--dsw-alias-state-business-primary) 18%, transparent) 50%, transparent 100% ); transform: translateX(-100%); animation: dsh-tasks-bar-sweep 1.5s cubic-bezier(0.33, 0, 0.67, 1) infinite; pointer-events: none; } @keyframes dsh-tasks-bar-sweep { 0% { transform: translateX(-100%); } 66.6667%, 100% { transform: translateX(100%); } } /* Motion is decoration here: the state word and the activity text carry the same information without it. */ @media (prefers-reduced-motion: reduce) { .cardBar[data-running='true']::after { animation: none; opacity: 0; } } .barDot { flex: none; } .barState { flex: none; color: var(--dsw-alias-label-secondary); } /* The merged activity: the main agent's own wording for the node's newest range. It deliberately keeps the BAR's font — no mono family. The state word beside it is UI copy, and the two stacks do not share metrics: measured at 11px, the sans stack reports ascent/descent 11/2 against the mono stack's 10/3, so a mono activity line sits 1px LOWER than the state word it follows (the reader reported exactly that misalignment). The mono face bought nothing here either: every CJK glyph in this line comes from the same fallback family, so only the Latin fragments changed face — half a sentence in mono, one pixel off. Machine text keeps its mono voice where it belongs (the meta row above, the job rows, the terminal well). */ .barActivity { flex: 1; min-width: 0; color: var(--dsw-alias-state-business-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .barFold { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: auto; padding: 0; border: none; border-radius: 2px; background: transparent; color: var(--dsw-alias-label-tertiary); cursor: pointer; } .barFold:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } /* The fold aggregate mirrors the tree's dashed fold row (`treeFoldRow`). */ .nodeFold { border: 1px dashed var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-base); } .nodeFold:hover { border-color: var(--dsw-alias-label-primary); } .nodeHeader { display: flex; align-items: center; gap: 5px; min-width: 0; } .nodeDot { flex: none; } .nodeGlyph { display: inline-flex; flex: none; color: var(--dsw-alias-label-tertiary); } /* The leading marks of a tree row (state dot + node glyph) ride the FIRST text line — the 18px title line — so a row that grows with a live / task line keeps them where the eye reads the node, not glued to the row's top edge. */ .treeGlyph { display: inline-flex; flex: none; margin-top: 3px; color: var(--dsw-alias-label-tertiary); } .treeDot { flex: none; margin-top: 6px; } /* The mono meta line: the card's SECOND ink rung — one under the title (`label-primary`), one over the task line's status word (`label-tertiary`). Primary → secondary → tertiary is the page's whole ink scale, so a card carries at most three rungs and never a fourth weight. */ .nodeMeta { margin-top: 2px; font: var(--dsw-font-xxxs-11); font-family: var(--ds-font-family-code, monospace); color: var(--dsw-alias-label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* The fold aggregate recedes ONE rung in both weight and ink (a plain title), so its meta steps down with it — otherwise the two grey lines read as one flat block and the card has no hierarchy at all. */ .nodeFold .nodeMeta { color: var(--dsw-alias-label-tertiary); } /* ── Node shared-task line (team members only) ─────────────────────────── */ /* The task row keeps the card's ink discipline instead of inventing its own: the SUBJECT rides the second rung with the meta line (it is content), while the status word and the `+N` counter stay on the third rung as its annotations — a row of one flat grey would lose the subject entirely. Its 10px/1.3 line plus the 3px lead is the row `NODE_TASK_H` reserves. */ .taskLine { display: flex; cursor: pointer; align-items: center; gap: 4px; margin-top: 3px; min-width: 0; font-size: 10px; line-height: 1.3; color: var(--dsw-alias-label-secondary); white-space: nowrap; overflow: hidden; } .taskGlyph { display: inline-flex; flex: none; color: var(--dsw-alias-state-business-primary); } .taskLine:hover .taskSubject { color: var(--dsw-alias-label-primary); } .taskLine:focus-visible { outline: 2px solid var(--dsw-alias-state-business-primary); outline-offset: 1px; border-radius: 2px; } .taskSubject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .taskState { flex: none; font-family: var(--ds-font-family-code, monospace); font-size: 10px; color: var(--dsw-alias-label-tertiary); } .taskMore { flex: none; padding: 0 3px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 2px; font-family: var(--ds-font-family-code, monospace); font-size: 10px; color: var(--dsw-alias-label-tertiary); } /* ── Live activity row (icon + tool + args; shared by both modes) ──────── */ .live { display: flex; align-items: center; gap: 4px; margin-top: 3px; min-width: 0; font-family: var(--ds-font-family-code, monospace); font-size: 10px; line-height: 1.3; color: var(--dsw-alias-state-business-primary); white-space: nowrap; overflow: hidden; } .liveGlyph { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 2px; } .liveTool { flex: none; } .liveArgs { color: var(--dsw-alias-label-secondary); overflow: hidden; text-overflow: ellipsis; } .liveText { margin-top: 2px; font-size: 10px; color: var(--dsw-alias-label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ── Control cluster: bottom-right, horizontal, visible in BOTH modes ──── */ .controls { position: absolute; right: 10px; bottom: 10px; z-index: 6; display: flex; flex-direction: row; align-items: center; background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 3px; } /* Every cell of the cluster is the host `Button sm` square: 28px tall, and a glyph button exactly 28px wide. The box model is declared here (not merely inherited from the host button rule) so the 28px contract holds for the cell even if the button class under it changes; the zoom readout beside it keeps the same 28px height with a fixed 36px width so the buttons never shift as the percentage changes width. */ .controlBtn { box-sizing: border-box; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border: none; background: none; color: var(--dsw-alias-label-secondary); font-family: var(--ds-font-family-code, monospace); font-size: 12px; line-height: 1; cursor: pointer; } .controlBtn + .controlBtn, .controlZoomLevel + .controlBtn, .controlBtn + .controlZoomLevel { border-left: 1px solid var(--dsw-alias-border-l2); } .controlBtn:hover { color: var(--dsw-alias-label-primary); } .controlBtnActive { color: var(--dsw-alias-state-business-primary); } /* The zoom readout is the cluster's one non-button cell: same 28px height, micro type, tabular figures so the row of numbers does not jitter. */ .controlZoomLevel { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 36px; height: 28px; padding: 0 5px; font-family: var(--ds-font-family-code, monospace); font-size: 10px; font-variant-numeric: tabular-nums; color: var(--dsw-alias-label-tertiary); } /* ── Tree mode ─────────────────────────────────────────────────────────── */ .treeView { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 44px; scrollbar-width: thin; user-select: none; } /* One tree row: title over mono meta, on the page's 32px row rhythm (18px title + 14px meta, no vertical padding) — the row pitch stays uniform whatever the row carries, and the live / task lines extend it. */ .treeRow { position: relative; display: flex; align-items: flex-start; gap: 7px; padding: 0 8px; border-radius: 4px; cursor: pointer; } .treeRow:hover { background: var(--dsw-alias-interactive-bg-hover); } .treeRow:focus-visible { outline: 2px solid var(--dsw-alias-interactive-bg-hover-accent); outline-offset: -1px; } /* The current session: the row keeps the native selected fill and gains the 2px accent bar the design asks for — a pseudo element, so the row stays shadowless and its metrics never shift between rows. The bar is inset 4px inside the 32px row (the graph card's own inset), so it reads as a marker on the row rather than a full-height rule. */ .treeRowActive { background: var(--dsw-alias-interactive-bg-hover); } .treeRowActive::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--dsw-alias-state-business-primary); } .treeRowSettled { opacity: 0.62; } /* Children hang on a hairline thread, never a box. */ .treeKids { margin-left: 15px; padding-left: 10px; border-left: 1px solid var(--dsw-alias-border-l1); } .treeContent { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 32px; } .treeTitle { display: flex; align-items: center; gap: 6px; font: var(--dsw-font-xxs-strong-12); color: var(--dsw-alias-label-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .treeMeta { font: var(--dsw-font-xxxs-11); font-family: var(--ds-font-family-code, monospace); color: var(--dsw-alias-label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .treeFoldRow { border: 1px dashed var(--dsw-alias-border-l2); border-radius: 4px; margin: 2px 0; color: var(--dsw-alias-label-secondary); } /* ── Popover card ──────────────────────────────────────────────────────── */ /* The floating card (node detail / task window / job output): a raised layer, so it — and only it — carries the elevation shadow. ONE skeleton for every card in the family — head band / title / meta rows / one scrolling well / hairline action bar — and three ink tiers inside: the title (primary), the values and the body (secondary), the keys, group headers and hints (tertiary). A card never paints a fourth rung. */ .popCard { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; max-width: 100%; background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 4px; box-shadow: var(--dsw-shadow-lv3); font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); box-sizing: border-box; } /* The head band. It is exactly one control tall (28px, the host's `sm`), so a card with a head action and a card without one put their title on the SAME line of the grid; the micro caps inside ride the middle of that band and keep the page's 0.12em tracking (the same voice as `.taskLabel`). */ .popHead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 4px; font-family: var(--ds-font-family-code, monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); } /* The action bar closes EVERY card the same way: one l1 rule above, one 8px beat, and the primary action left to fill whatever the row gives it. */ .popFoot { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--dsw-alias-border-l1); } .popFoot > * { flex: 1; } .jobPopTitle { display: flex; align-items: center; gap: 6px; min-width: 0; } /* The task window's body: the window hands it the slack (FloatingWindow's `fill` layout), and inside it the description / editor is the region that grows. Everything else keeps its natural height so the action row and the meta line never drift. */ .taskBody { display: flex; flex-direction: column; min-height: 0; } /* The task window's own head line (inside the floating window's scrolling body): state dot + subject + status Tag. Sentence case, unlike the node detail's letter-spaced uppercase `.popHead` band — this one labels a real subject rather than a card's section. */ .taskHeadRow { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 8px; } .taskHeadRow .popTitle { flex: 1; font: var(--dsw-font-xs-13); color: var(--dsw-alias-label-primary); } .jobPopMeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-secondary); } /* The meta line's value: the value rung of the card (12px secondary), the same one `.popValue` puts in the node detail's grid — so "负责人 designer" and "状态 已完成" are set at the same scale. */ .jobPopValue { font: var(--dsw-font-xxs-12); line-height: 1.45; color: var(--dsw-alias-label-secondary); } /* The action row of a floating window. It is the shell's FOOTER, which already draws the body/footer boundary, so it carries no rule of its own. */ .jobPopActions { display: flex; align-items: center; justify-content: space-between; gap: 8px; } /* The follow-tail switch is the action bar's left cell; the host Switch draws only a track, so its wording rides beside it (the switch keeps the same wording as its accessible name). */ .jobPopFollow { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: var(--dsw-font-xxxs-11); color: var(--dsw-alias-label-secondary); } .jobPopFollowLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* The armed (first-click) confirm of the popover's kill: the same danger chip the drawer's terminate button arms into, so one destructive action reads the same in both places. */ .jobPopKillArmed, .jobPopKillArmed:hover { border: 1px solid var(--dsw-alias-state-error-primary); background: color-mix(in srgb, var(--dsw-alias-state-error-primary) 12%, transparent); color: var(--dsw-alias-state-error-primary); } /* The title row every card opens with: [glyph][name], the glyph being the same host icon the node's own card carries — the popover never types a character in place of an icon, and both popover kinds open identically. */ .popTitleRow { display: flex; align-items: center; gap: 6px; min-width: 0; } .popGlyph { display: inline-flex; flex: none; color: var(--dsw-alias-label-tertiary); } .popTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font: var(--dsw-font-xxs-strong-12); color: var(--dsw-alias-label-primary); } /* The key/value grid. `margin: 0` is load-bearing: a bare `
` ships the UA's `1em` block margin, which would out-vote the card's own 4px beat and double the gap under the title. */ .popRows { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; align-items: baseline; line-height: 1.45; } .popKey { font: var(--dsw-font-xxxs-11); line-height: 1.45; color: var(--dsw-alias-label-tertiary); } /* The value rung. `margin: 0` clears the UA's `dd` indent (the column puts the value after its key; the 40px indent would only push the ellipsis edge). */ .popValue { margin: 0; text-align: right; font: var(--dsw-font-xxs-12); line-height: 1.45; color: var(--dsw-alias-label-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .popValueMono { font-family: var(--ds-font-family-code, monospace); font-size: 11px; } /* A section inside a card opens with the family's one hairline: 8px of air on both sides of the rule (the card's own 4px gap plus 4px here, and the 8px padding below), the same beat the window footers' own rule uses. */ .popSection { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--dsw-alias-border-l1); } .popList { display: flex; flex-direction: column; gap: 1px; max-height: 160px; overflow-y: auto; scrollbar-width: thin; } .popGroup { padding: 4px 2px 2px; font-family: var(--ds-font-family-code, monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dsw-alias-label-tertiary); } /* A list row is a press target on the page's control rhythm: EVERY row is one control tall (28px) with the page's 4px row radius, whether it is a real button (a jump affordance) or a plain tally line — the two shapes share one well, so they must not differ. The selector is scoped to the well because `.Button_sm` is (0,1,0) as well and the plugin's sheet has no guaranteed order against the host's; (0,2,0) makes the shape deterministic. */ .popList .popListRow { display: flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 28px; padding: 0 4px; border-radius: 4px; cursor: pointer; } .popList .popListRow:hover { background: var(--dsw-alias-interactive-bg-hover); } .popListLabel { flex: 1; min-width: 0; font: var(--dsw-font-xxs-12); color: var(--dsw-alias-label-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* The card's smallest voice (the empty-description line, the drag hint, the invalid-subject rule). Doubled so that a container rule — the markdown well's body ink, the meta line — can never lift it a rung. */ .popHint.popHint { font-size: 10px; line-height: 1.45; color: var(--dsw-alias-label-tertiary); } .popError { font-size: 10px; color: var(--dsw-alias-state-error-primary); } /* ── Task window: markdown view + multi-line edit ──────────────────────── */ /* The description is a PAGE-TYPE preview, not the chat transcript: the host's default markdown scale (14px body, 21/19/18px headings, 32px section margins) is the conversation's, and this card is 430px wide on a 12px page. * * The containment is done at the TOKEN level — the host's own `.markdown` and * heading rules read `var(--dsw-font-markdown-*)`, and a local re-declaration * wins for every descendant, so no rule here has to out-specify the host. The * margins are literals in the host sheet, so those few rules do need to * out-specify `.MarkdownText_markdown h1` (0,1,1): the doubled container class * makes them (0,2,1) DETERMINISTICALLY, because the plugin's global * `