dsh-better-ask-user 0.3.1 → 0.3.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.
@@ -1,50 +1,41 @@
1
- /* Compact countdown strip: ring, tabular time, one ghost action. */
2
1
  .bar {
3
- --ui-accent: #3388bb;
4
- --ui-accent-text: #14587f;
5
- --ui-ink-1: var(--dsw-alias-label-primary, #0f1115);
6
- --ui-ink-2: var(--dsw-alias-label-secondary, #61666b);
7
- --ui-ink-3: var(--dsw-alias-label-tertiary, #81858c);
8
- --ui-line-1: var(--dsw-alias-border-l1, #0000000a);
9
- --ui-line-2: var(--dsw-alias-border-l2, #0000001a);
10
- --ui-raised: var(--dsw-alias-bg-layer-2, #fff);
11
- --ui-hover: var(--dsw-alias-interactive-bg-hover, color-mix(in srgb, var(--ui-ink-1) 5%, transparent));
2
+ --cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
3
+ --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
4
+ --cfg-line: var(--dsw-alias-border-l2);
5
+ --cfg-ink: var(--dsw-alias-label-primary);
6
+ --cfg-muted: var(--dsw-alias-label-secondary);
7
+ --cfg-surface: var(--dsw-alias-bg-layer-2);
8
+ --cfg-hover: var(--dsw-alias-interactive-bg-hover);
12
9
  display: flex;
13
10
  align-items: center;
14
11
  flex-shrink: 0;
15
12
  gap: 8px;
16
- min-width: 0;
17
- min-height: 36px;
13
+ min-height: 32px;
18
14
  margin: 0 16px 10px;
19
- padding: 4px 6px 4px 10px;
20
- border: 1px solid var(--ui-line-2);
15
+ padding: 2px 4px 2px 8px;
16
+ border: 1px solid var(--cfg-line);
21
17
  border-radius: 8px;
22
- background: var(--ui-raised);
23
- color: var(--ui-ink-1);
18
+ background: var(--cfg-surface);
19
+ color: var(--cfg-ink);
24
20
  }
25
21
  .clock { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
26
22
  .ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2; transform: rotate(-90deg); }
27
- .track { stroke: var(--ui-line-2); }
28
- .remaining { stroke: var(--ui-accent); }
29
- .clockHand { width: 8px; height: 9px; margin-top: -4px; margin-left: 5px; border-left: 1.5px solid var(--ui-ink-2); border-bottom: 1.5px solid var(--ui-ink-2); }
30
- .pause { width: 16px; height: 16px; color: var(--ui-ink-2); }
31
- .status { display: flex; align-items: center; min-width: 0; }
32
- .time { color: var(--ui-ink-1); font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
33
- .bar[data-wait-state='counting'] .time { font-weight: 500; }
34
- .takeTime { appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: auto; min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ui-ink-3); font: inherit; font-size: 12px; line-height: 18px; font-weight: 500; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
35
- .takeTime:hover:not(:disabled) { background: var(--ui-hover); color: var(--ui-ink-1); }
36
- .takeTime:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
23
+ .track { stroke: var(--cfg-line); }
24
+ .remaining { stroke: var(--cfg-accent); }
25
+ .clockHand { width: 8px; height: 9px; margin-top: -4px; margin-left: 5px; border-left: 1px solid var(--cfg-muted); border-bottom: 1px solid var(--cfg-muted); }
26
+ .pause { width: 16px; height: 16px; color: var(--cfg-muted); }
27
+ .status { display: flex; align-items: baseline; flex-wrap: wrap; flex: 1; gap: 0 8px; min-width: 0; }
28
+ .status > * + *::before { content: '·'; margin-right: 8px; color: var(--cfg-muted); }
29
+ .time { font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
30
+ .bar[data-wait-state='counting'] .time, .bar[data-wait-state='paused'] .time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
31
+ .policy { color: var(--cfg-muted); font-size: 12px; line-height: 20px; }
32
+ .takeTime { appearance: none; flex: none; margin-left: auto; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cfg-muted); font: inherit; font-size: 12px; cursor: pointer; }
33
+ .takeTime:hover:not(:disabled) { background: var(--cfg-hover); color: var(--cfg-ink); }
34
+ .takeTime:active:not(:disabled) { background: color-mix(in srgb, var(--cfg-accent) 10%, transparent); }
35
+ .takeTime:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 2px; }
37
36
  .takeTime:disabled { opacity: .4; cursor: default; }
38
- @media (max-width: 720px) {
39
- .bar { margin: 0 12px 8px; padding: 4px 6px 4px 8px; }
40
- }
41
- @media (pointer: coarse) {
42
- .takeTime { min-height: 44px; }
43
- }
44
- @media (prefers-reduced-motion: reduce) {
45
- .takeTime { transition: none; }
46
- }
47
- [data-ds-dark-theme] .bar {
48
- --ui-accent: #4eb0e8;
49
- --ui-accent-text: #6fc0ee;
50
- }
37
+ @media (max-width: 720px) { .bar { gap: 8px; margin: 0 16px 10px; padding: 4px 8px; } .status { display: grid; gap: 2px; } .status > * + *::before { content: none; } .time { font-size: 16px; line-height: 24px; } .takeTime { min-height: 44px; } }
38
+ @media (pointer: coarse) { .takeTime { min-height: 44px; } }
39
+
40
+ [data-ds-dark-theme] .bar { --cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8); --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink)); }
41
+
@@ -32,6 +32,8 @@ export function QuestionWaitBar({ card, t, busy, onTakeTime }: {
32
32
  </span>
33
33
  <div className={css.status} role={held || continued ? 'status' : undefined} aria-atomic="true">
34
34
  <span className={css.time} aria-label={status}>{held || continued ? status : `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`}</span>
35
+ {!held && !continued && !running && <span className={css.policy}>{t('wait.pauseLabel')}</span>}
36
+ {!held && !continued && <span className={css.policy}>{t(card.timeoutMode === 'default' ? 'wait.auto' : 'wait.extend')}</span>}
35
37
  </div>
36
38
  {!held && !continued && <button type="button" className={css.takeTime} disabled={busy} onClick={onTakeTime}>{t('wait.takeTime')}</button>}
37
39
  </div>
@@ -3,27 +3,32 @@
3
3
  export const settingsZh = {
4
4
  summary: '等待与超时',
5
5
  title: '提问',
6
- waitLabel: '等待',
6
+ purpose: '设置等待回答的时长,以及到期后如何处理问题。',
7
+ waitLabel: '等待回答',
7
8
  durationLabel: '等待时长(秒)',
9
+ presetLabel: '快捷时长',
8
10
  timed: '倒计时',
9
11
  unlimited: '不限时',
10
12
  seconds: '秒',
13
+ secondShort: '秒',
14
+ minuteShort: '分',
11
15
  waitHint: '输入时重新计时。',
12
- unlimitedHint: '一直等待回答,输入无需续期。',
13
- timeoutTitle: '超时后',
14
- behaviorLabel: '普通会话',
15
- goalBehaviorLabel: 'Goal 活跃时',
16
- native: '继续工作',
17
- default: '选择默认答案',
18
- advanced: '高级',
16
+ unlimitedHint: '一直等待回答,不触发超时操作。',
17
+ timelineAsk: '提问发出',
18
+ timelineWait: '等待',
19
+ timelineEnd: '到期',
20
+ timeoutTitle: '到期后',
21
+ goalBehaviorLabel: '目标进行中',
22
+ native: '保持问题开放',
23
+ default: '提交默认答案',
24
+ nativeHint: '到期后问题仍可回答,继续独立工作,不自动批准。',
25
+ defaultHint: '仅对有默认答案的问题生效;自动选择会被标记;没有默认答案时保持开放。',
26
+ goalExplain: '目标运行时提问可能阻塞续跑;这里单独设置到期行为。',
19
27
  discard: '放弃改动',
20
- nativeHint: '超时后仍可回答,不会自动同意。',
21
- defaultHint: '超时后自动提交默认答案。',
22
- timeoutDisabled: '不限时模式下不触发超时行为,保留以下次使用。',
23
- readonly: '当前配置为只读。',
28
+ readonly: '当前设置为只读。',
24
29
  loading: '正在读取设置…',
25
- unavailable: '当前连接下该配置不可用。',
26
- waiting: '正在等待宿主配置…',
30
+ unavailable: '当前连接下无法使用这些设置。',
31
+ waiting: '正在等待设置…',
27
32
  invalidWait: '等待时长须为 1 到 2147483 的整数。',
28
33
  save: '保存',
29
34
  saving: '保存中…',
@@ -38,27 +43,32 @@ export type SettingsKey = keyof typeof settingsZh
38
43
  export const settingsEn = {
39
44
  summary: 'Wait and timeout',
40
45
  title: 'Questions',
41
- waitLabel: 'Wait',
46
+ purpose: 'Set how long questions wait and what happens when the wait ends.',
47
+ waitLabel: 'Wait for answers',
42
48
  durationLabel: 'Wait duration in seconds',
49
+ presetLabel: 'Presets',
43
50
  timed: 'Countdown',
44
51
  unlimited: 'Unlimited',
45
52
  seconds: 'sec',
53
+ secondShort: 's',
54
+ minuteShort: 'm',
46
55
  waitHint: 'Typing restarts the countdown.',
47
- unlimitedHint: 'Wait until answered, with no countdown to extend.',
56
+ unlimitedHint: 'Wait until answered; no timeout action runs.',
57
+ timelineAsk: 'Question asked',
58
+ timelineWait: 'Wait',
59
+ timelineEnd: 'Timeout',
48
60
  timeoutTitle: 'At timeout',
49
- behaviorLabel: 'Standard session',
50
- goalBehaviorLabel: 'Active Goal',
51
- native: 'Continue work',
52
- default: 'Use defaults',
53
- advanced: 'Advanced',
61
+ goalBehaviorLabel: 'Active goal',
62
+ native: 'Leave question open',
63
+ default: 'Submit defaults',
64
+ nativeHint: 'The question stays answerable after timeout; independent work continues. No automatic approval.',
65
+ defaultHint: 'Only questions with a default answer apply; automatic picks are marked. Without a default the question stays open.',
66
+ goalExplain: 'Questions during a goal can block resumption; set their timeout behavior separately here.',
54
67
  discard: 'Discard',
55
- nativeHint: 'You can still answer after timeout. Nothing is automatically approved.',
56
- defaultHint: 'Submits default answers when the countdown ends.',
57
- timeoutDisabled: 'Timeout behavior is inactive while waiting without a limit. Your choices are kept.',
58
- readonly: 'This configuration is read-only.',
68
+ readonly: 'These settings are read-only.',
59
69
  loading: 'Loading settings…',
60
- unavailable: 'This configuration is unavailable on the current connection.',
61
- waiting: 'Waiting for host configuration…',
70
+ unavailable: 'These settings are unavailable on the current connection.',
71
+ waiting: 'Waiting for settings…',
62
72
  invalidWait: 'Enter a whole number from 1 to 2147483 seconds.',
63
73
  save: 'Save',
64
74
  saving: 'Saving…',
@@ -1,119 +1,122 @@
1
- /* Ask-user settings: one 920px column, section rows, flat 1px surfaces. */
1
+ /* Roles follow the host; controls keep the same shape in both themes. */
2
2
  .cfg {
3
- --ui-accent: #3388bb;
4
- --ui-accent-solid: #20709e;
5
- --ui-accent-text: #14587f;
6
- --ui-accent-fg: #fff;
7
- --ui-accent-soft: color-mix(in srgb, var(--ui-accent) 10%, transparent);
8
- --ui-ink-1: var(--dsw-alias-label-primary, #0f1115);
9
- --ui-ink-2: var(--dsw-alias-label-secondary, #61666b);
10
- --ui-ink-3: color-mix(in srgb, var(--dsw-alias-label-tertiary, #81858c) 80%, var(--dsw-alias-label-primary, #0f1115));
11
- --ui-line-1: var(--dsw-alias-border-l1, #0000000a);
12
- --ui-line-2: var(--dsw-alias-border-l2, #0000001a);
13
- --ui-line-3: var(--dsw-alias-border-l3, #0000001f);
14
- --ui-canvas: var(--dsw-alias-bg-layer-1, #fff);
15
- --ui-raised: var(--dsw-alias-bg-layer-2, #fff);
16
- --ui-sunken: color-mix(in srgb, var(--ui-ink-1) 4%, var(--ui-canvas));
17
- --ui-hover: var(--dsw-alias-interactive-bg-hover, color-mix(in srgb, var(--ui-ink-1) 5%, transparent));
18
- --ui-danger: var(--dsw-alias-state-error-primary, #c8322b);
19
- --ui-radius-sm: 6px;
20
- --ui-radius-md: 8px;
3
+ --cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
4
+ --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
5
+ --cfg-solid: var(--dsw-alias-button-primary-fill, #20709e);
6
+ --cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
7
+ --cfg-on-solid: var(--dsw-alias-label-primary-foreground, #fff);
8
+ --cfg-ink: var(--dsw-alias-label-primary);
9
+ --cfg-muted: var(--dsw-alias-label-secondary);
10
+ --cfg-line: var(--dsw-alias-border-l2);
11
+ --cfg-surface: var(--dsw-alias-bg-layer-1);
12
+ --cfg-hover: var(--dsw-alias-interactive-bg-hover);
13
+ --cfg-danger: var(--dsw-alias-state-error-primary);
21
14
  display: flex;
22
15
  flex-direction: column;
23
16
  gap: 20px;
24
17
  width: 100%;
25
- max-width: 920px;
18
+ max-width: 960px;
26
19
  margin: 0 auto;
27
20
  min-width: 0;
28
- color: var(--ui-ink-1);
21
+ color: var(--cfg-ink);
29
22
  font: inherit;
23
+ font-size: 13px;
30
24
  line-height: 20px;
31
- font-variant-numeric: tabular-nums;
32
25
  }
33
- .cfg *,
34
- .cfg { box-sizing: border-box; }
35
- .pageHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
36
- .title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; }
37
- .badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--ui-line-2); border-radius: 999px; background: var(--ui-raised); color: var(--ui-ink-3); font-size: 11px; line-height: 18px; white-space: nowrap; }
38
- .group { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--ui-line-2); }
39
- .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--ui-line-1); }
40
- .rowText { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
41
- .rowTitle { color: var(--ui-ink-1); font-size: 13px; line-height: 20px; font-weight: 500; }
42
- .rowDesc { color: var(--ui-ink-3); font-size: 12px; line-height: 18px; }
43
- .control { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
44
- .choices { display: inline-flex; flex: none; gap: 2px; height: 32px; padding: 1px; border: 1px solid var(--ui-line-2); border-radius: var(--ui-radius-md); background: var(--ui-sunken); }
26
+ .cfg *, .cfg { box-sizing: border-box; }
27
+ .pageHead { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: wrap; gap: 4px; min-width: 0; }
28
+ .title { flex: none; margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
29
+ .purpose { flex: 0 0 auto; min-width: 0; margin: 0; color: var(--cfg-muted); font-size: 13px; line-height: 20px; }
30
+ .badge { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--cfg-line); border-radius: 8px; color: var(--cfg-muted); font-size: 12px; }
31
+ .note, .status { margin: 0; color: var(--cfg-muted); font-size: 12px; overflow-wrap: anywhere; }
32
+ .group { display: flex; flex-direction: column; min-width: 0; }
33
+ .section { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; min-width: 0; }
34
+ .section:first-child { padding-top: 0; }
35
+ .section:last-child { padding-bottom: 0; }
36
+ .waitHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
37
+ .sectionLabel { margin: 0; color: color-mix(in srgb, var(--dsw-alias-label-tertiary) 80%, var(--cfg-ink)); font-size: 12px; line-height: 20px; font-weight: 500; }
38
+ .sectionNote { margin: 0; color: var(--cfg-muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
39
+ .choices { display: inline-flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--cfg-line); border-radius: 8px; background: color-mix(in srgb, var(--cfg-ink) 4%, var(--cfg-surface)); }
45
40
  .choice { position: relative; display: inline-flex; min-width: 0; }
46
41
  .choice input { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
47
- .choice span { display: flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 12px; border-radius: var(--ui-radius-sm); color: var(--ui-ink-3); font-size: 13px; line-height: 20px; white-space: nowrap; transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease; }
48
- .choice:has(input:checked) span { background: var(--ui-raised); box-shadow: inset 0 0 0 1px var(--ui-line-2); color: var(--ui-accent-text); font-weight: 500; }
49
- .choice:has(input:hover:not(:disabled):not(:checked)) span { background: var(--ui-hover); color: var(--ui-ink-1); }
50
- .choice:has(input:focus-visible) span { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
42
+ .choice span { display: flex; align-items: center; justify-content: center; height: 26px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; color: var(--cfg-muted); font-size: 12px; white-space: nowrap; }
43
+ .choice:has(input:checked) span { border-color: var(--cfg-line); background: var(--cfg-surface); color: var(--cfg-accent-text); font-weight: 500; }
44
+ .choice:has(input:hover:not(:disabled):not(:checked)) span { background: var(--cfg-hover); }
45
+ .choice:has(input:focus-visible) { outline: 2px solid var(--cfg-accent); outline-offset: 2px; border-radius: 6px; }
51
46
  .choice:has(input:disabled) { opacity: .4; }
52
47
  .choice input:disabled { cursor: not-allowed; }
53
- .input { appearance: none; width: 76px; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--ui-line-2); border-radius: var(--ui-radius-md); background: var(--ui-raised); color: var(--ui-ink-1); font: inherit; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; transition: border-color 140ms ease, box-shadow 140ms ease; }
54
- .input:hover:not(:disabled) { border-color: var(--ui-line-3); }
55
- .input:focus-visible { outline: none; border-color: var(--ui-accent); box-shadow: 0 0 0 2px var(--ui-accent-soft); }
56
- .input[aria-invalid=true] { border-color: var(--ui-danger); }
48
+ .waitControl { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
49
+ .duration { display: inline-flex; align-items: center; gap: 8px; flex: none; }
50
+ .input { appearance: none; width: 132px; height: 32px; padding: 0 10px; border: 1px solid var(--cfg-line); border-radius: 8px; background: var(--cfg-surface); color: inherit; font: inherit; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
51
+ .input:hover:not(:disabled) { border-color: color-mix(in srgb, var(--cfg-line) 55%, var(--cfg-ink)); }
52
+ .input[aria-invalid='true'] { border-color: var(--cfg-danger); }
53
+ .input:focus-visible, .chip:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 1px; }
57
54
  .input:disabled { opacity: .4; cursor: not-allowed; }
58
- .duration { display: inline-flex; align-items: center; gap: 6px; flex: none; }
59
- .unit { color: var(--ui-ink-3); font-size: 12px; line-height: 18px; }
60
- .srOnly { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
61
- .fieldError { margin: 6px 0 0; color: var(--ui-danger); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
62
- .sectionLabel { margin: 20px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--ui-line-2); color: var(--ui-ink-3); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .02em; }
63
- .advanced { margin-top: 12px; border-top: 1px solid var(--ui-line-1); }
64
- .advanced summary { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 0; color: var(--ui-ink-2); font-size: 13px; line-height: 20px; font-weight: 500; list-style: none; cursor: pointer; }
65
- .advanced summary::-webkit-details-marker { display: none; }
66
- .advanced summary:hover { color: var(--ui-ink-1); }
67
- .advanced summary:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; border-radius: 4px; }
68
- .advancedValue { margin-left: auto; color: var(--ui-ink-3); font-size: 11px; line-height: 18px; font-weight: 400; white-space: nowrap; }
69
- .chevron { width: 6px; height: 6px; margin: 0 4px 3px auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform 140ms ease; }
70
- .advancedValue + .chevron { margin-left: 0; }
71
- .advanced[open] .chevron { transform: rotate(225deg); margin-bottom: -3px; }
72
- .status { margin: 0; color: var(--ui-ink-3); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
73
- .footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--ui-line-2); background: var(--ui-canvas); margin-top: auto; }
55
+ .unit { color: var(--cfg-muted); font-size: 12px; }
56
+ .presets { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
57
+ .chip { appearance: none; height: 32px; padding: 0 10px; border: 1px solid var(--cfg-line); border-radius: 8px; background: transparent; color: var(--cfg-muted); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
58
+ .chip:hover:not(:disabled) { background: var(--cfg-hover); color: var(--cfg-ink); }
59
+ .chip[aria-pressed='true'] { border-color: var(--cfg-accent); background: color-mix(in srgb, var(--cfg-accent) 8%, transparent); color: var(--cfg-accent-text); font-weight: 500; }
60
+ .chip:disabled { opacity: .4; cursor: not-allowed; }
61
+ .timeline { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--cfg-muted); font-size: 12px; line-height: 18px; }
62
+ .timelineNode { flex: none; white-space: nowrap; }
63
+ .timelineRail { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-width: 64px; height: 1px; background: var(--cfg-line); }
64
+ .timelineRail::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--cfg-line); border-right: 1px solid var(--cfg-line); transform: rotate(45deg); }
65
+ .timeline[data-unlimited='true'] .timelineRail::after { display: none; }
66
+ .timelineChip { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--cfg-line); border-radius: 8px; background: var(--cfg-surface); color: var(--cfg-ink); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
67
+ .timeline[data-unlimited='true'] .timelineChip { color: var(--cfg-muted); }
68
+ .fieldError { margin: 0; color: var(--cfg-danger); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
69
+ .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
70
+ .card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'head head' 'desc diagram'; gap: 6px 12px; padding: 12px; border: 1px solid var(--cfg-line); border-radius: 8px; background: var(--cfg-surface); cursor: pointer; }
71
+ .card:hover { background: var(--cfg-hover); }
72
+ .card:has(input:checked), .card:has(input:checked):hover { border-color: var(--cfg-accent); background: color-mix(in srgb, var(--cfg-accent) 6%, var(--cfg-surface)); }
73
+ .card:has(input:focus-visible) { outline: 2px solid var(--cfg-accent); outline-offset: 2px; }
74
+ .card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
75
+ .cardInput { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
76
+ .cardHead { grid-area: head; display: flex; align-items: center; gap: 8px; min-width: 0; }
77
+ .cardName { min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 20px; font-weight: 500; }
78
+ .cardMark { flex: none; width: 16px; height: 16px; margin-left: auto; border: 1px solid var(--dsw-alias-border-l4, var(--cfg-line)); border-radius: 50%; }
79
+ .cardMark::after { content: ''; display: block; width: 8px; height: 8px; margin: 3px; border-radius: 50%; background: var(--cfg-accent); opacity: 0; }
80
+ .card:has(input:checked) .cardMark { border-color: var(--cfg-accent); }
81
+ .card:has(input:checked) .cardMark::after { opacity: 1; }
82
+ .cardDesc { grid-area: desc; min-width: 0; color: var(--cfg-muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
83
+ .cardDiagram { grid-area: diagram; align-self: center; display: block; width: 104px; max-width: 100%; color: var(--cfg-muted); }
84
+ .cardDiagram svg { display: block; width: 100%; height: auto; }
85
+ .card:has(input:checked) .cardDiagram { color: var(--cfg-accent); }
86
+ .footer { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--cfg-line); background: var(--dsw-alias-bg-layer-1); }
74
87
  .footer .status { flex: 1; min-width: 0; }
75
- .button,
76
- .primary { appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ui-line-2); border-radius: var(--ui-radius-md); background: var(--ui-raised); color: var(--ui-ink-1); font: inherit; font-size: 13px; line-height: 20px; font-weight: 500; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
77
- .button:hover:not(:disabled) { background: var(--ui-hover); }
78
- .button:active:not(:disabled) { background: var(--ui-sunken); }
79
- .primary { min-width: 96px; border-color: transparent; background: var(--ui-accent-solid); color: var(--ui-accent-fg); }
80
- .primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ui-accent-solid) 88%, black); }
81
- .primary:active:not(:disabled) { background: color-mix(in srgb, var(--ui-accent-solid) 80%, black); }
82
- .button:focus-visible,
83
- .primary:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
84
- .button:disabled,
85
- .primary:disabled { opacity: .4; cursor: not-allowed; }
88
+ .button, .primary { appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--cfg-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
89
+ .button:hover:not(:disabled) { background: var(--cfg-hover); }
90
+ .primary { min-width: 96px; border-color: transparent; background: var(--cfg-solid); color: var(--cfg-on-solid); }
91
+ .primary:hover:not(:disabled) { background: var(--cfg-solid-hover); }
92
+ .button:focus-visible, .primary:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 2px; }
93
+ .button:disabled, .primary:disabled { opacity: .4; cursor: not-allowed; }
94
+ .button:active:not(:disabled), .primary:active:not(:disabled) { transform: translateY(1px); }
86
95
  .spinner { width: 12px; height: 12px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 800ms linear infinite; }
87
96
  @keyframes spin { to { transform: rotate(360deg); } }
88
97
  @media (max-width: 640px) {
89
- .title { font-size: 18px; line-height: 26px; }
90
- .row { align-items: stretch; flex-direction: column; gap: 8px; }
91
- .control { width: 100%; flex-wrap: wrap; }
98
+ .waitHead { align-items: stretch; flex-direction: column; gap: 8px; }
99
+ .choices { width: 100%; }
92
100
  .choice { flex: 1; }
93
101
  .choice span { width: 100%; }
102
+ .waitControl { align-items: stretch; flex-direction: column; gap: 8px; }
103
+ .duration, .presets { width: 100%; }
104
+ .input { flex: 1; width: auto; font-size: 16px; }
105
+ .cards { grid-template-columns: minmax(0, 1fr); }
106
+ .chip, .input, .button, .primary, .choice span { min-height: 44px; }
107
+ .section { padding: 12px 0; }
94
108
  .footer { flex-wrap: wrap; }
95
109
  .footer .status { flex-basis: 100%; }
96
- .advancedValue { max-width: 65%; text-align: right; white-space: normal; }
97
110
  }
98
111
  @media (pointer: coarse) {
99
- .choices { height: auto; }
100
- .choice span,
101
- .input,
102
- .button,
103
- .primary { min-height: 44px; }
104
- }
105
- @media (prefers-reduced-motion: reduce) {
106
- .spinner { animation: none; }
107
- .input,
108
- .choice span,
109
- .button,
110
- .primary,
111
- .chevron { transition: none; }
112
+ .chip, .input, .button, .primary, .choice span { min-height: 44px; }
112
113
  }
114
+ @media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .button:active:not(:disabled), .primary:active:not(:disabled) { transform: none; } }
115
+
113
116
  [data-ds-dark-theme] .cfg {
114
- --ui-accent: #4eb0e8;
115
- --ui-accent-solid: #4eb0e8;
116
- --ui-accent-text: #6fc0ee;
117
- --ui-accent-fg: #0e1014;
118
- --ui-accent-soft: color-mix(in srgb, var(--ui-accent) 14%, transparent);
117
+ --cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8);
118
+ --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
119
+ --cfg-solid: var(--dsw-alias-button-primary-fill, #4eb0e8);
120
+ --cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
121
+ --cfg-on-solid: var(--dsw-alias-label-primary-foreground, #0e1014);
119
122
  }