dsh-talk-map 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client/client.js +357 -306
  2. package/package.json +1 -1
package/client/client.js CHANGED
@@ -130,12 +130,12 @@ var require_with_selector_production = __commonJS({
130
130
  }
131
131
  var objectIs = "function" === typeof Object.is ? Object.is : is;
132
132
  var useSyncExternalStore8 = shim.useSyncExternalStore;
133
- var useRef10 = React.useRef;
133
+ var useRef9 = React.useRef;
134
134
  var useEffect14 = React.useEffect;
135
135
  var useMemo5 = React.useMemo;
136
136
  var useDebugValue2 = React.useDebugValue;
137
137
  exports.useSyncExternalStoreWithSelector = function(subscribe2, getSnapshot2, getServerSnapshot, selector, isEqual) {
138
- var instRef = useRef10(null);
138
+ var instRef = useRef9(null);
139
139
  if (null === instRef.current) {
140
140
  var inst = { hasValue: false, value: null };
141
141
  instRef.current = inst;
@@ -498,7 +498,7 @@ var zh = {
498
498
  "digest.empty": "这条对话还没有摘要,先刷新摘要再来看。",
499
499
  "digest.copy": "复制",
500
500
  "digest.close": "关闭",
501
- "global.searchPlaceholder": "b202 · 搜地图上的卡片(标题/正文)",
501
+ "global.searchPlaceholder": "b203 · 搜地图上的卡片(标题/正文)",
502
502
  "global.searchRun": "搜索",
503
503
  "global.searchTitle": "搜索地图",
504
504
  "font.group": "文字大小",
@@ -691,7 +691,7 @@ var en = {
691
691
  "menu.noGroup": "Remove from group (free card)",
692
692
  "menu.open": "Open conversation",
693
693
  "menu.markUnread": "Mark as unread",
694
- "global.searchPlaceholder": "b202 · Search cards on the map",
694
+ "global.searchPlaceholder": "b203 · Search cards on the map",
695
695
  "global.searchRun": "Search",
696
696
  "global.searchTitle": "Search the map",
697
697
  "font.group": "Text size",
@@ -867,12 +867,12 @@ var canvas = {
867
867
  ensureLoaded() {
868
868
  if (state.phase === "loading" || state.phase === "ready") return;
869
869
  setState({ phase: "loading", error: void 0 });
870
- const timer4 = setTimeout(() => {
870
+ const timer5 = setTimeout(() => {
871
871
  if (state.phase !== "loading") return;
872
872
  setState({ phase: "error", error: "timeout" });
873
873
  }, 12e3);
874
874
  talkMapApi.getState().then((payload) => {
875
- clearTimeout(timer4);
875
+ clearTimeout(timer5);
876
876
  setState({
877
877
  phase: "ready",
878
878
  cards: payload.cards,
@@ -881,7 +881,7 @@ var canvas = {
881
881
  global: payload.global
882
882
  });
883
883
  }).catch((error) => {
884
- clearTimeout(timer4);
884
+ clearTimeout(timer5);
885
885
  setState({ phase: "error", error: String(error) });
886
886
  });
887
887
  },
@@ -1339,238 +1339,6 @@ function allCards() {
1339
1339
  // src/client/MapOverlay.tsx
1340
1340
  var import_react15 = require("react");
1341
1341
 
1342
- // src/client/liquid-glass.ts
1343
- function squircleSurface(t2) {
1344
- return Math.pow(1 - Math.pow(1 - t2, 4), 0.25);
1345
- }
1346
- function refractionProfile(thickness, bezelWidth, ior, samples = 128) {
1347
- const eta = 1 / ior;
1348
- const profile = new Float64Array(samples);
1349
- for (let index2 = 0; index2 < samples; index2 += 1) {
1350
- const x = index2 / samples;
1351
- const y = squircleSurface(x);
1352
- const dx = x < 1 ? 1e-4 : -1e-4;
1353
- const slope = (squircleSurface(x + dx) - y) / dx;
1354
- const magnitude = Math.sqrt(slope * slope + 1);
1355
- const nx = -slope / magnitude;
1356
- const ny = -1 / magnitude;
1357
- const k = 1 - eta * eta * (1 - ny * ny);
1358
- if (k < 0) {
1359
- profile[index2] = 0;
1360
- continue;
1361
- }
1362
- const sq = Math.sqrt(k);
1363
- const rx = -(eta * ny + sq) * nx;
1364
- const ry = eta - (eta * ny + sq) * ny;
1365
- profile[index2] = ry === 0 ? 0 : rx * ((y * bezelWidth + thickness) / ry);
1366
- }
1367
- return profile;
1368
- }
1369
- function displacementMap(geometry, profile) {
1370
- const { width, height, radius, bezel } = geometry;
1371
- const canvas2 = document.createElement("canvas");
1372
- canvas2.width = width;
1373
- canvas2.height = height;
1374
- const context = canvas2.getContext("2d");
1375
- if (context === null) return "";
1376
- const image = context.createImageData(width, height);
1377
- const data = image.data;
1378
- for (let index2 = 0; index2 < data.length; index2 += 4) {
1379
- data[index2] = 128;
1380
- data[index2 + 1] = 128;
1381
- data[index2 + 2] = 0;
1382
- data[index2 + 3] = 255;
1383
- }
1384
- const r = Math.min(radius, Math.min(width, height) / 2 - 1);
1385
- if (r <= 0) return canvas2.toDataURL();
1386
- const clampedBezel = Math.min(bezel, r - 1);
1387
- if (clampedBezel <= 1) return canvas2.toDataURL();
1388
- const rSq = r * r;
1389
- const r1Sq = (r + 1) * (r + 1);
1390
- const inner = Math.max(r - clampedBezel, 0);
1391
- const rBSq = inner * inner;
1392
- const straightW = width - r * 2;
1393
- const straightH = height - r * 2;
1394
- const samples = profile.length;
1395
- if (straightW < 0 || straightH < 0) return canvas2.toDataURL();
1396
- let maxDisp = 1;
1397
- for (let index2 = 0; index2 < samples; index2 += 1) maxDisp = Math.max(maxDisp, Math.abs(profile[index2]));
1398
- for (let y = 0; y < height; y += 1) {
1399
- for (let x = 0; x < width; x += 1) {
1400
- let dx;
1401
- if (x < r) dx = x - r;
1402
- else if (x >= width - r) dx = x - r - straightW;
1403
- else dx = 0;
1404
- let dy;
1405
- if (y < r) dy = y - r;
1406
- else if (y >= height - r) dy = y - r - straightH;
1407
- else dy = 0;
1408
- const distanceSq = dx * dx + dy * dy;
1409
- if (distanceSq > r1Sq || distanceSq < rBSq) continue;
1410
- const distance2 = Math.sqrt(distanceSq);
1411
- const fromSide = r - distance2;
1412
- const opacity = distanceSq < rSq ? 1 : 1 - (distance2 - Math.sqrt(rSq)) / (Math.sqrt(r1Sq) - Math.sqrt(rSq));
1413
- if (opacity <= 0 || distance2 === 0) continue;
1414
- const cos = dx / distance2;
1415
- const sin = dy / distance2;
1416
- const bin = Math.min(Math.floor(fromSide / clampedBezel * samples), samples - 1);
1417
- const displacement = profile[bin] || 0;
1418
- const offsetX = -cos * displacement / maxDisp;
1419
- const offsetY = -sin * displacement / maxDisp;
1420
- const pixel = (y * width + x) * 4;
1421
- data[pixel] = Math.min(255, Math.max(0, 128 + offsetX * 127 * opacity + 0.5 | 0));
1422
- data[pixel + 1] = Math.min(255, Math.max(0, 128 + offsetY * 127 * opacity + 0.5 | 0));
1423
- }
1424
- }
1425
- context.putImageData(image, 0, 0);
1426
- return canvas2.toDataURL();
1427
- }
1428
- function specularMap(geometry, angle = Math.PI / 3) {
1429
- const { width, height, radius, bezel } = geometry;
1430
- const canvas2 = document.createElement("canvas");
1431
- canvas2.width = width;
1432
- canvas2.height = height;
1433
- const context = canvas2.getContext("2d");
1434
- if (context === null) return "";
1435
- const image = context.createImageData(width, height);
1436
- const data = image.data;
1437
- const r = Math.min(radius, Math.min(width, height) / 2 - 1);
1438
- if (r <= 0) return canvas2.toDataURL();
1439
- const clampedBezel = Math.min(bezel, r - 1);
1440
- if (clampedBezel <= 1) return canvas2.toDataURL();
1441
- const rSq = r * r;
1442
- const r1Sq = (r + 1) * (r + 1);
1443
- const inner = Math.max(r - clampedBezel, 0);
1444
- const rBSq = inner * inner;
1445
- const straightW = width - r * 2;
1446
- const straightH = height - r * 2;
1447
- const lightX = Math.cos(angle);
1448
- const lightY = Math.sin(angle);
1449
- for (let y = 0; y < height; y += 1) {
1450
- for (let x = 0; x < width; x += 1) {
1451
- let dx;
1452
- if (x < r) dx = x - r;
1453
- else if (x >= width - r) dx = x - r - straightW;
1454
- else dx = 0;
1455
- let dy;
1456
- if (y < r) dy = y - r;
1457
- else if (y >= height - r) dy = y - r - straightH;
1458
- else dy = 0;
1459
- const distanceSq = dx * dx + dy * dy;
1460
- if (distanceSq > r1Sq || distanceSq < rBSq) continue;
1461
- const distance2 = Math.sqrt(distanceSq);
1462
- const fromSide = r - distance2;
1463
- const opacity = distanceSq < rSq ? 1 : 1 - (distance2 - Math.sqrt(rSq)) / (Math.sqrt(r1Sq) - Math.sqrt(rSq));
1464
- if (opacity <= 0 || distance2 === 0) continue;
1465
- const cos = dx / distance2;
1466
- const sin = -dy / distance2;
1467
- const dot = Math.abs(cos * lightX + sin * lightY);
1468
- const edge = Math.sqrt(Math.max(0, 1 - Math.pow(1 - fromSide, 2)));
1469
- const coefficient = dot * edge;
1470
- const value = 255 * coefficient | 0;
1471
- const alpha = Math.min(255, Math.max(0, value * coefficient * opacity * 0.85 | 0));
1472
- const pixel = (y * width + x) * 4;
1473
- data[pixel] = value;
1474
- data[pixel + 1] = value;
1475
- data[pixel + 2] = value;
1476
- data[pixel + 3] = alpha;
1477
- }
1478
- }
1479
- context.putImageData(image, 0, 0);
1480
- return canvas2.toDataURL();
1481
- }
1482
- function filterMarkup(id2, geometry, displacementUrl, specularUrl, scale, specularOpacity) {
1483
- const { width, height } = geometry;
1484
- const parts = [
1485
- `<filter id="${id2}" x="0" y="0" width="${width}" height="${height}" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">`,
1486
- `<feImage href="${displacementUrl}" x="0" y="0" width="${width}" height="${height}" result="disp" preserveAspectRatio="none"/>`,
1487
- `<feDisplacementMap in="SourceGraphic" in2="disp" scale="${scale.toFixed(2)}" xChannelSelector="R" yChannelSelector="G" result="bent"/>`
1488
- ];
1489
- if (specularUrl !== "") {
1490
- parts.push(
1491
- `<feImage href="${specularUrl}" x="0" y="0" width="${width}" height="${height}" result="spec" preserveAspectRatio="none"/>`,
1492
- `<feComposite in="bent" in2="spec" operator="in" result="specMasked"/>`,
1493
- `<feComponentTransfer in="spec" result="specFaded"><feFuncA type="linear" slope="${specularOpacity.toFixed(2)}"/></feComponentTransfer>`,
1494
- `<feBlend in="specMasked" in2="bent" mode="screen" result="withSpec"/>`,
1495
- `<feBlend in="specFaded" in2="withSpec" mode="screen"/>`
1496
- );
1497
- } else {
1498
- parts.push('<feBlend in="bent" in2="bent" mode="normal"/>');
1499
- }
1500
- parts.push("</filter>");
1501
- return parts.join("");
1502
- }
1503
- var FILTER_ID = "dsh-talk-map-liquid-glass";
1504
- var SVG_ID = "dsh-talk-map-liquid-glass-svg";
1505
- function supportsRefraction() {
1506
- if (typeof CSS === "undefined" || typeof CSS.supports !== "function") return false;
1507
- return CSS.supports("backdrop-filter", `url(#${FILTER_ID})`) || CSS.supports("-webkit-backdrop-filter", `url(#${FILTER_ID})`);
1508
- }
1509
- function installLiquidGlass(element, options = {}) {
1510
- const radius = options.radius ?? 22;
1511
- const bezel = options.bezel ?? 26;
1512
- const thickness = options.thickness ?? 90;
1513
- const ior = options.ior ?? 2.4;
1514
- const scale = options.scale ?? 58;
1515
- const specular = options.specular ?? 0.42;
1516
- const blur = options.blur ?? 0;
1517
- if (!supportsRefraction()) {
1518
- element.style.setProperty("backdrop-filter", "blur(14px) saturate(1.6)");
1519
- element.style.setProperty("-webkit-backdrop-filter", "blur(14px) saturate(1.6)");
1520
- return () => {
1521
- element.style.removeProperty("backdrop-filter");
1522
- element.style.removeProperty("-webkit-backdrop-filter");
1523
- };
1524
- }
1525
- let svg;
1526
- let frame2 = 0;
1527
- const disposeSvg = () => {
1528
- svg?.remove();
1529
- svg = void 0;
1530
- };
1531
- const rebuild = () => {
1532
- const rect = element.getBoundingClientRect();
1533
- const width = Math.max(2, Math.round(rect.width));
1534
- const height = Math.max(2, Math.round(rect.height));
1535
- if (width < 8 || height < 8) return;
1536
- const geometry = { width, height, radius, bezel };
1537
- const profile = refractionProfile(thickness, bezel, ior);
1538
- const displacementUrl = displacementMap(geometry, profile);
1539
- if (displacementUrl === "") return;
1540
- const specularUrl = specular > 0 ? specularMap(geometry) : "";
1541
- disposeSvg();
1542
- svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
1543
- svg.setAttribute("id", SVG_ID);
1544
- svg.setAttribute("width", "0");
1545
- svg.setAttribute("height", "0");
1546
- svg.setAttribute("style", "position:absolute;overflow:hidden;pointer-events:none");
1547
- svg.setAttribute("color-interpolation-filters", "sRGB");
1548
- svg.innerHTML = `<defs>${filterMarkup(FILTER_ID, geometry, displacementUrl, specularUrl, scale, specular)}</defs>`;
1549
- document.body.append(svg);
1550
- const filters = [`url(#${FILTER_ID})`];
1551
- if (blur > 0.5) filters.push(`blur(${blur.toFixed(1)}px)`);
1552
- element.style.setProperty("backdrop-filter", filters.join(" "));
1553
- element.style.setProperty("-webkit-backdrop-filter", filters.join(" "));
1554
- };
1555
- const schedule = () => {
1556
- if (frame2 !== 0) cancelAnimationFrame(frame2);
1557
- frame2 = requestAnimationFrame(() => {
1558
- frame2 = 0;
1559
- rebuild();
1560
- });
1561
- };
1562
- const observer = new ResizeObserver(schedule);
1563
- observer.observe(element);
1564
- rebuild();
1565
- return () => {
1566
- observer.disconnect();
1567
- if (frame2 !== 0) cancelAnimationFrame(frame2);
1568
- disposeSvg();
1569
- element.style.removeProperty("backdrop-filter");
1570
- element.style.removeProperty("-webkit-backdrop-filter");
1571
- };
1572
- }
1573
-
1574
1342
  // src/client/font-scale.ts
1575
1343
  var STORAGE_KEY = "dsh.talk-map.font-step";
1576
1344
  var MIN = -3;
@@ -1687,7 +1455,7 @@ function cleanSnippet(raw, query) {
1687
1455
 
1688
1456
  // dsh-css:dsh-css:src/client/talk-map.module.css
1689
1457
  var __tagId = "dsh-talk-map/talk-map.module.css";
1690
- var __css = `.tm_toggleButton { display: flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_toggleButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleButtonActive { background: var(--dsw-alias-interactive-bg-active); color: var(--dsw-alias-brand-primary); } .tm_toggleRow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; box-sizing: border-box; padding: 9px 12px; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); cursor: pointer; text-align: left; } .tm_toggleRow:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleLabel { white-space: nowrap; } .tm_toggleIcon { width: 18px; height: 18px; flex: none; } .tm_panel { height: 100%; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); } .tm_header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); flex: none; } .tm_backButton { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 18px 0 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; line-height: 1; cursor: pointer; } .tm_backButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_globalSearch { position: relative; display: flex; align-items: center; gap: 6px; margin-right: 8px; } .tm_globalSearchInput { width: 200px; font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 9px; outline: none; } .tm_globalSearchInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_globalSearchButton { font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_globalSearchButton:hover { color: var(--dsw-alias-label-primary); } .tm_globalSearchBackdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; } .tm_globalSearchPanel { width: min(980px, 92vw); max-height: 76vh; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); overflow: hidden; } .tm_globalSearchHead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_globalSearchTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_globalSearchBody { padding: 0 16px 14px; overflow-y: auto; overscroll-behavior: contain; } .tm_searchInlineLoading { display: flex; align-items: center; padding: 4px 0 2px 10px; } .tm_searchInlineLoading > span { width: 62%; } .tm_drawerScrollSensor { width: 100%; height: 1px; opacity: 0; } .tm_fontGroup { display: flex; align-items: center; gap: 4px; margin-right: 6px; } .tm_fontButton { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 46px; height: 28px; padding: 0 8px; line-height: 1; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_fontButton:hover:not(:disabled) { color: var(--dsw-alias-label-primary); border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_fontButton:disabled { opacity: 0.4; cursor: default; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { display: inline-block; width: calc(9px + 0px); text-align: center; line-height: 1; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_fontSign { display: inline-block; font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1; transform: translateY(-3px); } .tm_fontReset { min-width: 50px; } .tm_fontReset { min-width: 44px; } .tm_headerSpace { flex: 1; } .tm_langButton { flex: none; min-width: 72px; height: 34px; padding: 0 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_langButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_closeButton { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_closeButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_zoomResetLabel { font-size: calc(9px + var(--tm-font-step, 0px)); font-weight: 700; letter-spacing: -0.5px; } .tm_canvas { flex: 1; min-height: 0; position: relative; } @media (prefers-reduced-motion: reduce) { .tm_canvas .react-flow__edge circle { opacity: 0.28; } } .tm_canvas .react-flow__node { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.25, 1); } .tm_canvas .react-flow__node.dragging, .tm_canvas .react-flow__node.tmDragging { transition: none; } .tm_canvas .react-flow__nodesselection, .tm_canvas .react-flow__nodesselection-rect { display: none !important; pointer-events: none !important; } .tm_card { position: relative; width: 224px; min-height: 104px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); box-shadow: 0 1px 3px var(--dsw-alias-bg-mask-1); font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_cardSelected { border-color: var(--dsw-alias-brand-primary); } .tm_cardGhost { opacity: 0.55; border-style: dashed; } .tm_cardTop { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_cardTitle { font-weight: 600; font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_runningDot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: tm_talkmap-pulse 1.6s ease-in-out infinite; } @keyframes tm_talkmap-pulse { 50% { opacity: 0.35; } } .tm_cardNext { display: flex; align-items: baseline; gap: 6px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); min-width: 0; } .tm_cardNextLabel { flex: none; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-brand-primary); font-weight: 600; } .tm_cardNextText { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tm_cardStale { flex: none; color: var(--dsw-alias-state-warn-primary); font-size: calc(12px + var(--tm-font-step, 0px)); } .tm_cardFooter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_cardTime { flex: none; } .tm_cardChip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); font-weight: 600; white-space: nowrap; border: 1px solid transparent; } .tm_cardChipRunning { color: #ffffff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); } .tm_cardChipWaiting { color: rgb(245, 178, 46); background: rgba(245, 178, 46, 0.14); border-color: rgba(245, 178, 46, 0.42); } .tm_cardChipDone { color: rgb(52, 199, 89); background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.42); } .tm_cardChipError { color: rgb(242, 78, 78); background: rgba(242, 78, 78, 0.14); border-color: rgba(242, 78, 78, 0.45); } .tm_cardChipDraft { color: rgb(255, 197, 61); background: rgba(255, 197, 61, 0.18); border-color: rgba(255, 197, 61, 0.5); } .tm_cardChipInterrupted { color: rgb(214, 158, 92); background: rgba(214, 158, 92, 0.14); border-color: rgba(214, 158, 92, 0.42); } .tm_cardSummary { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.45; color: var(--dsw-alias-label-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_cardBadgeWaiting { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-warn-label); background: var(--dsw-alias-state-warn-tertiary); } .tm_cardBadgeDone { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-success-primary); background: var(--dsw-alias-state-success-tertiary); } .tm_cardLampRunning { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 16px 2px rgba(255, 255, 255, 0.2), 0 0 40px 9px rgba(255, 255, 255, 0.1); } .tm_dialogBackdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); animation: tm_tmFadeIn 140ms ease-out; } .tm_digestDialog { width: min(720px, 86vw); max-height: 82vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-radius: 14px; background: var(--dsw-alias-bg-elevated, #232323); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: tm_tmRiseIn 200ms cubic-bezier(0.16, 1, 0.3, 1); } .tm_digestDialogHead { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .tm_digestDialogTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_digestDialogFrom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestLabel { margin-top: 4px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary, rgba(255, 255, 255, 0.5)); } .tm_digestText { width: 100%; min-height: 96px; max-height: 30vh; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--dsw-alias-label-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: calc(11.5px + var(--tm-font-step, 0px)); line-height: 1.62; resize: none; } .tm_digestEmpty { padding: 18px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .tm_renameBackdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.42); display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; } .tm_renameDialog { width: min(420px, 90vw); background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .tm_renameHeading { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_renameInput { width: 100%; box-sizing: border-box; font: inherit; font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 8px 10px; outline: none; } .tm_renameInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.35)); } .tm_renameError { font-size: calc(12px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_renameActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_renameButton { font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 12px; cursor: pointer; } .tm_renameButton:hover { color: var(--dsw-alias-label-primary); } .tm_renamePrimary { color: #0b0b0c; background: rgb(255, 214, 106); border-color: rgb(255, 214, 106); } .tm_renamePrimary:disabled { opacity: 0.5; cursor: default; } .tm_cardPin { display: inline-flex; align-items: center; flex: none; color: rgb(255, 214, 106); filter: drop-shadow(0 0 5px rgba(255, 214, 106, 0.85)); animation: tm_talkmap-pin-glow 2.6s ease-in-out infinite; } @keyframes tm_talkmap-pin-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 106, 0.6)); opacity: 0.92; } 50% { filter: drop-shadow(0 0 9px rgba(255, 214, 106, 1)); opacity: 1; } } .tm_cardReticle { position: absolute; inset: -5px; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); } .tm_cardReticle i { position: absolute; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.9); } .tm_cardReticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; } .tm_cardReticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; } .tm_cardReticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; } .tm_cardReticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; } .tm_cardQuiet { opacity: 0.62; transition: opacity 140ms ease; } .tm_cardQuiet:hover { opacity: 1; } .tm_stackBadgeBusy { color: rgb(255, 197, 61); border-color: rgba(255, 197, 61, 0.5); } @property --tm-ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; } .tm_cardLampRunning::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; padding: 2px; background: conic-gradient( from var(--tm-ring-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 190deg, rgba(255, 255, 255, 0.18) 250deg, rgba(255, 255, 255, 0.55) 292deg, rgba(255, 255, 255, 1) 325deg, rgba(255, 255, 255, 0.4) 352deg, rgba(255, 255, 255, 0) 360deg ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tm_talkmap-ring-sweep 1.8s linear infinite; pointer-events: none; } @keyframes tm_talkmap-ring-sweep { to { --tm-ring-angle: 360deg; } } .tm_cardLampDone { animation: tm_talkmap-lamp-green 2.8s ease-in-out infinite; } .tm_cardLampError { animation: tm_talkmap-lamp-red 1.9s ease-in-out infinite; } .tm_cardLampWaiting { animation: tm_talkmap-lamp-amber 3.4s ease-in-out infinite; } @keyframes tm_talkmap-lamp-green { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.40), 0 0 14px 1px rgba(52, 199, 89, 0.26), 0 0 34px 8px rgba(52, 199, 89, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.72), 0 0 24px 5px rgba(52, 199, 89, 0.46), 0 0 62px 20px rgba(52, 199, 89, 0.22); } } @keyframes tm_talkmap-lamp-amber { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.42), 0 0 14px 1px rgba(245, 178, 46, 0.24), 0 0 34px 8px rgba(245, 178, 46, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.72), 0 0 24px 5px rgba(245, 178, 46, 0.44), 0 0 60px 19px rgba(245, 178, 46, 0.20); } } @keyframes tm_talkmap-lamp-red { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.46), 0 0 14px 1px rgba(242, 78, 78, 0.28), 0 0 34px 8px rgba(242, 78, 78, 0.12); } 50% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.80), 0 0 26px 6px rgba(242, 78, 78, 0.52), 0 0 66px 22px rgba(242, 78, 78, 0.26); } } .tm_cardRemove { align-self: flex-start; padding: 3px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_cardRemove:hover { background: var(--dsw-alias-interactive-bg-hover-danger); color: var(--dsw-alias-state-error-primary); } .tm_cardHandle { width: 10px; height: 10px; background: var(--dsw-alias-border-l3); border: 2px solid var(--dsw-alias-bg-layer-1); opacity: 0; } .tm_card:hover .tm_cardHandle, .tm_canvasConnecting .tm_cardHandle { opacity: 1; } .tm_cardHandle:hover { background: var(--dsw-alias-brand-primary); } .tm_cardRefresh { flex: none; margin-left: auto; width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-tertiary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; opacity: 0; transition: opacity 120ms ease; } .tm_card:hover .tm_cardRefresh { opacity: 1; } .tm_cardRefresh:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_cardRefreshBusy { opacity: 1; animation: tm_talkmap-spin 1s linear infinite; } @keyframes tm_talkmap-spin { to { transform: rotate(360deg); } } .tm_spawnPanel { position: absolute; right: 24px; top: 24px; z-index: 6; width: 420px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_spawnHeading { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_spawnFrom { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_spawnModes { display: flex; gap: 6px; } .tm_spawnModeBtn { flex: 1; padding: 5px 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnModeBtn:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_spawnModeActive { border-color: var(--dsw-alias-brand-primary); color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-active); } .tm_spawnHint { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_spawnTextarea { width: 100%; resize: vertical; min-height: 140px; padding: 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.5; font-family: inherit; } .tm_spawnError { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_spawnActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_spawnBtnPrimary { padding: 6px 16px; border: none; border-radius: 8px; background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnPrimary:hover { background: var(--dsw-alias-button-primary-hover); } .tm_spawnBtnPrimary:disabled { background: var(--dsw-alias-button-primary-dimmed); cursor: default; } .tm_spawnBtnGhost { padding: 6px 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnGhost:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_wsFrame { position: relative; box-sizing: border-box; border: 1.5px dashed var(--dsw-alias-border-l2); border-radius: 16px; background: transparent; } .tm_wsFrameBlocked { border-color: rgb(242, 78, 78) !important; box-shadow: 0 0 0 1px rgba(242, 78, 78, 0.45) inset; } .tm_wsFrameSelected { border-style: solid; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameLabel { position: absolute; top: -12px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); font-size: calc(12px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); white-space: nowrap; pointer-events: auto; cursor: grab; z-index: 5; } .tm_wsFrameLabel:active { cursor: grabbing; } .tm_wsFrameEdge { position: absolute; pointer-events: auto; cursor: grab; } .tm_wsFrameEdge:active { cursor: grabbing; } .tm_wsFrameCount { font-weight: 400; color: var(--dsw-alias-label-tertiary); } .tm_menu { position: absolute; z-index: 60; min-width: 200px; max-width: 280px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_menuTitle { flex: none; padding: 4px 10px 6px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuSearch { flex: none; box-sizing: border-box; width: calc(100% - 8px); margin: 2px 4px 6px; padding: 5px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); font-family: inherit; } .tm_menuHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-dimmed); } .tm_menuPreview { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); word-break: break-all; } .tm_menuError { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_menuEmpty { padding: 8px 10px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuItem { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border: none; border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_menuIcon { flex: none; width: 14px; height: 14px; color: var(--dsw-alias-label-secondary); } .tm_menuItemDanger { color: rgb(242, 78, 78); } .tm_menuItemDanger .tm_menuIcon { color: rgb(242, 78, 78); } .tm_menuItem:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_menuItem:disabled { color: var(--dsw-alias-label-dimmed); cursor: default; } .tm_wsFrameHidden { font-weight: 400; color: var(--dsw-alias-state-warn-primary); } .tm_emptyHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); pointer-events: none; z-index: 4; } .tm_toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 8; max-width: 70%; padding: 7px 16px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 4px 16px var(--dsw-alias-bg-mask-2); font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_stackCell { position: relative; width: 224px; height: 104px; cursor: pointer; } .tm_stackSheetBack, .tm_stackSheetMid { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); } .tm_stackSheetBack { transform: translate(11px, 11px) scale(0.95); opacity: 0.35; } .tm_stackSheetMid { transform: translate(5px, 5px) scale(0.977); opacity: 0.6; } .tm_stackFace { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); transition: border-color 140ms ease, transform 140ms ease; } .tm_stackCell:hover .tm_stackFace { border-color: var(--dsw-alias-brand-primary); transform: translateY(-1px); } .tm_stackFaceTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .tm_stackBadge { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); color: var(--dsw-alias-label-secondary); font-size: calc(11px + var(--tm-font-step, 0px)); font-variant-numeric: tabular-nums; } .tm_drawerBackdrop { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dsw-alias-bg-mask-2); } .tm_drawer { width: min(1120px, 94%); max-height: 84%; box-sizing: border-box; display: flex; flex-direction: column; border: 1px solid var(--dsw-alias-border-l1); border-radius: 16px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 18px 48px var(--dsw-alias-bg-mask-2); overflow: hidden; } .tm_drawerHead { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); } .tm_drawerTitle { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_drawerCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerSpace { flex: 1; } .tm_drawerHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerClose { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(16px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; } .tm_drawerClose:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_drawerHits > .tm_drawerHit { animation: tm_tmPopIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerHits > .tm_drawerHit:nth-child(1) { animation-delay: 20ms; } .tm_drawerHits > .tm_drawerHit:nth-child(2) { animation-delay: 34ms; } .tm_drawerHits > .tm_drawerHit:nth-child(3) { animation-delay: 48ms; } .tm_drawerHits > .tm_drawerHit:nth-child(4) { animation-delay: 62ms; } .tm_drawerHits > .tm_drawerHit:nth-child(5) { animation-delay: 76ms; } .tm_drawerHits > .tm_drawerHit:nth-child(n+6) { animation-delay: 90ms; } .tm_searchLoading { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 2px; } .tm_searchLoadingBar { position: relative; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.07); } .tm_searchLoadingBar > i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--dsw-alias-brand-primary), transparent); animation: tm_tmSlideBar 1150ms cubic-bezier(0.4, 0, 0.2, 1) infinite; } @keyframes tm_tmSlideBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } } .tm_searchSkeletonRow { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; } .tm_searchSkeletonTitle, .tm_searchSkeletonLine { display: block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 220% 100%; animation: tm_tmShimmer 1300ms ease-in-out infinite; } .tm_searchSkeletonTitle { width: 38%; } .tm_searchSkeletonLine { width: 78%; } @keyframes tm_tmShimmer { 0% { background-position: 120% 0; } 100% { background-position: -60% 0; } } @media (prefers-reduced-motion: reduce) { .tm_drawerHits > .tm_drawerHit, .tm_searchLoadingBar > i, .tm_searchSkeletonTitle, .tm_searchSkeletonLine { animation: none; } } @keyframes tm_tmFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes tm_tmFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes tm_tmRiseIn { from { opacity: 0; transform: translateY(26px) scale(0.94); } 60% { opacity: 1; } to { opacity: 1; transform: none; } } @keyframes tm_tmRiseOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.985); } } @keyframes tm_tmPopIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } } @keyframes tm_tmCardIn { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } } .tm_drawerBackdrop { animation: tm_tmFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerBackdropOut { animation: tm_tmFadeOut 130ms ease-in both; } .tm_drawer { animation: tm_tmRiseIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_drawerOut { animation: tm_tmRiseOut 150ms cubic-bezier(0.4, 0, 0.7, 0.2) both; } .tm_globalSearchBackdrop { animation: tm_tmFadeIn 130ms ease-out both; } .tm_globalSearchPanel { animation: tm_tmRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_menu { animation: tm_tmPopIn 120ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_card { transition: transform 120ms ease-out, box-shadow 160ms ease-out, opacity 160ms ease-out; } .tm_card:hover { transform: translateY(-1px); } .tm_reactFlowNodeEnter { animation: tm_tmCardIn 170ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_stackCell { transition: transform 120ms ease-out, box-shadow 160ms ease-out; } .tm_stackCell:hover { transform: translateY(-2px); } .tm_wsFrameLabel { transition: color 120ms ease-out, background 120ms ease-out, box-shadow 120ms ease-out; } .tm_wsFrameLabel:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); } .tm_toast { animation: tm_tmRiseIn 160ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_snippetCode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.94em; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } .tm_snippetLink { color: var(--dsw-alias-brand-primary); } @media (prefers-reduced-motion: reduce) { .tm_drawerBackdrop, .tm_drawerBackdropOut, .tm_drawer, .tm_drawerOut, .tm_globalSearchBackdrop, .tm_globalSearchPanel, .tm_menu, .tm_toast, .tm_reactFlowNodeEnter { animation: none; } .tm_card, .tm_stackCell, .tm_wsFrameLabel { transition: none; } .tm_card:hover, .tm_stackCell:hover { transform: none; } } .tm_drawerSearchRow { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; } .tm_drawerSearch { flex: 1; min-width: 0; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 10px; outline: none; } .tm_drawerSearch:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerSearchGo { flex: none; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_drawerSearchGo:hover { color: var(--dsw-alias-label-primary); } .tm_drawerSearchState { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); flex: none; } .tm_drawerSearchError { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_drawerEmpty { grid-column: 1 / -1; padding: 10px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_drawerHits { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dsw-alias-border-l2); } .tm_drawerHitsHead { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); letter-spacing: 0.04em; } .tm_drawerHit { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; cursor: pointer; } .tm_drawerHit:hover { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerRoleChip { flex: none; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.6; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.07); } .tm_drawerRoleChip[data-talkmap-role="user"] { color: rgba(160, 210, 255, 0.95); background: rgba(90, 160, 255, 0.14); } .tm_hitMark { color: #0b0b0c; background: rgb(255, 214, 106); border-radius: 3px; padding: 0 2px; } .tm_drawerHitHead { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_drawerAgentChip { flex: none; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1.5; color: var(--dsw-alias-label-secondary); letter-spacing: 0.02em; } .tm_drawerAgentChipSub { color: rgb(255, 214, 106); border-color: rgba(255, 214, 106, 0.5); background: rgba(255, 214, 106, 0.1); } .tm_drawerHitTitle { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); background: transparent; border: none; padding: 0 0 2px; cursor: pointer; } .tm_drawerHitTitle:hover { color: var(--dsw-alias-brand-primary); } .tm_peek { position: fixed; z-index: 80; width: min(500px, 88vw); max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); } .tm_peekTitle { font-size: calc(11.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_peekLine { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.55; color: var(--dsw-alias-label-primary); white-space: pre-wrap; word-break: break-word; } .tm_peekHint { margin-top: 6px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); opacity: 0.7; } .tm_drawerHitMore { align-self: flex-start; margin-top: 2px; font: inherit; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; cursor: pointer; } .tm_drawerHitMore:hover { color: var(--dsw-alias-brand-primary); } .tm_drawerHitBlock { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-left: 2px; } .tm_drawerHitLine { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; border-left: 2px solid var(--dsw-alias-border-l2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_drawerHitLine:hover { color: var(--dsw-alias-label-primary); border-left-color: var(--dsw-alias-brand-primary); } .tm_drawerScroll { overscroll-behavior: contain; scroll-behavior: auto; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, 224px); justify-content: center; align-content: start; gap: 12px; padding: 16px; } .tm_drawerCard[draggable="true"] { cursor: grab; } .tm_drawerCard[data-talkmap-drag="1"] { cursor: grabbing; opacity: 0.55; transform: scale(0.98); } .tm_cardLinks { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; } .tm_cardLinkChip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.7; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.06); } .tm_cardLinkChip[data-talkmap-link="out"] { color: rgba(255, 214, 106, 0.9); background: rgba(255, 214, 106, 0.12); } .tm_drawerCard { width: 224px; box-sizing: border-box; text-align: left; font: inherit; cursor: pointer; background: var(--dsw-alias-bg-layer-1); } .tm_drawerCard:hover { border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResize { position: absolute; z-index: 2; pointer-events: auto; opacity: 0.5; } .tm_wsFrameResize:hover { opacity: 1; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResizeN { cursor: ns-resize; border-top: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 14px 0 0; } .tm_wsFrameResizeS { cursor: ns-resize; border-bottom: 3px solid var(--dsw-alias-border-l3); border-radius: 0 0 14px 14px; } .tm_wsFrameResizeW { cursor: ew-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 0 0 14px; } .tm_wsFrameResizeE { cursor: ew-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-radius: 0 14px 14px 0; } .tm_wsFrameResizeNw, .tm_wsFrameResizeNe, .tm_wsFrameResizeSw, .tm_wsFrameResizeSe { width: 26px; height: 26px; z-index: 3; } .tm_wsFrameResizeNw { cursor: nwse-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-left-radius: 14px; } .tm_wsFrameResizeNe { cursor: nesw-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-right-radius: 14px; } .tm_wsFrameResizeSw { cursor: nesw-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-left-radius: 14px; } .tm_wsFrameResizeSe { cursor: nwse-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-right-radius: 14px; } .tm_batchBar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 24px var(--dsw-alias-bg-mask-2); } .tm_batchCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); white-space: nowrap; } .tm_batchSpace { width: 6px; } .tm_batchAction { padding: 5px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_batchAction:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_batchAction:disabled { opacity: 0.5; cursor: default; } .tm_batchDanger { color: var(--dsw-alias-state-error-primary); } .tm_pickBox { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--dsw-alias-border-l3); border-radius: 4px; background: var(--dsw-alias-bg-base); color: transparent; font-size: calc(11px + var(--tm-font-step, 0px)); line-height: 1; pointer-events: none; } .tm_pickBoxChecked { border-color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-brand-primary); color: #fff; } .tm_colorToolbar { position: absolute; top: 12px; left: 12px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 6px 20px var(--dsw-alias-bg-mask-2); } .tm_colorToolbarLabel { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); margin-right: 2px; white-space: nowrap; } .tm_colorSwatch { width: 16px; height: 16px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 50%; cursor: pointer; } .tm_colorSwatch:hover { transform: scale(1.15); } .tm_colorSwatchClear { display: flex; align-items: center; justify-content: center; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1; } .tm_colorSwatchClear:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_drawerWires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; } .tm_drawerScroll { position: relative; } .tm_drawerScroll > .tm_card, .tm_drawerScroll > [data-stack-card] { position: relative; z-index: 1; } .tm_canvas .react-flow__edges { z-index: 0 !important; } .tm_canvas .react-flow__nodes { z-index: 1 !important; } .tm_statusRail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 6; pointer-events: none; --rail-card-w: 224px; --rail-pad: 10px; --rail-card-outer: calc(var(--rail-card-w) + 26px); --rail-w: calc(var(--rail-card-outer) + var(--rail-pad) * 2 + 2px); } .tm_statusRailPanel { position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); box-sizing: border-box; padding: var(--rail-pad); display: flex; flex-direction: column; gap: 8px; background: var(--dsw-alias-bg-elevated, rgba(18, 20, 26, 0.94)); border-right: 1px solid var(--dsw-alias-border-secondary); box-shadow: 6px 0 26px rgba(0, 0, 0, 0.32); backdrop-filter: blur(10px); transform: translateX(-101%); transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 320ms ease; pointer-events: none; } .tm_statusRail[data-open="1"] .tm_statusRailPanel { transform: translateX(0); pointer-events: auto; } .tm_statusRailHead { display: flex; align-items: baseline; gap: 8px; flex: none; padding: 0 4px 6px; } .tm_statusRailTitle { flex: 1; font-size: 12px; letter-spacing: 0.02em; color: var(--dsw-alias-label-secondary); } .tm_statusRailCount { font-size: 11px; color: var(--dsw-alias-label-tertiary, #6b7280); font-variant-numeric: tabular-nums; } .tm_statusRailList { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 14px; } .tm_statusRailEmpty { padding: 8px 4px; font-size: 12px; line-height: 1.5; color: var(--dsw-alias-label-secondary); } .tm_statusRailSlot { position: relative; } .tm_statusRailSlot[draggable="true"] { cursor: grab; } .tm_statusRailSlot[draggable="true"]:active { cursor: grabbing; } .tm_statusRailCard { width: var(--rail-card-w); min-height: 84px; cursor: grab; transition: transform 120ms ease, box-shadow 120ms ease; } .tm_statusRailCard:active { cursor: grabbing; } .tm_statusRailSlotFloating { pointer-events: none; } .tm_statusRailCardDragging { cursor: grabbing; transform: scale(1.02) rotate(-0.3deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); opacity: 0.97; } .tm_statusRailCard:hover { transform: translateY(-1px); } .tm_statusRailTab { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 30px; padding: 13px 7px; border: 1px solid rgba(255, 255, 255, 0.16); border-left: none; border-radius: 0 11px 11px 0; background: color-mix(in oklab, var(--dsw-alias-bg-elevated, #14161c) 52%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 3px 0 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: var(--dsw-alias-label-primary); cursor: pointer; font: inherit; pointer-events: auto; transition: left 320ms cubic-bezier(0.22, 0.61, 0.36, 1), color 140ms ease, background 140ms ease; } .tm_statusRail[data-open="1"] .tm_statusRailTab { left: calc(var(--rail-w) - 1px); } .tm_statusRailTab:hover { color: #ffffff; background: rgba(58, 64, 78, 0.55); } .tm_statusRailTabCount { font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 999px; background: var(--dsw-alias-brand-primary); color: #0b0d12; font-variant-numeric: tabular-nums; } .tm_dangerBackdrop { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 14, 0.55); backdrop-filter: blur(2px); } .tm_dangerDialog { width: min(420px, calc(100% - 48px)); padding: 18px 18px 14px; border: 1px solid var(--dsw-alias-border-secondary); border-radius: 14px; background: var(--dsw-alias-bg-elevated, #16181f); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); } .tm_dangerTitle { font-size: 14px; font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_dangerBody { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--dsw-alias-label-secondary); } .tm_dangerActions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; } .tm_dangerCancel, .tm_dangerOk { padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 12.5px; cursor: pointer; } .tm_dangerCancel { border: 1px solid var(--dsw-alias-border-secondary); background: transparent; color: var(--dsw-alias-label-secondary); } .tm_dangerCancel:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_dangerOk { border: 1px solid rgba(242, 78, 78, 0.55); background: rgba(242, 78, 78, 0.16); color: #ff6b6b; } .tm_dangerOk:hover { background: rgba(242, 78, 78, 0.28); color: #ff8a8a; } .tm_statusRailGhost { visibility: hidden; } .tm_statusRailFloating { position: fixed; z-index: 20; pointer-events: none; } .tm_toggleWrap { display: inline-flex; align-items: center; gap: 4px; } .tm_toggleWrapWide { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; min-height: 0; } .tm_toggleControls { display: flex; align-items: center; gap: 4px; flex: none; } .tm_toggleWrapWide .tm_toggleRow { flex: 1; min-width: 0; } .tm_backToCurrent { display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; opacity: 0.75; transition: opacity 120ms ease, color 120ms ease, background 120ms ease; } .tm_toggleWrapWide .tm_backToCurrent { width: 32px; height: 32px; border-radius: 8px; } .tm_backToCurrent:hover { opacity: 1; color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_backToCurrent:active { background: var(--dsw-alias-interactive-bg-active); } .tm_backToCurrentIcon { width: 16px; height: 16px; flex: none; } .tm_toggleWrapWide .tm_backToCurrentIcon { width: 20px; height: 20px; } .tm_sidebarQueue { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; width: 100%; max-height: 30vh; padding: 4px 0 2px; margin-top: 4px; overflow: hidden; } .tm_sidebarQueueHead { display: flex; align-items: baseline; gap: 8px; flex: none; padding: 2px 10px 6px; font-size: 11px; color: var(--dsw-alias-label-secondary); } .tm_sidebarQueueHeadText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_sidebarQueueCount { flex: none; font-size: 10px; color: var(--dsw-alias-label-tertiary, #6b7280); font-variant-numeric: tabular-nums; } .tm_sidebarQueueList { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 8px 6px; overscroll-behavior: contain; scrollbar-width: thin; } .tm_sidebarQueueCard { width: 100%; max-width: 100%; box-sizing: border-box; flex: none; cursor: pointer; } .tm_sidebarQueueCard:active { cursor: pointer; } .tm_queueGrip { display: flex; align-items: center; justify-content: center; flex: none; height: 10px; margin: -4px 0 0; cursor: ns-resize; opacity: 0; transition: opacity 120ms ease; touch-action: none; } .tm_sidebarQueue:hover .tm_queueGrip, .tm_queueGrip:active { opacity: 1; } .tm_queueGripBar { width: 32px; height: 3px; border-radius: 2px; background: var(--dsw-alias-label-tertiary, #6b7280); } .tm_header .tm_backToCurrent { width: 28px; height: 28px; border-radius: 6px; color: var(--dsw-alias-label-secondary); } .tm_remotePanel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; padding: 4px 0; } .tm_remoteNote { margin: 0; font-size: 13px; line-height: 20px; color: var(--dsw-alias-label-secondary); } .tm_remoteOpen { padding: 6px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); font: inherit; font-size: 13px; cursor: pointer; } .tm_remoteOpen:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_remoteMissing { margin: 0; font-size: 12px; color: var(--dsw-alias-state-error-primary); } .tm_statusRailPanel { background: color-mix(in oklab, var(--dsw-alias-bg-elevated, #14161c) 44%, transparent); border-right: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0 22px 22px 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 22px rgba(255, 255, 255, 0.05), 10px 0 34px rgba(0, 0, 0, 0.34); } .tm_statusRailPanel .tm_card { background: color-mix(in oklab, var(--dsw-alias-bg-layer-1, #1b1e26) 62%, transparent); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 10px rgba(0, 0, 0, 0.2); } .tm_panel { position: relative; } .tm_panel { background: transparent; } .tm_header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: color-mix(in oklab, var(--dsw-alias-bg-layer-1, #1b1e26) 30%, transparent); border-bottom: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0 0 16px 16px; } .tm_statusRailPanel .tm_card { background: color-mix(in oklab, var(--dsw-alias-bg-layer-1, #1b1e26) 56%, transparent); border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 10px rgba(0, 0, 0, 0.2); } .tm_canvas { margin-top: var(--tm-header-h, 59px); }`;
1458
+ var __css = `.tm_toggleButton { display: flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_toggleButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleButtonActive { background: var(--dsw-alias-interactive-bg-active); color: var(--dsw-alias-brand-primary); } .tm_toggleRow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; box-sizing: border-box; padding: 9px 12px; border: none; border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); cursor: pointer; text-align: left; } .tm_toggleRow:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_toggleLabel { white-space: nowrap; } .tm_toggleIcon { width: 18px; height: 18px; flex: none; } .tm_panel { height: 100%; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); } .tm_header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); flex: none; } .tm_backButton { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 18px 0 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; line-height: 1; cursor: pointer; } .tm_backButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_globalSearch { position: relative; display: flex; align-items: center; gap: 6px; margin-right: 8px; } .tm_globalSearchInput { width: 200px; font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 9px; outline: none; } .tm_globalSearchInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_globalSearchButton { font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_globalSearchButton:hover { color: var(--dsw-alias-label-primary); } .tm_globalSearchBackdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; } .tm_globalSearchPanel { width: min(980px, 92vw); max-height: 76vh; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5); overflow: hidden; } .tm_globalSearchHead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_globalSearchTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_globalSearchBody { padding: 0 16px 14px; overflow-y: auto; overscroll-behavior: contain; } .tm_searchInlineLoading { display: flex; align-items: center; padding: 4px 0 2px 10px; } .tm_searchInlineLoading > span { width: 62%; } .tm_drawerScrollSensor { width: 100%; height: 1px; opacity: 0; } .tm_fontGroup { display: flex; align-items: center; gap: 4px; margin-right: 6px; } .tm_fontButton { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 46px; height: 28px; padding: 0 8px; line-height: 1; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font: inherit; font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_fontButton:hover:not(:disabled) { color: var(--dsw-alias-label-primary); border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_fontButton:disabled { opacity: 0.4; cursor: default; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { display: inline-block; width: calc(9px + 0px); text-align: center; line-height: 1; } .tm_fontGlyphSmall, .tm_fontGlyphLarge { font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_fontSign { display: inline-block; font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1; transform: translateY(-3px); } .tm_fontReset { min-width: 50px; } .tm_fontReset { min-width: 44px; } .tm_headerSpace { flex: 1; } .tm_langButton { flex: none; min-width: 72px; height: 34px; padding: 0 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_langButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_closeButton { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; } .tm_closeButton:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_zoomResetLabel { font-size: calc(9px + var(--tm-font-step, 0px)); font-weight: 700; letter-spacing: -0.5px; } .tm_canvas { flex: 1; min-height: 0; position: relative; } @media (prefers-reduced-motion: reduce) { .tm_canvas .react-flow__edge circle { opacity: 0.28; } } .tm_canvas .react-flow__node { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.25, 1); } .tm_canvas .react-flow__node.dragging, .tm_canvas .react-flow__node.tmDragging { transition: none; } .tm_canvas .react-flow__nodesselection, .tm_canvas .react-flow__nodesselection-rect { display: none !important; pointer-events: none !important; } .tm_card { position: relative; width: 224px; min-height: 104px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); box-shadow: 0 1px 3px var(--dsw-alias-bg-mask-1); font-size: calc(13px + var(--tm-font-step, 0px)); } .tm_cardSelected { border-color: var(--dsw-alias-brand-primary); } .tm_cardGhost { opacity: 0.55; border-style: dashed; } .tm_cardTop { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_cardTitle { font-weight: 600; font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_runningDot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: tm_talkmap-pulse 1.6s ease-in-out infinite; } @keyframes tm_talkmap-pulse { 50% { opacity: 0.35; } } .tm_cardNext { display: flex; align-items: baseline; gap: 6px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); min-width: 0; } .tm_cardNextLabel { flex: none; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-brand-primary); font-weight: 600; } .tm_cardNextText { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .tm_cardStale { flex: none; color: var(--dsw-alias-state-warn-primary); font-size: calc(12px + var(--tm-font-step, 0px)); } .tm_cardFooter { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_cardTime { flex: none; } .tm_cardChip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); font-weight: 600; white-space: nowrap; border: 1px solid transparent; } .tm_cardChipRunning { color: #ffffff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); } .tm_cardChipWaiting { color: rgb(245, 178, 46); background: rgba(245, 178, 46, 0.14); border-color: rgba(245, 178, 46, 0.42); } .tm_cardChipDone { color: rgb(52, 199, 89); background: rgba(52, 199, 89, 0.14); border-color: rgba(52, 199, 89, 0.42); } .tm_cardChipError { color: rgb(242, 78, 78); background: rgba(242, 78, 78, 0.14); border-color: rgba(242, 78, 78, 0.45); } .tm_cardChipDraft { color: rgb(255, 197, 61); background: rgba(255, 197, 61, 0.18); border-color: rgba(255, 197, 61, 0.5); } .tm_cardChipInterrupted { color: rgb(214, 158, 92); background: rgba(214, 158, 92, 0.14); border-color: rgba(214, 158, 92, 0.42); } .tm_cardSummary { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.45; color: var(--dsw-alias-label-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .tm_cardBadgeWaiting { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-warn-label); background: var(--dsw-alias-state-warn-tertiary); } .tm_cardBadgeDone { padding: 1px 7px; border-radius: 999px; font-size: calc(10px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-success-primary); background: var(--dsw-alias-state-success-tertiary); } .tm_cardLampRunning { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 16px 2px rgba(255, 255, 255, 0.2), 0 0 40px 9px rgba(255, 255, 255, 0.1); } .tm_dialogBackdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); animation: tm_tmFadeIn 140ms ease-out; } .tm_digestDialog { width: min(720px, 86vw); max-height: 82vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-radius: 14px; background: var(--dsw-alias-bg-elevated, #232323); border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); animation: tm_tmRiseIn 200ms cubic-bezier(0.16, 1, 0.3, 1); } .tm_digestDialogHead { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .tm_digestDialogTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_digestDialogFrom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestLabel { margin-top: 4px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary, rgba(255, 255, 255, 0.5)); } .tm_digestText { width: 100%; min-height: 96px; max-height: 30vh; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); color: var(--dsw-alias-label-primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: calc(11.5px + var(--tm-font-step, 0px)); line-height: 1.62; resize: none; } .tm_digestEmpty { padding: 18px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_digestActions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .tm_renameBackdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.42); display: flex; align-items: flex-start; justify-content: center; padding-top: 22vh; } .tm_renameDialog { width: min(420px, 90vw); background: var(--dsw-alias-bg-layer-1); border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .tm_renameHeading { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_renameInput { width: 100%; box-sizing: border-box; font: inherit; font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 8px 10px; outline: none; } .tm_renameInput:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.35)); } .tm_renameError { font-size: calc(12px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_renameActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_renameButton { font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 12px; cursor: pointer; } .tm_renameButton:hover { color: var(--dsw-alias-label-primary); } .tm_renamePrimary { color: #0b0b0c; background: rgb(255, 214, 106); border-color: rgb(255, 214, 106); } .tm_renamePrimary:disabled { opacity: 0.5; cursor: default; } .tm_cardPin { display: inline-flex; align-items: center; flex: none; color: rgb(255, 214, 106); filter: drop-shadow(0 0 5px rgba(255, 214, 106, 0.85)); animation: tm_talkmap-pin-glow 2.6s ease-in-out infinite; } @keyframes tm_talkmap-pin-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 214, 106, 0.6)); opacity: 0.92; } 50% { filter: drop-shadow(0 0 9px rgba(255, 214, 106, 1)); opacity: 1; } } .tm_cardReticle { position: absolute; inset: -5px; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); } .tm_cardReticle i { position: absolute; width: 13px; height: 13px; border: 2px solid rgba(255, 255, 255, 0.9); } .tm_cardReticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; } .tm_cardReticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; } .tm_cardReticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; } .tm_cardReticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; } .tm_cardQuiet { opacity: 0.62; transition: opacity 140ms ease; } .tm_cardQuiet:hover { opacity: 1; } .tm_stackBadgeBusy { color: rgb(255, 197, 61); border-color: rgba(255, 197, 61, 0.5); } @property --tm-ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; } .tm_cardLampRunning::after { content: ''; position: absolute; inset: -2px; border-radius: 12px; padding: 2px; background: conic-gradient( from var(--tm-ring-angle), rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0) 190deg, rgba(255, 255, 255, 0.18) 250deg, rgba(255, 255, 255, 0.55) 292deg, rgba(255, 255, 255, 1) 325deg, rgba(255, 255, 255, 0.4) 352deg, rgba(255, 255, 255, 0) 360deg ); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tm_talkmap-ring-sweep 1.8s linear infinite; pointer-events: none; } @keyframes tm_talkmap-ring-sweep { to { --tm-ring-angle: 360deg; } } .tm_cardLampDone { animation: tm_talkmap-lamp-green 2.8s ease-in-out infinite; } .tm_cardLampError { animation: tm_talkmap-lamp-red 1.9s ease-in-out infinite; } .tm_cardLampWaiting { animation: tm_talkmap-lamp-amber 3.4s ease-in-out infinite; } @keyframes tm_talkmap-lamp-green { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.40), 0 0 14px 1px rgba(52, 199, 89, 0.26), 0 0 34px 8px rgba(52, 199, 89, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.72), 0 0 24px 5px rgba(52, 199, 89, 0.46), 0 0 62px 20px rgba(52, 199, 89, 0.22); } } @keyframes tm_talkmap-lamp-amber { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.42), 0 0 14px 1px rgba(245, 178, 46, 0.24), 0 0 34px 8px rgba(245, 178, 46, 0.11); } 50% { box-shadow: inset 0 0 0 1px rgba(245, 178, 46, 0.72), 0 0 24px 5px rgba(245, 178, 46, 0.44), 0 0 60px 19px rgba(245, 178, 46, 0.20); } } @keyframes tm_talkmap-lamp-red { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.46), 0 0 14px 1px rgba(242, 78, 78, 0.28), 0 0 34px 8px rgba(242, 78, 78, 0.12); } 50% { box-shadow: inset 0 0 0 1px rgba(242, 78, 78, 0.80), 0 0 26px 6px rgba(242, 78, 78, 0.52), 0 0 66px 22px rgba(242, 78, 78, 0.26); } } .tm_cardRemove { align-self: flex-start; padding: 3px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_cardRemove:hover { background: var(--dsw-alias-interactive-bg-hover-danger); color: var(--dsw-alias-state-error-primary); } .tm_cardHandle { width: 10px; height: 10px; background: var(--dsw-alias-border-l3); border: 2px solid var(--dsw-alias-bg-layer-1); opacity: 0; } .tm_card:hover .tm_cardHandle, .tm_canvasConnecting .tm_cardHandle { opacity: 1; } .tm_cardHandle:hover { background: var(--dsw-alias-brand-primary); } .tm_cardRefresh { flex: none; margin-left: auto; width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-tertiary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; opacity: 0; transition: opacity 120ms ease; } .tm_card:hover .tm_cardRefresh { opacity: 1; } .tm_cardRefresh:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_cardRefreshBusy { opacity: 1; animation: tm_talkmap-spin 1s linear infinite; } @keyframes tm_talkmap-spin { to { transform: rotate(360deg); } } .tm_spawnPanel { position: absolute; right: 24px; top: 24px; z-index: 6; width: 420px; max-width: calc(100% - 48px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_spawnHeading { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_spawnFrom { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_spawnModes { display: flex; gap: 6px; } .tm_spawnModeBtn { flex: 1; padding: 5px 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnModeBtn:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_spawnModeActive { border-color: var(--dsw-alias-brand-primary); color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-active); } .tm_spawnHint { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_spawnTextarea { width: 100%; resize: vertical; min-height: 140px; padding: 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); line-height: 1.5; font-family: inherit; } .tm_spawnError { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_spawnActions { display: flex; justify-content: flex-end; gap: 8px; } .tm_spawnBtnPrimary { padding: 6px 16px; border: none; border-radius: 8px; background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnPrimary:hover { background: var(--dsw-alias-button-primary-hover); } .tm_spawnBtnPrimary:disabled { background: var(--dsw-alias-button-primary-dimmed); cursor: default; } .tm_spawnBtnGhost { padding: 6px 16px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; } .tm_spawnBtnGhost:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_wsFrame { position: relative; box-sizing: border-box; border: 1.5px dashed var(--dsw-alias-border-l2); border-radius: 16px; background: transparent; } .tm_wsFrameBlocked { border-color: rgb(242, 78, 78) !important; box-shadow: 0 0 0 1px rgba(242, 78, 78, 0.45) inset; } .tm_wsFrameSelected { border-style: solid; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameLabel { position: absolute; top: -12px; left: 14px; display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l1); background: var(--dsw-alias-bg-layer-1); font-size: calc(12px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); white-space: nowrap; pointer-events: auto; cursor: grab; z-index: 5; } .tm_wsFrameLabel:active { cursor: grabbing; } .tm_wsFrameEdge { position: absolute; pointer-events: auto; cursor: grab; } .tm_wsFrameEdge:active { cursor: grabbing; } .tm_wsFrameCount { font-weight: 400; color: var(--dsw-alias-label-tertiary); } .tm_menu { position: absolute; z-index: 60; min-width: 200px; max-width: 280px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 10px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 30px var(--dsw-alias-bg-mask-2); } .tm_menuTitle { flex: none; padding: 4px 10px 6px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuSearch { flex: none; box-sizing: border-box; width: calc(100% - 8px); margin: 2px 4px 6px; padding: 5px 8px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 7px; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); font-family: inherit; } .tm_menuHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-dimmed); } .tm_menuPreview { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); word-break: break-all; } .tm_menuError { flex: none; padding: 0 10px 4px; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-state-error-primary); word-break: break-all; } .tm_menuEmpty { padding: 8px 10px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_menuItem { flex: none; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 6px 10px; border: none; border-radius: 7px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(13px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_menuIcon { flex: none; width: 14px; height: 14px; color: var(--dsw-alias-label-secondary); } .tm_menuItemDanger { color: rgb(242, 78, 78); } .tm_menuItemDanger .tm_menuIcon { color: rgb(242, 78, 78); } .tm_menuItem:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_menuItem:disabled { color: var(--dsw-alias-label-dimmed); cursor: default; } .tm_wsFrameHidden { font-weight: 400; color: var(--dsw-alias-state-warn-primary); } .tm_emptyHint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: calc(13px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); pointer-events: none; z-index: 4; } .tm_toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 8; max-width: 70%; padding: 7px 16px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 4px 16px var(--dsw-alias-bg-mask-2); font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tm_stackCell { position: relative; width: 224px; height: 104px; cursor: pointer; } .tm_stackSheetBack, .tm_stackSheetMid { position: absolute; inset: 0; border-radius: 12px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); } .tm_stackSheetBack { transform: translate(11px, 11px) scale(0.95); opacity: 0.35; } .tm_stackSheetMid { transform: translate(5px, 5px) scale(0.977); opacity: 0.6; } .tm_stackFace { position: absolute; inset: 0; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 12px; background: var(--dsw-alias-bg-layer-1); transition: border-color 140ms ease, transform 140ms ease; } .tm_stackCell:hover .tm_stackFace { border-color: var(--dsw-alias-brand-primary); transform: translateY(-1px); } .tm_stackFaceTitle { font-size: calc(13px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } .tm_stackBadge { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); color: var(--dsw-alias-label-secondary); font-size: calc(11px + var(--tm-font-step, 0px)); font-variant-numeric: tabular-nums; } .tm_drawerBackdrop { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: var(--dsw-alias-bg-mask-2); } .tm_drawer { width: min(1120px, 94%); max-height: 84%; box-sizing: border-box; display: flex; flex-direction: column; border: 1px solid var(--dsw-alias-border-l1); border-radius: 16px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 18px 48px var(--dsw-alias-bg-mask-2); overflow: hidden; } .tm_drawerHead { display: flex; align-items: center; gap: 10px; flex: none; padding: 12px 14px; border-bottom: 1px solid var(--dsw-alias-border-l1); } .tm_drawerTitle { font-size: calc(14px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_drawerCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerSpace { flex: 1; } .tm_drawerHint { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); } .tm_drawerClose { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(16px + var(--tm-font-step, 0px)); line-height: 1; cursor: pointer; } .tm_drawerClose:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); } .tm_drawerHits > .tm_drawerHit { animation: tm_tmPopIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerHits > .tm_drawerHit:nth-child(1) { animation-delay: 20ms; } .tm_drawerHits > .tm_drawerHit:nth-child(2) { animation-delay: 34ms; } .tm_drawerHits > .tm_drawerHit:nth-child(3) { animation-delay: 48ms; } .tm_drawerHits > .tm_drawerHit:nth-child(4) { animation-delay: 62ms; } .tm_drawerHits > .tm_drawerHit:nth-child(5) { animation-delay: 76ms; } .tm_drawerHits > .tm_drawerHit:nth-child(n+6) { animation-delay: 90ms; } .tm_searchLoading { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 2px; } .tm_searchLoadingBar { position: relative; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.07); } .tm_searchLoadingBar > i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--dsw-alias-brand-primary), transparent); animation: tm_tmSlideBar 1150ms cubic-bezier(0.4, 0, 0.2, 1) infinite; } @keyframes tm_tmSlideBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } } .tm_searchSkeletonRow { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; } .tm_searchSkeletonTitle, .tm_searchSkeletonLine { display: block; height: 9px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 220% 100%; animation: tm_tmShimmer 1300ms ease-in-out infinite; } .tm_searchSkeletonTitle { width: 38%; } .tm_searchSkeletonLine { width: 78%; } @keyframes tm_tmShimmer { 0% { background-position: 120% 0; } 100% { background-position: -60% 0; } } @media (prefers-reduced-motion: reduce) { .tm_drawerHits > .tm_drawerHit, .tm_searchLoadingBar > i, .tm_searchSkeletonTitle, .tm_searchSkeletonLine { animation: none; } } @keyframes tm_tmFadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes tm_tmFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes tm_tmRiseIn { from { opacity: 0; transform: translateY(26px) scale(0.94); } 60% { opacity: 1; } to { opacity: 1; transform: none; } } @keyframes tm_tmRiseOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(0.985); } } @keyframes tm_tmPopIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } } @keyframes tm_tmCardIn { from { opacity: 0; transform: translateY(6px) scale(0.99); } to { opacity: 1; transform: none; } } .tm_drawerBackdrop { animation: tm_tmFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1) both; } .tm_drawerBackdropOut { animation: tm_tmFadeOut 130ms ease-in both; } .tm_drawer { animation: tm_tmRiseIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_drawerOut { animation: tm_tmRiseOut 150ms cubic-bezier(0.4, 0, 0.7, 0.2) both; } .tm_globalSearchBackdrop { animation: tm_tmFadeIn 130ms ease-out both; } .tm_globalSearchPanel { animation: tm_tmRiseIn 240ms cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; } .tm_menu { animation: tm_tmPopIn 120ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_card { transition: transform 120ms ease-out, box-shadow 160ms ease-out, opacity 160ms ease-out; } .tm_card:hover { transform: translateY(-1px); } .tm_reactFlowNodeEnter { animation: tm_tmCardIn 170ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_stackCell { transition: transform 120ms ease-out, box-shadow 160ms ease-out; } .tm_stackCell:hover { transform: translateY(-2px); } .tm_wsFrameLabel { transition: color 120ms ease-out, background 120ms ease-out, box-shadow 120ms ease-out; } .tm_wsFrameLabel:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); } .tm_toast { animation: tm_tmRiseIn 160ms cubic-bezier(0.2, 0.9, 0.25, 1) both; } .tm_snippetCode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.94em; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); } .tm_snippetLink { color: var(--dsw-alias-brand-primary); } @media (prefers-reduced-motion: reduce) { .tm_drawerBackdrop, .tm_drawerBackdropOut, .tm_drawer, .tm_drawerOut, .tm_globalSearchBackdrop, .tm_globalSearchPanel, .tm_menu, .tm_toast, .tm_reactFlowNodeEnter { animation: none; } .tm_card, .tm_stackCell, .tm_wsFrameLabel { transition: none; } .tm_card:hover, .tm_stackCell:hover { transform: none; } } .tm_drawerSearchRow { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; } .tm_drawerSearch { flex: 1; min-width: 0; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-primary); background: var(--dsw-alias-bg-layer-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 6px 10px; outline: none; } .tm_drawerSearch:focus { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerSearchGo { flex: none; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; padding: 5px 10px; cursor: pointer; } .tm_drawerSearchGo:hover { color: var(--dsw-alias-label-primary); } .tm_drawerSearchState { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); flex: none; } .tm_drawerSearchError { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11px + var(--tm-font-step, 0px)); color: rgb(242, 78, 78); } .tm_drawerEmpty { grid-column: 1 / -1; padding: 10px 4px; font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); } .tm_drawerHits { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dsw-alias-border-l2); } .tm_drawerHitsHead { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); letter-spacing: 0.04em; } .tm_drawerHit { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 10px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 9px; background: transparent; color: var(--dsw-alias-label-primary); font: inherit; cursor: pointer; } .tm_drawerHit:hover { border-color: var(--dsw-alias-border-l3, rgba(255, 255, 255, 0.3)); } .tm_drawerRoleChip { flex: none; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.6; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.07); } .tm_drawerRoleChip[data-talkmap-role="user"] { color: rgba(160, 210, 255, 0.95); background: rgba(90, 160, 255, 0.14); } .tm_hitMark { color: #0b0b0c; background: rgb(255, 214, 106); border-radius: 3px; padding: 0 2px; } .tm_drawerHitHead { display: flex; align-items: center; gap: 6px; min-width: 0; } .tm_drawerAgentChip { flex: none; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2); font-size: calc(10px + var(--tm-font-step, 0px)); line-height: 1.5; color: var(--dsw-alias-label-secondary); letter-spacing: 0.02em; } .tm_drawerAgentChipSub { color: rgb(255, 214, 106); border-color: rgba(255, 214, 106, 0.5); background: rgba(255, 214, 106, 0.1); } .tm_drawerHitTitle { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(12.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-primary); background: transparent; border: none; padding: 0 0 2px; cursor: pointer; } .tm_drawerHitTitle:hover { color: var(--dsw-alias-brand-primary); } .tm_peek { position: fixed; z-index: 80; width: min(500px, 88vw); max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dsw-alias-border-l2); background: var(--dsw-alias-bg-layer-1); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); } .tm_peekTitle { font-size: calc(11.5px + var(--tm-font-step, 0px)); font-weight: 600; color: var(--dsw-alias-label-secondary); padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--dsw-alias-border-l2); } .tm_peekLine { font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1.55; color: var(--dsw-alias-label-primary); white-space: pre-wrap; word-break: break-word; } .tm_peekHint { margin-top: 6px; font-size: calc(10.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); opacity: 0.7; } .tm_drawerHitMore { align-self: flex-start; margin-top: 2px; font: inherit; font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; cursor: pointer; } .tm_drawerHitMore:hover { color: var(--dsw-alias-brand-primary); } .tm_drawerHitBlock { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; padding-left: 2px; } .tm_drawerHitLine { display: block; width: 100%; text-align: left; font: inherit; font-size: calc(11.5px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); background: transparent; border: none; padding: 2px 0 2px 10px; border-left: 2px solid var(--dsw-alias-border-l2); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_drawerHitLine:hover { color: var(--dsw-alias-label-primary); border-left-color: var(--dsw-alias-brand-primary); } .tm_drawerScroll { overscroll-behavior: contain; scroll-behavior: auto; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, 224px); justify-content: center; align-content: start; gap: 12px; padding: 16px; } .tm_drawerCard[draggable="true"] { cursor: grab; } .tm_drawerCard[data-talkmap-drag="1"] { cursor: grabbing; opacity: 0.55; transform: scale(0.98); } .tm_cardLinks { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; } .tm_cardLinkChip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; border-radius: 4px; font-size: calc(9.5px + var(--tm-font-step, 0px)); line-height: 1.7; color: var(--dsw-alias-label-secondary); background: rgba(255, 255, 255, 0.06); } .tm_cardLinkChip[data-talkmap-link="out"] { color: rgba(255, 214, 106, 0.9); background: rgba(255, 214, 106, 0.12); } .tm_drawerCard { width: 224px; box-sizing: border-box; text-align: left; font: inherit; cursor: pointer; background: var(--dsw-alias-bg-layer-1); } .tm_drawerCard:hover { border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResize { position: absolute; z-index: 2; pointer-events: auto; opacity: 0.5; } .tm_wsFrameResize:hover { opacity: 1; border-color: var(--dsw-alias-brand-primary); } .tm_wsFrameResizeN { cursor: ns-resize; border-top: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 14px 0 0; } .tm_wsFrameResizeS { cursor: ns-resize; border-bottom: 3px solid var(--dsw-alias-border-l3); border-radius: 0 0 14px 14px; } .tm_wsFrameResizeW { cursor: ew-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-radius: 14px 0 0 14px; } .tm_wsFrameResizeE { cursor: ew-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-radius: 0 14px 14px 0; } .tm_wsFrameResizeNw, .tm_wsFrameResizeNe, .tm_wsFrameResizeSw, .tm_wsFrameResizeSe { width: 26px; height: 26px; z-index: 3; } .tm_wsFrameResizeNw { cursor: nwse-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-left-radius: 14px; } .tm_wsFrameResizeNe { cursor: nesw-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-top: 3px solid var(--dsw-alias-border-l3); border-top-right-radius: 14px; } .tm_wsFrameResizeSw { cursor: nesw-resize; border-left: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-left-radius: 14px; } .tm_wsFrameResizeSe { cursor: nwse-resize; border-right: 3px solid var(--dsw-alias-border-l3); border-bottom: 3px solid var(--dsw-alias-border-l3); border-bottom-right-radius: 14px; } .tm_batchBar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 8px 24px var(--dsw-alias-bg-mask-2); } .tm_batchCount { font-size: calc(12px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-secondary); white-space: nowrap; } .tm_batchSpace { width: 6px; } .tm_batchAction { padding: 5px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 999px; background: transparent; color: var(--dsw-alias-label-primary); font-size: calc(12px + var(--tm-font-step, 0px)); cursor: pointer; white-space: nowrap; } .tm_batchAction:hover:not(:disabled) { background: var(--dsw-alias-interactive-bg-hover); } .tm_batchAction:disabled { opacity: 0.5; cursor: default; } .tm_batchDanger { color: var(--dsw-alias-state-error-primary); } .tm_pickBox { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--dsw-alias-border-l3); border-radius: 4px; background: var(--dsw-alias-bg-base); color: transparent; font-size: calc(11px + var(--tm-font-step, 0px)); line-height: 1; pointer-events: none; } .tm_pickBoxChecked { border-color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-brand-primary); color: #fff; } .tm_colorToolbar { position: absolute; top: 12px; left: 12px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--dsw-alias-border-l1); border-radius: 999px; background: var(--dsw-alias-bg-layer-1); box-shadow: 0 6px 20px var(--dsw-alias-bg-mask-2); } .tm_colorToolbarLabel { font-size: calc(11px + var(--tm-font-step, 0px)); color: var(--dsw-alias-label-tertiary); margin-right: 2px; white-space: nowrap; } .tm_colorSwatch { width: 16px; height: 16px; padding: 0; border: 1px solid var(--dsw-alias-border-l2); border-radius: 50%; cursor: pointer; } .tm_colorSwatch:hover { transform: scale(1.15); } .tm_colorSwatchClear { display: flex; align-items: center; justify-content: center; background: transparent; color: var(--dsw-alias-label-secondary); font-size: calc(12px + var(--tm-font-step, 0px)); line-height: 1; } .tm_colorSwatchClear:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_drawerWires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; } .tm_drawerScroll { position: relative; } .tm_drawerScroll > .tm_card, .tm_drawerScroll > [data-stack-card] { position: relative; z-index: 1; } .tm_canvas .react-flow__edges { z-index: 0 !important; } .tm_canvas .react-flow__nodes { z-index: 1 !important; } .tm_statusRail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 6; pointer-events: none; --rail-card-w: 224px; --rail-pad: 10px; --rail-card-outer: calc(var(--rail-card-w) + 26px); --rail-w: calc(var(--rail-card-outer) + var(--rail-pad) * 2 + 2px); } .tm_statusRailPanel { position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail-w); box-sizing: border-box; padding: var(--rail-pad); display: flex; flex-direction: column; gap: 8px; background: var(--dsw-alias-bg-elevated, rgba(18, 20, 26, 0.94)); border-right: 1px solid var(--dsw-alias-border-secondary); box-shadow: 6px 0 26px rgba(0, 0, 0, 0.32); backdrop-filter: blur(10px); transform: translateX(-101%); transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 320ms ease; pointer-events: none; } .tm_statusRail[data-open="1"] .tm_statusRailPanel { transform: translateX(0); pointer-events: auto; } .tm_statusRailHead { display: flex; align-items: baseline; gap: 8px; flex: none; padding: 0 4px 6px; } .tm_statusRailTitle { flex: 1; font-size: 12px; letter-spacing: 0.02em; color: var(--dsw-alias-label-secondary); } .tm_statusRailCount { font-size: 11px; color: var(--dsw-alias-label-tertiary, #6b7280); font-variant-numeric: tabular-nums; } .tm_statusRailList { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 14px; } .tm_statusRailEmpty { padding: 8px 4px; font-size: 12px; line-height: 1.5; color: var(--dsw-alias-label-secondary); } .tm_statusRailSlot { position: relative; } .tm_statusRailSlot[draggable="true"] { cursor: grab; } .tm_statusRailSlot[draggable="true"]:active { cursor: grabbing; } .tm_statusRailCard { width: var(--rail-card-w); min-height: 84px; cursor: grab; transition: transform 120ms ease, box-shadow 120ms ease; } .tm_statusRailCard:active { cursor: grabbing; } .tm_statusRailSlotFloating { pointer-events: none; } .tm_statusRailCardDragging { cursor: grabbing; transform: scale(1.02) rotate(-0.3deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); opacity: 0.97; } .tm_statusRailCard:hover { transform: translateY(-1px); } .tm_statusRailTab { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 30px; padding: 13px 7px; border: 1px solid rgba(255, 255, 255, 0.16); border-left: none; border-radius: 0 11px 11px 0; background: color-mix(in oklab, var(--dsw-alias-bg-elevated, #14161c) 52%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: 3px 0 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08); color: var(--dsw-alias-label-primary); cursor: pointer; font: inherit; pointer-events: auto; transition: left 320ms cubic-bezier(0.22, 0.61, 0.36, 1), color 140ms ease, background 140ms ease; } .tm_statusRail[data-open="1"] .tm_statusRailTab { left: calc(var(--rail-w) - 1px); } .tm_statusRailTab:hover { color: #ffffff; background: rgba(58, 64, 78, 0.55); } .tm_statusRailTabCount { font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 999px; background: var(--dsw-alias-brand-primary); color: #0b0d12; font-variant-numeric: tabular-nums; } .tm_dangerBackdrop { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 14, 0.55); backdrop-filter: blur(2px); } .tm_dangerDialog { width: min(420px, calc(100% - 48px)); padding: 18px 18px 14px; border: 1px solid var(--dsw-alias-border-secondary); border-radius: 14px; background: var(--dsw-alias-bg-elevated, #16181f); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); } .tm_dangerTitle { font-size: 14px; font-weight: 600; color: var(--dsw-alias-label-primary); } .tm_dangerBody { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--dsw-alias-label-secondary); } .tm_dangerActions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; } .tm_dangerCancel, .tm_dangerOk { padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 12.5px; cursor: pointer; } .tm_dangerCancel { border: 1px solid var(--dsw-alias-border-secondary); background: transparent; color: var(--dsw-alias-label-secondary); } .tm_dangerCancel:hover { color: var(--dsw-alias-label-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_dangerOk { border: 1px solid rgba(242, 78, 78, 0.55); background: rgba(242, 78, 78, 0.16); color: #ff6b6b; } .tm_dangerOk:hover { background: rgba(242, 78, 78, 0.28); color: #ff8a8a; } .tm_statusRailGhost { visibility: hidden; } .tm_statusRailFloating { position: fixed; z-index: 20; pointer-events: none; } .tm_toggleWrap { display: inline-flex; align-items: center; gap: 4px; } .tm_toggleWrapWide { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; min-height: 0; } .tm_toggleControls { display: flex; align-items: center; gap: 4px; flex: none; } .tm_toggleWrapWide .tm_toggleRow { flex: 1; min-width: 0; } .tm_backToCurrent { display: flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; padding: 0; border: none; border-radius: 6px; background: transparent; color: var(--dsw-alias-label-secondary); cursor: pointer; opacity: 0.75; transition: opacity 120ms ease, color 120ms ease, background 120ms ease; } .tm_toggleWrapWide .tm_backToCurrent { width: 32px; height: 32px; border-radius: 8px; } .tm_backToCurrent:hover { opacity: 1; color: var(--dsw-alias-brand-primary); background: var(--dsw-alias-interactive-bg-hover); } .tm_backToCurrent:active { background: var(--dsw-alias-interactive-bg-active); } .tm_backToCurrentIcon { width: 16px; height: 16px; flex: none; } .tm_toggleWrapWide .tm_backToCurrentIcon { width: 20px; height: 20px; } .tm_sidebarQueue { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; width: 100%; max-height: 30vh; padding: 4px 0 2px; margin-top: 4px; overflow: hidden; } .tm_sidebarQueueHead { display: flex; align-items: baseline; gap: 8px; flex: none; padding: 2px 10px 6px; font-size: 11px; color: var(--dsw-alias-label-secondary); } .tm_sidebarQueueHeadText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm_sidebarQueueCount { flex: none; font-size: 10px; color: var(--dsw-alias-label-tertiary, #6b7280); font-variant-numeric: tabular-nums; } .tm_sidebarQueueList { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 8px 6px; overscroll-behavior: contain; scrollbar-width: thin; } .tm_sidebarQueueCard { width: 100%; max-width: 100%; box-sizing: border-box; flex: none; cursor: pointer; } .tm_sidebarQueueCard:active { cursor: pointer; } .tm_queueGrip { display: flex; align-items: center; justify-content: center; flex: none; height: 10px; margin: -4px 0 0; cursor: ns-resize; opacity: 0; transition: opacity 120ms ease; touch-action: none; } .tm_sidebarQueue:hover .tm_queueGrip, .tm_queueGrip:active { opacity: 1; } .tm_queueGripBar { width: 32px; height: 3px; border-radius: 2px; background: var(--dsw-alias-label-tertiary, #6b7280); } .tm_header .tm_backToCurrent { width: 28px; height: 28px; border-radius: 6px; color: var(--dsw-alias-label-secondary); } .tm_remotePanel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; padding: 4px 0; } .tm_remoteNote { margin: 0; font-size: 13px; line-height: 20px; color: var(--dsw-alias-label-secondary); } .tm_remoteOpen { padding: 6px 14px; border: 1px solid var(--dsw-alias-border-l2); border-radius: 8px; background: var(--dsw-alias-bg-layer-1); color: var(--dsw-alias-label-primary); font: inherit; font-size: 13px; cursor: pointer; } .tm_remoteOpen:hover { background: var(--dsw-alias-interactive-bg-hover); } .tm_remoteMissing { margin: 0; font-size: 12px; color: var(--dsw-alias-state-error-primary); } .tm_statusRailPanel { background: color-mix(in oklab, var(--dsw-alias-bg-elevated, #14161c) 44%, transparent); border-right: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0 22px 22px 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 22px rgba(255, 255, 255, 0.05), 10px 0 34px rgba(0, 0, 0, 0.34); } .tm_statusRailPanel .tm_card { background: color-mix(in oklab, var(--dsw-alias-bg-layer-1, #1b1e26) 62%, transparent); border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 10px rgba(0, 0, 0, 0.2); } .tm_statusRail[data-frozen="1"] .tm_statusRailPanel, .tm_statusRail[data-frozen="1"] .tm_statusRailTab { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: color-mix(in oklab, var(--dsw-alias-bg-elevated, #14161c) 58%, transparent) !important; }`;
1691
1459
  if (typeof document !== "undefined") {
1692
1460
  const __selector = "style[data-plugin-css=" + JSON.stringify(__tagId) + "]";
1693
1461
  if (document.querySelector(__selector) === null) {
@@ -1977,6 +1745,41 @@ function GlobalSearch(props) {
1977
1745
  // src/client/MapCanvas.tsx
1978
1746
  var import_react13 = require("react");
1979
1747
 
1748
+ // src/client/rail-frozen.ts
1749
+ var frozen = false;
1750
+ var timer;
1751
+ var listeners4 = /* @__PURE__ */ new Set();
1752
+ function publish2(next) {
1753
+ if (frozen === next) return;
1754
+ frozen = next;
1755
+ for (const listener of listeners4) listener();
1756
+ }
1757
+ var railFrozen = {
1758
+ isFrozen() {
1759
+ return frozen;
1760
+ },
1761
+ subscribe(listener) {
1762
+ listeners4.add(listener);
1763
+ return () => {
1764
+ listeners4.delete(listener);
1765
+ };
1766
+ },
1767
+ freeze() {
1768
+ if (timer !== void 0) {
1769
+ clearTimeout(timer);
1770
+ timer = void 0;
1771
+ }
1772
+ publish2(true);
1773
+ },
1774
+ thaw(delayMs = 120) {
1775
+ if (timer !== void 0) clearTimeout(timer);
1776
+ timer = setTimeout(() => {
1777
+ timer = void 0;
1778
+ publish2(false);
1779
+ }, delayMs);
1780
+ }
1781
+ };
1782
+
1980
1783
  // node_modules/@xyflow/react/dist/esm/index.js
1981
1784
  var import_jsx_runtime4 = require("react/jsx-runtime");
1982
1785
  var import_react3 = require("react");
@@ -2970,7 +2773,7 @@ function defaultTouchable() {
2970
2773
  return navigator.maxTouchPoints || "ontouchstart" in this;
2971
2774
  }
2972
2775
  function drag_default() {
2973
- var filter2 = defaultFilter, container = defaultContainer, subject = defaultSubject, touchable = defaultTouchable, gestures = {}, listeners6 = dispatch_default("start", "drag", "end"), active = 0, mousedownx, mousedowny, mousemoving, touchending, clickDistance2 = 0;
2776
+ var filter2 = defaultFilter, container = defaultContainer, subject = defaultSubject, touchable = defaultTouchable, gestures = {}, listeners7 = dispatch_default("start", "drag", "end"), active = 0, mousedownx, mousedowny, mousemoving, touchending, clickDistance2 = 0;
2974
2777
  function drag(selection2) {
2975
2778
  selection2.on("mousedown.drag", mousedowned).filter(touchable).on("touchstart.drag", touchstarted).on("touchmove.drag", touchmoved, nonpassive).on("touchend.drag touchcancel.drag", touchended).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2976
2779
  }
@@ -3033,7 +2836,7 @@ function drag_default() {
3033
2836
  }
3034
2837
  }
3035
2838
  function beforestart(that, container2, event, d, identifier, touch) {
3036
- var dispatch2 = listeners6.copy(), p = pointer_default(touch || event, container2), dx, dy, s;
2839
+ var dispatch2 = listeners7.copy(), p = pointer_default(touch || event, container2), dx, dy, s;
3037
2840
  if ((s = subject.call(that, new DragEvent("beforestart", {
3038
2841
  sourceEvent: event,
3039
2842
  target: drag,
@@ -3092,8 +2895,8 @@ function drag_default() {
3092
2895
  return arguments.length ? (touchable = typeof _ === "function" ? _ : constant_default2(!!_), drag) : touchable;
3093
2896
  };
3094
2897
  drag.on = function() {
3095
- var value = listeners6.on.apply(listeners6, arguments);
3096
- return value === listeners6 ? drag : value;
2898
+ var value = listeners7.on.apply(listeners7, arguments);
2899
+ return value === listeners7 ? drag : value;
3097
2900
  };
3098
2901
  drag.clickDistance = function(_) {
3099
2902
  return arguments.length ? (clickDistance2 = (_ = +_) * _, drag) : Math.sqrt(clickDistance2);
@@ -3804,7 +3607,7 @@ function clearNow() {
3804
3607
  function Timer() {
3805
3608
  this._call = this._time = this._next = null;
3806
3609
  }
3807
- Timer.prototype = timer.prototype = {
3610
+ Timer.prototype = timer2.prototype = {
3808
3611
  constructor: Timer,
3809
3612
  restart: function(callback, delay, time) {
3810
3613
  if (typeof callback !== "function") throw new TypeError("callback is not a function");
@@ -3826,7 +3629,7 @@ Timer.prototype = timer.prototype = {
3826
3629
  }
3827
3630
  }
3828
3631
  };
3829
- function timer(callback, delay, time) {
3632
+ function timer2(callback, delay, time) {
3830
3633
  var t2 = new Timer();
3831
3634
  t2.restart(callback, delay, time);
3832
3635
  return t2;
@@ -3942,7 +3745,7 @@ function get2(node, id2) {
3942
3745
  function create(node, id2, self) {
3943
3746
  var schedules = node.__transition, tween;
3944
3747
  schedules[id2] = self;
3945
- self.timer = timer(schedule, 0, self.time);
3748
+ self.timer = timer2(schedule, 0, self.time);
3946
3749
  function schedule(elapsed) {
3947
3750
  self.state = SCHEDULED;
3948
3751
  self.timer.restart(start2, self.delay, self.time);
@@ -4695,7 +4498,7 @@ function defaultConstrain(transform2, extent, translateExtent) {
4695
4498
  );
4696
4499
  }
4697
4500
  function zoom_default2() {
4698
- var filter2 = defaultFilter2, extent = defaultExtent, constrain = defaultConstrain, wheelDelta2 = defaultWheelDelta, touchable = defaultTouchable2, scaleExtent = [0, Infinity], translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]], duration = 250, interpolate = zoom_default, listeners6 = dispatch_default("start", "zoom", "end"), touchstarting, touchfirst, touchending, touchDelay = 500, wheelDelay = 150, clickDistance2 = 0, tapDistance = 10;
4501
+ var filter2 = defaultFilter2, extent = defaultExtent, constrain = defaultConstrain, wheelDelta2 = defaultWheelDelta, touchable = defaultTouchable2, scaleExtent = [0, Infinity], translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]], duration = 250, interpolate = zoom_default, listeners7 = dispatch_default("start", "zoom", "end"), touchstarting, touchfirst, touchending, touchDelay = 500, wheelDelay = 150, clickDistance2 = 0, tapDistance = 10;
4699
4502
  function zoom(selection2) {
4700
4503
  selection2.property("__zoom", defaultTransform).on("wheel.zoom", wheeled, { passive: false }).on("mousedown.zoom", mousedowned).on("dblclick.zoom", dblclicked).filter(touchable).on("touchstart.zoom", touchstarted).on("touchmove.zoom", touchmoved).on("touchend.zoom touchcancel.zoom", touchended).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
4701
4504
  }
@@ -4807,7 +4610,7 @@ function zoom_default2() {
4807
4610
  },
4808
4611
  emit: function(type) {
4809
4612
  var d = select_default2(this.that).datum();
4810
- listeners6.call(
4613
+ listeners7.call(
4811
4614
  type,
4812
4615
  this.that,
4813
4616
  new ZoomEvent(type, {
@@ -4815,7 +4618,7 @@ function zoom_default2() {
4815
4618
  target: zoom,
4816
4619
  type,
4817
4620
  transform: this.that.__zoom,
4818
- dispatch: listeners6
4621
+ dispatch: listeners7
4819
4622
  }),
4820
4623
  d
4821
4624
  );
@@ -4965,8 +4768,8 @@ function zoom_default2() {
4965
4768
  return arguments.length ? (interpolate = _, zoom) : interpolate;
4966
4769
  };
4967
4770
  zoom.on = function() {
4968
- var value = listeners6.on.apply(listeners6, arguments);
4969
- return value === listeners6 ? zoom : value;
4771
+ var value = listeners7.on.apply(listeners7, arguments);
4772
+ return value === listeners7 ? zoom : value;
4970
4773
  };
4971
4774
  zoom.clickDistance = function(_) {
4972
4775
  return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);
@@ -7671,20 +7474,20 @@ var import_with_selector = __toESM(require_with_selector(), 1);
7671
7474
  var import_meta = {};
7672
7475
  var createStoreImpl = (createState) => {
7673
7476
  let state3;
7674
- const listeners6 = /* @__PURE__ */ new Set();
7477
+ const listeners7 = /* @__PURE__ */ new Set();
7675
7478
  const setState2 = (partial, replace) => {
7676
7479
  const nextState = typeof partial === "function" ? partial(state3) : partial;
7677
7480
  if (!Object.is(nextState, state3)) {
7678
7481
  const previousState = state3;
7679
7482
  state3 = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state3, nextState);
7680
- listeners6.forEach((listener) => listener(state3, previousState));
7483
+ listeners7.forEach((listener) => listener(state3, previousState));
7681
7484
  }
7682
7485
  };
7683
7486
  const getState = () => state3;
7684
7487
  const getInitialState2 = () => initialState;
7685
7488
  const subscribe2 = (listener) => {
7686
- listeners6.add(listener);
7687
- return () => listeners6.delete(listener);
7489
+ listeners7.add(listener);
7490
+ return () => listeners7.delete(listener);
7688
7491
  };
7689
7492
  const destroy = () => {
7690
7493
  if ((import_meta.env ? import_meta.env.MODE : void 0) !== "production") {
@@ -7692,7 +7495,7 @@ var createStoreImpl = (createState) => {
7692
7495
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
7693
7496
  );
7694
7497
  }
7695
- listeners6.clear();
7498
+ listeners7.clear();
7696
7499
  };
7697
7500
  const api = { setState: setState2, getState, getInitialState: getInitialState2, subscribe: subscribe2, destroy };
7698
7501
  const initialState = state3 = createState(setState2, getState, api);
@@ -11474,7 +11277,7 @@ function prune(record, now2) {
11474
11277
  return out;
11475
11278
  }
11476
11279
  var cache = null;
11477
- var timer2;
11280
+ var timer3;
11478
11281
  function loadLampState() {
11479
11282
  if (cache !== null) return cache;
11480
11283
  if (typeof localStorage === "undefined") return EMPTY;
@@ -11506,15 +11309,15 @@ function saveLampState(patch) {
11506
11309
  interrupted: patch.interrupted ?? base.interrupted
11507
11310
  };
11508
11311
  if (typeof localStorage === "undefined") return;
11509
- if (timer2 !== void 0) clearTimeout(timer2);
11510
- timer2 = setTimeout(() => {
11312
+ if (timer3 !== void 0) clearTimeout(timer3);
11313
+ timer3 = setTimeout(() => {
11511
11314
  flushLampState();
11512
11315
  }, 250);
11513
11316
  }
11514
11317
  function flushLampState() {
11515
- if (timer2 !== void 0) {
11516
- clearTimeout(timer2);
11517
- timer2 = void 0;
11318
+ if (timer3 !== void 0) {
11319
+ clearTimeout(timer3);
11320
+ timer3 = void 0;
11518
11321
  }
11519
11322
  if (cache === null || typeof localStorage === "undefined") return;
11520
11323
  try {
@@ -11534,17 +11337,17 @@ function recordRunningAtShutdown(sessionIds) {
11534
11337
  // src/client/session-alerts.ts
11535
11338
  var alerts = /* @__PURE__ */ new Map();
11536
11339
  var snapshot2 = /* @__PURE__ */ new Map();
11537
- var listeners4 = /* @__PURE__ */ new Set();
11340
+ var listeners5 = /* @__PURE__ */ new Set();
11538
11341
  for (const [sessionId, detail] of Object.entries(loadLampState().errors)) {
11539
11342
  alerts.set(sessionId, detail);
11540
11343
  }
11541
11344
  function persist() {
11542
11345
  saveLampState({ errors: Object.fromEntries(alerts) });
11543
11346
  }
11544
- function publish2() {
11347
+ function publish3() {
11545
11348
  snapshot2 = new Map(alerts);
11546
11349
  persist();
11547
- for (const listener of listeners4) listener();
11350
+ for (const listener of listeners5) listener();
11548
11351
  }
11549
11352
  snapshot2 = new Map(alerts);
11550
11353
  var sessionAlerts = {
@@ -11552,9 +11355,9 @@ var sessionAlerts = {
11552
11355
  return snapshot2;
11553
11356
  },
11554
11357
  subscribe(listener) {
11555
- listeners4.add(listener);
11358
+ listeners5.add(listener);
11556
11359
  return () => {
11557
- listeners4.delete(listener);
11360
+ listeners5.delete(listener);
11558
11361
  };
11559
11362
  }
11560
11363
  };
@@ -11565,11 +11368,11 @@ function attachAlertSource(remote, list) {
11565
11368
  if (typeof sessionId !== "string") return;
11566
11369
  const detail = typeof args[1] === "string" ? args[1] : "error";
11567
11370
  alerts.set(sessionId, detail);
11568
- publish2();
11371
+ publish3();
11569
11372
  };
11570
11373
  const onStatus = (...args) => {
11571
11374
  const sessionId = args[0];
11572
- if (typeof sessionId === "string" && args[1] === true && alerts.delete(sessionId)) publish2();
11375
+ if (typeof sessionId === "string" && args[1] === true && alerts.delete(sessionId)) publish3();
11573
11376
  };
11574
11377
  if (remote !== void 0) {
11575
11378
  try {
@@ -11591,7 +11394,7 @@ function attachAlertSource(remote, list) {
11591
11394
  changed = true;
11592
11395
  }
11593
11396
  }
11594
- if (changed) publish2();
11397
+ if (changed) publish3();
11595
11398
  };
11596
11399
  try {
11597
11400
  disposers.push(list.subscribe(reconcile));
@@ -11621,7 +11424,7 @@ var lastUnread = /* @__PURE__ */ new Map();
11621
11424
  var snapshot3 = /* @__PURE__ */ new Set();
11622
11425
  var interruptedSnapshot = /* @__PURE__ */ new Set();
11623
11426
  var listenerSet = /* @__PURE__ */ new Set();
11624
- function publish3() {
11427
+ function publish4() {
11625
11428
  snapshot3 = new Set(finished);
11626
11429
  interruptedSnapshot = new Set(interrupted);
11627
11430
  for (const listener of listenerSet) listener();
@@ -11644,7 +11447,7 @@ function hydrate() {
11644
11447
  interrupted.add(sessionId);
11645
11448
  hydrated.add(sessionId);
11646
11449
  }
11647
- publish3();
11450
+ publish4();
11648
11451
  }
11649
11452
  hydrate();
11650
11453
  var sessionActivity = {
@@ -11733,7 +11536,7 @@ var sessionActivity = {
11733
11536
  }
11734
11537
  if (changed) {
11735
11538
  persist2();
11736
- publish3();
11539
+ publish4();
11737
11540
  }
11738
11541
  },
11739
11542
  /**
@@ -11745,7 +11548,7 @@ var sessionActivity = {
11745
11548
  if (finished.has(sessionId)) return;
11746
11549
  finished.add(sessionId);
11747
11550
  persist2();
11748
- publish3();
11551
+ publish4();
11749
11552
  },
11750
11553
  /** The user is looking at it now: stop advertising it as unread/interrupted. */
11751
11554
  acknowledge(sessionId) {
@@ -11754,7 +11557,7 @@ var sessionActivity = {
11754
11557
  const removedInterrupted = interrupted.delete(sessionId);
11755
11558
  if (removedFinished || removedInterrupted) {
11756
11559
  persist2();
11757
- publish3();
11560
+ publish4();
11758
11561
  }
11759
11562
  },
11760
11563
  /** The session is gone (deleted / archived): drop both records. */
@@ -11764,7 +11567,7 @@ var sessionActivity = {
11764
11567
  const removed = finished.delete(sessionId) || interrupted.delete(sessionId);
11765
11568
  if (removed) {
11766
11569
  persist2();
11767
- publish3();
11570
+ publish4();
11768
11571
  }
11769
11572
  },
11770
11573
  /**
@@ -11778,7 +11581,7 @@ var sessionActivity = {
11778
11581
  if (running.length === 0) return;
11779
11582
  for (const sessionId of running) interrupted.add(sessionId);
11780
11583
  recordRunningAtShutdown(running);
11781
- publish3();
11584
+ publish4();
11782
11585
  }
11783
11586
  };
11784
11587
 
@@ -11796,10 +11599,10 @@ function draftTextOf(value) {
11796
11599
  return "";
11797
11600
  }
11798
11601
  var snapshot4 = /* @__PURE__ */ new Set();
11799
- var listeners5 = /* @__PURE__ */ new Set();
11800
- function publish4(next) {
11602
+ var listeners6 = /* @__PURE__ */ new Set();
11603
+ function publish5(next) {
11801
11604
  snapshot4 = next;
11802
- for (const listener of listeners5) listener();
11605
+ for (const listener of listeners6) listener();
11803
11606
  }
11804
11607
  function sameSet(a, b) {
11805
11608
  if (a.size !== b.size) return false;
@@ -11857,15 +11660,15 @@ var draftWatch = {
11857
11660
  return snapshot4;
11858
11661
  },
11859
11662
  subscribe(listener) {
11860
- listeners5.add(listener);
11663
+ listeners6.add(listener);
11861
11664
  return () => {
11862
- listeners5.delete(listener);
11665
+ listeners6.delete(listener);
11863
11666
  };
11864
11667
  },
11865
11668
  /** Re-read the store; publishes only when the set actually changed. */
11866
11669
  refresh() {
11867
11670
  const next = readDraftSessions();
11868
- if (!sameSet(next, snapshot4)) publish4(next);
11671
+ if (!sameSet(next, snapshot4)) publish5(next);
11869
11672
  }
11870
11673
  };
11871
11674
 
@@ -11880,7 +11683,7 @@ var STORAGE_KEY3 = "dsh.talk-map.previews.v1";
11880
11683
  var MAX_RAW = 600;
11881
11684
  var MAX_ENTRIES = 300;
11882
11685
  var cache2 = null;
11883
- var timer3;
11686
+ var timer4;
11884
11687
  function loadPreviewCache() {
11885
11688
  if (cache2 !== null) return cache2;
11886
11689
  if (typeof localStorage === "undefined") {
@@ -11914,9 +11717,9 @@ function persist3() {
11914
11717
  }
11915
11718
  }
11916
11719
  function scheduleSave() {
11917
- if (timer3 !== void 0) clearTimeout(timer3);
11918
- timer3 = setTimeout(() => {
11919
- timer3 = void 0;
11720
+ if (timer4 !== void 0) clearTimeout(timer4);
11721
+ timer4 = setTimeout(() => {
11722
+ timer4 = void 0;
11920
11723
  persist3();
11921
11724
  }, 400);
11922
11725
  }
@@ -14125,6 +13928,238 @@ function StackNode(props) {
14125
13928
  // src/client/StatusRail.tsx
14126
13929
  var import_react11 = require("react");
14127
13930
 
13931
+ // src/client/liquid-glass.ts
13932
+ function squircleSurface(t2) {
13933
+ return Math.pow(1 - Math.pow(1 - t2, 4), 0.25);
13934
+ }
13935
+ function refractionProfile(thickness, bezelWidth, ior, samples = 128) {
13936
+ const eta = 1 / ior;
13937
+ const profile = new Float64Array(samples);
13938
+ for (let index2 = 0; index2 < samples; index2 += 1) {
13939
+ const x = index2 / samples;
13940
+ const y = squircleSurface(x);
13941
+ const dx = x < 1 ? 1e-4 : -1e-4;
13942
+ const slope = (squircleSurface(x + dx) - y) / dx;
13943
+ const magnitude = Math.sqrt(slope * slope + 1);
13944
+ const nx = -slope / magnitude;
13945
+ const ny = -1 / magnitude;
13946
+ const k = 1 - eta * eta * (1 - ny * ny);
13947
+ if (k < 0) {
13948
+ profile[index2] = 0;
13949
+ continue;
13950
+ }
13951
+ const sq = Math.sqrt(k);
13952
+ const rx = -(eta * ny + sq) * nx;
13953
+ const ry = eta - (eta * ny + sq) * ny;
13954
+ profile[index2] = ry === 0 ? 0 : rx * ((y * bezelWidth + thickness) / ry);
13955
+ }
13956
+ return profile;
13957
+ }
13958
+ function displacementMap(geometry, profile) {
13959
+ const { width, height, radius, bezel } = geometry;
13960
+ const canvas2 = document.createElement("canvas");
13961
+ canvas2.width = width;
13962
+ canvas2.height = height;
13963
+ const context = canvas2.getContext("2d");
13964
+ if (context === null) return "";
13965
+ const image = context.createImageData(width, height);
13966
+ const data = image.data;
13967
+ for (let index2 = 0; index2 < data.length; index2 += 4) {
13968
+ data[index2] = 128;
13969
+ data[index2 + 1] = 128;
13970
+ data[index2 + 2] = 0;
13971
+ data[index2 + 3] = 255;
13972
+ }
13973
+ const r = Math.min(radius, Math.min(width, height) / 2 - 1);
13974
+ if (r <= 0) return canvas2.toDataURL();
13975
+ const clampedBezel = Math.min(bezel, r - 1);
13976
+ if (clampedBezel <= 1) return canvas2.toDataURL();
13977
+ const rSq = r * r;
13978
+ const r1Sq = (r + 1) * (r + 1);
13979
+ const inner = Math.max(r - clampedBezel, 0);
13980
+ const rBSq = inner * inner;
13981
+ const straightW = width - r * 2;
13982
+ const straightH = height - r * 2;
13983
+ const samples = profile.length;
13984
+ if (straightW < 0 || straightH < 0) return canvas2.toDataURL();
13985
+ let maxDisp = 1;
13986
+ for (let index2 = 0; index2 < samples; index2 += 1) maxDisp = Math.max(maxDisp, Math.abs(profile[index2]));
13987
+ for (let y = 0; y < height; y += 1) {
13988
+ for (let x = 0; x < width; x += 1) {
13989
+ let dx;
13990
+ if (x < r) dx = x - r;
13991
+ else if (x >= width - r) dx = x - r - straightW;
13992
+ else dx = 0;
13993
+ let dy;
13994
+ if (y < r) dy = y - r;
13995
+ else if (y >= height - r) dy = y - r - straightH;
13996
+ else dy = 0;
13997
+ const distanceSq = dx * dx + dy * dy;
13998
+ if (distanceSq > r1Sq || distanceSq < rBSq) continue;
13999
+ const distance2 = Math.sqrt(distanceSq);
14000
+ const fromSide = r - distance2;
14001
+ const opacity = distanceSq < rSq ? 1 : 1 - (distance2 - Math.sqrt(rSq)) / (Math.sqrt(r1Sq) - Math.sqrt(rSq));
14002
+ if (opacity <= 0 || distance2 === 0) continue;
14003
+ const cos = dx / distance2;
14004
+ const sin = dy / distance2;
14005
+ const bin = Math.min(Math.floor(fromSide / clampedBezel * samples), samples - 1);
14006
+ const displacement = profile[bin] || 0;
14007
+ const offsetX = -cos * displacement / maxDisp;
14008
+ const offsetY = -sin * displacement / maxDisp;
14009
+ const pixel = (y * width + x) * 4;
14010
+ data[pixel] = Math.min(255, Math.max(0, 128 + offsetX * 127 * opacity + 0.5 | 0));
14011
+ data[pixel + 1] = Math.min(255, Math.max(0, 128 + offsetY * 127 * opacity + 0.5 | 0));
14012
+ }
14013
+ }
14014
+ context.putImageData(image, 0, 0);
14015
+ return canvas2.toDataURL();
14016
+ }
14017
+ function specularMap(geometry, angle = Math.PI / 3) {
14018
+ const { width, height, radius, bezel } = geometry;
14019
+ const canvas2 = document.createElement("canvas");
14020
+ canvas2.width = width;
14021
+ canvas2.height = height;
14022
+ const context = canvas2.getContext("2d");
14023
+ if (context === null) return "";
14024
+ const image = context.createImageData(width, height);
14025
+ const data = image.data;
14026
+ const r = Math.min(radius, Math.min(width, height) / 2 - 1);
14027
+ if (r <= 0) return canvas2.toDataURL();
14028
+ const clampedBezel = Math.min(bezel, r - 1);
14029
+ if (clampedBezel <= 1) return canvas2.toDataURL();
14030
+ const rSq = r * r;
14031
+ const r1Sq = (r + 1) * (r + 1);
14032
+ const inner = Math.max(r - clampedBezel, 0);
14033
+ const rBSq = inner * inner;
14034
+ const straightW = width - r * 2;
14035
+ const straightH = height - r * 2;
14036
+ const lightX = Math.cos(angle);
14037
+ const lightY = Math.sin(angle);
14038
+ for (let y = 0; y < height; y += 1) {
14039
+ for (let x = 0; x < width; x += 1) {
14040
+ let dx;
14041
+ if (x < r) dx = x - r;
14042
+ else if (x >= width - r) dx = x - r - straightW;
14043
+ else dx = 0;
14044
+ let dy;
14045
+ if (y < r) dy = y - r;
14046
+ else if (y >= height - r) dy = y - r - straightH;
14047
+ else dy = 0;
14048
+ const distanceSq = dx * dx + dy * dy;
14049
+ if (distanceSq > r1Sq || distanceSq < rBSq) continue;
14050
+ const distance2 = Math.sqrt(distanceSq);
14051
+ const fromSide = r - distance2;
14052
+ const opacity = distanceSq < rSq ? 1 : 1 - (distance2 - Math.sqrt(rSq)) / (Math.sqrt(r1Sq) - Math.sqrt(rSq));
14053
+ if (opacity <= 0 || distance2 === 0) continue;
14054
+ const cos = dx / distance2;
14055
+ const sin = -dy / distance2;
14056
+ const dot = Math.abs(cos * lightX + sin * lightY);
14057
+ const edge = Math.sqrt(Math.max(0, 1 - Math.pow(1 - fromSide, 2)));
14058
+ const coefficient = dot * edge;
14059
+ const value = 255 * coefficient | 0;
14060
+ const alpha = Math.min(255, Math.max(0, value * coefficient * opacity * 0.85 | 0));
14061
+ const pixel = (y * width + x) * 4;
14062
+ data[pixel] = value;
14063
+ data[pixel + 1] = value;
14064
+ data[pixel + 2] = value;
14065
+ data[pixel + 3] = alpha;
14066
+ }
14067
+ }
14068
+ context.putImageData(image, 0, 0);
14069
+ return canvas2.toDataURL();
14070
+ }
14071
+ function filterMarkup(id2, geometry, displacementUrl, specularUrl, scale, specularOpacity) {
14072
+ const { width, height } = geometry;
14073
+ const parts = [
14074
+ `<filter id="${id2}" x="0" y="0" width="${width}" height="${height}" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">`,
14075
+ `<feImage href="${displacementUrl}" x="0" y="0" width="${width}" height="${height}" result="disp" preserveAspectRatio="none"/>`,
14076
+ `<feDisplacementMap in="SourceGraphic" in2="disp" scale="${scale.toFixed(2)}" xChannelSelector="R" yChannelSelector="G" result="bent"/>`
14077
+ ];
14078
+ if (specularUrl !== "") {
14079
+ parts.push(
14080
+ `<feImage href="${specularUrl}" x="0" y="0" width="${width}" height="${height}" result="spec" preserveAspectRatio="none"/>`,
14081
+ `<feComposite in="bent" in2="spec" operator="in" result="specMasked"/>`,
14082
+ `<feComponentTransfer in="spec" result="specFaded"><feFuncA type="linear" slope="${specularOpacity.toFixed(2)}"/></feComponentTransfer>`,
14083
+ `<feBlend in="specMasked" in2="bent" mode="screen" result="withSpec"/>`,
14084
+ `<feBlend in="specFaded" in2="withSpec" mode="screen"/>`
14085
+ );
14086
+ } else {
14087
+ parts.push('<feBlend in="bent" in2="bent" mode="normal"/>');
14088
+ }
14089
+ parts.push("</filter>");
14090
+ return parts.join("");
14091
+ }
14092
+ var FILTER_ID = "dsh-talk-map-liquid-glass";
14093
+ var SVG_ID = "dsh-talk-map-liquid-glass-svg";
14094
+ function supportsRefraction() {
14095
+ if (typeof CSS === "undefined" || typeof CSS.supports !== "function") return false;
14096
+ return CSS.supports("backdrop-filter", `url(#${FILTER_ID})`) || CSS.supports("-webkit-backdrop-filter", `url(#${FILTER_ID})`);
14097
+ }
14098
+ function installLiquidGlass(element, options = {}) {
14099
+ const radius = options.radius ?? 22;
14100
+ const bezel = options.bezel ?? 26;
14101
+ const thickness = options.thickness ?? 90;
14102
+ const ior = options.ior ?? 2.4;
14103
+ const scale = options.scale ?? 58;
14104
+ const specular = options.specular ?? 0.42;
14105
+ const blur = options.blur ?? 0;
14106
+ if (!supportsRefraction()) {
14107
+ element.style.setProperty("backdrop-filter", "blur(14px) saturate(1.6)");
14108
+ element.style.setProperty("-webkit-backdrop-filter", "blur(14px) saturate(1.6)");
14109
+ return () => {
14110
+ element.style.removeProperty("backdrop-filter");
14111
+ element.style.removeProperty("-webkit-backdrop-filter");
14112
+ };
14113
+ }
14114
+ let svg;
14115
+ let frame2 = 0;
14116
+ const disposeSvg = () => {
14117
+ svg?.remove();
14118
+ svg = void 0;
14119
+ };
14120
+ const rebuild = () => {
14121
+ const rect = element.getBoundingClientRect();
14122
+ const width = Math.max(2, Math.round(rect.width));
14123
+ const height = Math.max(2, Math.round(rect.height));
14124
+ if (width < 8 || height < 8) return;
14125
+ const geometry = { width, height, radius, bezel };
14126
+ const profile = refractionProfile(thickness, bezel, ior);
14127
+ const displacementUrl = displacementMap(geometry, profile);
14128
+ if (displacementUrl === "") return;
14129
+ const specularUrl = specular > 0 ? specularMap(geometry) : "";
14130
+ disposeSvg();
14131
+ svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
14132
+ svg.setAttribute("id", SVG_ID);
14133
+ svg.setAttribute("width", "0");
14134
+ svg.setAttribute("height", "0");
14135
+ svg.setAttribute("style", "position:absolute;overflow:hidden;pointer-events:none");
14136
+ svg.setAttribute("color-interpolation-filters", "sRGB");
14137
+ svg.innerHTML = `<defs>${filterMarkup(FILTER_ID, geometry, displacementUrl, specularUrl, scale, specular)}</defs>`;
14138
+ document.body.append(svg);
14139
+ const filters = [`url(#${FILTER_ID})`];
14140
+ if (blur > 0.5) filters.push(`blur(${blur.toFixed(1)}px)`);
14141
+ element.style.setProperty("backdrop-filter", filters.join(" "));
14142
+ element.style.setProperty("-webkit-backdrop-filter", filters.join(" "));
14143
+ };
14144
+ const schedule = () => {
14145
+ if (frame2 !== 0) cancelAnimationFrame(frame2);
14146
+ frame2 = requestAnimationFrame(() => {
14147
+ frame2 = 0;
14148
+ rebuild();
14149
+ });
14150
+ };
14151
+ const observer = new ResizeObserver(schedule);
14152
+ observer.observe(element);
14153
+ rebuild();
14154
+ return () => {
14155
+ observer.disconnect();
14156
+ if (frame2 !== 0) cancelAnimationFrame(frame2);
14157
+ disposeSvg();
14158
+ element.style.removeProperty("backdrop-filter");
14159
+ element.style.removeProperty("-webkit-backdrop-filter");
14160
+ };
14161
+ }
14162
+
14128
14163
  // src/client/queue-order.ts
14129
14164
  function queueRank(lamp, draft) {
14130
14165
  if (lamp === "error") return 0;
@@ -14205,10 +14240,27 @@ function writeOrder(order) {
14205
14240
  }
14206
14241
  function StatusRail(props) {
14207
14242
  const open = (0, import_react11.useSyncExternalStore)(subscribeOpen, openSnapshot, openSnapshot);
14243
+ const frozen2 = (0, import_react11.useSyncExternalStore)(railFrozen.subscribe, railFrozen.isFrozen);
14208
14244
  (0, import_react11.useEffect)(() => {
14209
14245
  const element = panelRef.current;
14210
14246
  if (element === null) return void 0;
14211
- return installLiquidGlass(element, { radius: 22, bezel: 40, thickness: 90, ior: 2.2, scale: 14, specular: 0.3 });
14247
+ return installLiquidGlass(element, { radius: 22, bezel: 26, thickness: 90, ior: 2.2, scale: 14, specular: 0.3 });
14248
+ }, []);
14249
+ (0, import_react11.useEffect)(() => {
14250
+ const onDown = () => {
14251
+ railFrozen.freeze();
14252
+ };
14253
+ const onUp = () => {
14254
+ railFrozen.thaw();
14255
+ };
14256
+ window.addEventListener("pointerdown", onDown, { capture: true });
14257
+ window.addEventListener("pointerup", onUp, { capture: true });
14258
+ window.addEventListener("pointercancel", onUp, { capture: true });
14259
+ return () => {
14260
+ window.removeEventListener("pointerdown", onDown, { capture: true });
14261
+ window.removeEventListener("pointerup", onUp, { capture: true });
14262
+ window.removeEventListener("pointercancel", onUp, { capture: true });
14263
+ };
14212
14264
  }, []);
14213
14265
  const [order, setOrder] = (0, import_react11.useState)(() => readOrder());
14214
14266
  const [drag, setDrag] = (0, import_react11.useState)(null);
@@ -14419,6 +14471,7 @@ function StatusRail(props) {
14419
14471
  {
14420
14472
  className: talk_map_default["statusRail"],
14421
14473
  "data-open": open ? "1" : "0",
14474
+ "data-frozen": frozen2 ? "1" : "0",
14422
14475
  style: { ["--rail-card-w"]: `${props.cardWidth}px` },
14423
14476
  children: [
14424
14477
  /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: talk_map_default["statusRailPanel"], "aria-hidden": !open, ref: panelRef, children: [
@@ -14604,12 +14657,12 @@ function CanvasInner(props) {
14604
14657
  });
14605
14658
  };
14606
14659
  syncTexts();
14607
- const timer4 = setInterval(() => {
14660
+ const timer5 = setInterval(() => {
14608
14661
  draftWatch.refresh();
14609
14662
  syncTexts();
14610
14663
  }, 1500);
14611
14664
  return () => {
14612
- clearInterval(timer4);
14665
+ clearInterval(timer5);
14613
14666
  };
14614
14667
  }, []);
14615
14668
  const [previews, setPreviews] = (0, import_react13.useState)(readPreviewTexts);
@@ -14768,9 +14821,9 @@ function CanvasInner(props) {
14768
14821
  };
14769
14822
  previewTick.current = tick;
14770
14823
  tick();
14771
- const timer4 = setInterval(tick, 1500);
14824
+ const timer5 = setInterval(tick, 1500);
14772
14825
  return () => {
14773
- clearInterval(timer4);
14826
+ clearInterval(timer5);
14774
14827
  };
14775
14828
  }, []);
14776
14829
  (0, import_react13.useEffect)(() => {
@@ -14842,7 +14895,7 @@ function CanvasInner(props) {
14842
14895
  (0, import_react13.useEffect)(() => {
14843
14896
  if (canvasState.phase !== "ready") return;
14844
14897
  if (draggingCardId !== null || liveFrame !== null) return;
14845
- const timer4 = window.setTimeout(() => {
14898
+ const timer5 = window.setTimeout(() => {
14846
14899
  const stale = {};
14847
14900
  for (const [cardId, point] of Object.entries(cardLayout)) {
14848
14901
  const card = canvasState.cards[cardId];
@@ -14852,7 +14905,7 @@ function CanvasInner(props) {
14852
14905
  }
14853
14906
  if (Object.keys(stale).length > 0) canvas.moveCards(stale);
14854
14907
  }, 140);
14855
- return () => window.clearTimeout(timer4);
14908
+ return () => window.clearTimeout(timer5);
14856
14909
  }, [cardLayout, canvasState.cards, canvasState.phase, draggingCardId, liveFrame]);
14857
14910
  const foldedSet = (0, import_react13.useMemo)(() => new Set(Object.values(foldedCards).flat()), [foldedCards]);
14858
14911
  (0, import_react13.useEffect)(() => {
@@ -15321,8 +15374,8 @@ function CanvasInner(props) {
15321
15374
  const CARD_PAINTED_H = 129;
15322
15375
  const [boardTick, setBoardTick] = (0, import_react13.useState)(0);
15323
15376
  (0, import_react13.useEffect)(() => {
15324
- const timer4 = window.setTimeout(() => setBoardTick((value) => value + 1), 150);
15325
- return () => window.clearTimeout(timer4);
15377
+ const timer5 = window.setTimeout(() => setBoardTick((value) => value + 1), 150);
15378
+ return () => window.clearTimeout(timer5);
15326
15379
  }, []);
15327
15380
  const obstaclesFor = (fromCardId, toCardId) => {
15328
15381
  const rendered = renderedBoxes();
@@ -16388,7 +16441,11 @@ function CanvasInner(props) {
16388
16441
  event.preventDefault();
16389
16442
  }
16390
16443
  },
16444
+ onMoveStart: () => {
16445
+ railFrozen.freeze();
16446
+ },
16391
16447
  onMoveEnd: (_event, viewport) => {
16448
+ railFrozen.thaw();
16392
16449
  canvas.setCamera(INBOX_BOARD_ID, viewport);
16393
16450
  },
16394
16451
  colorMode: dark ? "dark" : "light",
@@ -16633,12 +16690,6 @@ function CloseIcon() {
16633
16690
  function MapOverlay(props) {
16634
16691
  (0, import_react15.useSyncExternalStore)(subscribeLocale, activeLocale, activeLocale);
16635
16692
  const fontStep = (0, import_react15.useSyncExternalStore)(fontScale.subscribe, fontScale.getSnapshot);
16636
- const headerRef = (0, import_react15.useRef)(null);
16637
- (0, import_react15.useEffect)(() => {
16638
- const element = headerRef.current;
16639
- if (element === null) return void 0;
16640
- return installLiquidGlass(element, { radius: 16, bezel: 28, thickness: 60, ior: 2.2, scale: 10, specular: 0.3 });
16641
- }, []);
16642
16693
  (0, import_react15.useEffect)(() => {
16643
16694
  mapUi.setOpen(true);
16644
16695
  hideSidebarForMap();
@@ -16668,7 +16719,7 @@ function MapOverlay(props) {
16668
16719
  "aria-label": t("map.title"),
16669
16720
  style: { "--tm-font-step": `${fontStep}px` },
16670
16721
  children: [
16671
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: talk_map_default["header"], ref: headerRef, children: [
16722
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: talk_map_default["header"], children: [
16672
16723
  /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
16673
16724
  "button",
16674
16725
  {
@@ -16813,12 +16864,12 @@ function SidebarQueue() {
16813
16864
  const [opened, setOpened] = (0, import_react18.useState)(() => /* @__PURE__ */ new Set());
16814
16865
  const askedRef = (0, import_react18.useRef)(/* @__PURE__ */ new Set());
16815
16866
  (0, import_react18.useEffect)(() => {
16816
- const timer4 = setInterval(() => {
16867
+ const timer5 = setInterval(() => {
16817
16868
  if (typeof document !== "undefined" && document.hidden) return;
16818
16869
  setDrafts(readDraftTexts());
16819
16870
  }, 1500);
16820
16871
  return () => {
16821
- clearInterval(timer4);
16872
+ clearInterval(timer5);
16822
16873
  };
16823
16874
  }, []);
16824
16875
  const onGripDown = (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-talk-map",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Visual conversation map for DeepSeek Harness: an infinite whiteboard where every session is a card — drag to arrange, double-click to start a chat in place, draw an edge to fork a new session with injected context. Built for ADHD-friendly spatial memory. · DSH 可视化对话地图:会话即卡片,双击即聊,连线分叉带上下文的新对话。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",