dsh-remote-plugin 0.7.5 → 0.8.0-rc.2

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/public/motion.js CHANGED
@@ -48,7 +48,7 @@
48
48
  const targets = children.length ? children : [view]
49
49
  gsap.killTweensOf([view, ...targets])
50
50
  gsap.set(view, { autoAlpha: 1, clearProps: 'transform' })
51
- if (reduced) {
51
+ if (reduced || document.body?.classList?.contains('workflow-v8')) {
52
52
  clear([view, ...targets])
53
53
  return
54
54
  }
@@ -74,7 +74,7 @@
74
74
  if (container.dataset.motionListSignature === signature) return
75
75
  container.dataset.motionListSignature = signature
76
76
  gsap.killTweensOf(items)
77
- if (reduced) {
77
+ if (reduced || document.body?.classList?.contains('workflow-v8')) {
78
78
  clear(items)
79
79
  return
80
80
  }
@@ -97,7 +97,7 @@
97
97
  gsap.killTweensOf(existing)
98
98
  render()
99
99
  const next = [...container.querySelectorAll(selector)]
100
- if (reduced) {
100
+ if (reduced || document.body?.classList?.contains('workflow-v8')) {
101
101
  clear(next)
102
102
  return true
103
103
  }
package/public/network.js CHANGED
@@ -2,6 +2,12 @@
2
2
  'use strict';
3
3
  ;(function(root){
4
4
  let measuredLatency=0
5
+ const sharedReads=new Map()
6
+ function shareRead(key,read){
7
+ if(sharedReads.has(key))return sharedReads.get(key)
8
+ const job=Promise.resolve().then(read).finally(()=>{if(sharedReads.get(key)===job)sharedReads.delete(key)})
9
+ sharedReads.set(key,job);return job
10
+ }
5
11
  function mode(){try{return ['auto','weak','normal'].includes(root.localStorage.getItem('dshNetworkModeV1'))?root.localStorage.getItem('dshNetworkModeV1'):'auto'}catch{return 'auto'}}
6
12
  function profile(){
7
13
  const selected=mode(),connection=root.navigator?.connection
@@ -50,7 +56,7 @@
50
56
  row.querySelector('[data-network-detail]').textContent=english?'Weak mode loads fewer history entries and allows longer read waits. Sending is never retried automatically.':'弱网模式减少每页历史条数、延长读取等待;发送操作不会自动重试。'
51
57
  const select=row.querySelector('select');select.setAttribute('aria-label',english?'Network mode':'网络模式');['auto','weak','normal'].forEach((v,i)=>select.options[i].textContent=(english?['Automatic','Weak network','Standard']:['自动判断','弱网优先','标准模式'])[i]);select.value=mode();root.enhanceCustomSelect?.(select);root.syncCustomSelect?.(select)
52
58
  }
53
- const api={profile,setMode,PollLoop,observeLatency:ms=>{if(Number.isFinite(ms))measuredLatency=ms},preferences}
59
+ const api={profile,setMode,PollLoop,shareRead,observeLatency:ms=>{if(Number.isFinite(ms))measuredLatency=ms},preferences}
54
60
  if(typeof module!=='undefined'&&module.exports)module.exports=api
55
61
  else{root.DshNetwork=api;root.document.addEventListener('DOMContentLoaded',()=>{preferences();new MutationObserver(preferences).observe(root.document.documentElement,{attributes:true,attributeFilter:['lang']})})}
56
62
  })(typeof window==='undefined'?globalThis:window)
@@ -0,0 +1,109 @@
1
+ /* Durable write receipts. POST once, recover using GET only; zero dependencies. */
2
+ ;(function(root) {
3
+ 'use strict'
4
+ const methods = new Set(['session.create','session.prompt','session.updateQueue','session.selectModel',
5
+ 'session.rename','session.cancel','workspace.create','workspace.archiveSession',
6
+ 'goal.edit','goal.pause','goal.resume','goal.complete','goal.clear'])
7
+ const pending = new Map()
8
+ const storageKey = 'dshRemoteOperationReceiptsV1'
9
+ function saved() { try { return JSON.parse(root.localStorage?.getItem(storageKey) || '[]').filter(row => Date.now()-row.createdAt<86400000).slice(-100) } catch { return [] } }
10
+ function persist() {
11
+ const rows=new Map(saved().map(row=>[row.id,row]))
12
+ for(const row of pending.values())rows.set(row.id,{id:row.id,scope:row.scope,intent:row.intent,method:row.method,sessionId:row.sessionId,createdAt:row.createdAt})
13
+ try { root.localStorage?.setItem(storageKey,JSON.stringify([...rows.values()].slice(-100))) } catch {}
14
+ root.dispatchEvent?.(new Event('dsh-operation-change'))
15
+ }
16
+ function forget(id) {
17
+ pending.delete(id)
18
+ try { root.localStorage?.setItem(storageKey,JSON.stringify(saved().filter(row=>row.id!==id))) } catch {}
19
+ root.dispatchEvent?.(new Event('dsh-operation-change'))
20
+ }
21
+ async function digest(value) {
22
+ const input=new TextEncoder().encode(value)
23
+ if(root.crypto?.subtle) {
24
+ const bytes=await root.crypto.subtle.digest('SHA-256',input)
25
+ return [...new Uint8Array(bytes)].map(n=>n.toString(16).padStart(2,'0')).join('')
26
+ }
27
+ // LAN HTTP does not expose SubtleCrypto. Reuse the existing upload hasher.
28
+ if(typeof root.SHA256==='function')return new root.SHA256().update(input).hex()
29
+ throw new Error('SHA-256 unavailable')
30
+ }
31
+ function newId() {
32
+ if(root.crypto.randomUUID)return root.crypto.randomUUID()
33
+ return [...root.crypto.getRandomValues(new Uint8Array(16))].map(n=>n.toString(16).padStart(2,'0')).join('')
34
+ }
35
+ async function restore(config) {
36
+ const scope=await digest(config.url('/api/operations')+'\0'+config.headers.authorization)
37
+ if(!config.valid())return scope
38
+ for(const row of saved())if(row.scope===scope&&!pending.has(row.id))pending.set(row.id,{...row,phase:'unknown',config})
39
+ for(const row of pending.values())if(row.scope===scope)row.config=config
40
+ return scope
41
+ }
42
+ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
43
+ function unknown(id) {
44
+ const error = new Error((root.I18N?.lang === 'en' ? 'Result unconfirmed. Check the conversation before sending again. Operation: ' : '结果未确认,请核对会话后再决定是否重发。操作编号:') + id)
45
+ error.operationId = id; error.operationPending = true
46
+ return error
47
+ }
48
+ async function execute(config) {
49
+ const scope=await restore(config),intent=await digest(JSON.stringify([config.method,config.payload]))
50
+ if(!config.valid())throw unknown('connection-changed')
51
+ const existing=[...pending.values()].find(row=>row.scope===scope&&row.intent===intent)
52
+ const id = existing?.id || newId(), createdAt = Date.now()
53
+ const entry = existing || { id, scope, intent, method: config.method, sessionId: config.payload.sessionId || '', createdAt, phase: 'running', config }
54
+ pending.set(id, entry)
55
+ persist()
56
+ const statusUrl = config.url('/api/operations?id=' + encodeURIComponent(id))
57
+ const request = async (method, body) => {
58
+ const response = await root.fetch(statusUrl, { method, headers: config.headers,
59
+ ...(body ? { body: JSON.stringify(body) } : {}), signal: AbortSignal.timeout(15000) })
60
+ if (!config.valid()) throw unknown(id)
61
+ if (response.status === 401) throw Error('AUTH')
62
+ const value = await response.json()
63
+ if (!config.valid()) throw unknown(id)
64
+ if (response.status >= 400) {
65
+ if (response.status >= 500) throw unknown(id)
66
+ if (method === 'GET' && response.status === 404) throw unknown(id)
67
+ const error = new Error(value.error || ('HTTP ' + response.status)); error.rpcRejected = true; throw error
68
+ }
69
+ return value
70
+ }
71
+ let status
72
+ try {
73
+ try { status = existing ? await request('GET') : await request('POST', { method: config.method, payload: config.payload }) }
74
+ catch (error) { if (error.message === 'AUTH' || error.rpcRejected || !config.valid()) throw error }
75
+ for (let attempt = 0; config.valid() && Date.now() - createdAt < 90000; attempt++) {
76
+ if (status?.phase === 'complete' || status?.phase === 'rejected') {
77
+ entry.phase = status.phase; forget(id)
78
+ return status.result
79
+ }
80
+ if (status?.phase === 'unknown') { entry.phase = 'unknown'; throw unknown(id) }
81
+ await sleep(Math.min(3000, 400 + attempt * 250))
82
+ try { status = await request('GET') }
83
+ catch (error) { if (error.message === 'AUTH' || error.rpcRejected) throw error }
84
+ }
85
+ throw unknown(id)
86
+ } catch (error) {
87
+ if (error.rpcRejected || error.message === 'AUTH') forget(id)
88
+ else entry.phase = 'unknown'
89
+ persist()
90
+ throw error
91
+ }
92
+ }
93
+ async function check(id) {
94
+ const entry = pending.get(id)
95
+ if (!entry || !entry.config.valid()) return null
96
+ const response = await root.fetch(entry.config.url('/api/operations?id=' + encodeURIComponent(id)), {
97
+ headers: entry.config.headers, signal: AbortSignal.timeout(15000) })
98
+ if (!entry.config.valid()) return null
99
+ const value = await response.json()
100
+ if (!entry.config.valid()) return null
101
+ if (response.ok) { entry.phase = value.phase; if (['complete','rejected'].includes(value.phase)) forget(id) }
102
+ return response.ok ? value : null
103
+ }
104
+ const api = { supports: method => methods.has(method), execute, check, restore,
105
+ dismiss: id => { const row=pending.get(id);if(!row||row.phase!=='unknown'||!row.config.valid())return false;forget(id);return true },
106
+ pending: () => [...pending.values()].filter(row => row.config.valid()).map(({id,method,sessionId,createdAt,phase}) => ({id,method,sessionId,createdAt,phase})) }
107
+ root.DshOperations = api
108
+ if (typeof module !== 'undefined') module.exports = api
109
+ })(typeof window === 'undefined' ? globalThis : window)
@@ -0,0 +1,2 @@
1
+ .relay-settings{margin:18px 0;padding:20px;border:1px solid var(--dsr-line,var(--border,#ffffff20));border-radius:16px;background:var(--dsr-panel,var(--bg-card,transparent));color:inherit;min-width:0}
2
+ .relay-settings [hidden]{display:none!important}.relay-heading,.relay-address,.relay-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.relay-heading{justify-content:space-between}.relay-heading h3{font-size:16px;line-height:1.4;margin:0}.relay-badge{font-size:12px;padding:5px 9px;border-radius:20px;background:#77889920}.relay-badge[data-phase=online]{background:#36b48522;color:var(--success,#35b58a)}.relay-badge[data-phase=quota-exceeded],.relay-badge[data-phase=error]{background:#da704522;color:var(--warning,#d98758)}.relay-muted{font-size:12px;line-height:1.65;opacity:.7;margin:10px 0}.relay-status,.relay-notice,.relay-quota p{font-size:13px;line-height:1.6}.relay-address{padding:12px 0}.relay-address a{color:var(--dsr-accent,var(--accent,#6ea9e8));overflow-wrap:anywhere;flex:1;min-width:120px}.relay-form{display:grid;gap:12px;padding:12px 0}.relay-form label{display:grid;gap:7px;font-size:13px}.relay-form input{width:100%;box-sizing:border-box;min-height:44px;border:1px solid var(--dsr-line,var(--border,#ffffff25));background:transparent;color:inherit;border-radius:9px;padding:10px 12px;font:inherit}.relay-settings button{min-height:44px;border:1px solid var(--dsr-line,var(--border,#ffffff25));border-radius:9px;padding:9px 14px;font:inherit;font-size:13px;cursor:pointer;background:transparent;color:inherit}.relay-settings .relay-primary{background:var(--dsr-accent,var(--accent,#527dab));color:var(--dsr-bg,#fff);justify-self:start;border-color:transparent}.relay-settings button:disabled{opacity:.5;cursor:default}.relay-settings :focus-visible{outline:2px solid var(--dsr-accent,var(--accent,#6ea9e8));outline-offset:3px}.relay-quota progress{display:block;width:100%;height:7px;accent-color:var(--dsr-accent,var(--accent,#6ea9e8))}.relay-notice:empty{display:none}.relay-notice{padding:10px 12px;border-radius:9px;background:#71839c16}.relay-actions{margin-top:6px}@media(max-width:480px){.relay-settings{padding:16px}.relay-heading{align-items:flex-start}.relay-address{align-items:flex-start}.relay-form .relay-primary{width:100%;justify-self:stretch}}
@@ -0,0 +1,119 @@
1
+ /* Shared settings for the host-owned relay; no credentials enter browser storage. */
2
+ ;(function(root) {
3
+ 'use strict'
4
+ const text = (zh, en) => root.I18N?.lang === 'en' ? en : zh
5
+ const el = (tag, cls, value) => { const node=document.createElement(tag);if(cls)node.className=cls;if(value)node.textContent=value;return node }
6
+ const messages = {
7
+ INVALID_AUTHORIZATION:['中转密钥无效或已到期,请核对运营者发给你的密钥。','The relay key is invalid or expired.'],
8
+ HOST_ALREADY_BOUND:['此密钥已绑定其他主机,请申请新的密钥。','This key is already bound to another host.'],
9
+ RELAY_ADMIN_REQUIRED:['开通或停用需要此主机的管理令牌。','The host admin token is required.'],
10
+ ENROLLMENT_CONNECTION_FAILED:['暂时无法连接中转服务器,密钥未保存到浏览器。','The relay server is unreachable. The key was not saved in the browser.'],
11
+ GATEWAY_UNAVAILABLE:['请先在主机上启动 Remote 网关。','Start the Remote gateway on the host first.'],
12
+ RELAY_OPERATION_BUSY:['主机正在处理上一次操作,请稍后刷新状态。','The previous operation is still running. Refresh shortly.'],
13
+ unauthorized:['请先连接主机,再设置云服务器中转。','Connect to your host before configuring its relay.'],
14
+ }
15
+ function mount(target, { connection, path = '/relay', credentials } = {}) {
16
+ if (!target || target.dataset.relayMounted) return
17
+ target.dataset.relayMounted='true';target.classList.add('relay-settings')
18
+ const heading=el('div','relay-heading'),title=el('h3'),badge=el('span','relay-badge')
19
+ heading.append(title,badge)
20
+ const intro=el('p','relay-muted'),status=el('p','relay-status');status.setAttribute('aria-live','polite')
21
+ const address=el('div','relay-address'),link=el('a'),copy=el('button');copy.type='button';link.target='_blank';link.rel='noopener noreferrer';address.append(link,copy)
22
+ const quota=el('div','relay-quota'),meter=el('progress'),usage=el('p'),reset=el('p','relay-muted');meter.max=100;quota.append(usage,meter,reset)
23
+ const binding=el('p','relay-muted'),form=el('form','relay-form'),keyLabel=el('label'),keyInput=el('input')
24
+ keyInput.type='password';keyInput.autocomplete='off';keyInput.spellcheck=false;keyInput.maxLength=128;keyInput.name='relay-key'
25
+ keyLabel.append(el('span'),keyInput)
26
+ const adminLabel=el('label'),adminInput=el('input');adminInput.type='password';adminInput.autocomplete='off';adminInput.name='relay-admin';adminLabel.append(el('span'),adminInput)
27
+ const submit=el('button','relay-primary');submit.type='submit';form.append(keyLabel,adminLabel,submit)
28
+ const actions=el('div','relay-actions'),toggle=el('button'),refresh=el('button'),takeover=el('button');toggle.type=refresh.type=takeover.type='button';actions.append(takeover,toggle,refresh)
29
+ const hint=el('p','relay-muted'),notice=el('p','relay-notice');notice.setAttribute('role','status')
30
+ target.append(heading,intro,status,address,quota,binding,form,actions,hint,notice)
31
+ let identity='',value=null,lastRead=0,busy=false,loading=false,controller=null,destroyed=false
32
+ function context() { const ctx=connection();return { ...ctx, endpoint:ctx.url(path) } }
33
+ function current(ctx) { return !destroyed && ctx.valid() && identity===JSON.stringify([ctx.endpoint,ctx.headers?.authorization||'']) }
34
+ function syncIdentity() {
35
+ const ctx=context(),next=JSON.stringify([ctx.endpoint,ctx.headers?.authorization||''])
36
+ if(next!==identity){identity=next;controller?.abort();controller=null;keyInput.value='';adminInput.value='';value=null;notice.textContent='';lastRead=0;loading=false;busy=false;render()}
37
+ return ctx
38
+ }
39
+ function render() {
40
+ title.textContent=text('云服务器中转','Cloud relay')
41
+ intro.textContent=text('让手机通过公网连接这台主机。每位用户使用自己的中转密钥,首次开通会绑定此主机。','Connect to this host over the internet. Your personal relay key binds to this host when activated.')
42
+ const phase=value?.phase||'unconfigured'
43
+ const names={unconfigured:['尚未开通','Not configured'],disabled:['已停用','Disabled'],connecting:['正在连接','Connecting'],online:['已连接','Connected'],reconnecting:['正在重连','Reconnecting'],expired:['授权已到期','Expired'],'authorization-inactive':['授权已撤销或到期','Authorization inactive'],'quota-exceeded':['今日流量已用完','Daily quota reached'],'quota-unavailable':['流量服务暂不可用','Quota service unavailable'],error:['连接异常','Connection error']}
44
+ badge.textContent=text(...(names[phase]||names.error));badge.dataset.phase=phase
45
+ status.textContent=busy?text('正在保存并绑定,请稍候…','Saving and binding…'):value?.error?text('请检查主机配置或刷新状态。','Check the host configuration or refresh.'):text('开通后会随 Remote 网关启动,无需单独运行工具。','Starts with the Remote gateway after activation.')
46
+ let safeUrl=''
47
+ try { const url=new URL(value?.publicUrl);if(url.protocol==='https:'&&!url.username&&!url.password)safeUrl=url.origin } catch {}
48
+ address.hidden=!safeUrl;link.textContent=safeUrl;link.href=safeUrl||'#';copy.textContent=text('复制地址','Copy URL')
49
+ const daily=value?.daily
50
+ quota.hidden=!daily
51
+ if(daily?.unavailable){usage.textContent=text('无法确认今日额度,云端暂停传输。','Quota unavailable; cloud transfer is paused.');meter.hidden=true;reset.textContent=''}
52
+ else if(daily){
53
+ meter.hidden=false;meter.value=Math.min(100,Math.max(0,Number(daily.usedBytes)/Number(daily.limitBytes)*100))
54
+ const gb=bytes=>(Math.max(0,Number(bytes)||0)/1e9).toFixed(2)
55
+ usage.textContent=text(`今日已用 ${gb(daily.usedBytes)} / ${gb(daily.limitBytes)} GB · 剩余 ${gb(daily.remainingBytes)} GB`,`Today ${gb(daily.usedBytes)} / ${gb(daily.limitBytes)} GB · ${gb(daily.remainingBytes)} GB left`)
56
+ reset.textContent=text('上传与下载合计;北京时间每天 00:00 重置。','Uploads + downloads; resets daily at 00:00 Beijing time.')
57
+ }
58
+ const expires=value?.expiresAt?new Date(value.expiresAt).toLocaleString():''
59
+ binding.textContent=value?.fingerprint?text(`已绑定此主机 · ${value.fingerprint.slice(0,12)}${expires?' · 有效期至 '+expires:''}`,`Bound to this host · ${value.fingerprint.slice(0,12)}${expires?' · Until '+expires:''}`):''
60
+ keyLabel.firstChild.textContent=text(value?.configured?'更换个人中转密钥':'个人中转密钥',value?.configured?'Replace personal relay key':'Personal relay key')
61
+ keyInput.placeholder='dsrp_…';keyInput.setAttribute('aria-label',keyLabel.firstChild.textContent)
62
+ adminLabel.hidden=value?.canManage!==false
63
+ adminLabel.firstChild.textContent=text('主机管理令牌(仅本次操作)','Host admin token (this operation only)')
64
+ adminInput.setAttribute('aria-label',adminLabel.firstChild.textContent)
65
+ submit.textContent=busy?text('正在处理…','Working…'):text(value?.configured?'绑定新密钥':'绑定并开启',value?.configured?'Bind new key':'Bind and enable')
66
+ submit.disabled=busy||!value;keyInput.disabled=busy;adminInput.disabled=busy
67
+ toggle.hidden=!value?.configured;toggle.disabled=busy;toggle.textContent=text(value?.enabled?'停用中转':'开启中转',value?.enabled?'Disable relay':'Enable relay')
68
+ refresh.textContent=text('刷新状态','Refresh');refresh.disabled=busy||loading
69
+ takeover.hidden=!value?.legacyAvailable;takeover.disabled=busy;takeover.textContent=text('接管已有试用连接','Take over existing trial')
70
+ hint.textContent=value?.quotaPending?text('等待云端确认今日额度…','Waiting for cloud quota…'):text('手机使用此公网地址和原 Remote 访问令牌。停用会断开通过此入口的连接;授权到期或用满后,请通过本地地址管理。','Use this URL and your existing Remote access token. Disabling disconnects this route; use a local address after expiry or quota exhaustion.')
71
+ }
72
+ async function load(force=false) {
73
+ const ctx=syncIdentity()
74
+ if(busy||loading||!force&&(document.hidden||!target.getClientRects().length||Date.now()-lastRead<5000))return
75
+ loading=true;lastRead=Date.now();const abort=new AbortController();controller=abort;const timer=setTimeout(()=>abort.abort(),10000)
76
+ render()
77
+ try {
78
+ const response=await root.fetch(ctx.endpoint,{headers:ctx.headers,credentials,cache:'no-store',signal:abort.signal})
79
+ const data=await response.json()
80
+ if(!current(ctx))return
81
+ if(response.status===429&&data.daily){value={phase:'quota-exceeded',daily:data.daily,configured:false};notice.textContent=text('今日额度已用完。请用主机本地地址进入设置,或等待零点恢复。','Daily quota reached. Use the local host address or wait until reset.');return}
82
+ if(!response.ok)throw Object.assign(Error(data.error||'HTTP_'+response.status),{code:data.error,status:response.status})
83
+ if(data.supported!==true)throw Error('UNSUPPORTED_GATEWAY')
84
+ value=data;notice.textContent=''
85
+ }catch(error){
86
+ if(current(ctx)&&!busy&&controller===abort)notice.textContent=error.status===404?text('请将此主机 Remote 升级到 0.8.0-rc.2 后使用。','Upgrade this host Remote to 0.8.0-rc.2.'):messages[error.code]?text(...messages[error.code]):text('暂时无法读取中转状态,可稍后刷新。','Unable to read relay status. Refresh shortly.')
87
+ }finally{clearTimeout(timer);if(current(ctx)&&controller===abort){loading=false;render()}}
88
+ }
89
+ async function change(action) {
90
+ const ctx=syncIdentity();if(busy)return
91
+ const key=keyInput.value.trim(),admin=adminInput.value.trim()
92
+ if(action==='enroll'&&!/^dsrp_[a-f0-9]{16}\.[A-Za-z0-9_-]{43}$/.test(key)){notice.textContent=text('请填写完整的个人中转密钥。','Enter the complete personal relay key.');return}
93
+ busy=true;controller?.abort();loading=false;notice.textContent='';render()
94
+ const abort=new AbortController();controller=abort;const timer=setTimeout(()=>abort.abort(),20000)
95
+ // Clear immediately, including ambiguous network outcomes. Never store the key.
96
+ keyInput.value='';adminInput.value=''
97
+ try {
98
+ const response=await root.fetch(ctx.endpoint,{method:'POST',headers:{...ctx.headers,...(admin?{authorization:'Bearer '+admin}:{}),'content-type':'application/json'},credentials,body:JSON.stringify({action,...(action==='enroll'?{key}:{})}),signal:abort.signal})
99
+ const data=await response.json();if(!current(ctx))return
100
+ if(!response.ok)throw Object.assign(Error(data.error),{code:data.error})
101
+ value=data;notice.textContent=text(action==='disable'?'中转已停用。':'设置已保存,正在确认云端连接。',action==='disable'?'Relay disabled.':'Saved. Confirming the cloud connection.')
102
+ }catch(error){if(current(ctx))notice.textContent=messages[error.code]?text(...messages[error.code]):text('暂时无法确认操作结果。请刷新状态后再决定是否重试。','Result unconfirmed. Refresh status before deciding whether to retry.')}
103
+ finally{clearTimeout(timer);if(current(ctx)){busy=false;lastRead=0;render()}}
104
+ }
105
+ form.addEventListener('submit',event=>{event.preventDefault();void change('enroll')})
106
+ toggle.addEventListener('click',()=>void change(value?.enabled?'disable':'enable'))
107
+ takeover.addEventListener('click',()=>void change('import'))
108
+ refresh.addEventListener('click',()=>void load(true))
109
+ copy.addEventListener('click',async()=>{
110
+ const ctx=syncIdentity(),url=link.href
111
+ try{await root.navigator.clipboard.writeText(url);if(current(ctx))notice.textContent=text('地址已复制。','URL copied.')}
112
+ catch{if(current(ctx))notice.textContent=text('请选中上方地址复制。','Select the URL above to copy it.')}
113
+ })
114
+ function tick(){if(destroyed)return;syncIdentity();render();void load()}
115
+ const timer=setInterval(tick,1000);tick()
116
+ return { refresh:()=>load(true),destroy:()=>{destroyed=true;clearInterval(timer);controller?.abort();keyInput.value='';adminInput.value=''} }
117
+ }
118
+ root.DshRelaySettings={mount}
119
+ })(typeof window!=='undefined'?window:globalThis)
package/public/styles.css CHANGED
@@ -370,9 +370,17 @@ body.in-session .view {
370
370
  .queue-dock-item:last-child { border-bottom: 0; }
371
371
  .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; }
372
372
  .queue-dock-action { flex: 0 0 auto; }
373
- .session-pending { flex:0 0 auto; margin:0 0 10px; padding:10px; border:1px solid var(--dsr-warning-line); border-radius:13px; background:var(--dsr-warning-soft); }
373
+ .session-pending { flex:0 1 auto; min-height:0; max-height:30vh; max-height:30dvh; display:flex; flex-direction:column; margin:0 0 10px; padding:10px; border:1px solid var(--dsr-warning-line); border-radius:13px; background:var(--dsr-warning-soft); }
374
374
  .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; }
375
- .session-pending-list { display:flex; flex-direction:column; gap:8px; }
375
+ .session-pending-head { flex:none; }
376
+ .session-pending-list { min-height:0; overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:8px; }
377
+ .session-pending-list > * { flex:none; }
378
+ .session-pending button.question { width:100%; text-align:left; }
379
+ .session-pending .pc-title { display:block; }
380
+ .question-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
381
+ .question-card-head .pc-title { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
382
+ .question-card-head .mini-btn { flex:none; white-space:nowrap; }
383
+ .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; margin-top:5px; color:var(--dsr-muted); }
376
384
  .session-pending .pending-card { min-width:0; background:var(--dsr-panel); }
377
385
  .session-pending .pc-title { line-height:1.45; overflow-wrap:anywhere; word-break:break-word; }
378
386
  .session-pending .pc-desc { line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
@@ -1107,6 +1115,16 @@ button.overview-attention-item, button.overview-session-item { cursor:pointer; }
1107
1115
  border: 1px solid var(--dsr-line); border-radius: 10px; padding: 9px 11px; font: inherit; outline: none;
1108
1116
  }
1109
1117
  .modal-actions { display: flex; gap: 9px; margin-top: 14px; }
1118
+ #modal-question { box-sizing:border-box; padding:max(12px, var(--dsr-safe-top)) 12px max(12px, var(--dsr-safe-b)); }
1119
+ #modal-question .modal-card { box-sizing:border-box; display:flex; flex-direction:column; min-height:0; max-height:100%; overflow:hidden; }
1120
+ #modal-question .modal-title, #modal-question .modal-actions { flex:none; }
1121
+ #question-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; overflow-wrap:anywhere; }
1122
+ #question-body .q-item { min-width:0; }
1123
+ #question-body .q-text { font-weight:400; }
1124
+ #question-body .q-text p { margin:6px 0; }
1125
+ #question-body .q-option { min-height:44px; cursor:pointer; }
1126
+ #question-body .q-option > span { min-width:0; overflow-wrap:anywhere; }
1127
+ #question-body pre { white-space:pre-wrap; overflow-wrap:anywhere; }
1110
1128
  .archive-modal-desc { margin: 0 0 12px; color: var(--dsr-muted); line-height: 1.55; }
1111
1129
  .archive-summary { border: 1px solid var(--dsr-line); border-radius: 12px; background: var(--dsr-panel); padding: 10px 12px; }
1112
1130
  .archive-summary-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; font-size: 13px; }
@@ -1,13 +1,13 @@
1
1
  {
2
- "version": "0.7.5",
2
+ "version": "0.8.0-rc.2",
3
3
  "apkUrl": "dsh-remote.apk",
4
- "sha256": "01e83d17828fbcbabf265c19b93ab104b1aa7ddba597c5936f0e42aa0522b618",
5
- "releasedAt": "2026-10-14T09:21:57.815Z",
6
- "notes": "新增技能中心适配,按已安装且运行的插件显示技能、费用和上下文入口;优化插件中心与技能页移动布局,修复展开详情和任务更新抢占历史阅读位置;增强插件任务锁恢复及进度反馈;支持 Remote 本体远程更新与聊天附件下载到手机;修复 Android 系统栏重复避让、旧压缩完成提示重复弹出及结束后状态残留;整理使用、配置、排障和发布文档。",
4
+ "sha256": "a9cd1211f4a8fa14f183b4d8a8cea783a399d4584277d930466ba05a8240e588",
5
+ "releasedAt": "2026-10-16T06:50:09.362Z",
6
+ "notes": "0.8.0 开发者预览 rc.2:设置页新增云服务器中转,填写个人中转密钥即可绑定主机、开启公网访问,支持查看连接状态、专属地址和每日流量。云端按用户限制每日上传与下载合计 5GB,北京时间零点重置,额度持久化并覆盖实时连接。保留 Windows Remote 自更新 EPERM 修复、三入口交互重构、待办整合与弱网操作恢复。",
7
7
  "history": [
8
8
  {
9
- "version": "0.7.5",
10
- "notes": "新增技能中心适配,按已安装且运行的插件显示技能、费用和上下文入口;优化插件中心与技能页移动布局,修复展开详情和任务更新抢占历史阅读位置;增强插件任务锁恢复及进度反馈;支持 Remote 本体远程更新与聊天附件下载到手机;修复 Android 系统栏重复避让、旧压缩完成提示重复弹出及结束后状态残留;整理使用、配置、排障和发布文档。"
9
+ "version": "0.7.6",
10
+ "notes": "修复长提问占满会话导致无法回答,支持点击摘要卡片并在独立滚动弹窗中选择;补齐 Android 后台审批与提问通知、请求去重及会话跳转;支持普通相对路径聊天文件下载,并反馈系统下载完成或失败原因。"
11
11
  },
12
12
  {
13
13
  "version": "0.7.4",
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.7.5"
2
+ "version": "0.8.0-rc.2"
3
3
  }
@@ -0,0 +1,151 @@
1
+ /* Mobile workspace and conversation surfaces, informed by Clarklevis1995/dsh-mobile.
2
+ * Original implementation; existing DSH Remote theme tokens remain the source. */
3
+ .workflow-v8 { --flow-radius:20px; --flow-control-radius:12px; }
4
+ .workflow-v8 [hidden] { display:none!important; }
5
+ .workflow-v8 button { touch-action:manipulation; }
6
+ .workflow-v8 input,.workflow-v8 textarea { font-size:16px; }
7
+ .workflow-v8 :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--dsr-accent); outline-offset:3px; }
8
+ .workflow-v8 .topbar { padding-inline:16px; border-bottom:1px solid var(--dsr-divider); }
9
+ .workflow-v8 .brand { letter-spacing:0; font-weight:650; }
10
+ .workflow-v8 .brand-dot { width:8px; height:8px; background:var(--dsr-accent); box-shadow:none; }
11
+ .workflow-v8 .brand-group-name { font-size:11px; }
12
+ .workflow-v8 .topbar-right { gap:8px; }
13
+ .workflow-v8 .topbar .icon-btn { width:44px; height:44px; border:0; background:transparent; border-radius:12px; }
14
+ .workflow-v8 .pill { box-shadow:none; }
15
+ .workflow-v8 #view-home { padding-inline:16px; }
16
+ .workflow-v8 #view-home .workflow-start { padding-top:8px; background:radial-gradient(ellipse at 100% 0,var(--dsr-accent-soft),transparent 68%); }
17
+ .workflow-v8 #view-settings { padding-inline:16px; }
18
+ .workflow-start { margin:0 0 20px; }
19
+ .workflow-page-head { padding:20px 0 12px; }
20
+ .workflow-page-head h1 { margin:0 0 16px; font-size:24px; font-weight:650; letter-spacing:-.025em; line-height:1.3; }
21
+ .workflow-muted { color:var(--dsr-muted); font-size:13px; line-height:1.5; }
22
+ .workflow-connection { box-sizing:border-box; display:flex; width:100%; min-height:48px; align-items:center; gap:10px; padding:12px 14px; border:0; border-radius:var(--flow-radius); background:var(--dsr-panel); color:var(--dsr-text); text-align:left; font:inherit; font-size:13px; overflow-wrap:anywhere; }
23
+ .workflow-connection::before { content:''; flex:none; width:7px; height:7px; border-radius:50%; background:var(--dsr-muted); }
24
+ .workflow-connection::after { content:'›'; margin-left:auto; color:var(--dsr-muted); font-size:20px; line-height:1; }
25
+ .workflow-connection.is-online::before { background:var(--dsr-success); }
26
+ .workflow-attention { margin-top:16px; }
27
+ .workflow-attention h2 { margin:0 0 10px; color:var(--dsr-muted); font-size:13px; font-weight:550; }
28
+ .workflow-v8 .workflow-attention :is(.overview-attention-list,.ds-overview-attention-list) { max-height:360px; overflow-y:auto; gap:8px; }
29
+ .workflow-v8 :is(.overview-attention-item,.ds-overview-attention-item) { box-sizing:border-box; border:1px solid var(--dsr-warning-line); border-radius:var(--flow-radius); background:var(--dsr-panel); box-shadow:none; padding:14px; }
30
+ .workflow-v8 :is(.overview-attention-item.question,.ds-overview-attention-item.question) { border-color:var(--dsr-accent-line); }
31
+ .workflow-v8 :is(.overview-item-title,.ds-overview-item-title) { display:block; font-size:14px; line-height:1.45; font-weight:600; }
32
+ .workflow-v8 :is(.overview-item-desc,.ds-overview-item-desc) { display:block; margin-top:4px; font-size:12px; line-height:1.5; }
33
+ .workflow-v8 :is(.overview-item-actions,.ds-overview-actions) { gap:8px; }
34
+ .workflow-v8 :is(.overview-item-actions,.ds-overview-actions) button { min-width:64px; min-height:44px; padding:8px 12px; border-radius:12px; font-size:13px; }
35
+ .workflow-v8 .workspace-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; padding:8px; border:1px solid var(--dsr-divider); border-radius:16px; background:var(--dsr-panel); }
36
+ .workflow-v8 .workspace-nav > label { display:none; }
37
+ .workflow-v8 .workspace-nav .workspace-path-scroll { display:block; flex-basis:100%; max-width:100%; border:0; background:transparent; padding:0 6px 4px; color:var(--dsr-muted); font-size:12px; }
38
+ .workflow-v8 .workspace-nav .workspace-path-scroll:empty { display:none; }
39
+ .workflow-v8 #session-workspace-filter-trigger { flex:1; min-width:0; }
40
+ .workflow-v8 #session-workspace-files { flex:none; }
41
+ .workflow-v8 :is(.custom-select-trigger,.mini-btn,.workspace-select) { border-radius:var(--flow-control-radius); box-shadow:none; }
42
+ .workflow-v8 .workspace-nav :is(.custom-select-trigger,.mini-btn) { min-height:44px; }
43
+ .workflow-v8 .workspace-nav .custom-select-trigger { padding-inline:14px; border:0; background:var(--dsr-panel); font-size:14px; }
44
+ .workflow-v8 .section-head { gap:8px; margin:4px 0 12px; color:var(--dsr-muted); font-size:13px; letter-spacing:0; font-weight:500; }
45
+ .workflow-v8 .section-actions { gap:8px; justify-content:flex-end; flex-wrap:wrap; }
46
+ .workflow-v8 .section-actions :is(button,select) { min-height:40px; font-size:12px; }
47
+ .workflow-v8 #btn-new-session { background:var(--dsr-accent); color:var(--dsr-on-accent); border-color:transparent; min-height:44px; padding-inline:14px; font-size:13px; font-weight:600; }
48
+ .workflow-v8 #btn-new-session.workflow-new-session { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; margin:0; border:1px solid var(--dsr-accent-line); border-radius:16px; background:var(--dsr-accent-soft); color:var(--dsr-accent-strong); font-size:15px; }
49
+ .workflow-v8 #btn-new-workspace { min-height:44px; background:transparent; border:0; color:var(--dsr-muted); }
50
+ .workflow-v8 .session-list { gap:0; }
51
+ .workflow-v8 .session-card { padding:16px 8px; border:0; border-radius:0; background:var(--dsr-bg); box-shadow:none; }
52
+ .workflow-v8 .session-card.current { box-shadow:0 0 0 1px var(--dsr-accent-line) inset; }
53
+ .workflow-v8 .session-swipe { border-radius:0; border-bottom:1px solid var(--dsr-divider); background:var(--dsr-bg); }
54
+ .workflow-v8 .sc-title { font-size:16px; font-weight:600; }
55
+ .workflow-v8 .sc-meta { margin-top:7px; font-size:12px; gap:8px; }
56
+ .workflow-v8 .sc-workspace { margin-top:7px; font-size:12px; }
57
+ .workflow-v8 .sc-arrow { color:var(--dsr-muted); }
58
+ .workflow-v8 .bottom-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); left:16px; right:16px; bottom:calc(10px + var(--dsr-safe-b)); max-width:440px; min-height:64px; margin-inline:auto; gap:0; padding:4px 8px; border:1px solid var(--dsr-divider); background:var(--dsr-nav-bg); border-radius:32px; box-shadow:0 5px 20px var(--dsr-shadow); }
59
+ .workflow-v8 :is(.nav-wave,.nav-home-orb) { display:none; }
60
+ .workflow-v8 .nav-btn { position:relative; min-width:0; min-height:58px; padding:4px; gap:3px; font-size:11px; }
61
+ .workflow-v8 .nav-btn .nav-ico { width:56px; height:30px; border-radius:16px; opacity:1; transform:none; }
62
+ .workflow-v8 .nav-btn.active:not(.nav-home) .nav-ico { background:var(--dsr-accent-soft); transform:none; }
63
+ .workflow-v8 .nav-btn.active:not(.nav-home)::after { display:none; }
64
+ .workflow-v8 .nav-btn.active > span:last-of-type { color:var(--dsr-nav-active); font-weight:600; }
65
+ .workflow-v8 .nav-badge { top:1px; left:calc(50% + 12px); right:auto; box-shadow:none; }
66
+ .workflow-more-group { margin:8px 0 24px; }
67
+ .workflow-more-group h2 { color:var(--dsr-muted); font-size:12px; font-weight:500; margin:0 0 10px 4px; }
68
+ .workflow-settings-list { overflow:hidden; border-radius:var(--flow-radius); background:var(--dsr-panel); }
69
+ .workflow-settings-list :is(.setting-row,.ds-setting-row,.workflow-setting-link) { box-sizing:border-box; display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:13px 16px; border:0; border-radius:0; background:transparent; color:var(--dsr-text); font:inherit; text-align:left; }
70
+ .workflow-settings-list :is(.setting-row,.ds-setting-row,.workflow-setting-link) + * { border-top:1px solid var(--dsr-divider); }
71
+ .workflow-settings-list :is(.setting-row,.ds-setting-row) > div { flex:1; min-width:0; }
72
+ .workflow-settings-list :is(.setting-name,.ds-setting-name) { font-size:14px; line-height:1.4; font-weight:550; }
73
+ .workflow-settings-list :is(.setting-desc,.ds-setting-desc) { font-size:12px; line-height:1.45; margin-top:4px; color:var(--dsr-muted); }
74
+ .workflow-setting-link > span:not(.workflow-setting-icon) { flex:1; }
75
+ .workflow-setting-link::after { content:'›'; color:var(--dsr-muted); font-size:20px; }
76
+ .workflow-setting-icon { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; color:var(--dsr-accent-strong); background:var(--dsr-accent-soft); }
77
+ .workflow-setting-icon svg { width:19px; height:19px; }
78
+ .workflow-v8 #settings-home > .settings-group:empty { display:none; }
79
+ .workflow-v8 :is(.settings-group,.ds-settings) { box-shadow:none; }
80
+ .workflow-button { appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; min-height:44px; border:1px solid var(--dsr-divider); border-radius:var(--flow-control-radius); color:var(--dsr-text); background:var(--dsr-panel); font:inherit; font-size:13px; line-height:1.4; cursor:pointer; }
81
+ .workflow-button svg { width:17px; height:17px; flex:none; }
82
+ .workflow-button:hover,.workflow-setting-link:hover { background:var(--dsr-panel-2); }
83
+ .workflow-button:disabled { opacity:.5; cursor:default; }
84
+ .workflow-danger { color:var(--dsr-error); }
85
+ .workflow-technical { margin:18px 0; border-top:1px solid var(--dsr-divider); padding-top:14px; }
86
+ .workflow-technical > summary { min-height:44px; color:var(--dsr-muted); font-size:13px; }
87
+ .workflow-technical .workflow-button { margin-top:12px; }
88
+ .workflow-data-settings { margin-top:20px; display:flex; gap:8px; flex-wrap:wrap; padding:16px 0; }
89
+ .workflow-data-settings h3 { width:100%; margin:0 0 8px; font-size:14px; font-weight:600; }
90
+ .workflow-v8 .composer-wrap { border-top:1px solid var(--dsr-divider); box-shadow:none; background:var(--dsr-bg); }
91
+ .workflow-v8 .composer-wrap:not(.fs) { display:flex; flex-direction:column; left:8px; right:8px; bottom:calc(8px + var(--dsr-safe-b)); border:1px solid var(--dsr-divider); border-radius:24px; background:var(--dsr-panel); box-shadow:0 6px 22px var(--dsr-shadow); }
92
+ .workflow-v8 .composer-wrap:not(.fs) .composer { display:grid; grid-template-columns:44px minmax(0,1fr) 44px auto; gap:4px; padding:8px; align-items:center; }
93
+ .workflow-v8 .composer-wrap:not(.fs) .composer-input-wrap { grid-column:1/-1; grid-row:1; }
94
+ .workflow-v8 .composer-wrap:not(.fs) .composer :is(.plus-btn,.composer-image-btn,.send-btn,.workflow-composer-config,.workflow-steer) { grid-row:2; }
95
+ .workflow-v8 .composer-wrap:not(.fs) .plus-btn { grid-column:1; }
96
+ .workflow-v8 .composer-wrap:not(.fs) .workflow-composer-config { grid-column:2; }
97
+ .workflow-v8 .composer-wrap:not(.fs) .composer-image-btn { grid-column:3; }
98
+ .workflow-v8 .composer-wrap:not(.fs) .send-btn { grid-column:4; }
99
+ .workflow-v8 .composer-wrap:not(.fs) .workflow-steer { grid-column:5; }
100
+ .workflow-v8 .composer-wrap:not(.fs) .composer:has(.workflow-steer:not([hidden])) { grid-template-columns:44px minmax(0,1fr) 40px auto auto; }
101
+ .workflow-v8 .composer textarea { min-height:58px; border-radius:16px; border:0; background:transparent; padding:10px 8px; font-size:16px; }
102
+ .workflow-v8 .composer :is(.plus-btn,.composer-image-btn) { min-width:44px; min-height:44px; border:0; border-radius:12px; background:transparent; color:var(--dsr-muted); }
103
+ .workflow-v8 #btn-plus { width:auto; padding-inline:10px; font-size:12px; }
104
+ .workflow-v8 .send-btn { width:auto; min-height:44px; min-width:60px; padding-inline:12px; border-radius:12px; background:var(--dsr-accent); color:var(--dsr-on-accent); font-size:13px; font-weight:600; white-space:nowrap; box-shadow:none; }
105
+ .workflow-composer-config { display:flex; min-width:0; padding:0; }
106
+ .workflow-composer-config .workflow-button { min-width:0; min-height:44px; padding:6px; border:0; border-radius:10px; background:transparent; color:var(--dsr-muted); font-size:12px; }
107
+ .workflow-composer-config .workflow-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
108
+ .workflow-v8 .workflow-steer { min-width:0; max-width:76px; padding-inline:10px; color:var(--dsr-accent-strong); }
109
+ .workflow-v8 .composer-wrap.fs :is(.workflow-composer-config,.workflow-steer) { display:none; }
110
+ .workflow-v8 .session-head { background:var(--dsr-bg); border-bottom:1px solid var(--dsr-divider); box-shadow:none; }
111
+ .workflow-v8 #session-sub { border:0; border-radius:0; background:transparent; color:var(--dsr-muted); }
112
+ .workflow-v8 .msg { box-shadow:none; border-radius:16px; }
113
+ .workflow-v8 .msg.assistant { max-width:100%; border:0; background:transparent; padding:8px 4px; line-height:1.75; }
114
+ body.workflow-v8.in-session .history { padding-bottom:calc(var(--composer-height,140px) + 28px + var(--dsr-safe-b)); }
115
+ .workflow-v8 .session-actions-dialog .workflow-button { display:flex; width:100%; justify-content:flex-start; text-align:left; border:0; border-radius:0; padding:13px 16px; }
116
+ .workflow-sheet { box-sizing:border-box; width:min(560px,calc(100vw - 24px)); max-height:85dvh; overflow:auto; padding:0; border:1px solid var(--dsr-divider); border-radius:20px; color:var(--dsr-text); background:var(--dsr-panel); box-shadow:0 12px 48px var(--dsr-shadow); }
117
+ .workflow-sheet::backdrop { background:var(--dsr-overlay); }
118
+ .workflow-sheet-head { position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--dsr-divider); background:var(--dsr-panel); }
119
+ .workflow-sheet-head h2 { margin:0; font-size:17px; font-weight:600; }
120
+ .workflow-sheet-head .workflow-button { border:0; background:transparent; color:var(--dsr-muted); }
121
+ .workflow-sheet-body { padding:16px; }
122
+ .workflow-sheet-body .menu-group { margin:0 0 16px; }
123
+ .workflow-receipt { display:flex; flex-direction:column; gap:10px; padding:16px 0; border-bottom:1px solid var(--dsr-divider); }
124
+ .workflow-receipt code { overflow-wrap:anywhere; font-size:12px; }
125
+ .workflow-file-source { white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.65 ui-monospace,monospace; }
126
+ .workflow-file-markdown { overflow-wrap:anywhere; line-height:1.7; }
127
+ .workflow-notice { display:flex; align-items:center; gap:12px; padding:12px 0; color:var(--dsr-accent); font-size:13px; }
128
+ .workflow-v8 .ds-main { background:var(--dsr-bg); }
129
+ .workflow-v8 .ds-sidebar { background:var(--dsr-panel); box-shadow:none; }
130
+ .workflow-v8 .ds-nav-item { border-radius:12px; }
131
+ .workflow-v8 .ds-sidebar-foot .ds-workbench { display:none; }
132
+ .workflow-v8 .ds-view#view-sessions { width:100%; max-width:900px; box-sizing:border-box; margin-inline:auto; overflow-y:auto; }
133
+ .workflow-v8 .ds-view#view-sessions > .workflow-start { flex:none; }
134
+ .workflow-v8 .ds-view#view-settings > .ds-section-label { display:none; }
135
+ .workflow-v8 .ds-view #settings-home { width:100%; max-width:760px; box-sizing:border-box; margin-inline:auto; }
136
+ .workflow-v8 #mobile-session-list .ds-session-item { padding:16px; margin-bottom:8px; background:var(--dsr-panel); border:0; border-radius:16px; box-sizing:border-box; }
137
+ .workflow-v8 .ds-session-item:hover { transform:none; }
138
+ .workflow-v8 .ds-composer-right .workflow-steer { margin-left:6px; }
139
+ .workflow-v8.workflow-at-start #notif-stack { display:none; }
140
+ .workflow-v8 .ds-new-session .ds-btn { background:var(--dsr-accent); color:var(--dsr-on-accent); border:0; box-shadow:none; }
141
+ @media (max-width:480px) {
142
+ .workflow-v8 [data-overview-approval],.workflow-v8 [data-ds-overview-approval] { display:grid; grid-template-columns:26px minmax(0,1fr); }
143
+ .workflow-v8 :is(.overview-item-actions,.ds-overview-actions) { grid-column:2; justify-content:flex-end; }
144
+ .workflow-v8 .section-head { align-items:center; }
145
+ .workflow-v8 #session-sort { max-width:86px; }
146
+ .workflow-sheet { margin:auto auto max(8px,var(--dsr-safe-b)); width:calc(100vw - 16px); max-height:88dvh; border-radius:20px; }
147
+ }
148
+ @supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))) {
149
+ .workflow-v8 .bottom-nav,.workflow-sheet { -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
150
+ }
151
+ @media (prefers-reduced-motion:reduce) { .workflow-v8 * { scroll-behavior:auto!important; } }