Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

refactor(theme): retire the superseded app.css shadow layer

yhhe40ef77d3cc1
diff --git a/desktop/src/theme/app.css b/desktop/src/theme/app.css
index bd2e18f5d..d1d55b0e5 100644
--- a/desktop/src/theme/app.css
+++ b/desktop/src/theme/app.css
@@ -22,47 +22,7 @@
}
/* --------------------------------------------------------------- menubar --- */
-.menubar {
- display: flex;
- align-items: center;
- gap: 4px;
- height: var(--h-titlebar);
- padding: 0 12px 0 78px; /* leave room for macOS traffic lights */
- background: var(--base);
- border-bottom: 1px solid var(--line-soft);
- -webkit-app-region: drag;
- user-select: none;
-}
-.menubar__brand {
- display: flex;
- align-items: center;
- gap: 7px;
- padding-right: 10px;
-}
-.menubar__brand svg {
- filter: none;
-}
-.menubar__title {
- font-size: var(--fs-md);
- font-weight: 600;
- letter-spacing: 0.04em;
- color: var(--text-hi);
-}
-.menubar__menus {
- display: flex;
- -webkit-app-region: no-drag;
-}
-.menubar__item {
- padding: 4px 9px;
- font-size: var(--fs-sm);
- color: var(--text-dim);
- border-radius: var(--r-xs);
-}
-.menubar__item:hover,
-.menubar__item.is-open {
- color: var(--text-hi);
- background: var(--hover);
-}
+
.menubar__menu {
position: relative;
display: flex;
@@ -84,12 +44,7 @@
overflow-y: auto;
-webkit-app-region: no-drag;
}
-/* Right-click context menu — portaled to body, positioned at the cursor. */
-.menu-dropdown--ctx {
- position: fixed;
- top: auto;
- min-width: 176px;
-}
+
.menu-dropdown__item {
display: flex;
align-items: center;
@@ -131,161 +86,6 @@
margin: 4px 2px;
background: var(--line);
}
-.menubar__project {
- margin-left: auto;
- display: flex;
- align-items: center;
- gap: 7px;
- font-size: var(--fs-sm);
- color: var(--text-faint);
- -webkit-app-region: no-drag;
-}
-.menubar__project-name {
- color: var(--text-dim);
-}
-.menubar__scene {
- color: var(--text);
- font-size: var(--fs-xs);
-}
-
-/* --------------------------------------------------------------- toolbar --- */
-.toolbar {
- display: flex;
- align-items: center;
- gap: 4px;
- height: var(--h-toolbar);
- padding: 0 10px;
- background: var(--elevated);
- border-bottom: 1px solid var(--line);
- position: relative;
-}
-.toolbar__group {
- display: flex;
- align-items: center;
- gap: 2px;
-}
-.toolbar__div {
- width: 1px;
- height: 20px;
- margin: 0 6px;
- background: var(--line-strong);
-}
-.toolbar__center {
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
-}
-.toolbar__right {
- margin-left: auto;
- gap: 6px;
-}
-
-.tbtn {
- display: grid;
- place-items: center;
- width: 28px;
- height: 28px;
- border-radius: var(--r-sm);
- color: var(--text-dim);
- transition: background 0.12s, color 0.12s;
-}
-.tbtn:hover {
- color: var(--text-hi);
- background: var(--hover);
-}
-.tbtn.is-active {
- color: var(--star-hi);
- background: var(--star-dim);
- box-shadow: inset 0 0 0 1px var(--star-line);
-}
-.tbtn:disabled {
- opacity: 0.3;
- cursor: default;
- pointer-events: none;
-}
-
-.playbar {
- display: flex;
- align-items: center;
- gap: 2px;
- padding: 3px;
- background: var(--base);
- border: 1px solid var(--line);
- border-radius: var(--r-md);
-}
-.tbtn--run:hover {
- color: var(--run);
-}
-.tbtn--run.is-active {
- color: var(--run);
- background: rgba(76, 174, 135, 0.14);
- box-shadow: inset 0 0 0 1px rgba(76, 174, 135, 0.4);
-}
-
-.chip {
- display: flex;
- align-items: center;
- gap: 6px;
- height: 28px;
- padding: 0 11px;
- font-size: var(--fs-sm);
- font-weight: 500;
- color: var(--text);
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
-}
-.chip:hover {
- border-color: var(--line-strong);
- color: var(--text-hi);
-}
-.chip--accent {
- color: var(--on-accent);
- background: var(--star);
- border-color: var(--star);
-}
-.chip--accent:hover {
- background: var(--star-hi);
- color: var(--on-accent);
-}
-
-/* ------------------------------------------------------------- statusbar --- */
-.statusbar {
- display: flex;
- align-items: center;
- height: var(--h-statusbar);
- padding: 0 12px;
- background: var(--base);
- border-top: 1px solid var(--line);
- font-size: var(--fs-xs);
- color: var(--text-dim);
-}
-.statusbar__left,
-.statusbar__right {
- display: flex;
- align-items: center;
- gap: 16px;
-}
-.statusbar__right {
- margin-left: auto;
-}
-.statusbar__item {
- display: flex;
- align-items: center;
- gap: 5px;
-}
-.statusbar__dot {
- display: flex;
- align-items: center;
- gap: 6px;
- color: var(--text-faint);
-}
-.statusbar__dot.is-live {
- color: var(--run);
-}
-.statusbar__item--engine {
- color: var(--text-faint);
-}
/* ------------------------------------------------------- panel scaffold --- */
.panel {
@@ -294,63 +94,6 @@
height: 100%;
background: var(--panel);
}
-.panel__toolbar {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 6px 8px;
- border-bottom: 1px solid var(--line-soft);
- flex-shrink: 0;
-}
-.panel__body {
- flex: 1;
- min-height: 0;
- overflow: auto;
- padding: 4px 0;
-}
-
-.searchbox {
- display: flex;
- align-items: center;
- gap: 6px;
- height: 26px;
- padding: 0 8px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- color: var(--text-faint);
-}
-.searchbox--grow {
- flex: 1;
-}
-.searchbox:focus-within {
- border-color: var(--star-line);
-}
-.searchbox__input {
- flex: 1;
- min-width: 0;
- background: none;
- border: none;
- outline: none;
- color: var(--text);
- font-size: var(--fs-sm);
-}
-.searchbox__input::placeholder {
- color: var(--text-faint);
-}
-
-.iconbtn {
- display: grid;
- place-items: center;
- width: 26px;
- height: 26px;
- border-radius: var(--r-sm);
- color: var(--text-dim);
-}
-.iconbtn:hover {
- color: var(--text-hi);
- background: var(--hover);
-}
.btn-soft {
display: flex;
@@ -372,6 +115,16 @@
opacity: 0.4;
cursor: default;
}
+.btn-soft.is-primary {
+ color: var(--on-accent);
+ background: var(--star);
+ border-color: var(--star);
+}
+.btn-soft.is-primary:hover {
+ color: var(--on-accent);
+ background: var(--star-hi);
+ border-color: var(--star-hi);
+}
.empty {
flex: 1;
@@ -390,153 +143,6 @@
max-width: 200px;
}
-/* ------------------------------------------------------ outliner / tree --- */
-.tree {
- padding: 4px 4px;
-}
-.tree-row {
- display: flex;
- align-items: center;
- gap: 5px;
- height: 22px;
- padding-right: 6px;
- border-radius: var(--r-sm);
- color: var(--text);
- position: relative;
- cursor: default;
-}
-.tree-row:hover {
- background: var(--hover);
-}
-/* Active = a flat solid highlight + a crisp left accent bar (no gradient, no glow). */
-.tree-row.is-selected {
- background: var(--star-dim);
- color: var(--text-hi);
-}
-.tree-row.is-selected::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 2px;
- background: var(--star);
-}
-/* The primary (active) entity within a multi-selection reads a touch stronger. */
-.tree-row.is-primary.is-selected {
- background: rgba(76, 143, 214, 0.22);
-}
-/* Drag-to-reparent drop target. */
-.tree-row.is-drop {
- background: var(--star-dim);
- box-shadow: inset 0 0 0 1px var(--star-line);
-}
-.tree-row.is-hidden {
- opacity: 0.45;
-}
-.tree-row__twist {
- display: grid;
- place-items: center;
- width: 16px;
- height: 16px;
- color: var(--text-faint);
- flex-shrink: 0;
- transition: transform 0.12s;
-}
-.tree-row__twist.is-open {
- transform: rotate(90deg);
-}
-.tree-row__twist.is-leaf {
- visibility: hidden;
-}
-.tree-row__icon {
- display: grid;
- place-items: center;
- color: var(--text-dim);
- flex-shrink: 0;
-}
-.tree-row.is-selected .tree-row__icon {
- color: var(--star-hi);
-}
-/* Prefab-instance rows: warm icon tint, kept even when selected (the warm hue is
- the prefab's identity, mirroring the inspector ribbon). */
-.tree-row.is-prefab .tree-row__icon,
-.tree-row.is-prefab.is-selected .tree-row__icon {
- color: var(--info-warm);
-}
-.tree-row__name {
- flex: 1;
- font-size: var(--fs-sm);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-/* Right-hand type column (kind + child count), muted so the name leads. */
-.tree-row__type {
- flex-shrink: 0;
- padding-left: 8px;
- font-size: var(--fs-2xs);
- color: var(--text-faint);
- font-variant-numeric: tabular-nums;
- white-space: nowrap;
-}
-.tree-row.is-selected .tree-row__type {
- color: var(--text-dim);
-}
-
-/* Column header strip above the tree (Name | Type). */
-.tree-cols {
- display: flex;
- align-items: center;
- flex-shrink: 0;
- height: 20px;
- padding: 0 30px 0 12px;
- border-bottom: 1px solid var(--line-soft);
- font-size: var(--fs-2xs);
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--text-faint);
-}
-.tree-cols__name {
- flex: 1;
-}
-.tree-row__rename {
- flex: 1;
- min-width: 0;
- background: var(--input);
- border: 1px solid var(--star-line);
- border-radius: var(--r-xs);
- padding: 1px 5px;
- color: var(--text-hi);
- font-size: var(--fs-sm);
- outline: none;
-}
-.tree-row__actions {
- display: flex;
- align-items: center;
- gap: 4px;
- color: var(--text-faint);
-}
-.tree-row__lock {
- color: var(--text-faint);
-}
-.tree-row__vis {
- display: grid;
- place-items: center;
- width: 18px;
- height: 18px;
- color: var(--text-faint);
- opacity: 0;
- border-radius: var(--r-xs);
-}
-.tree-row:hover .tree-row__vis,
-.tree-row.is-hidden .tree-row__vis {
- opacity: 1;
-}
-.tree-row__vis:hover {
- color: var(--text-hi);
-}
-
/* -------------------------------------------------------------- viewport --- */
.viewport {
position: relative;
@@ -645,46 +251,9 @@
background: rgba(90, 200, 250, 0.22);
will-change: transform, width, height;
}
-.viewport__stage.has-grid {
- background-image:
- linear-gradient(var(--line-soft) 1px, transparent 1px),
- linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
- linear-gradient(var(--line) 1px, transparent 1px),
- linear-gradient(90deg, var(--line) 1px, transparent 1px);
- background-size: 32px 32px, 32px 32px, 256px 256px, 256px 256px;
- background-position: center;
-}
-/* Starfield removed — a decorative game-UI flourish at odds with a neutral
- DCC-tool viewport. Kept as a no-op so the React element renders harmlessly. */
-.viewport__starfield {
- display: none;
-}
-.viewport__entity {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- display: grid;
- place-items: center;
-}
-.viewport__entity-label {
- position: absolute;
- bottom: calc(100% + 6px);
- white-space: nowrap;
- font-size: var(--fs-2xs);
- color: var(--star-hi);
- background: rgba(var(--glass-rgb), 0.7);
- padding: 2px 6px;
- border-radius: var(--r-xs);
- border: 1px solid var(--star-line);
-}
-.gizmo {
- display: block;
- filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
-}
-
-/* Scene-camera gizmo: a camera icon at the camera + its authored view rect. */
-.viewport__cam-gizmo {
+
+/* Scene-camera gizmo: a camera icon at the camera + its authored view rect. */
+.viewport__cam-gizmo {
position: absolute;
inset: 0;
z-index: 2;
@@ -883,123 +452,6 @@ body.thumb-capture .viewport__play-stop {
fill: #ffd08a;
}
-.viewport__overlay {
- position: absolute;
- display: flex;
- gap: 6px;
- z-index: 2;
-}
-.viewport__overlay--tl {
- top: 10px;
- left: 10px;
-}
-.viewport__overlay--tr {
- top: 10px;
- right: 10px;
-}
-.viewport__overlay--bl {
- bottom: 10px;
- left: 12px;
- font-size: var(--fs-xs);
- color: var(--text-dim);
- background: rgba(var(--glass-rgb), 0.62);
- padding: 3px 8px;
- border-radius: var(--r-sm);
- border: 1px solid var(--line);
-}
-.viewport__overlay--bl b {
- color: var(--text-hi);
- font-weight: 600;
-}
-
-/* Top-right telemetry HUD. Shows only measured stats — FPS + live entity
- count; no fabricated draw-call / triangle counters. */
-.viewport__hud {
- position: absolute;
- top: 10px;
- right: 10px;
- z-index: 2;
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- gap: 1px;
- font-family: var(--font-mono);
- font-size: var(--fs-xs);
- color: var(--text-dim);
- text-align: right;
- pointer-events: none;
-}
-.viewport__hud span {
- display: inline-flex;
- gap: 6px;
-}
-.viewport__hud b {
- color: var(--text-hi);
- font-weight: 600;
- font-variant-numeric: tabular-nums;
-}
-
-/* Floating viewport toolbar (gizmo mode + view toggles + frame). */
-.viewport__toolbar {
- position: absolute;
- top: 10px;
- left: 10px;
- z-index: 3;
- display: flex;
- align-items: center;
- gap: 2px;
- padding: 3px;
- background: rgba(var(--glass-rgb), 0.72);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- backdrop-filter: blur(6px);
-}
-.viewport__toolbar-div {
- width: 1px;
- height: 18px;
- margin: 0 4px;
- background: var(--line-strong);
-}
-.vbtn {
- display: grid;
- place-items: center;
- width: 26px;
- height: 26px;
- border-radius: var(--r-xs);
- color: var(--text-dim);
- transition: background 0.12s, color 0.12s;
-}
-.vbtn:hover {
- color: var(--text-hi);
- background: var(--hover);
-}
-.vbtn.is-active {
- color: var(--star-hi);
- background: var(--star-dim);
- box-shadow: inset 0 0 0 1px var(--star-line);
-}
-.vchip {
- display: flex;
- align-items: center;
- gap: 6px;
- height: 26px;
- padding: 0 10px;
- font-size: var(--fs-xs);
- color: var(--text);
- background: rgba(var(--glass-rgb), 0.72);
- backdrop-filter: blur(8px);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
-}
-.vchip:hover {
- border-color: var(--line-strong);
- color: var(--text-hi);
-}
-.vchip--icon {
- padding: 0;
- width: 28px;
- justify-content: center;
-}
.viewport__playflag {
position: absolute;
top: 10px;
@@ -1067,1249 +519,36 @@ body.thumb-capture .viewport__play-stop {
}
}
-/* --------------------------------------------------- details / inspector --- */
-.inspector-head {
+/* ----------------------------------------------------------------- toasts --- */
+.toaster {
+ position: fixed;
+ right: 14px;
+ bottom: 32px;
+ z-index: 2000;
display: flex;
- align-items: center;
+ flex-direction: column;
gap: 8px;
- padding: 8px 10px;
- border-bottom: 1px solid var(--line-soft);
- flex-shrink: 0;
-}
-.inspector-head__name {
- flex: 1;
- min-width: 0;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding: 5px 8px;
- color: var(--text-hi);
- font-size: var(--fs-md);
- font-weight: 500;
- outline: none;
-}
-.inspector-head__name:focus {
- border-color: var(--star-line);
-}
-/* Entity kind tag (Sprite / Physics / Camera / ...) — real data from readEntity. */
-.inspector-head__kind {
- flex-shrink: 0;
- padding: 2px 7px;
- font-size: var(--fs-2xs);
- font-weight: 600;
- letter-spacing: 0.04em;
- text-transform: uppercase;
- color: var(--text-dim);
- background: var(--srf-3);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
-}
-.inspector-head__id {
- font-size: var(--fs-xs);
- color: var(--text-faint);
-}
-
-/* Prefab-instance ribbon: warm-sand tint sets an instance apart from local
- entities. Informational — surfaces the source prefab's name (real tag data). */
-.inspector-prefab {
- display: flex;
- align-items: center;
- gap: 7px;
- padding: 6px 10px;
- background: var(--info-warm-soft);
- border-bottom: 1px solid var(--info-warm-line);
- font-size: var(--fs-xs);
- color: var(--text-dim);
- flex-shrink: 0;
-}
-.inspector-prefab__icon {
- display: grid;
- place-items: center;
- color: var(--info-warm);
- flex-shrink: 0;
-}
-.inspector-prefab__name {
- min-width: 0;
- color: var(--text-hi);
- font-weight: 500;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-/* Top inspector toolbar: compact "+ Add" button + inline search field. */
-.inspector-bar {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 6px 10px;
- border-bottom: 1px solid var(--line-soft);
- flex-shrink: 0;
-}
-/* Inspector field/component search (the Details filter). */
-.inspector-search {
- display: flex;
- align-items: center;
- gap: 6px;
- flex: 1;
- min-width: 0;
- height: 26px;
- padding: 0 8px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- color: var(--text-faint);
-}
-.inspector-search:focus-within {
- border-color: var(--star-line);
-}
-.inspector-search__input {
- flex: 1;
- min-width: 0;
- background: none;
- border: none;
- outline: none;
- color: var(--text-hi);
- font-size: var(--fs-sm);
-}
-.inspector-search__input::placeholder {
- color: var(--text-faint);
-}
-
-.cblock {
- border-bottom: 1px solid var(--line-soft);
+ align-items: flex-end;
+ pointer-events: none;
}
-.cblock__head {
+.toast {
display: flex;
align-items: center;
- gap: 7px;
- height: 28px;
- padding: 0 10px;
- background: var(--elevated);
- cursor: pointer;
- user-select: none;
-}
-.cblock__head:hover {
+ gap: 10px;
+ min-width: 200px;
+ max-width: 360px;
+ padding: 8px 10px 8px 12px;
background: var(--raised);
-}
-.cblock__twist {
- color: var(--text-dim);
- flex-shrink: 0;
- transition: transform 0.12s;
-}
-.cblock__twist.is-collapsed {
- transform: rotate(-90deg);
-}
-.cblock__enable {
- appearance: none;
- width: 14px;
- height: 14px;
border: 1px solid var(--line-strong);
- border-radius: var(--r-xs);
- background: var(--input);
- cursor: pointer;
- position: relative;
-}
-.cblock__enable:checked {
- background: var(--star);
- border-color: var(--star);
-}
-.cblock__enable:checked::after {
- content: '';
- position: absolute;
- left: 4px;
- top: 1px;
- width: 4px;
- height: 8px;
- border: solid var(--void);
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
-}
-/* Domain icon, tinted by component category (transform/render/physics/...).
- The hue is the component's identity — set inline from the derived category. */
-.cblock__icon {
- display: grid;
- place-items: center;
- width: 16px;
- flex-shrink: 0;
-}
-.cblock__name {
- flex: 1;
- font-size: var(--fs-sm);
- font-weight: 600;
- color: var(--text-hi);
-}
-/* OVERRIDE-style badge slot (prefab-instance component diverged from its asset).
- Styled now; rendered only once per-component override data is exposed. */
-.cblock__badge {
- flex-shrink: 0;
- padding: 1px 5px;
- font-size: 9px;
- font-weight: 700;
- letter-spacing: 0.5px;
- text-transform: uppercase;
- color: var(--star-hi);
- background: var(--srf-3);
- border: 1px solid var(--line);
- border-radius: var(--r-xs);
-}
-.cblock__more {
- color: var(--text-faint);
- display: grid;
- place-items: center;
- width: 22px;
- height: 22px;
- border-radius: var(--r-xs);
-}
-.cblock__more:hover {
- color: var(--text-hi);
- background: var(--hover);
-}
-.cblock__fields {
- padding: 6px 10px 10px;
- display: flex;
- flex-direction: column;
- gap: 5px;
-}
-
-.field {
- display: grid;
- grid-template-columns: 96px 1fr;
- align-items: center;
- gap: 8px;
- min-height: 24px;
-}
-.field__label {
- font-size: var(--fs-sm);
- color: var(--text-dim);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-/* Scalar rows scrub from the label: ew-resize hint + brighten on hover. */
-.field__label--scrub {
- cursor: ew-resize;
- user-select: none;
-}
-.field__label--scrub:hover {
- color: var(--text);
-}
-.field__control {
- min-width: 0;
-}
-
-.vec {
- display: grid;
- grid-auto-flow: column;
- grid-auto-columns: 1fr;
- gap: 5px;
-}
-/* Axis cell: a filled colored X/Y/Z tab butting a neutral numeric well. The tab
- carries the axis hue so a row scans by axis; the field stays neutral so the
- numbers themselves read clean. */
-.vec__axis {
- display: flex;
- align-items: stretch;
- background: var(--input);
- border: 1px solid var(--line);
+ border-left: 2px solid var(--star);
border-radius: var(--r-sm);
- overflow: hidden;
-}
-.vec__axis:focus-within {
- border-color: var(--star-line);
-}
-.vec__axis .num-wrap {
- flex: 1;
- min-width: 0;
- border: none;
- background: none;
- padding-right: 6px;
-}
-.vec__tab {
- display: grid;
- place-items: center;
- width: 17px;
- flex-shrink: 0;
- font-family: var(--font-mono);
- font-size: var(--fs-2xs);
- font-weight: 700;
- color: #fff;
- background: var(--srf-5);
- cursor: ew-resize; /* the tab IS the scrub handle (drag X/Y/Z to nudge) */
- user-select: none;
-}
-.vec__axis--x .vec__tab {
- background: var(--ax-x);
-}
-.vec__axis--y .vec__tab {
- background: var(--ax-y);
-}
-.vec__axis--z .vec__tab {
- background: var(--ax-z);
-}
-.vec .num {
- padding-left: 7px;
-}
-.num {
- width: 100%;
- min-width: 0;
- background: none;
- border: none;
- outline: none;
+ box-shadow: var(--shadow-pop);
color: var(--text-hi);
- font-family: var(--font-mono);
- font-size: var(--fs-xs);
- font-variant-numeric: tabular-nums;
- padding: 5px 7px;
-}
-.num-wrap {
- display: flex;
- align-items: center;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding-right: 8px;
-}
-.num-wrap:focus-within {
- border-color: var(--star-line);
-}
-.num--solo {
- background: none;
- border: none;
-}
-.num__unit {
- font-size: var(--fs-2xs);
- color: var(--text-faint);
+ font-size: var(--fs-sm);
+ pointer-events: auto;
+ animation: toast-in 0.16s ease-out;
}
-.slider {
- display: flex;
- align-items: center;
- gap: 8px;
-}
-.slider__track {
- position: relative;
- flex: 1;
- height: 4px;
- background: var(--input);
- border-radius: 3px;
-}
-.slider__fill {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- background: var(--star);
- border-radius: 3px;
-}
-.slider__knob {
- position: absolute;
- top: 50%;
- width: 11px;
- height: 11px;
- border-radius: 50%;
- background: var(--star-hi);
- transform: translate(-50%, -50%);
- box-shadow: 0 0 0 1px rgba(14, 15, 18, 0.6);
-}
-.num--mini {
- width: 44px;
- flex-shrink: 0;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- text-align: right;
-}
-
-.switch {
- width: 30px;
- height: 17px;
- border-radius: 999px;
- background: var(--input);
- border: 1px solid var(--line-strong);
- position: relative;
- transition: background 0.14s, border-color 0.14s;
-}
-.switch__thumb {
- position: absolute;
- top: 1px;
- left: 1px;
- width: 13px;
- height: 13px;
- border-radius: 50%;
- background: var(--text-faint);
- transition: transform 0.14s, background 0.14s;
-}
-.switch.is-on {
- background: var(--star-dim);
- border-color: var(--star-line);
-}
-.switch.is-on .switch__thumb {
- transform: translateX(13px);
- background: var(--star);
-}
-
-.select {
- display: flex;
- align-items: center;
- position: relative;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding-right: 7px;
-}
-.select:focus-within {
- border-color: var(--star-line);
-}
-.select select {
- appearance: none;
- flex: 1;
- min-width: 0;
- background: none;
- border: none;
- outline: none;
- color: var(--text-hi);
- font-size: var(--fs-sm);
- padding: 5px 7px;
- cursor: pointer;
-}
-.select svg {
- color: var(--text-faint);
- pointer-events: none;
-}
-
-.color {
- display: flex;
- align-items: center;
- gap: 8px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding: 4px 8px;
-}
-.color__swatch {
- width: 16px;
- height: 16px;
- border-radius: var(--r-xs);
- border: 1px solid rgba(255, 255, 255, 0.12);
-}
-.color__hex {
- font-size: var(--fs-xs);
- color: var(--text);
- text-transform: uppercase;
-}
-.color__picker {
- width: 22px;
- height: 18px;
- padding: 0;
- border: none;
- background: none;
- border-radius: var(--r-xs);
- cursor: pointer;
-}
-.color__picker::-webkit-color-swatch-wrapper {
- padding: 0;
-}
-.color__picker::-webkit-color-swatch {
- border: 1px solid rgba(255, 255, 255, 0.14);
- border-radius: var(--r-xs);
-}
-
-.asset-ref {
- display: flex;
- align-items: center;
- gap: 7px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding: 5px 8px;
- color: var(--star-hi);
-}
-.asset-ref__name {
- font-size: var(--fs-sm);
- color: var(--text-hi);
-}
-
-/* Inspector asset-ref control: thumbnail + name + clear; a drag-assign drop target. */
-.asset-field {
- display: flex;
- align-items: center;
- gap: 7px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding: 4px 6px;
- min-height: 28px;
-}
-.asset-field.is-over {
- border-color: var(--star-line);
- background: var(--star-soft, rgba(120, 160, 255, 0.1));
-}
-.asset-field__thumb {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 20px;
- height: 20px;
- flex-shrink: 0;
- border-radius: var(--r-xs);
- background: rgba(0, 0, 0, 0.25);
- color: var(--text-dim);
- overflow: hidden;
-}
-.asset-field__thumb img {
- width: 100%;
- height: 100%;
- object-fit: contain;
-}
-.asset-field__name {
- flex: 1;
- min-width: 0;
- font-size: var(--fs-sm);
- color: var(--text-hi);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-.asset-field__clear {
- flex-shrink: 0;
- width: 16px;
- height: 16px;
- line-height: 14px;
- border: none;
- border-radius: var(--r-xs);
- background: transparent;
- color: var(--text-dim);
- cursor: pointer;
-}
-.asset-field__clear:hover {
- background: rgba(255, 255, 255, 0.1);
- color: var(--text-hi);
-}
-
-.text-input {
- width: 100%;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- padding: 5px 8px;
- color: var(--text-hi);
- font-size: var(--fs-sm);
- outline: none;
-}
-.text-input:focus {
- border-color: var(--star-line);
-}
-
-.add-component {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- flex-shrink: 0;
- height: 26px;
- padding: 0 9px 0 8px;
- font-size: var(--fs-sm);
- font-weight: 600;
- white-space: nowrap;
- color: #f3f6f4;
- background: var(--create);
- border: 1px solid var(--create);
- border-radius: var(--r-sm);
-}
-.add-component:hover {
- background: var(--create-hi);
- border-color: var(--create-hi);
- color: #fff;
-}
-.add-component__caret {
- opacity: 0.75;
-}
-
-/* Add Component picker: search + category groups + icons, keyboard-nav. */
-.addcomp {
- position: fixed;
- z-index: 200;
- display: flex;
- flex-direction: column;
- background: var(--raised);
- border: 1px solid var(--line-strong);
- border-radius: var(--r-md);
- box-shadow: var(--shadow-pop);
- overflow: hidden;
-}
-.addcomp__search {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 7px 9px;
- border-bottom: 1px solid var(--line);
- color: var(--text-dim);
- flex-shrink: 0;
-}
-.addcomp__input {
- flex: 1;
- min-width: 0;
- background: transparent;
- border: none;
- outline: none;
- color: var(--text-hi);
- font-size: var(--fs-sm);
-}
-.addcomp__input::placeholder {
- color: var(--text-faint);
-}
-.addcomp__list {
- overflow-y: auto;
- padding: 4px;
-}
-.addcomp__cat {
- padding: 7px 8px 3px;
- font-size: var(--fs-2xs);
- font-weight: 600;
- letter-spacing: 0.06em;
- text-transform: uppercase;
- color: var(--text-faint);
-}
-.addcomp__item {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- height: 26px;
- padding: 0 8px;
- border-radius: var(--r-xs);
- color: var(--text);
- text-align: left;
-}
-.addcomp__item.is-active {
- background: var(--star-dim);
- color: var(--text-hi);
-}
-.addcomp__icon {
- display: flex;
- flex-shrink: 0;
- color: var(--text-dim);
-}
-.addcomp__item.is-active .addcomp__icon {
- color: var(--star-hi);
-}
-.addcomp__label {
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: var(--fs-sm);
-}
-.addcomp__empty {
- padding: 18px 12px;
- text-align: center;
- font-size: var(--fs-xs);
- color: var(--text-faint);
-}
-
-.inspector-note {
- margin: 10px 10px 0;
- padding: 8px 10px;
- font-size: var(--fs-2xs);
- color: var(--text-faint);
- background: var(--input);
- border: 1px dashed var(--line);
- border-radius: var(--r-sm);
- line-height: 1.5;
-}
-
-/* -------------------------------------------------------- content browser --- */
-.content__split {
- flex: 1;
- min-height: 0;
- display: grid;
- grid-template-columns: 160px 1fr;
-}
-.content__tree {
- border-right: 1px solid var(--line-soft);
- overflow: auto;
- padding: 4px;
-}
-.content__folder {
- display: flex;
- align-items: center;
- gap: 6px;
- height: 24px;
- min-width: 0;
- padding-right: 8px;
- border-radius: var(--r-sm);
- font-size: var(--fs-sm);
- color: var(--text);
-}
-.content__folder:hover {
- background: var(--hover);
-}
-.content__folder.is-active {
- background: var(--star-dim);
- color: var(--text-hi);
-}
-/* The twist + folder glyph keep their size; only the name takes the slack
- and truncates with an ellipsis (Sources tree — long names clip, full
- name shows on hover via the row's title). */
-.content__folder-twist,
-.content__folder > svg {
- flex-shrink: 0;
-}
-.content__folder-name {
- flex: 1;
- min-width: 0;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-.content__folder-twist {
- color: var(--text-faint);
- transition: transform 0.12s;
-}
-.content__folder-twist.is-open {
- transform: rotate(90deg);
-}
-.content__grid {
- overflow: auto;
- padding: 12px;
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
- gap: 10px;
- align-content: start;
-}
-.tile {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 6px;
- padding: 10px 4px 6px;
- border-radius: var(--r-md);
- border: 1px solid transparent;
-}
-.tile:hover {
- background: var(--hover);
- border-color: var(--line);
-}
-.tile:focus-visible {
- outline: none;
- background: var(--star-dim);
- border-color: var(--star-line);
-}
-.tile__thumb {
- display: grid;
- place-items: center;
- width: 100%;
- aspect-ratio: 1;
- background: var(--void);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- overflow: hidden;
-}
-.tile__img {
- width: 100%;
- height: 100%;
- object-fit: contain;
-}
-.tile__name {
- font-size: var(--fs-xs);
- color: var(--text);
- max-width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-.tile.is-selected {
- background: var(--star-dim);
- border-color: var(--star-line);
-}
-
-/* Navigation bar: back/forward/up + breadcrumb path. */
-.content__nav {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- gap: 3px;
- height: 28px;
- padding: 0 8px;
- border-bottom: 1px solid var(--line-soft);
-}
-.content__navbtn {
- display: grid;
- place-items: center;
- width: 22px;
- height: 22px;
- border-radius: var(--r-sm);
- color: var(--text-dim);
-}
-.content__navbtn:hover:not(:disabled) {
- background: var(--hover);
- color: var(--text);
-}
-.content__navbtn:disabled {
- opacity: 0.3;
-}
-.breadcrumb {
- display: flex;
- align-items: center;
- flex: 1;
- min-width: 0;
- margin-left: 4px;
- overflow: hidden;
-}
-.breadcrumb__item {
- display: inline-flex;
- align-items: center;
- min-width: 0;
-}
-.breadcrumb__sep {
- flex-shrink: 0;
- color: var(--text-faint);
- margin: 0 1px;
-}
-.breadcrumb__seg {
- padding: 2px 5px;
- border-radius: var(--r-sm);
- font-size: var(--fs-sm);
- color: var(--text-dim);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-}
-.breadcrumb__seg:hover {
- background: var(--hover);
- color: var(--text);
-}
-.breadcrumb__seg.is-current {
- color: var(--text-hi);
- font-weight: 500;
-}
-
-/* Thumbnail-size slider. */
-.content__size {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 0 4px;
- color: var(--text-faint);
-}
-.content__size input[type='range'] {
- width: 72px;
- accent-color: var(--star);
- cursor: ew-resize;
-}
-
-/* Always-visible type filter chip row (each chip toggles a type group). */
-.content__chips {
- display: flex;
- align-items: center;
- gap: 5px;
- flex-shrink: 0;
- padding: 6px 8px;
- border-bottom: 1px solid var(--line-soft);
- overflow-x: auto;
-}
-.content__chips::-webkit-scrollbar {
- height: 0;
-}
-.cchip {
- display: inline-flex;
- align-items: center;
- gap: 5px;
- flex-shrink: 0;
- height: 22px;
- padding: 0 10px;
- background: transparent;
- border: 1px solid var(--line);
- border-radius: 999px;
- color: var(--text-dim);
- font-size: var(--fs-xs);
-}
-.cchip:hover {
- color: var(--text);
- border-color: var(--line-strong);
-}
-.cchip.is-active {
- color: var(--text-hi);
- background: var(--star-dim);
- border-color: var(--star-line);
-}
-.cchip__dot {
- width: 6px;
- height: 6px;
- flex-shrink: 0;
- border-radius: 50%;
-}
-.content__path {
- flex-shrink: 0;
- padding: 5px 12px;
- border-top: 1px solid var(--line-soft);
- font-size: var(--fs-xs);
- color: var(--text-faint);
-}
-
-/* Tile corner badge (type code) + a type-hued bottom edge on the thumbnail, so
- a grid reads by type at a glance (Content Browser tiles). */
-.tile__thumb {
- position: relative;
-}
-.tile__edge {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- height: 2px;
- opacity: 0.9;
-}
-.tile__badge {
- position: absolute;
- right: 3px;
- bottom: 3px;
- height: 13px;
- padding: 0 3px;
- display: grid;
- place-items: center;
- font-family: var(--font-mono);
- font-size: 8px;
- font-weight: 700;
- letter-spacing: 0.03em;
- color: var(--text-dim);
- background: rgba(10, 10, 12, 0.82);
- border-radius: var(--r-xs);
-}
-
-/* Grid ⇄ list view toggle (segmented). */
-.content__viewtoggle {
- display: inline-flex;
- gap: 1px;
- padding: 2px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
-}
-.content__viewtoggle button {
- display: grid;
- place-items: center;
- width: 24px;
- height: 20px;
- border-radius: var(--r-xs);
- color: var(--text-dim);
-}
-.content__viewtoggle button:hover {
- color: var(--text-hi);
-}
-.content__viewtoggle button.is-active {
- background: var(--srf-4);
- color: var(--text-hi);
-}
-
-/* List view: compact rows (icon + name + type) instead of thumbnails. */
-.content__list {
- overflow: auto;
- padding: 4px;
-}
-.content__row {
- display: flex;
- align-items: center;
- gap: 8px;
- height: 26px;
- padding: 0 8px;
- border-radius: var(--r-sm);
- color: var(--text);
-}
-.content__row:hover {
- background: var(--hover);
-}
-.content__row.is-selected {
- background: var(--star-dim);
- color: var(--text-hi);
-}
-.content__row-name {
- flex: 1;
- min-width: 0;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- font-size: var(--fs-sm);
-}
-.content__row-type {
- flex-shrink: 0;
- font-size: var(--fs-2xs);
- font-family: var(--font-mono);
- color: var(--text-faint);
- text-transform: uppercase;
-}
-
-/* Selected-asset detail pane (right column of the browser). Shows only what we
- actually know — name, project path, type, and an image preview; no fabricated
- size/modified/reference stats (the fs layer doesn't expose them). */
-.content__detail {
- border-left: 1px solid var(--groove);
- background: var(--srf-2);
- display: flex;
- flex-direction: column;
- gap: 9px;
- padding: 12px;
- overflow: auto;
-}
-.content__detail-preview {
- width: 100%;
- aspect-ratio: 1;
- display: grid;
- place-items: center;
- background: var(--void);
- border: 1px solid var(--line);
- border-radius: var(--r-md);
- overflow: hidden;
- color: var(--text-dim);
-}
-.content__detail-preview img {
- width: 100%;
- height: 100%;
- object-fit: contain;
-}
-.content__detail-name {
- font-size: var(--fs-md);
- font-weight: 600;
- color: var(--text-hi);
- word-break: break-word;
-}
-.content__detail-meta {
- display: flex;
- flex-direction: column;
- gap: 5px;
-}
-.content__detail-row {
- display: flex;
- gap: 8px;
- font-size: var(--fs-xs);
-}
-.content__detail-key {
- flex-shrink: 0;
- width: 46px;
- color: var(--text-faint);
-}
-.content__detail-val {
- min-width: 0;
- color: var(--text);
- font-family: var(--font-mono);
- word-break: break-all;
-}
-.content__detail-type {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- color: var(--text);
- font-family: inherit;
- text-transform: capitalize;
-}
-.content__detail-actions {
- display: flex;
- flex-direction: column;
- gap: 6px;
- margin-top: 2px;
-}
-.content__detail-actions .btn-soft {
- width: 100%;
- justify-content: center;
-}
-.btn-soft.is-primary {
- color: var(--on-accent);
- background: var(--star);
- border-color: var(--star);
-}
-.btn-soft.is-primary:hover {
- color: var(--on-accent);
- background: var(--star-hi);
- border-color: var(--star-hi);
-}
-
-/* ------------------------------------------------------------ output log --- */
-.log__filters {
- display: flex;
- gap: 3px;
- flex: 1;
-}
-.pill {
- display: flex;
- align-items: center;
- gap: 5px;
- height: 24px;
- padding: 0 10px;
- font-size: var(--fs-xs);
- color: var(--text-dim);
- border-radius: 999px;
-}
-.pill:hover {
- color: var(--text-hi);
- background: var(--hover);
-}
-.pill.is-active {
- color: var(--text-hi);
- background: var(--input);
-}
-.dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
-}
-.dot--info {
- background: var(--star);
-}
-.dot--warn {
- background: var(--warn);
-}
-.dot--error {
- background: var(--error);
-}
-.log__tools {
- display: flex;
- gap: 2px;
-}
-.log__body {
- padding: 4px 0;
- font-size: var(--fs-xs);
- line-height: 1.7;
-}
-/* Log row: icon · time · source · message, with a 2px left severity bar (the
- Output Log convention) rather than a full-row tint — the bar scans without
- washing the text. Message hue still carries the level. */
-.logline {
- display: grid;
- grid-template-columns: 16px 64px 78px 1fr;
- gap: 10px;
- align-items: center;
- padding: 1px 12px 1px 14px;
- color: var(--text);
- position: relative;
-}
-.logline::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 2px;
- background: transparent;
-}
-.logline--warn::before {
- background: var(--warn);
-}
-.logline--error::before {
- background: var(--error);
-}
-.logline:hover {
- background: var(--hover);
-}
-.logline__icon {
- display: grid;
- place-items: center;
- color: var(--text-faint);
-}
-.logline--info .logline__icon {
- color: var(--text-dim);
-}
-.logline--success .logline__icon {
- color: var(--run);
-}
-.logline--warn .logline__icon {
- color: var(--warn);
-}
-.logline--error .logline__icon {
- color: var(--error);
-}
-.logline__time {
- color: var(--text-faint);
-}
-.logline__source {
- color: var(--text-dim);
-}
-.logline--warn .logline__msg {
- color: var(--warn);
-}
-.logline--error .logline__msg {
- color: var(--error);
-}
-.logline--success .logline__msg {
- color: var(--run);
-}
-.log__search {
- display: flex;
- align-items: center;
- gap: 5px;
- height: 24px;
- padding: 0 7px;
- background: var(--input);
- border: 1px solid var(--line);
- border-radius: var(--r-sm);
- color: var(--text-faint);
-}
-.log__search:focus-within {
- border-color: var(--star-line);
-}
-.log__search input {
- width: 110px;
- background: none;
- border: none;
- outline: none;
- color: var(--text-hi);
- font-size: var(--fs-xs);
-}
-.log__search input::placeholder {
- color: var(--text-faint);
-}
-.pill__badge {
- margin-left: 5px;
- padding: 0 4px;
- border-radius: 999px;
- background: var(--line-strong);
- color: var(--text);
- font-size: var(--fs-2xs);
- font-variant-numeric: tabular-nums;
-}
-.log__empty {
- padding: 16px 12px;
- color: var(--text-faint);
- font-size: var(--fs-xs);
-}
-
-/* ----------------------------------------------------------------- toasts --- */
-.toaster {
- position: fixed;
- right: 14px;
- bottom: 32px;
- z-index: 2000;
- display: flex;
- flex-direction: column;
- gap: 8px;
- align-items: flex-end;
- pointer-events: none;
-}
-.toast {
- display: flex;
- align-items: center;
- gap: 10px;
- min-width: 200px;
- max-width: 360px;
- padding: 8px 10px 8px 12px;
- background: var(--raised);
- border: 1px solid var(--line-strong);
- border-left: 2px solid var(--star);
- border-radius: var(--r-sm);
- box-shadow: var(--shadow-pop);
- color: var(--text-hi);
- font-size: var(--fs-sm);
- pointer-events: auto;
- animation: toast-in 0.16s ease-out;
-}
-.toast--success {
- border-left-color: var(--run);
-}
-.toast--warn {
- border-left-color: var(--warn);
-}
-.toast--error {
- border-left-color: var(--error);
-}
.toast__msg {
flex: 1;
}
diff --git a/desktop/src/theme/content.css b/desktop/src/theme/content.css
index d9aad05bd..357eeeac4 100644
--- a/desktop/src/theme/content.css
+++ b/desktop/src/theme/content.css
@@ -78,7 +78,7 @@
.asset.sel { outline: 2px solid var(--acc); }
.asset .th { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--r-md) var(--r-md) 0 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); overflow: hidden; background: var(--srf-4); }
.asset .th img { width: 100%; height: 100%; object-fit: cover; }
-.asset .th .badge { position: absolute; top: 5px; left: 5px; font-size: 8px; font-weight: 700; letter-spacing: 0.4px; padding: 1px 4px; border-radius: var(--r-xs); background: rgba(0, 0, 0, 0.5); color: #fff; font-family: var(--mono); }
+.asset .th .badge { position: absolute; top: 5px; left: 5px; font-size: var(--fs-3xs); font-weight: 700; letter-spacing: 0.4px; padding: 1px 4px; border-radius: var(--r-xs); background: rgba(0, 0, 0, 0.5); color: #fff; font-family: var(--mono); }
.asset .nm { display: flex; align-items: center; gap: 4px; padding: 6px 7px; font-size: var(--fs-xs); color: var(--text); background: var(--srf-3); border-radius: 0 0 var(--r-md) var(--r-md); border-top: 2px solid var(--tc, var(--text-mute)); }
.asset .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder .th { background: none; color: var(--cat-collision); }
@@ -104,7 +104,7 @@
.cb-prev .pv img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cb-dt { padding: 11px 13px; }
.cb-dt .an { font-size: var(--fs-md); font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; word-break: break-word; }
-.cb-dt .an .tg { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: var(--r-xs); color: #fff; flex-shrink: 0; font-family: var(--mono); }
+.cb-dt .an .tg { font-size: var(--fs-3xs); font-weight: 700; padding: 1px 5px; border-radius: var(--r-xs); color: #fff; flex-shrink: 0; font-family: var(--mono); }
.cb-dt .ap { font-size: var(--fs-2xs); color: var(--text-mute); font-family: var(--mono); margin-top: 3px; word-break: break-all; }
.cb-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 1px; }
.cb-mr { display: flex; align-items: center; height: 26px; font-size: var(--fs-sm); }
diff --git a/desktop/src/theme/inspector.css b/desktop/src/theme/inspector.css
index 7401ac3a9..f0de96968 100644
--- a/desktop/src/theme/inspector.css
+++ b/desktop/src/theme/inspector.css
@@ -110,7 +110,7 @@
.vec { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; flex: 1; min-width: 0; }
.vfield { height: 22px; display: flex; align-items: center; background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; min-width: 0; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.vfield:focus-within { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); }
-.ax { width: 16px; height: 100%; display: grid; place-items: center; font-size: 9px; font-weight: 700; font-family: var(--mono); color: #fff; cursor: ew-resize; flex-shrink: 0; font-style: normal; }
+.ax { width: 16px; height: 100%; display: grid; place-items: center; font-size: var(--fs-3xs); font-weight: 700; font-family: var(--mono); color: #fff; cursor: ew-resize; flex-shrink: 0; font-style: normal; }
.ax.x { background: var(--ax-x); }
.ax.y { background: var(--ax-y); }
.ax.z { background: var(--ax-z); }
@@ -251,7 +251,7 @@
.im-binding { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.im-in { background: var(--void); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 2px 5px; color: var(--text); font-size: var(--fs-xs); min-width: 0; }
.im-in.kind { flex-shrink: 0; }
-.im-in.num { width: 54px; }
+.im-in.num { width: 54px; font-family: var(--mono); }
.im-x { color: var(--text-mute); width: 18px; height: 18px; border-radius: var(--r-xs); flex-shrink: 0; line-height: 1; }
.im-x:hover { color: var(--error); }
.im-addb { align-self: flex-start; }
diff --git a/desktop/src/theme/menus.css b/desktop/src/theme/menus.css
index 40201f11b..ad2cf87e0 100644
--- a/desktop/src/theme/menus.css
+++ b/desktop/src/theme/menus.css
@@ -153,7 +153,7 @@
.build__plat:not(:disabled):hover { color: var(--text); border-color: var(--text-mute); }
.build__plat.on { color: #fff; background: var(--acc); border-color: var(--acc); }
.build__plat:disabled { opacity: 0.5; }
-.build__plat .soon { position: absolute; bottom: 5px; font-size: 8px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-mute); }
+.build__plat .soon { position: absolute; bottom: 5px; font-size: var(--fs-3xs); text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-mute); }
.build__row { display: flex; align-items: center; gap: 12px; }
.build__row .build__label { width: 92px; flex-shrink: 0; }
.build__seg { display: flex; gap: 1px; background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px; }
diff --git a/desktop/src/theme/sequencer.css b/desktop/src/theme/sequencer.css
index 9510585e4..ec2824637 100644
--- a/desktop/src/theme/sequencer.css
+++ b/desktop/src/theme/sequencer.css
@@ -111,7 +111,7 @@
.seq-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--border) 60%, transparent); }
.seq-tick.major { background: var(--border); }
.seq-tick__label {
- position: absolute; top: 3px; left: 3px; font-size: 9px;
+ position: absolute; top: 3px; left: 3px; font-size: var(--fs-3xs);
color: var(--text-mute); font-family: var(--mono);
}
.seq-scroll { flex: 1; position: relative; overflow-y: auto; cursor: ew-resize; }
@@ -190,7 +190,7 @@
background: var(--acc-hi); border-radius: 0 0 2px 2px; pointer-events: auto; cursor: ew-resize;
}
.seq-playhead__time {
- position: absolute; top: 1px; left: 7px; font-size: 9px; font-family: var(--mono);
+ position: absolute; top: 1px; left: 7px; font-size: var(--fs-3xs); font-family: var(--mono);
color: var(--acc-hi); white-space: nowrap;
}
@@ -200,7 +200,7 @@
.seq-curve__axis { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; }
.seq-curve__axis span {
position: absolute; left: 3px; transform: translateY(-50%);
- font-size: 9px; font-family: var(--mono); color: var(--text-mute);
+ font-size: var(--fs-3xs); font-family: var(--mono); color: var(--text-mute);
}
.seq-cpt {
position: absolute; width: 9px; height: 9px; transform: translate(-50%, -50%);
@@ -238,5 +238,5 @@
.seq-empty__steps li::before {
content: counter(step); display: inline-grid; place-items: center;
width: 15px; height: 15px; margin-right: 7px; border-radius: 50%;
- background: var(--srf-3); color: var(--text-dim); font-size: 9px; vertical-align: middle;
+ background: var(--srf-3); color: var(--text-dim); font-size: var(--fs-3xs); vertical-align: middle;
}
diff --git a/desktop/src/theme/tokens.css b/desktop/src/theme/tokens.css
index 276c64c16..2baa0b15c 100644
--- a/desktop/src/theme/tokens.css
+++ b/desktop/src/theme/tokens.css
@@ -98,6 +98,7 @@
--font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
+ --fs-3xs: 9px; /* micro-labels only: badges, axis tabs, ruler ticks (mono/uppercase) */
--fs-2xs: 10px;
--fs-xs: 11px;
--fs-sm: 12px;
diff --git a/desktop/src/theme/viewport.css b/desktop/src/theme/viewport.css
index 2120d8b2d..34dd53f1c 100644
--- a/desktop/src/theme/viewport.css
+++ b/desktop/src/theme/viewport.css
@@ -45,7 +45,7 @@
position: absolute;
bottom: -2px;
right: -2px;
- font-size: 8px;
+ font-size: var(--fs-3xs);
color: var(--text-mute);
background: var(--srf-3);
border: 1px solid var(--border-line);