@hyprnos/dsh-remote-plugin 0.0.0-stage → 0.8.9
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.
- package/README.en.md +61 -0
- package/README.md +60 -2
- package/apk/dsh-remote.apk +0 -0
- package/approval-summary.mjs +115 -0
- package/client.js +197 -0
- package/cordis.patch.yml +5 -0
- package/doctor-skill.mjs +99 -0
- package/doctor-target.mjs +24 -0
- package/file-delivery.mjs +84 -0
- package/gateway-stats.cjs +501 -0
- package/gateway.cjs +8451 -0
- package/index.mjs +1788 -0
- package/insights.mjs +111 -0
- package/market.mjs +86 -0
- package/package.json +73 -4
- package/peak-reminders.mjs +50 -0
- package/plugin-center.mjs +777 -0
- package/plugin-transaction.mjs +300 -0
- package/public/activity.js +188 -0
- package/public/admin.html +820 -0
- package/public/admin.js +1167 -0
- package/public/announcement-forms.js +89 -0
- package/public/announcements.json +464 -0
- package/public/app.js +8826 -0
- package/public/approval-records.js +301 -0
- package/public/approval-summary.js +78 -0
- package/public/build.json +5 -0
- package/public/cache-upgrade.js +51 -0
- package/public/chat-copy.js +59 -0
- package/public/chat-files.js +87 -0
- package/public/desktop/desktop.css +816 -0
- package/public/desktop/desktop.html +871 -0
- package/public/desktop/desktop.js +4548 -0
- package/public/desktop/i18n.js +85 -0
- package/public/diagnostics.js +203 -0
- package/public/doctor-entry.js +94 -0
- package/public/doctor.css +205 -0
- package/public/doctor.js +769 -0
- package/public/donate.png +0 -0
- package/public/e2ee-transport.js +219 -0
- package/public/extensions.css +109 -0
- package/public/extensions.js +215 -0
- package/public/file-inbox.css +66 -0
- package/public/file-inbox.js +289 -0
- package/public/genui.css +8 -0
- package/public/genui.js +254 -0
- package/public/history.js +304 -0
- package/public/i18n.js +57 -0
- package/public/icon.svg +12 -0
- package/public/image-cache.js +141 -0
- package/public/image-preview.js +290 -0
- package/public/index.html +1568 -0
- package/public/insights.css +28 -0
- package/public/insights.js +290 -0
- package/public/jsqr.min.js +10104 -0
- package/public/lan-discovery.js +94 -0
- package/public/link-check.js +109 -0
- package/public/manifest.webmanifest +16 -0
- package/public/md.js +333 -0
- package/public/morphicons-init.js +41 -0
- package/public/motion.js +557 -0
- package/public/network.js +100 -0
- package/public/onboarding.css +36 -0
- package/public/onboarding.js +253 -0
- package/public/operations.js +141 -0
- package/public/permission-presets.js +159 -0
- package/public/plugin-center.css +120 -0
- package/public/plugin-center.js +666 -0
- package/public/plugin-icon.svg +5 -0
- package/public/plugin.html +68 -0
- package/public/plugin.js +211 -0
- package/public/qrcode.min.js +2297 -0
- package/public/relay-autopair.js +251 -0
- package/public/relay-devices.js +80 -0
- package/public/relay-settings.css +24 -0
- package/public/relay-settings.js +194 -0
- package/public/remote-state.js +27 -0
- package/public/remote-ui.css +148 -0
- package/public/remote-ui.js +243 -0
- package/public/session-deck.css +79 -0
- package/public/session-deck.js +180 -0
- package/public/session-presets.js +47 -0
- package/public/setup.css +18 -0
- package/public/setup.js +213 -0
- package/public/sha256.js +119 -0
- package/public/skills.css +81 -0
- package/public/skills.js +202 -0
- package/public/skins/blue-fish/DESIGN.md +24 -0
- package/public/skins/blue-fish/face.png +0 -0
- package/public/skins/blue-fish/icon-blush.png +0 -0
- package/public/skins/blue-fish/icon-sleep.png +0 -0
- package/public/skins/blue-fish/icon-smile.png +0 -0
- package/public/skins/blue-fish/icon-star.png +0 -0
- package/public/skins/blue-fish/icon-wink.png +0 -0
- package/public/skins/blue-fish/icon.png +0 -0
- package/public/skins/blue-fish/mascot.png +0 -0
- package/public/skins/blue-fish/pattern.png +0 -0
- package/public/skins/blue-fish/preview.html +12 -0
- package/public/skins/blue-fish/skin.css +122 -0
- package/public/skins/blue-fish/sparkles.svg +18 -0
- package/public/skins/bocchi/DESIGN.md +99 -0
- package/public/skins/bocchi/face.png +0 -0
- package/public/skins/bocchi/grain.png +0 -0
- package/public/skins/bocchi/icon-blush.png +0 -0
- package/public/skins/bocchi/icon-sleep.png +0 -0
- package/public/skins/bocchi/icon-smile.png +0 -0
- package/public/skins/bocchi/icon-star.png +0 -0
- package/public/skins/bocchi/icon-wink.png +0 -0
- package/public/skins/bocchi/icon.png +0 -0
- package/public/skins/bocchi/pattern-soft.png +0 -0
- package/public/skins/bocchi/pattern.png +0 -0
- package/public/skins/bocchi/preview.html +55 -0
- package/public/skins/bocchi/skin.css +233 -0
- package/public/skins/bocchi/stage-bg.png +0 -0
- package/public/skins/bocchi/stage-soft.png +0 -0
- package/public/skins/bocchi/stand.png +0 -0
- package/public/skins/bocchi/sticker-guitar.png +0 -0
- package/public/skins/kessoku/DESIGN.md +38 -0
- package/public/skins/kessoku/grain.png +0 -0
- package/public/skins/kessoku/skin.css +212 -0
- package/public/skins/kita/SOURCES.json +51 -0
- package/public/skins/kita/face.png +0 -0
- package/public/skins/kita/icon-live.png +0 -0
- package/public/skins/kita/icon-reddress.png +0 -0
- package/public/skins/kita/icon-seifuku.png +0 -0
- package/public/skins/kita/pattern.png +0 -0
- package/public/skins/kita/preview.html +56 -0
- package/public/skins/kita/skin.css +26 -0
- package/public/skins/kita/stand.png +0 -0
- package/public/skins/kita/sticker-live.png +0 -0
- package/public/skins/nijika/SOURCES.json +51 -0
- package/public/skins/nijika/face.png +0 -0
- package/public/skins/nijika/icon-live.png +0 -0
- package/public/skins/nijika/icon-reddress.png +0 -0
- package/public/skins/nijika/icon-seifuku.png +0 -0
- package/public/skins/nijika/pattern.png +0 -0
- package/public/skins/nijika/preview.html +56 -0
- package/public/skins/nijika/skin.css +25 -0
- package/public/skins/nijika/stand.png +0 -0
- package/public/skins/nijika/sticker-live.png +0 -0
- package/public/skins/penguin/DESIGN.md +33 -0
- package/public/skins/penguin/SOURCES.json +22 -0
- package/public/skins/penguin/aic-blueprint.svg +24 -0
- package/public/skins/penguin/endfield-triangles.svg +4 -0
- package/public/skins/penguin/face.png +0 -0
- package/public/skins/penguin/icon-blush.png +0 -0
- package/public/skins/penguin/icon-dizzy.png +0 -0
- package/public/skins/penguin/icon-laugh.png +0 -0
- package/public/skins/penguin/icon-sleep.png +0 -0
- package/public/skins/penguin/icon-smile.png +0 -0
- package/public/skins/penguin/icon-star.png +0 -0
- package/public/skins/penguin/icon-wink.png +0 -0
- package/public/skins/penguin/icon.png +0 -0
- package/public/skins/penguin/mascot.png +0 -0
- package/public/skins/penguin/pattern-night.png +0 -0
- package/public/skins/penguin/pattern.png +0 -0
- package/public/skins/penguin/preview.html +12 -0
- package/public/skins/penguin/skin.css +212 -0
- package/public/skins/ryo/SOURCES.json +51 -0
- package/public/skins/ryo/face.png +0 -0
- package/public/skins/ryo/icon-live.png +0 -0
- package/public/skins/ryo/icon-reddress.png +0 -0
- package/public/skins/ryo/icon-seifuku.png +0 -0
- package/public/skins/ryo/pattern.png +0 -0
- package/public/skins/ryo/preview.html +56 -0
- package/public/skins/ryo/skin.css +25 -0
- package/public/skins/ryo/stand.png +0 -0
- package/public/skins/ryo/sticker-live.png +0 -0
- package/public/sponsor-entry.js +21 -0
- package/public/styles.css +1526 -0
- package/public/subagents.css +61 -0
- package/public/subagents.js +275 -0
- package/public/task-board.js +109 -0
- package/public/teams.js +98 -0
- package/public/theme-picker.css +58 -0
- package/public/theme-vars.css +1044 -0
- package/public/theme.js +166 -0
- package/public/transcribe-core.js +74 -0
- package/public/turn-results.js +121 -0
- package/public/update.json +49 -0
- package/public/vendor/gsap/NOTICE.md +10 -0
- package/public/vendor/gsap/gsap.min.js +11 -0
- package/public/vendor/morphicons/LICENSE +21 -0
- package/public/vendor/morphicons/README.md +10 -0
- package/public/vendor/morphicons/controller-CXZuwJ_M.js +152 -0
- package/public/vendor/morphicons/dom.js +206 -0
- package/public/vendor/morphicons/element.js +261 -0
- package/public/vendor/morphicons/normalize-CYnN3Npw.js +540 -0
- package/public/vendor/morphicons/spring-CFHloqPP.js +623 -0
- package/public/version.json +3 -0
- package/public/voice-input.js +1151 -0
- package/public/workflow.css +365 -0
- package/public/workflow.js +419 -0
- package/session-file.mjs +39 -0
- package/skills/dsh-remote-doctor/SKILL.md +186 -0
- package/skills/dsh-remote-doctor/references/wiki/README.md +40 -0
- package/skills/dsh-remote-doctor/references/wiki/ai-guide.md +61 -0
- package/skills/dsh-remote-doctor/references/wiki/connection.md +76 -0
- package/skills/dsh-remote-doctor/references/wiki/errors.md +26 -0
- package/skills/dsh-remote-doctor/references/wiki/evidence.md +44 -0
- package/skills/dsh-remote-doctor/references/wiki/files.md +31 -0
- package/skills/dsh-remote-doctor/references/wiki/maintenance.md +30 -0
- package/skills/dsh-remote-doctor/references/wiki/notifications.md +33 -0
- package/skills/dsh-remote-doctor/references/wiki/operations.md +32 -0
- package/skills/dsh-remote-doctor/references/wiki/plugins.md +90 -0
- package/skills/dsh-remote-doctor/references/wiki/sessions.md +45 -0
- package/skills/dsh-remote-doctor/references/wiki/sources.md +27 -0
- package/skills.mjs +53 -0
- package/speech-whisper.mjs +705 -0
- package/task-board.mjs +57 -0
- package/teams.mjs +58 -0
|
@@ -0,0 +1,816 @@
|
|
|
1
|
+
/* DSH Remote 桌面端专用样式 · 零依赖 · 只引用 --dsr-* 皮肤变量 */
|
|
2
|
+
html, body {
|
|
3
|
+
height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none;
|
|
4
|
+
background: var(--dsr-bg); color: var(--dsr-text);
|
|
5
|
+
font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", sans-serif;
|
|
6
|
+
font-size: 14px; line-height: 1.5; text-rendering: optimizeLegibility;
|
|
7
|
+
}
|
|
8
|
+
.hidden { display: none !important; }
|
|
9
|
+
.ds-app { position: fixed; inset: 0; display: flex; overflow: hidden; }
|
|
10
|
+
.ds-sidebar { width: 280px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--dsr-line); background: linear-gradient(180deg, var(--dsr-panel), var(--dsr-bg)); box-shadow: 12px 0 34px var(--dsr-shadow); overflow: hidden; }
|
|
11
|
+
.ds-sidebar-backdrop { display: none; }
|
|
12
|
+
.ds-brand { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px 18px; font-weight: 750; font-size: 15px; letter-spacing: .1px; }
|
|
13
|
+
.ds-brand-trigger { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 0; border: 0; border-radius: 10px; background: transparent; color: var(--dsr-text); font: inherit; text-align: left; cursor: pointer; }
|
|
14
|
+
.ds-brand-trigger:hover { background: var(--dsr-accent-soft); }
|
|
15
|
+
.ds-brand-trigger:focus-visible { outline: 2px solid var(--dsr-accent); outline-offset: 2px; }
|
|
16
|
+
.ds-logo { color: var(--dsr-accent-strong); }
|
|
17
|
+
.ds-brand-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0; line-height: 1.14; }
|
|
18
|
+
.ds-brand-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
19
|
+
.ds-brand-group-name { min-width: 0; overflow: hidden; color: var(--dsr-muted); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
20
|
+
.ds-brand-caret { flex: none; color: var(--dsr-muted); font-size: 15px; line-height: 1; transition: transform .18s ease, color .18s ease; }
|
|
21
|
+
.ds-brand-trigger[aria-expanded="true"] .ds-brand-caret { color: var(--dsr-accent-strong); transform: rotate(180deg); }
|
|
22
|
+
.ds-gh { color: var(--dsr-accent-2); display: inline-flex; }
|
|
23
|
+
.ds-gh svg { width: 17px; height: 17px; fill: currentColor; }
|
|
24
|
+
.ds-new-session { padding: 0 12px 8px; }
|
|
25
|
+
.ds-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--dsr-bg-2); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
|
|
26
|
+
.ds-btn.primary { background: var(--dsr-accent-soft); border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); }
|
|
27
|
+
.ds-btn:hover { filter: brightness(1.06); }
|
|
28
|
+
.ds-btn:active { filter: brightness(.96); }
|
|
29
|
+
a.ds-btn { text-decoration: none; }
|
|
30
|
+
.ds-new-session .ds-btn { width: 100%; justify-content: center; min-height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--dsr-accent-soft), transparent); }
|
|
31
|
+
.ds-section-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding-right: 10px; }
|
|
32
|
+
.ds-section-label { min-width: 0; flex: 1; font-size: 11px; color: var(--dsr-muted); letter-spacing: .8px; padding: 10px 14px 6px; font-weight: 700; }
|
|
33
|
+
.ds-session-sort {
|
|
34
|
+
width: 92px; min-width: 0; height: 26px; padding: 0 5px; color: var(--dsr-muted);
|
|
35
|
+
background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 7px;
|
|
36
|
+
font: inherit; font-size: 10.5px; outline: none;
|
|
37
|
+
}
|
|
38
|
+
.ds-session-sort:focus { border-color: var(--dsr-accent-line); color: var(--dsr-text); }
|
|
39
|
+
.ds-session-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 5px; }
|
|
40
|
+
.ds-session-group {
|
|
41
|
+
display: flex; align-items: center; gap: 6px; flex: 0 0 auto; min-width: 0; min-height: 28px;
|
|
42
|
+
box-sizing: border-box; padding: 8px 10px 4px; border-bottom: 1px solid var(--dsr-line);
|
|
43
|
+
color: var(--dsr-accent-strong); font-size: 10px; font-weight: 700; line-height: 1.2;
|
|
44
|
+
}
|
|
45
|
+
.ds-session-workspace-group { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0; }
|
|
46
|
+
.ds-session-group { touch-action: pan-y; user-select: none; }
|
|
47
|
+
.ds-session-group-drag-handle { flex: 0 0 auto; color: var(--dsr-muted); opacity: .52; font-size: 13px; line-height: 1; letter-spacing: -3px; }
|
|
48
|
+
.ds-session-workspace-group.reorder-pressing { outline: 1px solid var(--dsr-accent-line); border-radius: 10px; }
|
|
49
|
+
.ds-session-workspace-group.reorder-dragging { position: relative; z-index: 5; opacity: .76; outline: 1px solid var(--dsr-accent-strong); box-shadow: 0 10px 24px var(--dsr-shadow); touch-action: none; }
|
|
50
|
+
.ds-session-workspace-group .ds-session-item { touch-action: pan-y; }
|
|
51
|
+
.ds-session-group-icon { flex: 0 0 auto; color: var(--dsr-accent-2); font-size: 11px; }
|
|
52
|
+
.ds-session-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
53
|
+
.ds-session-item { width: 100%; flex: 0 0 auto; text-align: left; border: 1px solid transparent; background: transparent; color: var(--dsr-text); font: inherit; font-size: 13px; padding: 9px 10px; border-radius: 11px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
|
|
54
|
+
.ds-session-item:hover { background: linear-gradient(90deg, var(--dsr-bg-2), transparent); border-color: var(--dsr-line); transform: translateX(2px); }
|
|
55
|
+
.ds-session-item.current { background: linear-gradient(90deg, var(--dsr-accent-soft), transparent); border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); }
|
|
56
|
+
.ds-session-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
57
|
+
.ds-session-workspace { min-width: 0; color: var(--dsr-muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
58
|
+
.ds-session-list.workspace-sorted .ds-session-workspace { display: none; }
|
|
59
|
+
.ds-session-list.workspace-sorted .ds-session-item { padding-top: 9px; padding-bottom: 9px; }
|
|
60
|
+
.ds-session-meta { display: flex; gap: 7px; font-size: 11px; color: var(--dsr-muted); align-items: center; }
|
|
61
|
+
.ds-session-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dsr-line); }
|
|
62
|
+
.ds-session-dot.running { background: var(--dsr-warning); }
|
|
63
|
+
.ds-sidebar-foot { border-top: 1px solid var(--dsr-line); padding: 8px; display: flex; flex-direction: column; gap: 3px; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--dsr-line) transparent; }
|
|
64
|
+
.ds-sidebar-foot > * { flex-shrink: 0; }
|
|
65
|
+
.ds-nav-item { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent; color: var(--dsr-text); font: inherit; font-size: 13px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
|
|
66
|
+
.ds-nav-item:hover { background: linear-gradient(90deg, var(--dsr-bg-2), transparent); transform: translateX(2px); }
|
|
67
|
+
.ds-nav-item.active { background: linear-gradient(90deg, var(--dsr-accent-soft), transparent); color: var(--dsr-accent-strong); }
|
|
68
|
+
.ds-nav-item.active::before { content: ''; width: 3px; height: 18px; position: absolute; left: 2px; border-radius: 999px; background: var(--dsr-accent); box-shadow: 0 0 12px var(--dsr-glow); }
|
|
69
|
+
.ds-nav-ico { width: 18px; height: 18px; display: grid; place-items: center; text-align: center; color: var(--dsr-accent-2); }
|
|
70
|
+
.ds-nav-ico svg { width: 17px; height: 17px; display: block; }
|
|
71
|
+
.ds-nav-item.active .ds-nav-ico { color: var(--dsr-accent-strong); }
|
|
72
|
+
|
|
73
|
+
/* ---------- 工作台 ---------- */
|
|
74
|
+
.ds-action-item{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;border:none;background:transparent;color:var(--dsr-text);font:inherit;text-align:left;cursor:pointer;text-decoration:none}
|
|
75
|
+
.ds-action-item:hover,.ds-action-item:focus-visible{background:var(--dsr-bg)}
|
|
76
|
+
.ds-workbench { border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-bg-2); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
|
|
77
|
+
.ds-wb-badge { font-size: 11.5px; font-weight: 700; color: var(--dsr-accent-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
78
|
+
.ds-wb-unbound, .ds-wb-bound { display: flex; flex-direction: column; gap: 6px; }
|
|
79
|
+
.ds-wb-bind-btn { justify-content: center; width: 100%; }
|
|
80
|
+
.ds-wb-api-hint { font-size: 10.5px; color: var(--dsr-warning); line-height: 1.4; }
|
|
81
|
+
.ds-wb-head { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: none; background: transparent; color: var(--dsr-text); font: inherit; font-size: 12.5px; font-weight: 700; padding: 2px; cursor: pointer; }
|
|
82
|
+
.ds-wb-caret { flex: none; color: var(--dsr-muted); font-size: 10px; width: 12px; text-align: center; }
|
|
83
|
+
.ds-wb-head-text { flex: 1; min-width: 0; }
|
|
84
|
+
.ds-wb-actions { display: flex; gap: 6px; }
|
|
85
|
+
.ds-wb-actions .ds-mini-btn { flex: 1; }
|
|
86
|
+
.ds-wb-panel { border-top: 1px solid var(--dsr-divider); padding-top: 6px; display: flex; flex-direction: column; gap: 5px; max-height: 42vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dsr-line) transparent; }
|
|
87
|
+
.ds-wb-panel > * { flex-shrink: 0; }
|
|
88
|
+
.ds-wb-panel-title { font-size: 10.5px; font-weight: 700; color: var(--dsr-muted); letter-spacing: .6px; text-transform: uppercase; }
|
|
89
|
+
.ds-wb-project { border: 1px solid var(--dsr-line); border-radius: 9px; background: var(--dsr-panel); overflow: hidden; }
|
|
90
|
+
.ds-wb-project-head { width: 100%; display: flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--dsr-text); font: inherit; font-size: 12.5px; padding: 6px 8px; cursor: pointer; text-align: left; touch-action: pan-y; user-select: none; }
|
|
91
|
+
.ds-wb-drag-handle, .ds-wb-session-drag-handle { flex: none; color: var(--dsr-muted); opacity: .52; font-size: 13px; line-height: 1; letter-spacing: -3px; }
|
|
92
|
+
.ds-wb-project.reorder-pressing, .ds-wb-session.reorder-pressing { outline: 1px solid var(--dsr-accent-line); }
|
|
93
|
+
.ds-wb-project.reorder-dragging, .ds-wb-session.reorder-dragging { position: relative; z-index: 5; opacity: .76; outline: 1px solid var(--dsr-accent-strong); box-shadow: 0 10px 24px var(--dsr-shadow); touch-action: none; }
|
|
94
|
+
.ds-wb-panel.reorder-active { user-select: none; }
|
|
95
|
+
.reorder-placeholder { flex: 0 0 auto; box-sizing: border-box; border: 1px dashed var(--dsr-accent-line); border-radius: 7px; background: var(--dsr-accent-soft); opacity: .72; }
|
|
96
|
+
html.reorder-scroll-lock { overscroll-behavior: none; }
|
|
97
|
+
html.reorder-scroll-lock body { overscroll-behavior: none; }
|
|
98
|
+
.ds-wb-project-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
99
|
+
.ds-wb-project-count { flex: none; font-size: 10.5px; color: var(--dsr-muted); background: var(--dsr-bg-2); border-radius: 999px; padding: 0 7px; line-height: 16px; }
|
|
100
|
+
.ds-wb-project-body { display: flex; flex-direction: column; gap: 3px; padding: 2px 6px 7px; }
|
|
101
|
+
.ds-wb-new-session { align-self: flex-start; margin: 2px 0 3px; }
|
|
102
|
+
.ds-wb-session { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: none; background: transparent; color: var(--dsr-text); font: inherit; font-size: 12px; padding: 5px 7px; border-radius: 7px; cursor: pointer; touch-action: pan-y; user-select: none; }
|
|
103
|
+
.ds-wb-session.current { background: var(--dsr-accent-soft); color: var(--dsr-accent-strong); }
|
|
104
|
+
.ds-wb-session-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--dsr-line); }
|
|
105
|
+
.ds-wb-session-dot.running { background: var(--dsr-warning); }
|
|
106
|
+
.ds-wb-session-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
107
|
+
.ds-wb-session-empty, .ds-wb-empty { font-size: 11px; color: var(--dsr-muted); padding: 5px 7px; line-height: 1.5; }
|
|
108
|
+
.ds-wb-unbind-panel { align-self: flex-end; }
|
|
109
|
+
.ds-archived-toggle { width: 100%; border: none; background: transparent; color: var(--dsr-muted); font: inherit; font-size: 11px; letter-spacing: .4px; padding: 7px 4px; cursor: pointer; text-align: center; }
|
|
110
|
+
|
|
111
|
+
/* ---------- 工作台绑定弹窗 ---------- */
|
|
112
|
+
.ds-wb-modal-card { width: min(620px, 100%); }
|
|
113
|
+
.ds-wb-modal-desc { font-size: 12.5px; color: var(--dsr-muted); line-height: 1.5; }
|
|
114
|
+
.ds-wb-fsbar, .ds-wb-manual { display: flex; align-items: center; gap: 8px; }
|
|
115
|
+
.ds-wb-fs-path { flex: 1; min-width: 0; font-size: 12px; color: var(--dsr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
116
|
+
.ds-wb-fs-list { border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-panel); max-height: 42vh; overflow-y: auto; }
|
|
117
|
+
.ds-wb-fs-row { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-bottom: 1px solid var(--dsr-divider); font-size: 13px; cursor: pointer; }
|
|
118
|
+
.ds-wb-fs-row:last-child { border-bottom: none; }
|
|
119
|
+
.ds-wb-fs-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
120
|
+
.ds-wb-select { flex: none; }
|
|
121
|
+
.ds-wb-manual input { flex: 1; min-width: 0; background: var(--dsr-panel); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; outline: none; }
|
|
122
|
+
.ds-wb-manual input:focus { border-color: var(--dsr-accent-line); }
|
|
123
|
+
|
|
124
|
+
/* 写反馈弹层 */
|
|
125
|
+
.ds-fb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
|
|
126
|
+
.ds-fb-chip {
|
|
127
|
+
min-height: 36px; padding: 7px 14px; border-radius: 999px; font-size: 13px;
|
|
128
|
+
background: var(--dsr-panel); border: 1px solid var(--dsr-line); color: var(--dsr-text); cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
.ds-fb-chip.current { background: var(--dsr-accent-soft); border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); font-weight: 600; }
|
|
131
|
+
.ds-fb-textarea, .ds-fb-input {
|
|
132
|
+
width: 100%; box-sizing: border-box; margin-bottom: 10px;
|
|
133
|
+
background: var(--dsr-panel); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 12px;
|
|
134
|
+
padding: 10px 12px; font: inherit; font-size: 14px; outline: none; resize: vertical;
|
|
135
|
+
}
|
|
136
|
+
.ds-fb-textarea:focus, .ds-fb-input:focus { border-color: var(--dsr-accent-line); }
|
|
137
|
+
.ds-fb-input { min-height: 42px; }
|
|
138
|
+
.ds-fb-diagnostics { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 8px; align-items:start; margin:-1px 1px 4px; color:var(--dsr-text); font-size:13px; line-height:1.45; cursor:pointer; }
|
|
139
|
+
.ds-fb-diagnostics input { width:17px; height:17px; margin:1px 0 0; accent-color:var(--dsr-accent); }
|
|
140
|
+
.ds-fb-diagnostics small { grid-column:2; color:var(--dsr-muted); font-size:11px; line-height:1.45; }
|
|
141
|
+
|
|
142
|
+
.ds-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: radial-gradient(900px 560px at 96% -18%, var(--dsr-accent-soft), transparent 64%), linear-gradient(180deg, var(--dsr-bg), var(--dsr-bg-2)); }
|
|
143
|
+
.ds-topbar { height: 58px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--dsr-divider); background: linear-gradient(180deg, var(--dsr-head-bg), transparent); backdrop-filter: blur(16px); }
|
|
144
|
+
.ds-icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--dsr-line); background: var(--dsr-bg-2); color: var(--dsr-accent-strong); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
|
|
145
|
+
.ds-icon-btn svg { width: 17px; height: 17px; display: block; }
|
|
146
|
+
.ds-icon-btn:hover { filter: brightness(1.06); }
|
|
147
|
+
#btn-stats-top { color: var(--dsr-info); }
|
|
148
|
+
#btn-cancel { color: var(--dsr-error); border-color: var(--dsr-error-line); }
|
|
149
|
+
#btn-mobile-nav { display: none; }
|
|
150
|
+
.ds-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
151
|
+
.ds-session-status { flex: none; max-width: 150px; color: var(--dsr-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
152
|
+
.ds-text-input { width: 100%; box-sizing: border-box; min-height: 42px; padding: 10px 12px; border: 1px solid var(--dsr-line); border-radius: 10px; background: var(--dsr-bg-2); color: var(--dsr-text); font: inherit; outline: none; }
|
|
153
|
+
.ds-text-input:focus { border-color: var(--dsr-accent-line); }
|
|
154
|
+
.ds-top-right { display: flex; align-items: center; gap: 10px; }
|
|
155
|
+
.ds-conn { min-height:36px; padding:6px 8px; border:1px solid var(--dsr-line); border-radius:10px; background:var(--dsr-bg-2); font:inherit; font-size: 11px; color: var(--dsr-muted); cursor:pointer; }
|
|
156
|
+
.ds-conn:focus-visible { outline:2px solid var(--dsr-accent); outline-offset:2px; }
|
|
157
|
+
.ds-topbar { position:relative; z-index:25; }
|
|
158
|
+
.ds-conn.on { color: var(--dsr-success); }
|
|
159
|
+
.ds-conn.ing { color: var(--dsr-warning); }
|
|
160
|
+
.ds-server { font-size: 12px; color: var(--dsr-muted); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
161
|
+
|
|
162
|
+
.ds-content { flex: 1; min-height: 0; display: flex; }
|
|
163
|
+
.ds-view { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 26px 32px; overflow: hidden; }
|
|
164
|
+
.ds-view.hidden { display: none; }
|
|
165
|
+
|
|
166
|
+
/* ---------- 系统总览 · A 方案 ---------- */
|
|
167
|
+
#view-overview { overflow-y:auto; background:radial-gradient(circle at 86% 4%,var(--dsr-accent-soft),transparent 32%),var(--dsr-bg); }
|
|
168
|
+
#view-overview > .ds-overview-head,
|
|
169
|
+
#view-overview > .ds-overview-grid,
|
|
170
|
+
#view-overview > .ds-overview-runtime-head,
|
|
171
|
+
#view-overview > .ds-overview-metrics,
|
|
172
|
+
#view-overview > .ds-overview-session-list { width:min(100%, 1500px); margin-left:auto; margin-right:auto; }
|
|
173
|
+
.ds-overview-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-top:4px; margin-bottom:18px; }
|
|
174
|
+
.ds-overview-eyebrow { color:var(--dsr-accent-strong); font-size:10px; font-weight:800; letter-spacing:2px; line-height:1.3; }
|
|
175
|
+
.ds-overview-title { margin:4px 0 3px; font-size:26px; line-height:1.2; letter-spacing:-.5px; }
|
|
176
|
+
.ds-overview-subtitle { margin:0; color:var(--dsr-muted); font-size:12px; }
|
|
177
|
+
.ds-overview-refresh { flex:none; }
|
|
178
|
+
.ds-overview-grid { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(300px,.72fr); gap:14px; align-items:start; }
|
|
179
|
+
.ds-overview-pulse-card, .ds-overview-side { min-width:0; border:1px solid var(--dsr-line); border-radius:20px; background:linear-gradient(145deg, var(--dsr-panel), var(--dsr-bg-2)); box-shadow:0 18px 44px var(--dsr-shadow); backdrop-filter:blur(18px); }
|
|
180
|
+
.ds-overview-pulse-card { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:18px 20px; }
|
|
181
|
+
.ds-overview-pulse-card::after { content:""; position:absolute; width:190px; height:190px; right:-80px; top:-95px; border-radius:50%; background:var(--dsr-accent-soft); filter:blur(5px); pointer-events:none; }
|
|
182
|
+
.ds-overview-pulse-copy { min-width:0; align-self:start; }
|
|
183
|
+
.ds-overview-status { margin-top:8px; font-size:24px; font-weight:780; letter-spacing:-.4px; }
|
|
184
|
+
.ds-overview-status-desc { margin-top:5px; color:var(--dsr-muted); font-size:11px; }
|
|
185
|
+
.ds-overview-primary-action { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin-top:15px; padding:7px 14px; border:1px solid var(--dsr-accent-strong); border-radius:10px; background:var(--dsr-accent-strong); color:var(--dsr-on-accent); font:inherit; font-size:12px; font-weight:750; cursor:pointer; transition:transform .18s ease, filter .18s ease; }
|
|
186
|
+
.ds-overview-primary-action:hover, .ds-overview-primary-action:focus-visible { filter:brightness(1.08); transform:translateY(-1px); }
|
|
187
|
+
.ds-overview-pulse-card.status-degraded { border-color:var(--dsr-warning-line); }
|
|
188
|
+
.ds-overview-pulse-card.status-degraded .ds-overview-primary-action { border-color:var(--dsr-warning); background:var(--dsr-warning); color:var(--dsr-on-warning); }
|
|
189
|
+
.ds-overview-pulse-card.status-offline { border-color:var(--dsr-error-line); }
|
|
190
|
+
.ds-overview-pulse-card.status-offline .ds-overview-primary-action { border-color:var(--dsr-error); background:var(--dsr-error); color:var(--dsr-neutral-9); }
|
|
191
|
+
.ds-system-pulse-ring { position:relative; z-index:1; width:116px; height:116px; padding:9px; border-radius:50%; background:conic-gradient(var(--dsr-accent) 0 var(--pulse-pct),var(--dsr-line) var(--pulse-pct) 100%); box-shadow:0 0 22px var(--dsr-glow); }
|
|
192
|
+
.ds-system-pulse-ring::before { content:""; position:absolute; inset:7px; border:1px solid var(--dsr-accent-line); border-radius:50%; opacity:.75; }
|
|
193
|
+
.ds-system-pulse-core { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; height:100%; border-radius:50%; background:var(--dsr-bg-2); color:var(--dsr-muted); }
|
|
194
|
+
.ds-system-pulse-core strong { max-width:100%; color:var(--dsr-text); font-size:17px; line-height:1.05; letter-spacing:.2px; text-align:center; white-space:nowrap; }
|
|
195
|
+
.ds-system-pulse-core span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:5px; font-size:9px; text-align:center; }
|
|
196
|
+
.ds-overview-links { grid-column:1 / -1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding-top:10px; border-top:1px solid var(--dsr-line); }
|
|
197
|
+
.ds-overview-link { min-width:0; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:5px 8px; color:var(--dsr-muted); font-size:11px; }
|
|
198
|
+
.ds-overview-link i { width:7px; height:7px; border-radius:50%; background:var(--dsr-muted); box-shadow:0 0 0 4px var(--dsr-line); }
|
|
199
|
+
.ds-overview-link b { grid-column:2; color:var(--dsr-text); font-size:11px; font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
200
|
+
.ds-overview-link.ok i { background:var(--dsr-success); box-shadow:0 0 0 4px var(--dsr-success-soft); }
|
|
201
|
+
.ds-overview-link.off i { background:var(--dsr-error); box-shadow:0 0 0 4px var(--dsr-error-soft); }
|
|
202
|
+
.ds-overview-side { align-self:start; height:fit-content; padding:16px; border-color:var(--dsr-line); box-shadow:0 12px 30px var(--dsr-shadow); }
|
|
203
|
+
.ds-overview-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; font-size:12px; font-weight:750; letter-spacing:.3px; }
|
|
204
|
+
.ds-overview-meta { color:var(--dsr-muted); font-size:11px; font-weight:500; }
|
|
205
|
+
.ds-overview-attention-list, .ds-overview-session-list { display:flex; flex-direction:column; gap:8px; }
|
|
206
|
+
.ds-overview-attention-item, .ds-overview-session-item { width:100%; min-width:0; display:flex; align-items:center; gap:10px; padding:11px 12px; border:1px solid var(--dsr-line); border-radius:12px; background:var(--dsr-bg-2); color:var(--dsr-text); text-align:left; }
|
|
207
|
+
button.ds-overview-attention-item, button.ds-overview-session-item { cursor:pointer; font:inherit; }
|
|
208
|
+
.ds-overview-attention-item { align-items:flex-start; border-left:3px solid var(--dsr-warning); }
|
|
209
|
+
.ds-overview-attention-item.question { border-left-color:var(--dsr-accent-2); }
|
|
210
|
+
.ds-overview-mark { flex:0 0 auto; width:26px; height:26px; display:grid; place-items:center; border-radius:8px; background:var(--dsr-warning-soft); color:var(--dsr-warning); font-size:12px; }
|
|
211
|
+
.ds-overview-attention-item.question .ds-overview-mark { background:var(--dsr-accent-2-soft); color:var(--dsr-accent-2); }
|
|
212
|
+
.ds-overview-copy { flex:1; min-width:0; }
|
|
213
|
+
.ds-overview-item-title, .ds-overview-item-desc { display:block; line-height:1.45; overflow-wrap:anywhere; word-break:break-word; }
|
|
214
|
+
.ds-overview-item-title { font-size:12px; font-weight:650; }
|
|
215
|
+
.ds-overview-item-desc { margin-top:3px; color:var(--dsr-muted); font-size:11px; white-space:normal; }
|
|
216
|
+
.ds-overview-actions { flex:0 0 auto; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; }
|
|
217
|
+
.ds-overview-actions .ds-btn { min-height:27px; padding:2px 8px; font-size:11px; }
|
|
218
|
+
.ds-overview-actions .allow { background:var(--dsr-success-soft); border-color:var(--dsr-success-line); color:var(--dsr-success); }
|
|
219
|
+
.ds-overview-actions .reject { background:var(--dsr-warning-soft); border-color:var(--dsr-warning-line); color:var(--dsr-warning); }
|
|
220
|
+
.ds-overview-arrow { color:var(--dsr-muted); font-size:19px; }
|
|
221
|
+
.ds-overview-runtime-head { margin-top:14px; }
|
|
222
|
+
.ds-overview-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
|
|
223
|
+
.ds-overview-metric { min-width:0; padding:14px 16px; border:1px solid var(--dsr-line); border-radius:15px; background:linear-gradient(145deg, var(--dsr-panel), var(--dsr-bg-2)); box-shadow:inset 0 1px var(--dsr-divider); }
|
|
224
|
+
.ds-overview-metric span { display:block; color:var(--dsr-muted); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
225
|
+
.ds-overview-metric strong { display:block; margin-top:6px; color:var(--dsr-text); font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
226
|
+
.ds-overview-session-item { background:linear-gradient(90deg, var(--dsr-panel), var(--dsr-bg-2)); border-color:var(--dsr-line); transition:transform .18s ease, border-color .18s ease, background .18s ease; }
|
|
227
|
+
.ds-overview-session-item:hover { transform:translateY(-1px); border-color:var(--dsr-accent-line); background:linear-gradient(90deg, var(--dsr-panel-2), var(--dsr-panel)); }
|
|
228
|
+
.ds-overview-session-item .ds-overview-mark { background:var(--dsr-info-soft); color:var(--dsr-info); }
|
|
229
|
+
.ds-overview-session-item.running .ds-overview-mark { background:var(--dsr-success-soft); color:var(--dsr-success); }
|
|
230
|
+
.ds-overview-empty { padding:10px; border:1px dashed var(--dsr-line); border-radius:12px; color:var(--dsr-muted); font-size:12px; text-align:center; }
|
|
231
|
+
/* 会话视图 */
|
|
232
|
+
#view-chat { padding: 0; }
|
|
233
|
+
.ds-history { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
|
|
234
|
+
.ds-queue-dock { flex: none; margin: 0 16px 8px; border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-surface); overflow: hidden; }
|
|
235
|
+
.ds-queue-dock-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--dsr-muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--dsr-line); }
|
|
236
|
+
.ds-queue-dock-list { max-height: 220px; overflow-y: auto; }
|
|
237
|
+
.ds-queue-dock-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--dsr-line); }
|
|
238
|
+
.ds-queue-dock-item:last-child { border-bottom: 0; }
|
|
239
|
+
.ds-queue-dock-preview { flex: 1; min-width: 0; color: var(--dsr-text); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
240
|
+
.ds-queue-dock-action { flex: 0 0 auto; }
|
|
241
|
+
.md-table-wrap { max-width: 100%; overflow-x: auto; margin: 8px 0; }
|
|
242
|
+
.md-table-wrap table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: .94em; }
|
|
243
|
+
.md-table-wrap th, .md-table-wrap td { padding: 6px 9px; border: 1px solid var(--dsr-line); text-align: left; white-space: nowrap; }
|
|
244
|
+
.md-table-wrap th { background: var(--dsr-bg-2); font-weight: 700; }
|
|
245
|
+
.md-table-wrap tbody tr:nth-child(even) { background: color-mix(in srgb, var(--dsr-bg-2) 45%, transparent); }
|
|
246
|
+
.ds-msg { max-width: min(78%, 680px); width: fit-content; box-sizing: border-box; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
|
|
247
|
+
.ds-msg.user { align-self: flex-end; background: var(--dsr-accent-soft); border: 1px solid var(--dsr-accent-line); color: var(--dsr-accent-strong); }
|
|
248
|
+
.ds-msg.assistant { align-self: flex-start; background: var(--dsr-panel); border: 1px solid var(--dsr-line); color: var(--dsr-text); }
|
|
249
|
+
.ds-msg .role { font-size: 10px; color: var(--dsr-muted); margin-bottom: 3px; }
|
|
250
|
+
.ds-msg p { margin: 4px 0; }
|
|
251
|
+
.ds-msg p:first-child { margin-top: 0; } .ds-msg p:last-child { margin-bottom: 0; }
|
|
252
|
+
.ds-msg ul, .ds-msg ol { margin: 4px 0; padding-left: 20px; }
|
|
253
|
+
.ds-msg li { margin: 2px 0; }
|
|
254
|
+
.ds-msg h1, .ds-msg h2, .ds-msg h3 { margin: 8px 0 4px; line-height: 1.3; font-weight: 700; }
|
|
255
|
+
.ds-msg h1 { font-size: 1.3em; } .ds-msg h2 { font-size: 1.18em; } .ds-msg h3 { font-size: 1.05em; }
|
|
256
|
+
.ds-msg blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid var(--dsr-accent-2); color: var(--dsr-muted); }
|
|
257
|
+
.ds-msg a { color: inherit; text-decoration: underline; word-break: break-all; }
|
|
258
|
+
.ds-msg code { font-family: ui-monospace, monospace; font-size: .9em; background: var(--dsr-accent-soft); padding: 0 4px; border-radius: 4px; }
|
|
259
|
+
.ds-msg pre { margin: 6px 0; background: var(--dsr-code-bg); border-radius: 8px; padding: 8px 10px; overflow-x: auto; font-size: 12px; max-height: 220px; overflow-y: auto; }
|
|
260
|
+
.ds-tool { align-self: flex-start; max-width: min(78%, 680px); width: fit-content; box-sizing: border-box; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 8px 11px; font-size: 12px; }
|
|
261
|
+
.ds-tool summary { cursor: pointer; color: var(--dsr-muted); }
|
|
262
|
+
.ds-tool pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-all; font-size: 11px; color: var(--dsr-text); }
|
|
263
|
+
.ds-event-detail { width: min(96%, 780px); max-width: min(96%, 780px); }
|
|
264
|
+
.ds-event-detail summary { white-space: normal; overflow-wrap: anywhere; }
|
|
265
|
+
.ds-event-detail pre { max-height: 280px; overflow: auto; overflow-wrap: anywhere; }
|
|
266
|
+
.ds-empty { color: var(--dsr-muted); text-align: center; padding: 30px 0; font-size: 13px; }
|
|
267
|
+
.ds-presets-guide { padding: 2px 8px 10px; font-size: 11px; line-height: 1.5; }
|
|
268
|
+
.ds-session-cards { flex: none; max-height: 220px; overflow-y: auto; padding: 10px 22px 0; display: flex; flex-direction: column; gap: 8px; }
|
|
269
|
+
.ds-session-cards:empty { display: none; }
|
|
270
|
+
.ds-session-pending { flex:0 1 auto; min-height:0; max-height:30vh; max-height:30dvh; display:flex; flex-direction:column; margin:10px 22px 0; padding:10px; border:1px solid var(--dsr-warning-line); border-radius:13px; background:var(--dsr-warning-soft); }
|
|
271
|
+
.ds-session-pending-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; color:var(--dsr-text); font-size:12px; font-weight:750; }
|
|
272
|
+
.ds-session-pending-head { flex:none; }
|
|
273
|
+
.ds-session-pending-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:8px; }
|
|
274
|
+
.ds-session-pending-list > * { flex:none; }
|
|
275
|
+
.ds-session-pending button.question { width:100%; text-align:left; color:inherit; cursor:pointer; font:inherit; }
|
|
276
|
+
.ds-question-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:5px; }
|
|
277
|
+
.ds-question-card-head .ds-notif-head { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
|
|
278
|
+
.ds-question-card-head .ds-btn { flex:none; white-space:nowrap; }
|
|
279
|
+
.ds-question-summary { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:13px; line-height:1.45; color:var(--dsr-muted); }
|
|
280
|
+
.ds-session-pending .ds-notif-card { min-width:0; box-shadow:none; animation:none; }
|
|
281
|
+
.ds-session-pending .ds-notif-title, .ds-session-pending .ds-notif-body { overflow-wrap:anywhere; word-break:break-word; }
|
|
282
|
+
.ds-card { background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 12px; padding: 10px 12px; }
|
|
283
|
+
.ds-card-title { font-size: 11px; font-weight: 700; color: var(--dsr-muted); letter-spacing: .6px; margin-bottom: 6px; text-transform: uppercase; }
|
|
284
|
+
.ds-goal-disclosure { width: 100%; min-width: 0; display: flex; justify-content: flex-end; }
|
|
285
|
+
.ds-goal-disclosure .ds-goal-card { width: 100%; min-width: 0; }
|
|
286
|
+
.ds-goal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
|
|
287
|
+
.ds-goal-card-head .ds-card-title { min-width: 0; margin-bottom: 0; }
|
|
288
|
+
.ds-goal-collapse-btn,
|
|
289
|
+
.ds-goal-side-tab {
|
|
290
|
+
touch-action: manipulation; border: 1px solid var(--dsr-line); background: var(--dsr-bg-2); color: var(--dsr-muted);
|
|
291
|
+
font: inherit; cursor: pointer;
|
|
292
|
+
}
|
|
293
|
+
.ds-goal-collapse-btn { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; }
|
|
294
|
+
.ds-goal-collapse-btn > span { color: var(--dsr-accent-strong); font-size: 17px; line-height: 1; }
|
|
295
|
+
.ds-goal-side-tab {
|
|
296
|
+
min-height: 42px; max-width: min(100%, 210px); display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px;
|
|
297
|
+
border-right: 0; border-radius: 11px 0 0 11px; box-shadow: -5px 6px 18px var(--dsr-shadow); color: var(--dsr-text); font-size: 12px; font-weight: 700;
|
|
298
|
+
}
|
|
299
|
+
.ds-goal-side-tab > span:first-child { color: var(--dsr-accent-strong); font-size: 19px; line-height: 1; }
|
|
300
|
+
.ds-goal-side-tab small { min-width: 0; color: var(--dsr-muted); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
|
|
301
|
+
.ds-goal-collapse-btn:hover,
|
|
302
|
+
.ds-goal-side-tab:hover { background: var(--dsr-panel-2); color: var(--dsr-text); }
|
|
303
|
+
.ds-goal-collapse-btn:active,
|
|
304
|
+
.ds-goal-side-tab:active { transform: translateY(1px); }
|
|
305
|
+
.ds-goal-collapse-btn:focus-visible,
|
|
306
|
+
.ds-goal-side-tab:focus-visible { outline: 2px solid var(--dsr-accent-strong); outline-offset: 2px; }
|
|
307
|
+
.ds-goal-obj { font-size: 13px; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; }
|
|
308
|
+
.ds-goal-phase { font-size: 11px; color: var(--dsr-muted); margin-top: 3px; }
|
|
309
|
+
.ds-goal-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
|
|
310
|
+
.ds-mini-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 2px 9px; border-radius: 7px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); color: var(--dsr-text); font: inherit; font-size: 11.5px; cursor: pointer; }
|
|
311
|
+
.ds-mini-btn:hover { filter: brightness(1.08); }
|
|
312
|
+
.ds-todo-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; padding: 2px 0; }
|
|
313
|
+
.ds-pill { flex: none; font-size: 10.5px; line-height: 16px; padding: 0 7px; border-radius: 999px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); color: var(--dsr-muted); }
|
|
314
|
+
.ds-pill.active { background: var(--dsr-accent-soft); border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); }
|
|
315
|
+
.ds-pill.done { background: var(--dsr-success-soft); border-color: var(--dsr-success-line); color: var(--dsr-success); }
|
|
316
|
+
.ds-card-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 3px 0; }
|
|
317
|
+
.ds-card-k { flex: 1; min-width: 0; word-break: break-word; }
|
|
318
|
+
.ds-card-v { color: var(--dsr-muted); font-size: 11.5px; white-space: nowrap; }
|
|
319
|
+
.ds-subagent-card { padding: 0; overflow: hidden; }
|
|
320
|
+
.ds-subagent-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
|
|
321
|
+
.ds-subagent-toggle .ds-card-title { margin: 0; }
|
|
322
|
+
.ds-subagent-toggle-icon { color: var(--dsr-muted); font-size: 16px; line-height: 1; }
|
|
323
|
+
.ds-subagent-toggle-icon morph-icon,
|
|
324
|
+
.ds-subagent-toggle-icon morph-icon svg { width: 16px; height: 16px; display: block; }
|
|
325
|
+
.ds-subagent-list { padding: 0 12px 10px; border-top: 1px solid var(--dsr-line); }
|
|
326
|
+
.ds-model-head { font-size: 11px; font-weight: 700; color: var(--dsr-muted); letter-spacing: .6px; padding: 4px 6px 2px; }
|
|
327
|
+
.ds-model-group { padding: 2px 0 4px; }
|
|
328
|
+
.ds-model-provider { font-size: 11px; color: var(--dsr-muted); padding: 2px 6px; }
|
|
329
|
+
.ds-model-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 4px; }
|
|
330
|
+
.ds-model-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; border-radius: 999px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); color: var(--dsr-text); font: inherit; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
|
|
331
|
+
.ds-model-chip:hover { filter: brightness(1.08); }
|
|
332
|
+
.ds-model-chip.current { background: var(--dsr-accent-soft); border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); font-weight: 600; }
|
|
333
|
+
.ds-model-effort-group { padding-top: 2px; border-top: 1px solid var(--dsr-divider); margin-top: 2px; }
|
|
334
|
+
.ds-model-effort-group.hidden { display: none; }
|
|
335
|
+
.ds-effort-hint { flex-basis: 100%; padding: 0 2px; color: var(--dsr-muted); font-size: 10.5px; line-height: 1.45; }
|
|
336
|
+
.ds-reasoning-live { border-color: var(--dsr-accent-line); }
|
|
337
|
+
.ds-reasoning-live summary { cursor: pointer; color: var(--dsr-accent-strong); }
|
|
338
|
+
.ds-reasoning-live summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--dsr-accent-strong); animation: ds-reasoning-pulse 1.2s ease-in-out infinite; }
|
|
339
|
+
@keyframes ds-reasoning-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
|
|
340
|
+
.ds-composer { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--dsr-line); background: var(--dsr-panel); }
|
|
341
|
+
.ds-composer-status { display: flex; align-items: center; gap: 7px; padding: 0 3px; color: var(--dsr-accent-strong); font-size: 12px; font-weight: 700; }
|
|
342
|
+
.ds-composer-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: dsr-running-pulse 1.3s ease-out infinite; }
|
|
343
|
+
@keyframes dsr-running-pulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 6px transparent; opacity: .65; } 100% { box-shadow: 0 0 0 0 transparent; opacity: 1; } }
|
|
344
|
+
.ds-composer textarea { width: 100%; min-width: 0; resize: none; background: var(--dsr-bg-2); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 13.5px; line-height: 1.5; outline: none; min-height: 44px; max-height: 120px; box-sizing: border-box; }
|
|
345
|
+
.ds-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
346
|
+
.ds-composer-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
|
|
347
|
+
.ds-composer-right { display: flex; align-items: center; flex: none; }
|
|
348
|
+
.ds-composer .ds-btn { min-height: 34px; box-sizing: border-box; }
|
|
349
|
+
.ds-send-btn { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; background: var(--dsr-accent-strong); border-color: var(--dsr-accent-strong); color: var(--dsr-on-accent); font-size: 18px; line-height: 1; justify-content: center; }
|
|
350
|
+
|
|
351
|
+
/* 文件传输 */
|
|
352
|
+
.ds-fs-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
|
|
353
|
+
.ds-fs-root { max-width: 260px; min-width: 120px; border: 1px solid var(--dsr-line); border-radius: 9px; background: var(--dsr-panel); color: var(--dsr-text); padding: 7px 9px; }
|
|
354
|
+
.ds-fs-path { flex: 1; min-width: 0; font-size: 12.5px; color: var(--dsr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
355
|
+
.ds-fs-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-panel); }
|
|
356
|
+
.ds-fs-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--dsr-divider); font-size: 13px; }
|
|
357
|
+
.ds-fs-type { width: 20px; height: 20px; display: grid; place-items: center; color: var(--dsr-info); flex: none; }
|
|
358
|
+
.ds-fs-type svg { width: 18px; height: 18px; display: block; }
|
|
359
|
+
.ds-fs-row:last-child { border-bottom: none; }
|
|
360
|
+
.ds-fs-row:hover { background: var(--dsr-bg-2); }
|
|
361
|
+
.ds-fs-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
362
|
+
.ds-fs-size { color: var(--dsr-muted); font-size: 12px; white-space: nowrap; }
|
|
363
|
+
|
|
364
|
+
/* 设置 */
|
|
365
|
+
#view-settings { overflow-y: auto; }
|
|
366
|
+
.ds-settings { max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
|
|
367
|
+
.ds-setting-row { display: flex; align-items: center; gap: 10px; background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 12px; padding: 10px 14px; }
|
|
368
|
+
.ds-setting-row > div:first-child { flex: 1; min-width: 0; }
|
|
369
|
+
.ds-setting-link { width: 100%; color: var(--dsr-text); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
|
|
370
|
+
.ds-setting-link:hover, .ds-setting-link:focus-visible { background: var(--dsr-bg-2); border-color: var(--dsr-accent-line); }
|
|
371
|
+
.ds-setting-link .ds-setting-arrow { transition: transform .18s ease, color .18s ease; }
|
|
372
|
+
.ds-setting-link:hover .ds-setting-arrow, .ds-setting-link:focus-visible .ds-setting-arrow { color: var(--dsr-accent-strong); transform: translateX(2px); }
|
|
373
|
+
.ds-setting-arrow,
|
|
374
|
+
#settings-home .ds-setting-row .ds-btn {
|
|
375
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
376
|
+
min-height: 32px; padding: 0 10px; border-radius: 8px;
|
|
377
|
+
background: transparent; border: 1px solid transparent; color: var(--dsr-muted);
|
|
378
|
+
font-size: 12.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
|
|
379
|
+
}
|
|
380
|
+
.ds-setting-arrow { font-size: 16px; padding: 0 12px; }
|
|
381
|
+
.ds-setting-arrow:hover,
|
|
382
|
+
#settings-home .ds-setting-row .ds-btn:hover,
|
|
383
|
+
#settings-home .ds-setting-row .ds-btn:focus-visible {
|
|
384
|
+
background: var(--dsr-bg-2); border-color: var(--dsr-line); color: var(--dsr-text);
|
|
385
|
+
}
|
|
386
|
+
.ds-setting-name { font-size: 13.5px; font-weight: 600; }
|
|
387
|
+
.ds-setting-desc { font-size: 12px; color: var(--dsr-muted); margin-top: 2px; word-break: normal; overflow-wrap: break-word; text-wrap: pretty; }
|
|
388
|
+
#token-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
|
389
|
+
.ds-group-bar { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
|
|
390
|
+
.ds-group-bar > label { font-size: 12px; color: var(--dsr-muted); white-space: nowrap; }
|
|
391
|
+
.ds-group-select { flex: 0 1 340px; min-width: 180px; position: relative; }
|
|
392
|
+
.ds-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--dsr-panel); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; }
|
|
393
|
+
.ds-select-btn .caret { color: var(--dsr-muted); font-size: 10px; }
|
|
394
|
+
.ds-group-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; max-height: 240px; overflow-y: auto; background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.28); padding: 4px; display: flex; flex-direction: column; gap: 2px; }
|
|
395
|
+
.ds-group-menu.hidden { display: none; }
|
|
396
|
+
/* 权限模式目录由 ../permission-presets.js 渲染,桌面端复用相同的风险确认结构 */
|
|
397
|
+
.ds-group-menu .menu-chip {
|
|
398
|
+
width: 100%; text-align: left; background: var(--dsr-panel); color: var(--dsr-text);
|
|
399
|
+
border: 1px solid var(--dsr-line); border-radius: 8px; padding: 7px 10px; font: inherit;
|
|
400
|
+
font-size: 13px; cursor: pointer; white-space: normal;
|
|
401
|
+
}
|
|
402
|
+
.ds-group-menu .menu-chip.current { color: var(--dsr-info); border-color: var(--dsr-info-line); background: var(--dsr-info-soft); }
|
|
403
|
+
.ds-group-menu .menu-chip.danger { color: var(--dsr-warning); border-color: var(--dsr-warning-line); }
|
|
404
|
+
.ds-group-menu .menu-chip:disabled { cursor: default; opacity: .75; }
|
|
405
|
+
.perm-badge {
|
|
406
|
+
display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 5px;
|
|
407
|
+
font-size: 9.5px; font-weight: 700; letter-spacing: .3px; vertical-align: 1px;
|
|
408
|
+
color: var(--dsr-warning); border: 1px solid var(--dsr-warning-line);
|
|
409
|
+
}
|
|
410
|
+
.perm-hint { font-size: 12px; color: var(--dsr-muted); line-height: 1.45; padding: 4px 6px; }
|
|
411
|
+
.perm-confirm {
|
|
412
|
+
display: flex; flex-direction: column; gap: 7px; padding: 8px;
|
|
413
|
+
border: 1px solid var(--dsr-warning-line); border-radius: 10px; background: var(--dsr-panel);
|
|
414
|
+
}
|
|
415
|
+
.perm-confirm-title { font-size: 13px; font-weight: 700; color: var(--dsr-text); }
|
|
416
|
+
.perm-confirm-desc { margin: 0; font-size: 12px; line-height: 1.5; color: var(--dsr-muted); }
|
|
417
|
+
.perm-confirm-ack { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--dsr-text); cursor: pointer; }
|
|
418
|
+
.perm-confirm-box { margin: 2px 0 0; flex: none; }
|
|
419
|
+
.perm-confirm-actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
|
|
420
|
+
.ds-cmd-section-title { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--dsr-muted); padding: 6px 10px 2px; border-top: 1px solid var(--dsr-line); margin-top: 4px; }
|
|
421
|
+
.ds-cmd-perm-inline { display: flex; flex-direction: column; gap: 4px; }
|
|
422
|
+
.ds-overview-records-head { margin-top: 8px; }
|
|
423
|
+
/* 审批记录:与会话审计事件共用同一渲染器,移动端与桌面端类名一致 */
|
|
424
|
+
.approval-records-list { display: flex; flex-direction: column; gap: 8px; }
|
|
425
|
+
.approval-record {
|
|
426
|
+
display: flex; flex-direction: column; gap: 5px; padding: 9px 11px;
|
|
427
|
+
border: 1px solid var(--dsr-line); border-radius: 10px; background: var(--dsr-panel);
|
|
428
|
+
}
|
|
429
|
+
.approval-record.is-pending { border-style: dashed; border-color: var(--dsr-warning-line); }
|
|
430
|
+
.approval-record-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
431
|
+
.approval-record-title { font-size: 12.5px; font-weight: 700; color: var(--dsr-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
432
|
+
.approval-record-badge, .approval-event-badge {
|
|
433
|
+
flex: none; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
|
|
434
|
+
border: 1px solid var(--dsr-line); color: var(--dsr-muted);
|
|
435
|
+
}
|
|
436
|
+
.approval-record-badge.allowed-once, .approval-event-badge.allowed-once { color: var(--dsr-info); border-color: var(--dsr-info-line); }
|
|
437
|
+
.approval-record-badge.rejected, .approval-event-badge.rejected,
|
|
438
|
+
.approval-record-badge.unavailable, .approval-event-badge.unavailable { color: var(--dsr-warning); border-color: var(--dsr-warning-line); }
|
|
439
|
+
.approval-record-badge.pending, .approval-event-badge.pending { color: var(--dsr-warning); border-color: var(--dsr-warning-line); border-style: dashed; }
|
|
440
|
+
.approval-record-reason { display: flex; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--dsr-text); }
|
|
441
|
+
.approval-record-kind { flex: none; font-size: 10px; font-weight: 700; color: var(--dsr-muted); border: 1px solid var(--dsr-line); border-radius: 6px; padding: 0 5px; }
|
|
442
|
+
.approval-record-kind { align-self:flex-start; }
|
|
443
|
+
.approval-record-copy { min-width:0; flex:1; overflow-wrap:anywhere; }
|
|
444
|
+
.approval-original { margin-top:6px; color:var(--dsr-muted); font-size:11px; }
|
|
445
|
+
.approval-original summary { cursor:pointer; }
|
|
446
|
+
.approval-original div { margin-top:6px; white-space:pre-wrap; }
|
|
447
|
+
.approval-translation p { white-space:pre-wrap; overflow-wrap:anywhere; }
|
|
448
|
+
.approval-record-why { font-size: 11.5px; line-height: 1.45; color: var(--dsr-muted); }
|
|
449
|
+
.approval-record-meta { font-size: 10.5px; color: var(--dsr-muted); }
|
|
450
|
+
.approval-event { font-size: 12.5px; color: var(--dsr-text); padding: 3px 0; }
|
|
451
|
+
.approval-event > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; }
|
|
452
|
+
.approval-event-time { font-size: 10.5px; color: var(--dsr-muted); margin-left: auto; }
|
|
453
|
+
.approval-event .approval-record-reason, .approval-event .approval-record-why { margin: 4px 0 0 4px; }
|
|
454
|
+
.ds-group-option { width: 100%; text-align: left; background: none; border: none; color: var(--dsr-text); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
|
|
455
|
+
.ds-group-option.current { background: var(--dsr-accent-soft); color: var(--dsr-accent-strong); font-weight: 600; }
|
|
456
|
+
.ds-server-list { display: flex; flex-direction: column; gap: 7px; }
|
|
457
|
+
.ds-srv-group { border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-panel); overflow: hidden; }
|
|
458
|
+
.ds-srv-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
|
|
459
|
+
.ds-srv-name { flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: none; color: var(--dsr-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 0; display: flex; align-items: center; gap: 6px; }
|
|
460
|
+
.ds-srv-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
461
|
+
.ds-srv-count { flex-shrink: 0; font-size: 10.5px; color: var(--dsr-muted); background: var(--dsr-bg-2); border-radius: 999px; padding: 0 7px; line-height: 16px; }
|
|
462
|
+
.ds-srv-body { display: flex; flex-direction: column; gap: 6px; padding: 0 9px 9px; }
|
|
463
|
+
.ds-srv-body.hidden { display: none; }
|
|
464
|
+
.ds-server-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px 8px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 9px 8px 9px 11px; cursor: pointer; }
|
|
465
|
+
.ds-server-row.active { border-color: var(--dsr-info-line); background: var(--dsr-info-soft); }
|
|
466
|
+
.ds-server-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
467
|
+
.ds-server-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
|
|
468
|
+
.ds-server-url { min-width: 0; font-size: 11.5px; line-height: 1.4; color: var(--dsr-muted); overflow-wrap: anywhere; }
|
|
469
|
+
.ds-server-badge { justify-self: end; flex-shrink: 0; min-width: 58px; text-align: center; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--dsr-accent-soft); color: var(--dsr-accent-strong); border: 1px solid var(--dsr-accent-line); white-space: nowrap; }
|
|
470
|
+
.ds-server-badge.good { background: var(--dsr-success-soft); color: var(--dsr-success); border-color: var(--dsr-success-line); }
|
|
471
|
+
.ds-server-badge.bad { background: var(--dsr-warning-soft); color: var(--dsr-warning); border-color: var(--dsr-warning-line); }
|
|
472
|
+
.ds-server-add { display: flex; gap: 8px; }
|
|
473
|
+
.ds-server-add input { flex: 1; min-width: 0; background: var(--dsr-panel); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; outline: none; }
|
|
474
|
+
.ds-mini { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--dsr-line); background: var(--dsr-panel); color: var(--dsr-muted); font-size: 12px; cursor: pointer; flex-shrink: 0; }
|
|
475
|
+
.ds-mini:hover { color: var(--dsr-text); }
|
|
476
|
+
.ds-switch { position: relative; display: inline-block; width: 36px; height: 21px; flex-shrink: 0; }
|
|
477
|
+
.ds-switch input { opacity: 0; width: 0; height: 0; }
|
|
478
|
+
.ds-switch .ds-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--dsr-panel-2); border: 1px solid var(--dsr-line); transition: background-color .2s ease, border-color .2s ease; }
|
|
479
|
+
.ds-switch .ds-slider::before { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; left: 2px; top: 2px; background: var(--dsr-muted); transition: transform .2s ease, background-color .2s ease; }
|
|
480
|
+
.ds-switch input:checked + .ds-slider { background: var(--dsr-accent-soft); border-color: var(--dsr-accent); }
|
|
481
|
+
.ds-switch input:checked + .ds-slider::before { transform: translateX(15px); background: var(--dsr-accent); }
|
|
482
|
+
|
|
483
|
+
/* 统计 */
|
|
484
|
+
.ds-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
|
|
485
|
+
.ds-stat-card { background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 12px; padding: 13px 15px; }
|
|
486
|
+
.ds-stat-card .v { font-size: 20px; font-weight: 700; }
|
|
487
|
+
.ds-stat-card .k { font-size: 11.5px; color: var(--dsr-muted); margin-top: 3px; line-height: 1.5; }
|
|
488
|
+
.ds-bucket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; margin-top: 6px; }
|
|
489
|
+
.ds-bucket-grid .b { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
|
|
490
|
+
.ds-bucket-grid .n { color: var(--dsr-muted); }
|
|
491
|
+
.ds-bucket-grid .t { font-weight: 600; }
|
|
492
|
+
.ds-stats-legend { display: flex; gap: 12px; font-size: 11px; color: var(--dsr-muted); margin: 8px 0; }
|
|
493
|
+
.ds-stats-legend .sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 4px; }
|
|
494
|
+
.ds-stats-legend .sw.peak { background: var(--dsr-accent-strong); }
|
|
495
|
+
.ds-stats-legend .sw.off { background: var(--dsr-accent-2); }
|
|
496
|
+
.ds-stats-legend .sw.token { background: var(--dsr-accent); }
|
|
497
|
+
.ds-stats-chart-title { margin-top: 13px; font-size: 11px; font-weight: 650; color: var(--dsr-muted); }
|
|
498
|
+
.ds-stats-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 12px 14px 10px; background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 12px; overflow-x: auto; }
|
|
499
|
+
.ds-stats-bar { flex: 1; min-width: 40px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
|
|
500
|
+
.ds-stats-bar .bars { width: 100%; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 0 0; overflow: hidden; background: var(--dsr-accent-soft); }
|
|
501
|
+
.ds-stats-bar .seg { width: 100%; }
|
|
502
|
+
.ds-stats-bar .seg.peak { background: var(--dsr-accent-strong); }
|
|
503
|
+
.ds-stats-bar .seg.off { background: var(--dsr-accent-2); }
|
|
504
|
+
.ds-stats-bar .bars.token { background: var(--dsr-accent); }
|
|
505
|
+
.ds-stats-bar .lbl { font-size: 10px; color: var(--dsr-muted); white-space: nowrap; }
|
|
506
|
+
.ds-stats-bar .val { font-size: 10px; white-space: nowrap; }
|
|
507
|
+
.ds-stats-note { font-size: 11px; color: var(--dsr-muted); line-height: 1.6; margin-top: 8px; }
|
|
508
|
+
|
|
509
|
+
/* 统计抽屉(右侧滑出) */
|
|
510
|
+
.ds-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(540px, 100vw); background: var(--dsr-panel); border-left: 1px solid var(--dsr-line); box-shadow: -12px 0 32px rgba(0,0,0,.35); display: flex; flex-direction: column; overscroll-behavior: contain; }
|
|
511
|
+
.ds-drawer.hidden { display: none; }
|
|
512
|
+
.ds-drawer-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--dsr-line); font-weight: 700; font-size: 15px; }
|
|
513
|
+
.ds-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 15px; scrollbar-width: thin; scrollbar-color: var(--dsr-line) transparent; }
|
|
514
|
+
.ds-drawer-body::-webkit-scrollbar { width: 8px; }
|
|
515
|
+
.ds-drawer-body::-webkit-scrollbar-thumb { background: var(--dsr-line); border-radius: 999px; }
|
|
516
|
+
.ds-drawer-body::-webkit-scrollbar-thumb:hover { background: var(--dsr-muted); }
|
|
517
|
+
|
|
518
|
+
/* 左上角应用名展开的组快捷切换抽屉 */
|
|
519
|
+
.ds-group-drawer-backdrop { position: fixed; inset: 0; z-index: 108; border: 0; background: var(--dsr-overlay); }
|
|
520
|
+
.ds-group-drawer { position: fixed; inset: 0 auto 0 0; z-index: 109; width: min(360px, calc(100vw - 18px)); display: flex; flex-direction: column; background: var(--dsr-panel); border-right: 1px solid var(--dsr-line); box-shadow: 18px 0 48px var(--dsr-shadow); animation: ds-group-drawer-in .22s cubic-bezier(.2,.8,.2,1); }
|
|
521
|
+
.ds-group-drawer.hidden, .ds-group-drawer-backdrop.hidden { display: none; }
|
|
522
|
+
@keyframes ds-group-drawer-in { from { opacity: .01; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
|
|
523
|
+
.ds-group-drawer-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 16px 15px; border-bottom: 1px solid var(--dsr-line); }
|
|
524
|
+
.ds-group-drawer-eyebrow { margin-bottom: 3px; color: var(--dsr-accent-strong); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
|
|
525
|
+
.ds-group-drawer-head h2 { margin: 0; color: var(--dsr-text); font-size: 19px; line-height: 1.2; }
|
|
526
|
+
.ds-group-drawer-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 14px 8px; padding: 10px 12px; border: 1px solid var(--dsr-accent-line); border-radius: 12px; background: var(--dsr-accent-soft); color: var(--dsr-muted); font-size: 12px; }
|
|
527
|
+
.ds-group-drawer-current strong { min-width: 0; overflow: hidden; color: var(--dsr-accent-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
|
|
528
|
+
.ds-group-drawer-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--dsr-line) transparent; }
|
|
529
|
+
.ds-group-drawer-option { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--dsr-text); font: inherit; text-align: left; cursor: pointer; }
|
|
530
|
+
.ds-group-drawer-option:hover { background: var(--dsr-bg-2); }
|
|
531
|
+
.ds-group-drawer-option.current { border-color: var(--dsr-accent-line); background: linear-gradient(100deg, var(--dsr-accent-soft), transparent); }
|
|
532
|
+
.ds-group-drawer-mark { width: 10px; height: 10px; flex: none; border: 2px solid var(--dsr-line); border-radius: 50%; }
|
|
533
|
+
.ds-group-drawer-option.current .ds-group-drawer-mark { border-color: var(--dsr-accent); background: var(--dsr-accent); box-shadow: 0 0 0 4px var(--dsr-accent-soft); }
|
|
534
|
+
.ds-group-drawer-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
|
535
|
+
.ds-group-drawer-name { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
|
|
536
|
+
.ds-group-drawer-meta { overflow: hidden; color: var(--dsr-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
|
537
|
+
.ds-group-drawer-check { flex: none; color: var(--dsr-accent-strong); font-size: 18px; font-weight: 750; }
|
|
538
|
+
.ds-group-drawer-foot { flex: none; padding: 12px 14px; border-top: 1px solid var(--dsr-line); background: var(--dsr-bg-2); }
|
|
539
|
+
.ds-group-drawer-foot .ds-btn { width: 100%; justify-content: space-between; }
|
|
540
|
+
.ds-group-drawer-foot p { margin: 7px 2px 0; color: var(--dsr-muted); font-size: 11px; }
|
|
541
|
+
|
|
542
|
+
/* 通知卡片栈(右下角) */
|
|
543
|
+
.ds-toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
|
|
544
|
+
.ds-notif-card { background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-left: 3px solid var(--dsr-accent-strong); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.3); padding: 11px 13px; animation: dsSlideIn .22s ease; }
|
|
545
|
+
.ds-notif-card.question { border-left-color: var(--dsr-accent-2); }
|
|
546
|
+
@keyframes dsSlideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
547
|
+
.ds-notif-head { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--dsr-muted); }
|
|
548
|
+
.ds-notif-title { font-size: 14px; font-weight: 700; margin: 4px 0 3px; }
|
|
549
|
+
.ds-notif-body { font-size: 12.5px; color: var(--dsr-muted); line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 120px; overflow-y: auto; }
|
|
550
|
+
.ds-notif-actions { display: flex; gap: 8px; margin-top: 9px; }
|
|
551
|
+
.ds-notif-actions .ds-btn { flex: 1; justify-content: center; }
|
|
552
|
+
.ds-notif-actions .allow { background: var(--dsr-success-soft); border-color: var(--dsr-success-line); color: var(--dsr-success); }
|
|
553
|
+
.ds-notif-actions .reject { background: var(--dsr-warning-soft); border-color: var(--dsr-warning-line); color: var(--dsr-warning); }
|
|
554
|
+
|
|
555
|
+
/* 模态 */
|
|
556
|
+
.ds-modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
|
|
557
|
+
.ds-modal.hidden { display: none; }
|
|
558
|
+
.ds-modal-card { width: min(520px, 100%); background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 18px; padding: 18px; box-shadow: 0 22px 60px var(--dsr-shadow); overscroll-behavior: contain; }
|
|
559
|
+
.ds-modal-title { font-weight: 700; margin-bottom: 10px; }
|
|
560
|
+
.ds-modal-body { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
|
|
561
|
+
.ds-workspace-create-desc { margin: 0; color: var(--dsr-muted); line-height: 1.55; }
|
|
562
|
+
.ds-workspace-create-location { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--dsr-muted); font-size: 12px; }
|
|
563
|
+
.ds-workspace-create-location code { min-width: 0; flex: 1; padding: 7px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dsr-text); background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 9px; }
|
|
564
|
+
.ds-workspace-name { width: 100%; box-sizing: border-box; background: var(--dsr-bg-2); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 9px; padding: 8px 10px; font: inherit; outline: none; }
|
|
565
|
+
.ds-workspace-name:focus { border-color: var(--dsr-accent-line); }
|
|
566
|
+
.ds-new-session-desc { margin: 0; color: var(--dsr-muted); line-height: 1.55; }
|
|
567
|
+
.ds-new-session-label { font-size: 12px; color: var(--dsr-muted); }
|
|
568
|
+
.ds-new-session-select { width: 100%; box-sizing: border-box; background: var(--dsr-bg-2); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 9px; padding: 8px 10px; font: inherit; outline: none; }
|
|
569
|
+
.ds-new-session-select:focus { border-color: var(--dsr-accent-line); }
|
|
570
|
+
.ds-new-session-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 10px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 9px; }
|
|
571
|
+
.ds-new-session-name { font-size: 13px; font-weight: 600; }
|
|
572
|
+
.ds-new-session-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dsr-muted); font-size: 11.5px; }
|
|
573
|
+
.ds-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
|
|
574
|
+
#modal-question .ds-modal-card { box-sizing:border-box; display:flex; flex-direction:column; min-height:0; max-height:calc(100dvh - 32px); overflow:hidden; }
|
|
575
|
+
#modal-question .ds-modal-title, #modal-question .ds-modal-actions { flex:none; }
|
|
576
|
+
#question-body { min-height:0; max-height:none; overscroll-behavior:contain; overflow-wrap:anywhere; }
|
|
577
|
+
#question-body > * { flex:none; }
|
|
578
|
+
#question-body .ds-q-option { min-height:36px; cursor:pointer; }
|
|
579
|
+
#question-body .ds-q-option > span { min-width:0; }
|
|
580
|
+
#question-body pre { white-space:pre-wrap; overflow-wrap:anywhere; }
|
|
581
|
+
.ds-q-item { border: 1px solid var(--dsr-line); border-radius: 10px; padding: 9px 11px; }
|
|
582
|
+
.ds-q-text { font-size: 13.5px; margin-bottom: 6px; }
|
|
583
|
+
.ds-q-option { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; padding: 3px 0; }
|
|
584
|
+
.ds-q-option .muted { font-size: 11px; color: var(--dsr-muted); }
|
|
585
|
+
.ds-modal-body textarea { width: 100%; box-sizing: border-box; margin-top: 6px; background: var(--dsr-bg-2); color: var(--dsr-text); border: 1px solid var(--dsr-line); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 13px; outline: none; }
|
|
586
|
+
|
|
587
|
+
/* 预设提示词管理 */
|
|
588
|
+
.ds-preset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
|
|
589
|
+
.ds-preset-count { font-size: 12px; color: var(--dsr-muted); }
|
|
590
|
+
.ds-preset-list { display: flex; flex-direction: column; gap: 8px; }
|
|
591
|
+
.ds-preset-row { display: flex; align-items: center; gap: 8px; background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 8px 10px; }
|
|
592
|
+
.ds-preset-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
593
|
+
.ds-preset-name { font-size: 13px; font-weight: 600; word-break: break-word; }
|
|
594
|
+
.ds-preset-preview { font-size: 11.5px; color: var(--dsr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
595
|
+
.ds-preset-empty { font-size: 12.5px; color: var(--dsr-muted); text-align: center; padding: 18px 0; }
|
|
596
|
+
|
|
597
|
+
.ds-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 150; background: var(--dsr-panel); border: 1px solid var(--dsr-line); border-radius: 10px; padding: 9px 15px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
|
|
598
|
+
.ds-toast.hidden { display: none; }
|
|
599
|
+
|
|
600
|
+
/* 自定义悬停提示: 定位在元素附近, 限制宽度并夹在视口内 */
|
|
601
|
+
.ds-tip {
|
|
602
|
+
position: fixed; z-index: 160; pointer-events: none;
|
|
603
|
+
max-width: min(260px, calc(100vw - 16px));
|
|
604
|
+
background: var(--dsr-bg-2); border: 1px solid var(--dsr-line); border-radius: 9px;
|
|
605
|
+
padding: 7px 10px; font-size: 12px; line-height: 1.6; color: var(--dsr-text);
|
|
606
|
+
box-shadow: 0 8px 24px var(--dsr-shadow);
|
|
607
|
+
white-space: pre-line; word-break: break-word;
|
|
608
|
+
}
|
|
609
|
+
.ds-tip.hidden { display: none; }
|
|
610
|
+
|
|
611
|
+
.ds-btn:focus-visible, .ds-icon-btn:focus-visible, .ds-mini:focus-visible,
|
|
612
|
+
.ds-session-item:focus-visible, .ds-nav-item:focus-visible, a:focus-visible,
|
|
613
|
+
input:focus-visible, select:focus-visible, textarea:focus-visible {
|
|
614
|
+
outline: 2px solid var(--dsr-accent);
|
|
615
|
+
outline-offset: 2px;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
@media (prefers-reduced-motion: reduce) {
|
|
619
|
+
*, *::before, *::after {
|
|
620
|
+
animation-duration: .01ms !important;
|
|
621
|
+
animation-iteration-count: 1 !important;
|
|
622
|
+
transition-duration: .01ms !important;
|
|
623
|
+
scroll-behavior: auto !important;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.mobile-only { display: none; }
|
|
628
|
+
|
|
629
|
+
/* 内置滚动条(去原生, 沿用皮肤变量) */
|
|
630
|
+
.ds-session-list, .ds-history, .ds-fs-list, .ds-group-menu, .ds-modal-body, .ds-notif-body { scrollbar-width: thin; scrollbar-color: var(--dsr-line) transparent; }
|
|
631
|
+
.ds-session-list::-webkit-scrollbar, .ds-history::-webkit-scrollbar, .ds-fs-list::-webkit-scrollbar,
|
|
632
|
+
.ds-group-menu::-webkit-scrollbar, .ds-modal-body::-webkit-scrollbar, .ds-notif-body::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
633
|
+
.ds-session-list::-webkit-scrollbar-track, .ds-history::-webkit-scrollbar-track, .ds-fs-list::-webkit-scrollbar-track,
|
|
634
|
+
.ds-group-menu::-webkit-scrollbar-track, .ds-modal-body::-webkit-scrollbar-track, .ds-notif-body::-webkit-scrollbar-track { background: transparent; }
|
|
635
|
+
.ds-session-list::-webkit-scrollbar-thumb, .ds-history::-webkit-scrollbar-thumb, .ds-fs-list::-webkit-scrollbar-thumb,
|
|
636
|
+
.ds-group-menu::-webkit-scrollbar-thumb, .ds-modal-body::-webkit-scrollbar-thumb, .ds-notif-body::-webkit-scrollbar-thumb {
|
|
637
|
+
background: var(--dsr-line); border-radius: 999px;
|
|
638
|
+
}
|
|
639
|
+
.ds-session-list::-webkit-scrollbar-thumb:hover, .ds-history::-webkit-scrollbar-thumb:hover, .ds-fs-list::-webkit-scrollbar-thumb:hover,
|
|
640
|
+
.ds-group-menu::-webkit-scrollbar-thumb:hover, .ds-modal-body::-webkit-scrollbar-thumb:hover, .ds-notif-body::-webkit-scrollbar-thumb:hover { background: var(--dsr-muted); }
|
|
641
|
+
|
|
642
|
+
/* 桌面 hover 态 */
|
|
643
|
+
@media (hover: hover) and (pointer: fine) {
|
|
644
|
+
.ds-session-item:hover, .ds-nav-item:hover, .ds-server-row:hover, .ds-fs-row:hover { background: var(--dsr-bg-2); }
|
|
645
|
+
.ds-btn:hover { filter: brightness(1.08); }
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/* 窄屏回退: 侧栏变为可关闭抽屉,保留完整导航与会话上下文。 */
|
|
649
|
+
@media (max-width: 1023px) {
|
|
650
|
+
.ds-sidebar {
|
|
651
|
+
position: fixed; inset: 0 auto 0 0; z-index: 90; display: flex;
|
|
652
|
+
width: min(320px, 86vw); max-width: 100%;
|
|
653
|
+
opacity: 0; pointer-events: none; transform: translateX(-104%);
|
|
654
|
+
transition: transform .24s ease, opacity .18s ease;
|
|
655
|
+
box-shadow: 18px 0 48px rgba(0,0,0,.38);
|
|
656
|
+
}
|
|
657
|
+
.ds-sidebar.mobile-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
|
|
658
|
+
.ds-sidebar-backdrop {
|
|
659
|
+
position: fixed; inset: 0; z-index: 80; display: block;
|
|
660
|
+
border: 0; background: var(--dsr-overlay); cursor: default;
|
|
661
|
+
}
|
|
662
|
+
.ds-sidebar-backdrop.hidden { display: none; }
|
|
663
|
+
.ds-app.mobile-nav-open { overflow: hidden; }
|
|
664
|
+
#btn-mobile-nav { display: inline-flex; }
|
|
665
|
+
.ds-content { flex-direction: column; }
|
|
666
|
+
.ds-view { padding: 10px; overflow-y: auto; }
|
|
667
|
+
.ds-server { display: none; }
|
|
668
|
+
.ds-msg { max-width: 90%; }
|
|
669
|
+
.ds-toast-stack { left: 10px; right: 10px; width: auto; }
|
|
670
|
+
.mobile-only { display: block; }
|
|
671
|
+
.ds-overview-grid { grid-template-columns:1fr; }
|
|
672
|
+
.ds-overview-pulse-card { padding:18px; }
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
@media (max-width: 520px) {
|
|
676
|
+
.ds-topbar { gap: 6px; padding: 0 8px; }
|
|
677
|
+
.ds-top-right { gap: 5px; }
|
|
678
|
+
.ds-composer-actions { align-items: stretch; flex-wrap: wrap; gap: 6px; }
|
|
679
|
+
.ds-composer-left { flex: 1 1 100%; gap: 5px; }
|
|
680
|
+
.ds-composer-left .ds-btn { flex: 1 1 0; min-width: 0; padding-left: 7px; padding-right: 7px; overflow: hidden; text-overflow: ellipsis; }
|
|
681
|
+
.ds-composer-right { margin-left: auto; }
|
|
682
|
+
.ds-overview-head { margin-bottom:14px; }
|
|
683
|
+
.ds-overview-title { font-size:23px; }
|
|
684
|
+
.ds-overview-pulse-card { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:15px; }
|
|
685
|
+
.ds-system-pulse-ring { width:92px; height:92px; padding:7px; }
|
|
686
|
+
.ds-system-pulse-core strong { font-size:14px; }
|
|
687
|
+
.ds-overview-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
|
|
688
|
+
.ds-overview-actions .ds-btn { padding-left:5px; padding-right:5px; }
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* 关于页贡献者致谢:随页面提供名单,离线可见,按贡献提交数排序。 */
|
|
692
|
+
.contributors-thanks { margin: 6px 0 12px; color: var(--dsr-muted); font-size: 12px; line-height: 1.6; }
|
|
693
|
+
.contributors-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 10px; padding: 0; }
|
|
694
|
+
.contributors-list li { min-width: 0; max-width: 100%; }
|
|
695
|
+
.contributors-list a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--dsr-line); border-radius: 10px; background: var(--dsr-bg-2); color: var(--dsr-text); font-size: 13px; overflow-wrap: anywhere; text-decoration: none; }
|
|
696
|
+
.contributors-list a:hover { border-color: var(--dsr-accent-line); color: var(--dsr-accent-strong); }
|
|
697
|
+
.contributors-all { display: inline-flex; align-items: center; min-height: 44px; color: var(--dsr-accent-strong); font-size: 12px; text-underline-offset: 3px; }
|
|
698
|
+
.contributors-section a:focus-visible { outline: 2px solid var(--dsr-accent-strong); outline-offset: 3px; }
|
|
699
|
+
|
|
700
|
+
/* 会话操作统一入口;标题与工作区保持独立阅读空间。 */
|
|
701
|
+
.session-actions-dialog,.session-info-dialog { width:min(420px,calc(100vw - 24px)); max-height:calc(100dvh - 48px); padding:16px; border:1px solid var(--dsr-line); border-radius:18px; background:var(--dsr-bg-2); color:var(--dsr-text); overflow:auto; box-shadow:0 16px 48px var(--dsr-shadow); }
|
|
702
|
+
.session-actions-dialog::backdrop,.session-info-dialog::backdrop { background:var(--dsr-overlay); }
|
|
703
|
+
.session-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
|
|
704
|
+
.session-dialog-head button { min-width:44px; min-height:44px; color:var(--dsr-muted); font:inherit; font-size:24px; border:0; background:transparent; cursor:pointer; }
|
|
705
|
+
.session-actions-dialog>button { display:block; width:100%; min-height:48px; padding:12px; margin:4px 0; border:0; border-radius:10px; background:var(--dsr-panel); color:var(--dsr-text); font:inherit; text-align:left; cursor:pointer; }
|
|
706
|
+
.session-actions-dialog>button:hover { background:var(--dsr-accent-soft); }
|
|
707
|
+
.session-actions-dialog>button svg { display:none; }
|
|
708
|
+
.session-actions-dialog #btn-archive-session { color:var(--dsr-warning); border-top:1px solid var(--dsr-line); margin-top:12px; }
|
|
709
|
+
.session-info-dialog dl { margin:0 0 16px; }
|
|
710
|
+
.session-info-dialog dt { margin-top:14px; color:var(--dsr-muted); font-size:12px; }
|
|
711
|
+
.session-info-dialog dd { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
|
|
712
|
+
.session-info-dialog>button { min-height:44px; padding:8px 14px; border:1px solid var(--dsr-line); border-radius:10px; background:var(--dsr-panel); color:var(--dsr-text); font:inherit; cursor:pointer; }
|
|
713
|
+
.session-actions-dialog button:focus-visible,.session-info-dialog button:focus-visible { outline:2px solid var(--dsr-accent); outline-offset:2px; }
|
|
714
|
+
|
|
715
|
+
.ds-topbar { height:auto; min-height:64px; padding-top:8px; padding-bottom:8px; }
|
|
716
|
+
.ds-title-block { flex:1; min-width:0; }
|
|
717
|
+
.ds-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; width:100%; padding:0; border:0; background:transparent; color:inherit; font:inherit; font-weight:700; text-align:left; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
|
|
718
|
+
.ds-workspace { display:block; max-width:100%; padding:3px 0 0; border:0; background:transparent; color:var(--dsr-muted); font:inherit; font-size:11px; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
|
|
719
|
+
@media(max-width:720px) { .ds-top-right .ds-server { display:none; } .ds-title { font-size:14px; } }
|
|
720
|
+
|
|
721
|
+
.session-info-dialog>button:disabled { opacity:.45; cursor:default; }
|
|
722
|
+
|
|
723
|
+
/* 有界历史视图:保留消息节点,窗口外记录不参与布局。 */
|
|
724
|
+
.history-entry { flex:0 0 auto; min-width:0; overflow-anchor:none; display:flow-root; }
|
|
725
|
+
.history-page-control { flex:none; align-self:center; min-height:44px; padding:8px 14px; border:1px solid var(--dsr-line); border-radius:10px; background:var(--dsr-panel); color:var(--dsr-muted); font:inherit; cursor:pointer; }
|
|
726
|
+
.history-page-control[hidden],.history-live:empty { display:none; }
|
|
727
|
+
.history-empty { padding:24px 8px; text-align:center; color:var(--dsr-muted); }
|
|
728
|
+
.history-source { color:var(--dsr-muted); font-size:11px; font-weight:400; letter-spacing:0; }
|
|
729
|
+
.history-meta { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; justify-content:flex-end; }
|
|
730
|
+
.history-latest { position:absolute; right:22px; bottom:20px; z-index:8; min-height:44px; padding:8px 12px; border:1px solid var(--dsr-accent-line); border-radius:999px; color:var(--dsr-accent-strong); background:var(--dsr-bg-2); box-shadow:0 4px 16px var(--dsr-shadow); font:inherit; cursor:pointer; }
|
|
731
|
+
|
|
732
|
+
.ds-history-wrap { flex:1; min-height:0; position:relative; display:flex; }
|
|
733
|
+
.ds-history { overflow-anchor:none; }
|
|
734
|
+
#history-source { flex:none; padding:5px 22px; }
|
|
735
|
+
|
|
736
|
+
.crash-preview {margin:10px 0;font-size:13px;}
|
|
737
|
+
.crash-preview summary {cursor:pointer;min-height:44px;display:flex;align-items:center;}
|
|
738
|
+
.crash-preview pre {max-height:200px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:10px;background:var(--dsr-panel);border-radius:8px;}
|
|
739
|
+
/* Keep feedback fields readable and actions visible when log details expand. */
|
|
740
|
+
#modal-feedback .ds-modal-card { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); overflow:hidden; }
|
|
741
|
+
#modal-feedback .ds-modal-title,#modal-feedback .ds-modal-actions { flex-shrink:0; }
|
|
742
|
+
#modal-feedback .ds-modal-body { min-height:0; max-height:none; overflow-y:auto; overscroll-behavior:contain; }
|
|
743
|
+
#modal-feedback .ds-modal-body>* { flex-shrink:0; }
|
|
744
|
+
#modal-feedback .ds-modal-actions .ds-btn { min-height:44px; }
|
|
745
|
+
|
|
746
|
+
/* Link instrument: persistent geometry, compositor sweep and interruptible state transitions. */
|
|
747
|
+
.ds-overview-pulse-card { --pulse-ease:cubic-bezier(0.23,1,0.32,1); transition:border-color 240ms ease; }
|
|
748
|
+
.ds-overview-pulse-copy,.ds-overview-link { position:relative; }
|
|
749
|
+
.ds-overview-status { line-height:1.25; min-block-size:1.25em; }
|
|
750
|
+
.ds-overview-status-desc { line-height:1.4; min-block-size:2.8em; }
|
|
751
|
+
.ds-overview-pulse-card.status-checking { border-color:var(--dsr-accent-line); }
|
|
752
|
+
.ds-overview-pulse-card.status-checking .ds-overview-primary-action { border-color:var(--dsr-accent-strong); background:var(--dsr-accent-strong); color:var(--dsr-on-accent); }
|
|
753
|
+
.ds-overview-primary-action { transition:transform 160ms var(--pulse-ease),background-color 240ms ease,border-color 240ms ease,color 240ms ease; }
|
|
754
|
+
.ds-system-pulse-ring { width:136px; height:136px; padding:0; background:none; box-shadow:none; isolation:isolate; flex:none; }
|
|
755
|
+
.ds-system-pulse-ring::before { inset:0; border:0; opacity:.7; background:repeating-conic-gradient(var(--dsr-accent-line) 0deg 1deg,transparent 1deg 15deg); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); }
|
|
756
|
+
.ds-system-pulse-ring::after { content:""; position:absolute; inset:12%; border-radius:50%; box-shadow:0 0 24px var(--dsr-accent-line); opacity:.12; transform:scale(.96); transition:opacity 240ms var(--pulse-ease),transform 240ms var(--pulse-ease); pointer-events:none; }
|
|
757
|
+
.ds-overview-pulse-card.status-checking .ds-system-pulse-ring::after { opacity:.55; transform:scale(1); }
|
|
758
|
+
.ds-system-pulse-ring .pulse-dial { position:absolute; inset:0; width:100%; height:100%; overflow:visible; fill:none; stroke:var(--dsr-accent); stroke-width:2; stroke-linecap:round; }
|
|
759
|
+
.ds-system-pulse-ring .pulse-dial path { opacity:.15; transition:opacity 240ms var(--pulse-ease),stroke 240ms ease; }
|
|
760
|
+
.ds-system-pulse-ring .pulse-dial [data-confirmed="true"] { opacity:1; }
|
|
761
|
+
.ds-overview-pulse-card.status-nominal .ds-system-pulse-ring .pulse-dial [data-confirmed="true"] { stroke:var(--dsr-success); }
|
|
762
|
+
.ds-system-pulse-ring .pulse-sweep { position:absolute; inset:3%; border-radius:50%; background:conic-gradient(from 0deg,transparent 0deg 278deg,var(--dsr-accent-soft) 306deg,var(--dsr-accent) 350deg,var(--dsr-accent-strong) 358deg,transparent 360deg); -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px)); mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2px)); opacity:0; animation:overview-scan 3s linear infinite; animation-play-state:paused; transition:opacity 240ms var(--pulse-ease); pointer-events:none; }
|
|
763
|
+
.ds-overview-pulse-card[data-pulse-running="true"] .pulse-sweep { animation-play-state:running; }
|
|
764
|
+
.ds-overview-pulse-card.status-checking .pulse-sweep { opacity:1; }
|
|
765
|
+
.ds-system-pulse-ring .pulse-reticle { position:absolute; inset:22%; border:1px solid var(--dsr-accent-line); border-radius:50%; opacity:.6; pointer-events:none; transition:border-color 240ms ease; }
|
|
766
|
+
.ds-system-pulse-ring .pulse-reticle::before,.ds-system-pulse-ring .pulse-reticle::after { content:""; position:absolute; width:1px; height:5px; left:50%; background:var(--dsr-accent); opacity:.65; }
|
|
767
|
+
.ds-system-pulse-ring .pulse-reticle::before { top:-3px; }
|
|
768
|
+
.ds-system-pulse-ring .pulse-reticle::after { bottom:-3px; }
|
|
769
|
+
.ds-system-pulse-core { position:absolute; inset:24%; width:auto; height:auto; background:var(--dsr-bg-2); z-index:1; }
|
|
770
|
+
.ds-system-pulse-core strong { font-size:15px; letter-spacing:.6px; transition:color 240ms ease; }
|
|
771
|
+
.ds-system-pulse-core span { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric:tabular-nums; font-size:9px; letter-spacing:.5px; }
|
|
772
|
+
.ds-overview-pulse-card.status-nominal .ds-system-pulse-core strong { color:var(--dsr-success); }
|
|
773
|
+
.ds-overview-link i { transition:background-color 240ms ease,box-shadow 240ms ease; }
|
|
774
|
+
.ds-overview-link.pending i { background:var(--dsr-accent); animation:overview-detect 2.5s ease-in-out infinite; }
|
|
775
|
+
.ds-overview-link:nth-child(2) i { animation-delay:-.15s; }
|
|
776
|
+
.ds-overview-link:nth-child(3) i { animation-delay:-.3s; }
|
|
777
|
+
.ds-overview-link:nth-child(4) i { animation-delay:-.45s; }
|
|
778
|
+
.ds-overview-link.pending b { color:var(--dsr-muted); }
|
|
779
|
+
.ds-overview-refresh:disabled { cursor:progress; opacity:.6; }
|
|
780
|
+
.pulse-text-echo { position:absolute!important; pointer-events:none; user-select:none; z-index:2; }
|
|
781
|
+
@keyframes overview-scan { to { transform:rotate(360deg); } }
|
|
782
|
+
@keyframes overview-detect { 50% { opacity:.4; } }
|
|
783
|
+
@media(prefers-reduced-motion:reduce) {
|
|
784
|
+
.ds-overview-pulse-card,.ds-overview-pulse-card .pulse-dial path,.ds-overview-pulse-card .pulse-reticle,.ds-overview-pulse-card .pulse-sweep,.ds-overview-pulse-card .ds-system-pulse-ring::after,.ds-overview-pulse-card .ds-overview-link i,.ds-overview-pulse-card .ds-system-pulse-core strong,.ds-overview-pulse-card .ds-overview-primary-action { transition:none; }
|
|
785
|
+
.ds-overview-pulse-card .pulse-sweep,.ds-overview-pulse-card .ds-overview-link.pending i { animation:none; }
|
|
786
|
+
.ds-overview-pulse-card.status-checking .pulse-sweep { opacity:.4; }
|
|
787
|
+
.ds-overview-pulse-card .pulse-text-echo { display:none; }
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
@media(max-width:600px) { .ds-system-pulse-ring { width:108px; height:108px; } .ds-overview-status { font-size:20px; } html[lang="en"] .ds-overview-status { min-block-size:2.5em; } }
|
|
791
|
+
#view-plugins{overflow-y:auto}
|
|
792
|
+
|
|
793
|
+
.chat-file { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:12px; border:1px solid var(--dsr-line); border-radius:12px; margin:8px 0; }
|
|
794
|
+
.chat-file-name { min-width:0; flex:1; overflow-wrap:break-word; }.chat-file small { color:var(--dsr-muted); }
|
|
795
|
+
.chat-file button { flex-shrink:0; min-height:44px; padding:8px 12px; border:1px solid var(--dsr-accent-line); border-radius:10px; color:var(--dsr-accent-strong); background:var(--dsr-accent-soft); font:inherit; cursor:pointer; }
|
|
796
|
+
|
|
797
|
+
/* Conversation copy controls remain reachable on touch and keyboard. */
|
|
798
|
+
.ds-msg .role { display:flex; align-items:center; justify-content:space-between; gap:12px; opacity:1; }
|
|
799
|
+
.chat-code { margin:10px 0; min-width:0; max-width:100%; border:1px solid var(--dsr-line); border-radius:10px; background:var(--dsr-code-bg); overflow:hidden; }
|
|
800
|
+
.chat-code-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:40px; padding:0 3px 0 12px; border-bottom:1px solid var(--dsr-line); white-space:normal; }
|
|
801
|
+
.chat-code-language { color:var(--dsr-muted); font:500 11px/1.4 ui-monospace,monospace; letter-spacing:.02em; }
|
|
802
|
+
.chat-copy-button { position:relative; display:inline-flex; flex:none; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; padding:12px; margin:0; border:0; border-radius:7px; background:transparent; color:var(--dsr-muted); box-shadow:none; font:inherit; cursor:pointer; touch-action:manipulation; }
|
|
803
|
+
.chat-copy-button svg { display:block; width:18px; height:18px; flex:none; pointer-events:none; }
|
|
804
|
+
.chat-copy-button .chat-copy-check { display:none; }
|
|
805
|
+
.chat-copy-button:hover { color:var(--dsr-accent-strong,var(--dsr-accent)); background:var(--dsr-accent-soft); }
|
|
806
|
+
.chat-copy-button:focus-visible { outline:2px solid var(--dsr-accent); outline-offset:-3px; }
|
|
807
|
+
.chat-copy-button:disabled { opacity:.55; cursor:wait; }
|
|
808
|
+
.chat-copy-button[data-copy-state=copied] { color:var(--dsr-success,var(--dsr-accent-strong,var(--dsr-accent))); }
|
|
809
|
+
.chat-copy-button[data-copy-state=copied] .chat-copy-icon { display:none; }
|
|
810
|
+
.chat-copy-button[data-copy-state=copied] .chat-copy-check { display:block; }
|
|
811
|
+
.chat-copy-status { position:absolute; right:42px; padding:3px 6px; border-radius:4px; background:var(--dsr-code-bg); color:inherit; font-size:11px; line-height:1.4; white-space:nowrap; pointer-events:none; }
|
|
812
|
+
.chat-copy-status:empty { display:none; }
|
|
813
|
+
.chat-code > pre { margin:0; border:0; border-radius:0; padding:12px 14px; background:transparent; white-space:pre; word-break:normal; }
|
|
814
|
+
.chat-code > pre > code { display:block; padding:0; border-radius:0; background:transparent; color:inherit; white-space:pre; overflow-wrap:normal; word-break:normal; }
|
|
815
|
+
.feedback-length { margin:4px 0; color:var(--dsr-muted); font-size:12px; }
|
|
816
|
+
#fb-msg[aria-invalid="true"] { outline:2px solid var(--dsr-danger, #dc4444); }
|