Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Tighten desktop typography and conversation spacing (#1688)

Regan Bell85257d9b67b3
diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.css
index a5b30b457..c581433c0 100644
--- a/plugins/web-ui/src/shell.css
+++ b/plugins/web-ui/src/shell.css
@@ -5,6 +5,24 @@
--app-serif: ui-serif, Georgia, "Times New Roman", Times, serif;
--brand-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
--sidebar-w: 280px;
+ --text-scale: 1;
+ --session-title-size: 13.5px;
+ --work-fold-space: 18px;
+ --chat-edge-space: 24px;
+ --font-12-5: 12.5px;
+ --font-13: 13px;
+ --font-13-5: 13.5px;
+ --font-14: 14px;
+ --font-15: 15px;
+ --font-16: 16px;
+ --font-17: 17px;
+ --font-18: 18px;
+ --font-19: 19px;
+ --font-20: 20px;
+ --font-21: 21px;
+ --font-22: 22px;
+ --font-24: 24px;
+ --font-26: 26px;
--content-w: 820px;
--radius-sm: 8px;
--radius-md: 10px;
@@ -33,6 +51,41 @@
--scrim: oklch(0.145 0 0);
}
+@media (min-width: 861px) and (hover: hover) {
+ :root {
+ --text-scale: 0.9;
+ --session-title-size: 12.5px;
+ --content-w: 740px;
+ --chat-pad: 14.4px;
+ --meta-lane: 21.6px;
+ --work-fold-space: 16.2px;
+ --chat-edge-space: 21.6px;
+ --font-12-5: 12px;
+ --font-13: 12px;
+ --font-13-5: 12.15px;
+ --font-14: 12.6px;
+ --font-15: 13.5px;
+ --font-16: 14.4px;
+ --font-17: 15.3px;
+ --font-18: 16.2px;
+ --font-19: 17.1px;
+ --font-20: 18px;
+ --font-21: 18.9px;
+ --font-22: 19.8px;
+ --font-24: 21.6px;
+ --font-26: 23.4px;
+ --text-xs: 0.75rem;
+ --text-sm: 0.7875rem;
+ --text-base: 0.9rem;
+ --text-lg: 1.0125rem;
+ --text-xl: 1.125rem;
+ --text-2xl: 1.35rem;
+ --text-3xl: 1.6875rem;
+ --text-4xl: 2.025rem;
+ --text-5xl: 2.7rem;
+ }
+}
+
.dark {
--markdown-link: #4c8edb;
--cta: oklch(0.42 0.085 250);
@@ -68,7 +121,7 @@ body {
background: var(--background);
color: var(--foreground);
font-family: var(--app-font);
- font-size: 14px;
+ font-size: var(--font-14);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
@@ -205,7 +258,7 @@ body.resizing-sidebar {
gap: 9px;
justify-content: space-between;
padding: 8px 8.5px 9px 8.5px;
- font-size: 17px;
+ font-size: var(--font-17);
font-weight: 600;
letter-spacing: 0;
line-height: 1;
@@ -227,7 +280,7 @@ body.resizing-sidebar {
border-radius: 5px;
background: var(--brand-accent) var(--brand-mark-image, url("./assets/brand-mark.svg")) center / cover no-repeat;
color: white;
- font-size: 16px;
+ font-size: var(--font-16);
font-weight: 500;
line-height: 1;
}
@@ -243,7 +296,7 @@ body.resizing-sidebar {
.brand-name {
color: var(--foreground);
font-family: var(--brand-font);
- font-size: 18px;
+ font-size: var(--font-18);
letter-spacing: 0.01em;
}
.sidebar-collapse-toggle {
@@ -280,7 +333,7 @@ a.chat-row-open {
width: 100%;
box-sizing: border-box;
font: inherit;
- font-size: 14px;
+ font-size: var(--font-14);
min-height: 33px;
padding: 6px 11px;
@@ -404,7 +457,7 @@ a.chat-row-open {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.recent-project-count,
.archived-toggle .archived-count {
@@ -559,7 +612,7 @@ a.chat-row-open {
align-items: center;
flex: 1;
min-width: 0;
- font-size: 13.5px;
+ font-size: var(--session-title-size);
white-space: nowrap;
}
.session .title .tl {
@@ -614,7 +667,7 @@ a.chat-row-open {
display: inline-flex;
flex: none;
align-items: center;
- font-size: 14px;
+ font-size: var(--font-14);
line-height: 1;
}
@@ -700,7 +753,7 @@ a.chat-row-open {
margin: 3px 0 0 4px;
padding: 4px 3px 4px 2px;
color: var(--foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.pinned-head-glyph {
display: flex;
@@ -937,7 +990,7 @@ a.chat-row-open {
color: var(--foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
text-align: left;
}
.session-menu-option:hover {
@@ -966,7 +1019,7 @@ a.chat-row-open {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 13.5px;
+ font-size: var(--session-title-size);
}
.session-rename-input:focus {
outline: none;
@@ -1022,7 +1075,7 @@ a.chat-row-open {
border-radius: var(--radius-sm);
}
.user-name {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
white-space: nowrap;
overflow: hidden;
@@ -1091,11 +1144,11 @@ a.chat-row-open {
min-width: 0;
}
.settings-row-title {
- font-size: 14px;
+ font-size: var(--font-14);
}
.settings-row-note {
margin-top: 2px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
}
.settings-row-action {
@@ -1123,7 +1176,7 @@ a.chat-row-open {
color: var(--muted-foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
transition:
background 0.12s ease,
color 0.12s ease;
@@ -1153,7 +1206,7 @@ a.chat-row-open {
color: var(--muted-foreground);
cursor: pointer;
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
text-decoration: underline;
text-underline-offset: 2px;
}
@@ -1241,7 +1294,7 @@ a.chat-row-open {
border-radius: 16px;
background: color-mix(in srgb, var(--background) 92%, var(--secondary));
color: var(--foreground);
- font-size: 15px;
+ font-size: var(--font-15);
font-weight: 500;
}
.drop-overlay-card svg {
@@ -1272,7 +1325,7 @@ a.chat-row-open {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 650;
line-height: 1.25;
}
@@ -1298,7 +1351,7 @@ a.chat-row-open {
display: flex;
align-items: center;
gap: 8px;
- font-size: 14px;
+ font-size: var(--font-14);
line-height: 1.25;
}
.session-crumb {
@@ -1355,7 +1408,7 @@ a.chat-row-open {
border-radius: 8px;
background: transparent;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-weight: 550;
cursor: pointer;
white-space: nowrap;
@@ -1402,7 +1455,7 @@ a.chat-row-open {
z-index: 5;
}
.scoped-view .pane-title {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 550;
color: var(--muted-foreground);
}
@@ -1459,7 +1512,6 @@ a.chat-row-open {
--chat-scroll-pad-top: 8px;
container-type: size;
- --chat-edge-space: 24px;
--chat-scroll-pad-bottom: calc(var(--chat-edge-space) + 16px);
min-height: 0;
overflow-y: auto;
@@ -1509,7 +1561,7 @@ a.chat-row-open {
border-radius: 999px;
background: var(--bg, #fff);
color: var(--muted-fg, #666);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
padding: 5px 14px;
cursor: pointer;
}
@@ -1589,7 +1641,7 @@ a.chat-row-open {
flex-direction: column;
gap: 2px;
min-width: 0;
- font-size: 13px;
+ font-size: var(--font-13);
}
.pinned-item-text {
white-space: pre-wrap;
@@ -1631,7 +1683,7 @@ a.chat-row-open {
width: 100%;
max-width: var(--content-w);
margin: 0 0 20px;
- font-size: 26px;
+ font-size: var(--font-26);
font-weight: 450;
letter-spacing: -0.01em;
text-align: center;
@@ -1650,7 +1702,7 @@ a.chat-row-open {
}
@container chat (max-width: 470px) {
.chat-cta {
- font-size: 22px;
+ font-size: var(--font-22);
}
}
@@ -1661,12 +1713,12 @@ a.chat-row-open {
padding-bottom: 24px;
}
.welcome-greeting .assistant-body {
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.55;
}
.welcome-greeting h1 {
margin: 0 0 12px;
- font-size: 26px;
+ font-size: var(--font-26);
font-weight: 450;
letter-spacing: -0.01em;
}
@@ -1773,7 +1825,7 @@ a.chat-row-open {
background: var(--muted);
color: var(--foreground);
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
line-height: 1.3;
vertical-align: middle;
}
@@ -1802,7 +1854,7 @@ button.subagent-chip:hover {
padding: 8px 0;
}
.subagent-mail-note {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
}
@@ -1890,7 +1942,7 @@ button.subagent-chip:hover {
.assistant-body {
min-width: 0;
color: var(--foreground);
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.65;
}
.assistant-body :is(markdown-block, qm-markdown),
@@ -2000,7 +2052,7 @@ qm-markdown .tok-in {
max-width: min(72%, 620px);
padding: 10px 14px;
border-radius: 18px;
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.55;
}
.user-bubble {
@@ -2506,7 +2558,7 @@ qm-markdown .tok-in {
background: var(--background);
color: var(--foreground);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
line-height: 1.45;
}
.paste-dialog-text:focus {
@@ -2541,12 +2593,12 @@ qm-markdown .tok-in {
}
.work-said {
color: var(--foreground);
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.6;
margin: 10px 0;
}
.work-fold {
- margin: 18px 0;
+ margin: var(--work-fold-space) 0;
}
.work-message {
color: color-mix(in srgb, var(--muted-foreground) 85%, var(--foreground));
@@ -2614,7 +2666,7 @@ qm-markdown .tok-in {
display: flex;
align-items: center;
gap: 6px;
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.4;
font-weight: 400;
color: var(--muted-foreground);
@@ -2649,7 +2701,7 @@ qm-markdown .tok-in {
align-items: center;
gap: 6px;
min-width: 0;
- font-size: calc(var(--chat-font-size) - 1px);
+ font-size: max(min(12px, calc(var(--chat-font-size) - 1px)), calc((var(--chat-font-size) - 1px) * var(--text-scale)));
line-height: 1.35;
color: var(--muted-foreground);
}
@@ -2770,13 +2822,13 @@ qm-markdown .tok-in {
min-width: 0;
}
.approval-title {
- font-size: calc(var(--chat-font-size) - 1px);
+ font-size: max(min(12px, calc(var(--chat-font-size) - 1px)), calc((var(--chat-font-size) - 1px) * var(--text-scale)));
font-weight: 600;
color: var(--foreground);
}
.approval-cmd {
font-family: var(--font-mono, ui-monospace, monospace);
- font-size: 13px;
+ font-size: var(--font-13);
padding: 6px 8px;
border-radius: 6px;
background: color-mix(in srgb, var(--foreground) 8%, var(--background));
@@ -2809,7 +2861,7 @@ qm-markdown .tok-in {
border: 1px solid color-mix(in srgb, var(--destructive, #c0392b) 30%, transparent);
}
.approval-why {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--foreground);
line-height: 1.4;
}
@@ -2819,13 +2871,13 @@ qm-markdown .tok-in {
margin-right: 8px;
}
.approval-summary-line {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--foreground);
line-height: 1.4;
}
.approval-summary {
font-family: var(--font-mono, ui-monospace, monospace);
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--foreground);
white-space: nowrap;
overflow: hidden;
@@ -2884,7 +2936,7 @@ qm-markdown .tok-in {
gap: 8px;
}
.approval-btn {
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
padding: 7px 14px;
border-radius: 8px;
@@ -2993,13 +3045,13 @@ qm-markdown .tok-in {
padding: 10px 12px 6px;
}
.code-card-lang {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
}
.code-card-body {
margin: 0;
padding: 2px 12px 12px;
- font-size: 15px;
+ font-size: var(--font-15);
line-height: 1.55;
white-space: pre-wrap;
word-break: break-word;
@@ -3009,7 +3061,7 @@ qm-markdown .tok-in {
}
.code-card-foot {
padding: 0 12px 12px;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
display: flex;
align-items: center;
@@ -3105,7 +3157,7 @@ qm-markdown .tok-in {
outline-offset: -2px;
}
.suggested-activity-title {
- font-size: 14px;
+ font-size: var(--font-14);
line-height: 1.4;
letter-spacing: -0.1px;
overflow-wrap: anywhere;
@@ -3167,7 +3219,7 @@ qm-markdown .tok-in {
.bg-activity {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.chat-bottom-dock > .bg-activity {
padding: 6px 10px 13px;
@@ -3329,7 +3381,7 @@ qm-markdown .tok-in {
align-items: center;
gap: 8px;
min-width: 0;
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.4;
cursor: pointer;
border-radius: 6px;
@@ -3413,7 +3465,7 @@ qm-markdown .tok-in {
.assistant-body :is(markdown-block, qm-markdown) pre code,
.user-bubble :is(markdown-block, qm-markdown) pre code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- font-size: var(--chat-font-size);
+ font-size: max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)));
line-height: 1.55;
background: none;
padding: 0;
@@ -3500,7 +3552,7 @@ qm-markdown .tok-in {
}
.composer-wrap {
- --composer-font-size: 15px;
+ --composer-font-size: var(--font-15);
--composer-pad-block: 12px;
--composer-pad-inline: 12px;
--composer-pad-end: var(--composer-pad-inline);
@@ -3642,7 +3694,7 @@ qm-markdown .tok-in {
border: 0;
border-radius: 8px;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
background: transparent;
cursor: pointer;
@@ -3679,7 +3731,7 @@ qm-markdown .tok-in {
color: var(--muted-foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
white-space: nowrap;
transition: color 160ms ease;
}
@@ -3766,7 +3818,7 @@ qm-markdown .tok-in {
max-width: min(360px, 58vw);
padding: 0 8px;
color: var(--foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.loadout-button .menu-suffix {
color: var(--muted-foreground);
@@ -3817,7 +3869,7 @@ qm-markdown .tok-in {
}
.loadout-head {
padding: 4px 8px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
}
.loadout-list {
@@ -3857,7 +3909,7 @@ qm-markdown .tok-in {
background: transparent;
color: inherit;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 20px;
text-align: left;
cursor: pointer;
@@ -3925,7 +3977,7 @@ qm-markdown .tok-in {
.loadout-meta {
flex: none;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
white-space: nowrap;
}
.effort-peak {
@@ -4128,7 +4180,7 @@ qm-markdown .tok-in {
background: transparent;
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 20px;
text-align: left;
cursor: pointer;
@@ -4166,7 +4218,7 @@ qm-markdown .tok-in {
.loadout-plus {
flex: 0 0 19px;
width: 19px;
- font-size: 19px;
+ font-size: var(--font-19);
line-height: 20px;
text-align: center;
}
@@ -4231,7 +4283,7 @@ qm-markdown .tok-in {
gap: 9px;
padding: 4px 8px;
border: 0;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 20px;
}
.loadout-submenu .menu-option-copy {
@@ -4354,7 +4406,7 @@ qm-markdown .tok-in {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
}
.loadout-search input::placeholder {
color: var(--muted-foreground);
@@ -4362,12 +4414,12 @@ qm-markdown .tok-in {
.loadout-empty {
padding: 12px 10px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.loadout-back {
display: none;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.loadout-submenu.inline .loadout-back {
display: flex;
@@ -4422,7 +4474,7 @@ qm-markdown .tok-in {
.menu-title {
padding: 7px 8px 6px;
- font-size: 14px;
+ font-size: var(--font-14);
color: var(--foreground);
}
.menu-option {
@@ -4439,7 +4491,7 @@ qm-markdown .tok-in {
color: var(--foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
text-align: left;
}
.menu-option:hover,
@@ -4474,7 +4526,7 @@ qm-markdown .tok-in {
.slash-empty {
padding: 7px 8px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.slash-option {
width: 100%;
@@ -4489,7 +4541,7 @@ qm-markdown .tok-in {
color: var(--foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
text-align: left;
}
.slash-option:hover,
@@ -4525,7 +4577,7 @@ qm-markdown .tok-in {
.slash-scope {
flex: 0 0 auto;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.send-btn {
width: 34px;
@@ -4595,7 +4647,7 @@ qm-markdown .tok-in {
margin-bottom: 12px;
border-bottom: 1px solid var(--border);
color: var(--muted-foreground);
- font-size: calc(var(--chat-font-size) - 1px);
+ font-size: max(min(12px, calc(var(--chat-font-size) - 1px)), calc((var(--chat-font-size) - 1px) * var(--text-scale)));
line-height: 1.5;
list-style: none;
}
@@ -4649,7 +4701,7 @@ summary.stopped-head:focus-visible {
box-sizing: border-box;
background: var(--brand-accent);
color: #fff;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
}
.impersonation-banner b {
@@ -4682,7 +4734,7 @@ summary.stopped-head:focus-visible {
border: 1px solid var(--border);
border-radius: 8px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
background: var(--secondary);
box-sizing: border-box;
}
@@ -4729,7 +4781,7 @@ summary.stopped-head:focus-visible {
max-width: 460px;
text-align: center;
color: var(--muted-foreground);
- font-size: 15px;
+ font-size: var(--font-15);
}
.empty.compact {
padding: 24px;
@@ -4741,7 +4793,7 @@ summary.stopped-head:focus-visible {
justify-content: center;
gap: 6px;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
padding: 7px 13px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
@@ -4791,7 +4843,7 @@ summary.stopped-head:focus-visible {
margin: 0 auto 6px;
}
.pane-title {
- font-size: 22px;
+ font-size: var(--font-22);
font-weight: 600;
letter-spacing: 0;
margin: 0;
@@ -4818,7 +4870,7 @@ summary.stopped-head:focus-visible {
color: var(--foreground);
cursor: pointer;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
}
.pane-action:hover {
@@ -4834,7 +4886,7 @@ summary.stopped-head:focus-visible {
.pane .status {
max-width: 960px;
margin: 0 auto 16px;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
}
.grid {
@@ -4866,7 +4918,7 @@ summary.stopped-head:focus-visible {
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--secondary) 42%, transparent);
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
transition:
background 0.12s ease,
@@ -4914,7 +4966,7 @@ summary.stopped-head:focus-visible {
color: var(--foreground);
}
.card-title {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 600;
margin: 0;
word-break: break-word;
@@ -5007,7 +5059,7 @@ a.connector-widget:focus-visible {
}
.connector-widget-text strong {
overflow-wrap: anywhere;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 600;
}
.connector-widget-text small {
@@ -5032,7 +5084,7 @@ a.connector-widget:focus-visible {
}
.connector-desc {
margin: 2px 0 0;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.4;
color: var(--foreground);
}
@@ -5065,7 +5117,7 @@ a.connector-widget:focus-visible {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
}
.skill-body-input {
min-height: 160px;
@@ -5087,7 +5139,7 @@ a.connector-widget:focus-visible {
.skill-form-heading p {
margin: 5px 0 0;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.45;
}
.skill-form-page .skill-field {
@@ -5095,12 +5147,12 @@ a.connector-widget:focus-visible {
}
.skill-form-page .skill-field > span {
color: var(--foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.skill-form-page .skill-desc-input,
.skill-form-page .skill-body-input {
padding: 10px 11px;
- font-size: 14px;
+ font-size: var(--font-14);
box-sizing: border-box;
}
.skill-form-page .field-select {
@@ -5109,7 +5161,7 @@ a.connector-widget:focus-visible {
.skill-form-page .field-select > select {
min-height: 43px;
padding: 10px 36px 10px 11px;
- font-size: 14px;
+ font-size: var(--font-14);
}
.skill-form-page .skill-body-input {
min-height: 320px;
@@ -5123,12 +5175,12 @@ a.connector-widget:focus-visible {
}
.skill-form-page .skill-impact {
margin-top: 18px;
- font-size: 13px;
+ font-size: var(--font-13);
}
.skill-archive-dialog p {
margin: 18px 0 0;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.5;
}
.skill-registry-controls {
@@ -5205,12 +5257,12 @@ a.connector-widget:focus-visible {
.skill-variant-name {
color: var(--foreground);
font-family: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 550;
}
.skill-variant-description {
color: var(--muted-foreground);
- font-size: 13.5px;
+ font-size: var(--font-13-5);
line-height: 1.35;
}
.skill-variant-state {
@@ -5306,13 +5358,13 @@ a.connector-widget:focus-visible {
.kc-panel-head h2,
.kc-confirm h2 {
margin: 0;
- font-size: 17px;
+ font-size: var(--font-17);
font-weight: 650;
letter-spacing: -0.01em;
}
.kc-section-head h2 {
margin: 0;
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 650;
}
.kc-section-head p,
@@ -5368,7 +5420,7 @@ a.connector-widget:focus-visible {
}
.kc-resource-title-row h3 {
margin: 0;
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 650;
}
.kc-resource-meta,
@@ -5467,7 +5519,7 @@ a.connector-widget:focus-visible {
gap: 10px;
padding: 24px;
color: var(--muted-foreground);
- font-size: 14px;
+ font-size: var(--font-14);
}
.kc-loading .spinner {
width: 16px;
@@ -5503,7 +5555,7 @@ a.connector-widget:focus-visible {
}
.kc-empty strong {
color: var(--foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.kc-add-card {
margin: 14px 0;
@@ -5551,7 +5603,7 @@ a.connector-widget:focus-visible {
border-radius: var(--radius-sm);
background: var(--kc-green-soft);
color: var(--kc-green);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.kc-success span {
color: var(--muted-foreground);
@@ -5580,7 +5632,7 @@ a.connector-widget:focus-visible {
.kc-confirm p {
margin: 10px 0 0;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.55;
}
@media (max-width: 680px) {
@@ -5641,7 +5693,7 @@ a.connector-widget:focus-visible {
}
.deploy-edit-input {
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
flex: 1;
min-width: 0;
padding: 5px 8px;
@@ -5665,13 +5717,13 @@ a.connector-widget:focus-visible {
}
.memory-help {
margin: 0;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.55;
color: var(--muted-foreground);
}
.memory-text {
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.6;
font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
padding: 14px 16px;
@@ -5714,7 +5766,7 @@ a.connector-widget:focus-visible {
gap: 16px;
padding: 12px 14px;
border-bottom: 1px solid var(--border);
- font-size: 13px;
+ font-size: var(--font-13);
}
.memory-fact:last-child,
.memory-revision:last-child {
@@ -5730,7 +5782,7 @@ a.connector-widget:focus-visible {
margin: 0;
padding: 12px 14px;
border-bottom: 1px solid var(--border);
- font-size: 14px;
+ font-size: var(--font-14);
}
.resource-pane {
@@ -5750,7 +5802,7 @@ a.connector-widget:focus-visible {
}
.resource-detail h2,
.resource-form h2 {
- font-size: 20px;
+ font-size: var(--font-20);
font-weight: 600;
letter-spacing: 0;
margin: 0;
@@ -5789,7 +5841,7 @@ a.connector-widget:focus-visible {
display: flex;
flex-direction: column;
gap: 6px;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 600;
}
.resource-form .hint {
@@ -5799,7 +5851,7 @@ a.connector-widget:focus-visible {
}
.resource-form textarea {
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
padding: 9px 11px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
@@ -5842,7 +5894,7 @@ a.connector-widget:focus-visible {
margin-bottom: 4px;
}
.field .value {
- font-size: 13px;
+ font-size: var(--font-13);
}
.field .value.pre {
white-space: pre-wrap;
@@ -5861,7 +5913,7 @@ a.connector-widget:focus-visible {
margin-top: 4px;
}
.warn {
- font-size: 13px;
+ font-size: var(--font-13);
padding: 10px 13px;
border-radius: var(--radius-sm);
border: 1px solid var(--destructive, #c00);
@@ -5893,7 +5945,7 @@ a.connector-widget:focus-visible {
display: flex;
align-items: center;
gap: 9px;
- font-size: 17px;
+ font-size: var(--font-17);
font-weight: 600;
letter-spacing: 0;
margin-bottom: 4px;
@@ -5902,18 +5954,18 @@ a.connector-widget:focus-visible {
width: 22px;
height: 22px;
flex-basis: 22px;
- font-size: 16px;
+ font-size: var(--font-16);
}
.signin h1 {
font-family: var(--app-serif);
- font-size: 26px;
+ font-size: var(--font-26);
font-weight: 500;
letter-spacing: 0;
margin: 0 0 2px;
}
.signin input {
font: inherit;
- font-size: 14px;
+ font-size: var(--font-14);
padding: 11px 13px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
@@ -5922,7 +5974,7 @@ a.connector-widget:focus-visible {
}
.signin .btn {
padding: 11px 13px;
- font-size: 14px;
+ font-size: var(--font-14);
border-radius: var(--radius-md);
}
.signin .hint {
@@ -6170,7 +6222,7 @@ a.connector-widget:focus-visible {
display: grid;
gap: 7px;
margin-top: 16px;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 600;
}
@@ -6235,7 +6287,7 @@ a.connector-widget:focus-visible {
padding: 9px 11px;
border-radius: 8px;
background: var(--secondary);
- font-size: 13px;
+ font-size: var(--font-13);
}
.project-list {
width: min(960px, 100%);
@@ -6286,7 +6338,7 @@ a.connector-widget:focus-visible {
margin-left: auto;
flex: none;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
text-overflow: ellipsis;
}
.project-empty {
@@ -6303,7 +6355,7 @@ a.connector-widget:focus-visible {
.pane-subtitle {
margin-top: 3px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.list-toolbar {
width: min(960px, 100%);
@@ -6350,7 +6402,7 @@ a.connector-widget:focus-visible {
background: transparent;
color: var(--muted-foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
cursor: pointer;
}
.resource-tabs button.active {
@@ -6535,7 +6587,7 @@ a.connector-widget:focus-visible {
margin: 0;
min-width: 0;
overflow-wrap: anywhere;
- font-size: 13px;
+ font-size: var(--font-13);
}
.chat-filters {
width: min(960px, 100%);
@@ -6662,7 +6714,7 @@ a.connector-widget:focus-visible {
border: 0;
background: transparent;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
cursor: pointer;
}
@@ -6688,7 +6740,7 @@ a.connector-widget:focus-visible {
.context-sub {
margin-top: 4px;
max-width: 640px;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.5;
color: var(--muted-foreground);
}
@@ -6741,14 +6793,14 @@ a.connector-widget:focus-visible {
.context-panel-title {
margin: 0;
color: var(--foreground);
- font-size: 15px;
+ font-size: var(--font-15);
font-weight: 600;
letter-spacing: -0.01em;
}
.context-panel-copy {
margin: 3px 0 0;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
line-height: 1.45;
}
.context-panel-count {
@@ -6765,7 +6817,7 @@ a.connector-widget:focus-visible {
.context-panel-loading {
padding: 18px 0 4px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.context-project-empty {
min-height: 260px;
@@ -6777,13 +6829,13 @@ a.connector-widget:focus-visible {
}
.context-project-empty h2 {
margin: 16px 0 5px;
- font-size: 17px;
+ font-size: var(--font-17);
}
.context-project-empty p {
max-width: 440px;
margin: 0;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.55;
}
.context-section-label {
@@ -6833,7 +6885,7 @@ a.connector-widget:focus-visible {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-size: 13px;
+ font-size: var(--font-13);
}
.project-icon-button {
width: 30px;
@@ -6895,7 +6947,7 @@ a.connector-widget:focus-visible {
background: transparent;
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
}
.project-member-results {
margin-top: 4px;
@@ -6973,7 +7025,7 @@ a.connector-widget:focus-visible {
}
.project-dialog-head h2 {
margin: 8px 0 0;
- font-size: 18px;
+ font-size: var(--font-18);
font-weight: 600;
}
.project-name-field {
@@ -7057,7 +7109,7 @@ a.connector-widget:focus-visible {
}
.context-session-title {
min-width: 0;
- font-size: 13.5px;
+ font-size: var(--session-title-size);
color: var(--foreground);
overflow: hidden;
text-overflow: ellipsis;
@@ -7111,7 +7163,7 @@ a.connector-widget:focus-visible {
border-radius: 6px;
padding: 2px 8px;
font: inherit;
- font-size: 0.8125rem;
+ font-size: var(--font-13);
cursor: pointer;
}
.context-resource-action:hover:not(:disabled) {
@@ -7222,7 +7274,7 @@ a.connector-widget:focus-visible {
background: transparent;
outline: none;
font: inherit;
- font-size: 14px;
+ font-size: var(--font-14);
color: var(--foreground);
}
@@ -7265,7 +7317,7 @@ a.connector-widget:focus-visible {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-size: 14px;
+ font-size: var(--font-14);
}
.list-row-meta {
display: inline-flex;
@@ -7289,7 +7341,7 @@ a.connector-widget:focus-visible {
}
.list-row-date {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
white-space: nowrap;
}
.chat-row .list-row-meta {
@@ -7396,7 +7448,7 @@ a.connector-widget:focus-visible {
gap: 9px;
}
.deploy-row-title .list-row-title {
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
}
.deploy-status {
@@ -7482,7 +7534,7 @@ a.connector-widget:focus-visible {
margin-top: 5px;
color: var(--muted-foreground);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.deploy-detail-section {
margin-top: 20px;
@@ -7491,7 +7543,7 @@ a.connector-widget:focus-visible {
}
.deploy-detail-section h3 {
margin: 0 0 6px;
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 650;
}
.deploy-summary {
@@ -7510,7 +7562,7 @@ a.connector-widget:focus-visible {
margin-top: 20px;
padding: 14px 0;
border-block: 1px solid var(--border);
- font-size: 13px;
+ font-size: var(--font-13);
}
.deploy-access-line > div {
display: flex;
@@ -7535,7 +7587,7 @@ a.connector-widget:focus-visible {
gap: 4px;
}
.deploy-setting-row > div:first-child strong {
- font-size: 13px;
+ font-size: var(--font-13);
}
.deploy-setting-row > div:first-child span {
color: var(--muted-foreground);
@@ -7547,7 +7599,7 @@ a.connector-widget:focus-visible {
justify-content: flex-end;
gap: 10px;
min-width: 0;
- font-size: 13px;
+ font-size: var(--font-13);
}
.deploy-setting-value > span,
.deploy-setting-value > code {
@@ -7683,7 +7735,7 @@ a.connector-widget:focus-visible {
.deploy-archive-dialog p {
margin: 18px 0 0;
color: var(--muted-foreground);
- font-size: 13.5px;
+ font-size: var(--font-13-5);
line-height: 1.5;
}
.deploy-toast,
@@ -7701,7 +7753,7 @@ a.connector-widget:focus-visible {
border-radius: var(--radius-md);
background: var(--foreground);
color: var(--background);
- font-size: 13px;
+ font-size: var(--font-13);
}
.deploy-toast > span,
.action-toast > span {
@@ -7786,7 +7838,7 @@ a.connector-widget:focus-visible {
grid-area: title;
display: flex;
align-items: center;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 400;
}
.cron-title-line span:last-child {
@@ -7805,7 +7857,7 @@ a.connector-widget:focus-visible {
.cron-meta-line {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
@@ -7815,7 +7867,7 @@ a.connector-widget:focus-visible {
padding: 0;
border-radius: 0;
max-width: none;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.cron-row-actions {
@@ -7947,7 +7999,7 @@ a.connector-widget:focus-visible {
background: var(--background);
color: inherit;
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
text-overflow: ellipsis;
}
.field-select > .icon {
@@ -7959,7 +8011,7 @@ a.connector-widget:focus-visible {
.field-select.compact > select {
min-height: 30px;
padding-right: 32px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.field-select.compact > .icon {
right: 10px;
@@ -8059,7 +8111,7 @@ a.connector-widget:focus-visible {
}
.ambient-field-label {
color: var(--foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-weight: 600;
}
h3.ambient-field-label {
@@ -8077,7 +8129,7 @@ h3.ambient-field-label {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.5;
}
.ambient-orders:focus-visible,
@@ -8108,7 +8160,7 @@ h3.ambient-field-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
- font-size: 13px;
+ font-size: var(--font-13);
}
.ambient-bot-hours input,
.ambient-bot-add input {
@@ -8119,7 +8171,7 @@ h3.ambient-field-label {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.ambient-bot-mode {
max-width: 150px;
@@ -8148,7 +8200,7 @@ h3.ambient-field-label {
.ambient-policy .empty.compact {
margin: 0;
padding: 12px 0;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
text-align: left;
}
.ambient-policy-actions {
@@ -8228,7 +8280,7 @@ h3.ambient-field-label {
}
.split-canvas.single-pane .dv-tab .split-pane-title {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 400;
}
@@ -8253,7 +8305,7 @@ h3.ambient-field-label {
--dv-tabs-and-actions-container-height: 35px;
--dv-separator-border: var(--border);
--dv-floating-box-shadow: none;
- --dv-tabs-and-actions-container-font-size: 12.5px;
+ --dv-tabs-and-actions-container-font-size: var(--font-12-5);
--dv-drag-over-background-color: color-mix(in srgb, var(--primary) 20%, transparent);
--dv-drag-over-border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
--dv-group-view-background-color: var(--background);
@@ -8514,7 +8566,7 @@ h3.ambient-field-label {
display: flex;
align-items: center;
min-width: 0;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-weight: 600;
color: var(--foreground);
}
@@ -8627,7 +8679,7 @@ h3.ambient-field-label {
}
.split-canvas:not(.single-pane) .split-pane-chat .chat-cta {
- font-size: 21px;
+ font-size: var(--font-21);
}
.split-canvas:not(.single-pane) .dockview-theme-qm .dv-tabs-and-actions-container .split-pane-actions .icon-btn {
@@ -8724,7 +8776,7 @@ h3.ambient-field-label {
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--primary) 6%, transparent);
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-weight: 600;
pointer-events: auto;
transition:
@@ -8820,7 +8872,7 @@ h3.ambient-field-label {
border-radius: 999px;
background: var(--foreground);
color: var(--background);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
[data-density="compact"] .chat-scroll {
@@ -8833,7 +8885,7 @@ h3.ambient-field-label {
}
[data-density="compact"] .message-stack {
gap: 0;
- font-size: 13.5px;
+ font-size: var(--font-13-5);
}
[data-density="compact"] .live-work-detail {
display: none;
@@ -8941,7 +8993,7 @@ h3.ambient-field-label {
align-items: baseline;
gap: 7px;
min-width: 0;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--foreground);
}
.pane-card-now-label {
@@ -8957,7 +9009,7 @@ h3.ambient-field-label {
}
.pane-card-last {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 4;
@@ -8976,7 +9028,7 @@ h3.ambient-field-label {
gap: 8px;
padding: 0 14px;
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
text-align: left;
cursor: pointer;
@@ -9100,7 +9152,7 @@ h3.ambient-field-label {
background: transparent;
color: var(--foreground);
font: inherit;
- font-size: 15px;
+ font-size: var(--font-15);
}
.chat-search-results {
flex: 1;
@@ -9214,7 +9266,7 @@ h3.ambient-field-label {
justify-content: space-between;
}
.browse-title {
- font-size: 14px;
+ font-size: var(--font-14);
color: var(--foreground);
}
.browse-grid {
@@ -9260,7 +9312,7 @@ h3.ambient-field-label {
min-width: 0;
}
.browse-tile-label {
- font-size: 14px;
+ font-size: var(--font-14);
}
.browse-tile-blurb {
font-size: 12px;
@@ -9453,7 +9505,7 @@ h3.ambient-field-label {
align-items: center;
gap: 8px;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-filter-control {
display: inline-grid;
@@ -9514,7 +9566,7 @@ h3.ambient-field-label {
border-radius: 0;
background: transparent;
color: var(--muted-foreground);
- font-size: 13.5px;
+ font-size: var(--font-13-5);
white-space: nowrap;
cursor: pointer;
}
@@ -9552,7 +9604,7 @@ h3.ambient-field-label {
align-items: center;
gap: 4px;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
white-space: nowrap;
}
.inbox-notice {
@@ -9561,7 +9613,7 @@ h3.ambient-field-label {
border: 1px solid var(--border);
border-radius: 8px;
background: color-mix(in srgb, var(--accent) 7%, transparent);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-setup {
margin: 12px 10px 8px;
@@ -9599,7 +9651,7 @@ h3.ambient-field-label {
line-height: 1.35;
}
.inbox-setup-title {
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
}
.inbox-setup-description {
@@ -9745,21 +9797,21 @@ h3.ambient-field-label {
min-width: 0;
}
.inbox-item-heading {
- font-size: 14px;
+ font-size: var(--font-14);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.inbox-item-sub {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.inbox-item-snippet {
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -9777,7 +9829,7 @@ h3.ambient-field-label {
align-items: center;
gap: 8px;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-avatars {
flex: none;
@@ -9855,7 +9907,7 @@ h3.ambient-field-label {
margin-left: auto;
padding-left: 12px;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
font-weight: 400;
line-height: 1;
}
@@ -9960,7 +10012,7 @@ h3.ambient-field-label {
}
}
.inbox-item-surface .inbox-context-msg {
- font-size: 13.5px;
+ font-size: var(--font-13-5);
line-height: 1.45;
}
.inbox-item-detail {
@@ -9979,7 +10031,7 @@ h3.ambient-field-label {
display: flex;
align-items: flex-start;
gap: 8px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-context-body {
flex: 1;
@@ -10078,7 +10130,7 @@ h3.ambient-field-label {
display: flex;
align-items: center;
gap: 8px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-field > span {
flex: none;
@@ -10095,7 +10147,7 @@ h3.ambient-field-label {
color: inherit;
padding: 5px 8px;
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-draft-body {
width: 100%;
@@ -10107,7 +10159,7 @@ h3.ambient-field-label {
color: inherit;
padding: 8px 10px;
font: inherit;
- font-size: 13.5px;
+ font-size: var(--font-13-5);
line-height: 1.45;
}
.inbox-field input:focus-visible,
@@ -10139,7 +10191,7 @@ h3.ambient-field-label {
background: transparent;
color: var(--muted-foreground);
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
cursor: pointer;
}
.inbox-dismiss:hover:not(:disabled) {
@@ -10180,7 +10232,7 @@ h3.ambient-field-label {
.inbox-chat-msg {
display: flex;
flex-direction: column;
- font-size: 13.5px;
+ font-size: var(--font-13-5);
}
.inbox-chat-msg.human {
align-items: flex-end;
@@ -10264,7 +10316,7 @@ h3.ambient-field-label {
background: transparent;
color: var(--muted-foreground);
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
cursor: pointer;
transition:
background 0.12s ease,
@@ -10295,7 +10347,7 @@ h3.ambient-field-label {
align-items: center;
gap: 8px;
color: var(--muted-foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-replied-note {
flex-direction: column;
@@ -10309,7 +10361,7 @@ h3.ambient-field-label {
}
.inbox-replied-text {
color: var(--foreground);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
line-height: 1.4;
border-left: 2px solid var(--border);
padding-left: 8px;
@@ -10342,7 +10394,7 @@ h3.ambient-field-label {
border: 1px solid var(--border);
border-radius: 12px;
padding: 1px 8px;
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.5;
background: var(--muted, transparent);
}
@@ -10355,7 +10407,7 @@ h3.ambient-field-label {
border: 0;
color: var(--muted-foreground);
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
cursor: pointer;
padding: 4px 2px;
}
@@ -10376,11 +10428,11 @@ h3.ambient-field-label {
flex-direction: column;
gap: 2px;
font-weight: 500;
- font-size: 13.5px;
+ font-size: var(--font-13-5);
}
.inbox-manage-hint {
font-weight: 400;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
}
.inbox-manage-row {
@@ -10397,7 +10449,7 @@ h3.ambient-field-label {
color: inherit;
padding: 5px 8px;
font: inherit;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-source-toggle {
display: inline-flex;
@@ -10408,7 +10460,7 @@ h3.ambient-field-label {
color: var(--muted-foreground);
border-radius: 999px;
padding: 3px 12px;
- font-size: 12.5px;
+ font-size: var(--font-12-5);
cursor: pointer;
}
.inbox-source-toggle.on {
@@ -10418,7 +10470,7 @@ h3.ambient-field-label {
}
.inbox-manage-error {
color: var(--destructive, #b42318);
- font-size: 12.5px;
+ font-size: var(--font-12-5);
}
.inbox-manage-actions {
display: flex;
@@ -10498,7 +10550,7 @@ h3.ambient-field-label {
}
.loop-health-reason {
color: var(--muted-foreground, #667085);
- font-size: 13px;
+ font-size: var(--font-13);
margin: 4px 0 0;
}
.loop-autopilot {
@@ -10531,7 +10583,7 @@ h3.ambient-field-label {
gap: 2px;
}
.loop-autopilot-label {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 600;
}
.loop-autopilot-sublabel {
@@ -10565,7 +10617,7 @@ h3.ambient-field-label {
transform: translateX(16px);
}
.loop-section-title {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 600;
margin: 22px 0 8px;
display: flex;
@@ -10602,7 +10654,7 @@ h3.ambient-field-label {
font-weight: 600;
}
.loop-output-summary {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground, #667085);
}
.loop-output-decide {
@@ -10613,7 +10665,7 @@ h3.ambient-field-label {
}
.loop-output-decide input {
width: 160px;
- font-size: 13px;
+ font-size: var(--font-13);
padding: 5px 8px;
border: 1px solid var(--border, #e4e7ec);
border-radius: 8px;
@@ -10641,7 +10693,7 @@ h3.ambient-field-label {
align-items: center;
gap: 10px;
padding: 6px 4px;
- font-size: 13px;
+ font-size: var(--font-13);
border-bottom: 1px solid var(--border, #e4e7ec);
}
.loop-item-status {
@@ -10673,7 +10725,7 @@ h3.ambient-field-label {
.loop-playbook {
width: 100%;
font-family: var(--font-mono, ui-monospace, monospace);
- font-size: 13px;
+ font-size: var(--font-13);
border: 1px solid var(--border, #e4e7ec);
border-radius: 10px;
padding: 10px;
@@ -11481,7 +11533,7 @@ h3.ambient-field-label {
width: 100%;
justify-content: space-between;
padding: 9px 10px;
- font-size: 13px;
+ font-size: var(--font-13);
}
.share-audience-button span {
overflow: hidden;
@@ -11592,7 +11644,7 @@ h3.ambient-field-label {
box-sizing: border-box;
background: var(--brand-accent);
color: #fff;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 500;
}
.top-banner.dev {
@@ -11657,7 +11709,7 @@ h3.ambient-field-label {
display: flex;
align-items: center;
gap: 9px;
- font-size: 17px;
+ font-size: var(--font-17);
font-weight: 600;
letter-spacing: 0;
margin-bottom: 4px;
@@ -11674,7 +11726,7 @@ h3.ambient-field-label {
letter-spacing: 0.1em;
}
.signin-body {
- font-size: 13.5px;
+ font-size: var(--font-13-5);
color: var(--muted-foreground);
line-height: 1.5;
margin: -4px 0 2px;
@@ -11749,7 +11801,7 @@ h3.ambient-field-label {
.mc-account-hint,
.mc-notice {
margin: 0;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
}
.mc-provider-actions {
@@ -11773,7 +11825,7 @@ h3.ambient-field-label {
display: flex;
align-items: center;
justify-content: center;
- font-size: 15px;
+ font-size: var(--font-15);
font-weight: 700;
color: #fff;
}
@@ -11791,11 +11843,11 @@ h3.ambient-field-label {
line-height: 1.35;
}
.mc-provider-text strong {
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 600;
}
.mc-provider-text small {
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
}
.mc-provider.connected .mc-provider-text small {
@@ -11857,11 +11909,11 @@ h3.ambient-field-label {
line-height: 1.4;
}
.mc-method-title {
- font-size: 13.5px;
+ font-size: var(--font-13-5);
font-weight: 600;
}
.mc-method-detail {
- font-size: 12.5px;
+ font-size: var(--font-12-5);
color: var(--muted-foreground);
}
.mc-panel {
@@ -11898,7 +11950,7 @@ h3.ambient-field-label {
}
.mc-field input {
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
@@ -11919,7 +11971,7 @@ h3.ambient-field-label {
}
.mc-code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- font-size: 22px;
+ font-size: var(--font-22);
font-weight: 700;
letter-spacing: 3px;
padding: 2px 0;
@@ -11929,7 +11981,7 @@ h3.ambient-field-label {
display: inline-flex;
align-items: center;
gap: 8px;
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--muted-foreground);
padding: 4px 0;
}
@@ -11956,7 +12008,7 @@ h3.ambient-field-label {
display: flex;
align-items: center;
justify-content: center;
- font-size: 20px;
+ font-size: var(--font-20);
line-height: 1;
color: var(--muted-foreground);
background: none;
@@ -11998,7 +12050,7 @@ h3.ambient-field-label {
color: #1a7f37;
}
.mc-error {
- font-size: 13px;
+ font-size: var(--font-13);
color: var(--destructive, #b42318);
border: 1px solid color-mix(in srgb, var(--destructive, #b42318) 35%, var(--border));
background: color-mix(in srgb, var(--destructive, #b42318) 6%, var(--background));
@@ -12082,7 +12134,7 @@ h3.ambient-field-label {
background: var(--background);
color: var(--foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
outline: none;
}
@@ -12096,7 +12148,7 @@ h3.ambient-field-label {
.menu-empty {
padding: 18px 8px;
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
text-align: center;
}
@@ -12188,7 +12240,7 @@ h3.ambient-field-label {
}
.connection-picker-header h3 {
margin: 0;
- font-size: 14px;
+ font-size: var(--font-14);
font-weight: 600;
}
.connection-picker-search {
@@ -12353,7 +12405,7 @@ body.app-edit-embed .message-stack {
padding-inline: 24px;
}
body.app-edit-embed .composer-wrap {
- --composer-font-size: 13px;
+ --composer-font-size: var(--font-13);
--composer-pad-inline: 16px;
--composer-pad-end: 16px;
box-sizing: border-box;
@@ -12382,7 +12434,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
margin-bottom: 20px;
}
.deployment-permissions-dialog .project-dialog-head h2 {
- font-size: 17px;
+ font-size: var(--font-17);
}
.deployment-permissions-dialog .project-dialog-head p {
margin: 4px 0 0;
@@ -12417,7 +12469,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
.permission-person-label {
flex: 1;
min-width: 0;
- font-size: 13px;
+ font-size: var(--font-13);
overflow-wrap: anywhere;
}
.permission-person-label small {
@@ -12534,12 +12586,12 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
}
.conversation-error-code {
color: var(--muted-foreground);
- font-size: 13px;
+ font-size: var(--font-13);
}
.conversation-error h1 {
outline: none;
margin: 12px 0;
- font-size: 24px;
+ font-size: var(--font-24);
font-weight: 600;
}
.conversation-error p {
@@ -12565,7 +12617,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
background: transparent;
color: var(--muted-foreground);
font: inherit;
- font-size: 13px;
+ font-size: var(--font-13);
cursor: pointer;
}
.session-parent-link span {
@@ -12621,11 +12673,11 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
}
:is(markdown-block, qm-markdown).markdown-content table {
- font-size: calc(var(--chat-font-size) - 2px);
+ font-size: max(min(12px, calc(var(--chat-font-size) - 2px)), calc((var(--chat-font-size) - 2px) * var(--text-scale)));
line-height: 1.65;
}
.activity-group > .work-head {
- font-size: calc(var(--chat-font-size) - 1px);
+ font-size: max(min(12px, calc(var(--chat-font-size) - 1px)), calc((var(--chat-font-size) - 1px) * var(--text-scale)));
}
.stopped-work[open] > .stopped-head > .activity-chevron {
transform: rotate(90deg);
@@ -12649,14 +12701,14 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
.mc-overlay .mc-panel h1 {
font-family: var(--app-font);
- font-size: 20px;
+ font-size: var(--font-20);
line-height: 1.3;
font-weight: 600;
letter-spacing: -0.3px;
margin: 0 28px 8px 0;
}
.mc-overlay .mc-panel .signin-body {
- font-size: 13px;
+ font-size: var(--font-13);
line-height: 1.5;
margin: 0 0 24px;
}
@@ -12779,7 +12831,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
padding: 20px;
}
.inbox-generic-review .loop-output h2 {
- font-size: 16px;
+ font-size: var(--font-16);
margin: 0;
}
.inbox-generic-review .loop-output-decide {
@@ -12801,7 +12853,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
}
.loop-ingestion-heading h2 {
margin: 0;
- font-size: 15px;
+ font-size: var(--font-15);
}
.loop-ingestion-heading > span,
.loop-ingestion-source-head > span,
@@ -12889,7 +12941,7 @@ body.app-edit-embed .custom-chat-shell.app-edit-chat > .chat-bottom-dock {
.loop-icon-heading {
display: block;
margin-bottom: 12px;
- font-size: 13px;
+ font-size: var(--font-13);
font-weight: 600;
}
.loop-icon-grid {
diff --git a/plugins/web-ui/test/css-vars.test.ts b/plugins/web-ui/test/css-vars.test.ts
index 18999117a..6bd56eb44 100644
--- a/plugins/web-ui/test/css-vars.test.ts
+++ b/plugins/web-ui/test/css-vars.test.ts
@@ -87,7 +87,7 @@ test("pinned conversations align with project conversations without a header-to-
assert.match(header, /min-height:\s*30px;/);
assert.match(header, /margin:\s*3px 0 0 4px;/);
assert.match(header, /padding:\s*4px 3px 4px 2px;/);
- assert.match(header, /font-size:\s*12\.5px;/);
+ assert.match(header, /font-size:\s*var\(--font-12-5\);/);
assert.match(shellCss, /\.pinned-head-glyph \{[\s\S]*?flex: 0 0 14px;/);
assert.match(shellCss, /\.pinned-children \{[\s\S]*?margin-left: 13px;/);
assert.match(shellCss, /\.pinned-children \.session \{\s*padding-left: 6px;/);
@@ -173,3 +173,31 @@ test("every modal scrim dims through --scrim, which each theme points away from
assert.ok(Number(value) < 0.2, `${name} --scrim must be dark enough to dim, got L=${value}`);
}
});
+
+test("desktop density tokens keep original touch sizes and a 12px floor", () => {
+ const root = shellCss.match(/:root \{([^}]+)\}/)?.[1] ?? "";
+ const desktop = shellCss.match(/@media \(min-width: 861px\) and \(hover: hover\) \{\s*:root \{([^}]+)\}/)?.[1] ?? "";
+ const tokens = (block: string) => new Map([...block.matchAll(/(--[\w-]+):\s*([^;]+);/g)].map((m) => [m[1], m[2]]));
+ const before = tokens(root);
+ const after = tokens(desktop);
+ assert.equal(before.get("--text-scale"), "1");
+ assert.equal(after.get("--text-scale"), "0.9");
+ for (const [name, value] of before) {
+ if (!name.startsWith("--font-")) continue;
+ const original = Number.parseFloat(value);
+ assert.equal(after.get(name), `${Math.max(12, Math.round(original * 90) / 100)}px`, name);
+ }
+ for (const [name, original, compact] of [
+ ["--content-w", "820px", "740px"],
+ ["--chat-pad", "16px", "14.4px"],
+ ["--meta-lane", "24px", "21.6px"],
+ ["--session-title-size", "13.5px", "12.5px"],
+ ]) {
+ assert.equal(before.get(name), original);
+ assert.equal(after.get(name), compact);
+ }
+ assert.match(shellCss, /\.thinking \{[^}]*font-size: calc\(var\(--chat-font-size\) - 2px\);/);
+ assert.match(shellCss, /\.thinking-summary \{[^}]*font-size: calc\(var\(--chat-font-size\) - 1px\);/);
+ assert.match(shellCss, /\.thinking-body \{[^}]*font-size: calc\(var\(--chat-font-size\) - 1px\);/);
+ assert.match(shellCss, /\.work-message \{[^}]*font-size: calc\(var\(--chat-font-size\) - 1px\);/);
+});
diff --git a/plugins/web-ui/test/pane-composer-source.test.ts b/plugins/web-ui/test/pane-composer-source.test.ts
index 68ebc3e80..bee028ceb 100644
--- a/plugins/web-ui/test/pane-composer-source.test.ts
+++ b/plugins/web-ui/test/pane-composer-source.test.ts
@@ -104,7 +104,7 @@ test("compact overrides stop matching when the canvas returns to one pane", () =
const overrides = rules.filter(
([, selector, declarations]) =>
selector.includes(".split-pane-chat") &&
- /(?:font-size: 12px|--composer-font-size: 12px|font-size: 21px)/.test(declarations),
+ /(?:font-size: 12px|--composer-font-size: 12px|font-size: var\(--font-21\))/.test(declarations),
);
assert.equal(overrides.length, 4);
for (const [, selector] of overrides) {
diff --git a/plugins/web-ui/test/pinned-composer-polish.test.ts b/plugins/web-ui/test/pinned-composer-polish.test.ts
index 9d7aba790..aca2af7da 100644
--- a/plugins/web-ui/test/pinned-composer-polish.test.ts
+++ b/plugins/web-ui/test/pinned-composer-polish.test.ts
@@ -25,13 +25,13 @@ test("background activity shares the queued inset above the composer", () => {
test("the composer input follows the composer size variable while background activity stays compact", () => {
assert.match(css, /\.chat-bottom-dock > \.bg-activity > \.bg-activity-strip \{[^}]*font-size: 12px;/);
const sizes = [...css.matchAll(/([^{}]+)\{([^{}]*)\}/g)].flatMap((rule) =>
- [...rule[2].matchAll(/--composer-font-size: (\d+)px/g)].map((match) => [rule[1].trim(), Number(match[1])]),
+ [...rule[2].matchAll(/--composer-font-size: ([^;]+);/g)].map((match) => [rule[1].trim(), match[1]]),
);
assert.deepEqual(sizes, [
- [".composer-wrap", 15],
- [".split-canvas:not(.single-pane) .split-pane-chat .custom-chat-shell .composer-wrap", 12],
- [".composer-wrap", 16],
- ["body.app-edit-embed .composer-wrap", 13],
+ [".composer-wrap", "var(--font-15)"],
+ [".split-canvas:not(.single-pane) .split-pane-chat .custom-chat-shell .composer-wrap", "12px"],
+ [".composer-wrap", "16px"],
+ ["body.app-edit-embed .composer-wrap", "var(--font-13)"],
]);
const blocks = css.matchAll(/\.composer-input \{([^}]+)\}/g);
const declarations = [...blocks].flatMap((match) => [...match[1].matchAll(/font-size: ([^;]+);/g)]);
diff --git a/plugins/web-ui/test/transcript-type-scale.test.ts b/plugins/web-ui/test/transcript-type-scale.test.ts
index 4378a8ba9..a2949350f 100644
--- a/plugins/web-ui/test/transcript-type-scale.test.ts
+++ b/plugins/web-ui/test/transcript-type-scale.test.ts
@@ -25,18 +25,22 @@ test("every chat context sets one transcript base size on the chat shell", () =>
);
});
-test("message text and the work header sit on the base; tool and thinking rows one step below", () => {
+test("desktop text scales with the chat base while thinking and work messages keep their sizes", () => {
for (const selector of [".assistant-body", ".message-bubble", ".work-head", ".work-said", ".live-work-line"]) {
- assert.deepEqual(fontSizes(selector), ["var(--chat-font-size)"], selector);
+ assert.deepEqual(
+ fontSizes(selector),
+ ["max(min(12px, var(--chat-font-size)), calc(var(--chat-font-size) * var(--text-scale)))"],
+ selector,
+ );
}
- for (const selector of [
- ".activity-group > .work-head",
- ".tool-row,\n.tool-row .tool-summary",
- ".thinking-summary",
- ".thinking-body",
- ".work-message",
- ".stopped-head",
- ]) {
+ for (const selector of [".activity-group > .work-head", ".tool-row,\n.tool-row .tool-summary", ".stopped-head"]) {
+ assert.deepEqual(
+ fontSizes(selector),
+ ["max(min(12px, calc(var(--chat-font-size) - 1px)), calc((var(--chat-font-size) - 1px) * var(--text-scale)))"],
+ selector,
+ );
+ }
+ for (const selector of [".thinking-summary", ".thinking-body", ".work-message"]) {
assert.deepEqual(fontSizes(selector), ["calc(var(--chat-font-size) - 1px)"], selector);
}
});
diff --git a/plugins/web-ui/test/work-fold-source.test.ts b/plugins/web-ui/test/work-fold-source.test.ts
index f7dc93abf..f7289e0f8 100644
--- a/plugins/web-ui/test/work-fold-source.test.ts
+++ b/plugins/web-ui/test/work-fold-source.test.ts
@@ -44,7 +44,7 @@ test("expanded tool activity uses a compact log rhythm", () => {
assert.match(css, /\.work-rows \{[\s\S]{0,120}?gap: 2px;/);
assert.match(
css,
- /\.tool-row,[\s\S]{0,220}?font-size: calc\(var\(--chat-font-size\) - 1px\);[\s\S]{0,80}?line-height: 1\.35;/,
+ /\.tool-row,[\s\S]{0,220}?font-size: max\(min\(12px, calc\(var\(--chat-font-size\) - 1px\)\), calc\(\(var\(--chat-font-size\) - 1px\) \* var\(--text-scale\)\)\);[\s\S]{0,80}?line-height: 1\.35;/,
);
assert.match(css, /\.tool-row \.tool-summary \{[\s\S]{0,80}?min-height: 26px;/);
assert.match(chat, /icon\(rowIcon, 15\)/);