dsh-wtq-pool 1.0.3 → 1.0.5

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-wtq-pool",
3
3
  "displayName": "WTQ Pool",
4
- "description": "把本机 WorkBuddy、Trae、Qoder 的桌面登录接进 DeepSeek Harness。WorkBuddy 被限流时自动换号。三家各有开关,国内与国际各自成组。",
5
- "version": "1.0.3",
4
+ "description": "把本机 WorkBuddy、Trae、Qoder 的桌面登录接入 DeepSeek Harness。限流或额度用尽时自动换号,三家各自开关,国内与国际账号分别成组。",
5
+ "version": "1.0.5",
6
6
  "license": "MIT",
7
7
  "author": "chengzhi-c",
8
8
  "homepage": "https://github.com/chengzhi-c/dsh-wtq-pool#readme",
@@ -55,6 +55,7 @@
55
55
  "prepublishOnly": "tsdown",
56
56
  "typecheck": "tsc -p tsconfig.json --noEmit",
57
57
  "typecheck:client": "tsc -p tsconfig.client.json --noEmit",
58
+ "pretest": "tsdown",
58
59
  "test": "node --test \"tests/*.test.cjs\""
59
60
  },
60
61
  "dsh": {
@@ -12,7 +12,6 @@
12
12
  window chrome of its own; the sticky header below is the whole top band.
13
13
  -->
14
14
  <meta name="dsh-panel" content="v1" />
15
- <meta name="pi-plugin-chrome" content="v3" />
16
15
  <title>WTQ Pool</title>
17
16
  <link rel="stylesheet" href="./panel.css" />
18
17
  </head>
@@ -33,15 +32,19 @@
33
32
  <p class="sr-only" id="live" aria-live="polite"></p>
34
33
 
35
34
  <main class="page">
36
- <div id="banner" class="banner" hidden></div>
35
+ <div id="banner" class="banner" role="alert" hidden></div>
37
36
 
38
37
  <!-- Source is the top level: WorkBuddy / Trae / Qoder each own one page of
39
- every view below, so the three sources never mix on one screen. -->
40
- <nav class="tabs" id="sourceTabs" role="tablist">
41
- <button type="button" class="tab active" data-source="workbuddy" role="tab" aria-selected="true">WorkBuddy</button>
42
- <button type="button" class="tab" data-source="trae" role="tab" aria-selected="false">Trae</button>
43
- <button type="button" class="tab" data-source="qoder" role="tab" aria-selected="false">Qoder</button>
44
- </nav>
38
+ every view below, so the three sources never mix on one screen. The risk
39
+ note shares their line: it applies to whichever of the three is chosen. -->
40
+ <div class="tabs-row">
41
+ <nav class="tabs" id="sourceTabs" role="tablist">
42
+ <button type="button" class="tab active" data-source="workbuddy" role="tab" aria-selected="true">WorkBuddy</button>
43
+ <button type="button" class="tab" data-source="trae" role="tab" aria-selected="false">Trae</button>
44
+ <button type="button" class="tab" data-source="qoder" role="tab" aria-selected="false">Qoder</button>
45
+ </nav>
46
+ <p class="tab-risk" id="riskNote"></p>
47
+ </div>
45
48
 
46
49
  <!-- Only appears when the host has not registered this plugin's model
47
50
  groups yet, which needs one plugin reload to clear. -->
@@ -49,13 +52,14 @@
49
52
 
50
53
  <!-- Second level: the three views of the selected source. -->
51
54
  <nav class="subtabs" id="viewTabs" role="tablist">
52
- <button type="button" class="subtab active" data-tab="pool" role="tab" aria-selected="true"></button>
53
- <button type="button" class="subtab" data-tab="models" role="tab" aria-selected="false"></button>
54
- <button type="button" class="subtab" data-tab="check" role="tab" aria-selected="false"></button>
55
+ <button type="button" class="subtab active" id="view-pool" data-tab="pool" role="tab" aria-controls="poolView" aria-selected="true"></button>
56
+ <button type="button" class="subtab" id="view-models" data-tab="models" role="tab" aria-controls="modelsView" aria-selected="false"></button>
57
+ <button type="button" class="subtab" id="view-check" data-tab="check" role="tab" aria-controls="checkView" aria-selected="false"></button>
58
+ <button type="button" class="subtab" id="view-growth" data-tab="growth" role="tab" aria-controls="growthView" aria-selected="false"></button>
55
59
  </nav>
56
60
 
57
- <section id="poolView" class="view">
58
- <div class="source-group" id="workbuddyGroup" data-source="workbuddy">
61
+ <section id="poolView" class="view" role="tabpanel" aria-labelledby="view-pool">
62
+ <div class="source-group" data-source="workbuddy">
59
63
  <div class="source-head" id="workbuddyHead"></div>
60
64
  <nav class="regions" id="regionTabs" role="tablist"></nav>
61
65
  <div class="strip" id="poolStrip"></div>
@@ -76,6 +80,19 @@
76
80
  </span>
77
81
  </div>
78
82
  </div>
83
+ <div class="card">
84
+ <div class="card-head">
85
+ <span class="card-title" id="rewriteTitle"></span>
86
+ <span class="muted" id="rewriteState"></span>
87
+ </div>
88
+ <div class="switch-row">
89
+ <button type="button" class="small" id="rewriteClientName"></button>
90
+ <span class="switch-copy">
91
+ <span class="switch-lead" id="rewriteText"></span>
92
+ <span class="hint" id="rewriteHint"></span>
93
+ </span>
94
+ </div>
95
+ </div>
79
96
  <div class="card">
80
97
  <div class="card-head">
81
98
  <span class="card-title" id="autoTitle"></span>
@@ -88,6 +105,17 @@
88
105
  <button type="button" id="autoHoursSave" class="small"></button>
89
106
  <button type="button" id="autoRunNow" class="small"></button>
90
107
  </div>
108
+ <!-- One button, by hand: the token keep-alive has no schedule, so there
109
+ is no switch to turn it on or off with. It sits on the same card as
110
+ the check-in because both walk the same accounts, but it has no
111
+ hour to set. -->
112
+ <div class="switch-row">
113
+ <button type="button" class="small" id="tokenKeepAliveRun"></button>
114
+ <span class="switch-copy">
115
+ <span class="switch-lead" id="keepAliveText"></span>
116
+ <span class="hint" id="keepAliveHint"></span>
117
+ </span>
118
+ </div>
91
119
  <!-- Its own box, below the controls rather than beside them: the lines
92
120
  are a log of what a pass did, and sharing a row with the hour field
93
121
  made both hard to read. -->
@@ -96,7 +124,7 @@
96
124
  </div>
97
125
  </section>
98
126
 
99
- <section id="modelsView" class="view" hidden>
127
+ <section id="modelsView" class="view" role="tabpanel" aria-labelledby="view-models" hidden>
100
128
  <!-- One model page for all three sources: the region row and the two
101
129
  columns below are shared. What differs - which roster, which stored
102
130
  selection, which gateway the save writes - is answered in panel.js,
@@ -116,7 +144,7 @@
116
144
  <div class="pane-search">
117
145
  <input type="search" id="modelSearch" class="search" />
118
146
  </div>
119
- <div id="models" class="model-rows"></div>
147
+ <ul id="models" class="model-rows"></ul>
120
148
  </section>
121
149
 
122
150
  <section class="model-col">
@@ -142,7 +170,7 @@
142
170
  </div>
143
171
  </section>
144
172
 
145
- <section id="checkView" class="view" hidden>
173
+ <section id="checkView" class="view" role="tabpanel" aria-labelledby="view-check" hidden>
146
174
  <div class="card">
147
175
  <div class="card-head">
148
176
  <span class="card-title" id="checkTitle"></span>
@@ -155,6 +183,29 @@
155
183
  </div>
156
184
  </section>
157
185
 
186
+ <!-- The growth centre on its own page, beside the pool and the models: it
187
+ is the one half of the check-in pass a user may want on its own, and
188
+ burying it under the pool page hid it behind the account list. One
189
+ row per account, expanded for the tier and task detail behind it. -->
190
+ <section id="growthView" class="view" role="tabpanel" aria-labelledby="view-growth" hidden>
191
+ <div class="card">
192
+ <div class="card-head">
193
+ <span class="card-title" id="growthTitle"></span>
194
+ <span class="muted" id="growthState"></span>
195
+ </div>
196
+ <div class="switch-row">
197
+ <button type="button" class="small" id="growthRead"></button>
198
+ <button type="button" class="small" id="growthRun"></button>
199
+ <span class="switch-copy">
200
+ <span class="switch-lead" id="growthText"></span>
201
+ <span class="hint" id="growthHint"></span>
202
+ </span>
203
+ </div>
204
+ <div id="growthAccounts"></div>
205
+ <div class="hint log-box" id="growthNote"></div>
206
+ </div>
207
+ </section>
208
+
158
209
  <footer class="foot">
159
210
  <div class="foot-status" id="foot"></div>
160
211
  <div class="foot-links">
@@ -232,6 +232,9 @@ html::-webkit-scrollbar-thumb { border-radius: 4px; background: color-mix(in srg
232
232
  max-height: 120px;
233
233
  overflow-y: auto;
234
234
  }
235
+ /* A container that has nothing to say takes no space: an empty log box drew a
236
+ bordered box on the growth tab before its first run. */
237
+ .log-box:empty { display: none; }
235
238
  /* One source per line, so a pass over three of them reads down the box instead
236
239
  of across it. */
237
240
  .log-line { display: flex; align-items: baseline; gap: 7px; }
@@ -271,7 +274,7 @@ button {
271
274
  }
272
275
  button:hover:not(:disabled) { background: var(--xd-soft); }
273
276
  button:active:not(:disabled) { background: color-mix(in srgb, var(--xd-fg) 8%, transparent); }
274
- button:disabled { opacity: .45; cursor: default; }
277
+ button:disabled { opacity: .6; cursor: default; }
275
278
  button.ghost { border-color: transparent; }
276
279
  /* The quiet header buttons only gain an edge where a pointer rests on them. */
277
280
  .bar-actions button.ghost:hover:not(:disabled),
@@ -318,7 +321,7 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
318
321
 
319
322
  .ic-scan::before, .ic-rewind::before, .ic-refresh::before, .ic-download::before,
320
323
  .ic-activity::before, .ic-copy::before, .ic-check::before, .ic-x::before,
321
- .ic-calendar::before {
324
+ .ic-calendar::before, .ic-plus::before {
322
325
  content: "";
323
326
  display: inline-block;
324
327
  width: 15px;
@@ -365,18 +368,45 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
365
368
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E");
366
369
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E");
367
370
  }
371
+ .ic-plus::before {
372
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3.2v9.6M3.2 8h9.6'/%3E%3C/svg%3E");
373
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3.2v9.6M3.2 8h9.6'/%3E%3C/svg%3E");
374
+ }
368
375
 
369
376
  /* ------------------------------------------------------------------ page */
370
377
 
371
- .page { padding: 14px 16px 28px; }
378
+ .page { padding: 14px 16px 28px; max-width: 860px; margin: 0 auto; }
372
379
 
373
- .tabs {
380
+ /**
381
+ * The source tabs and the risk note share one underline.
382
+ *
383
+ * The note sits at the right of the three tabs rather than above them: it is a
384
+ * statement about using any of the three, so it belongs on the line where that
385
+ * choice is made. It wraps under the tabs when the panel is too narrow to hold
386
+ * both, which is why the row wraps rather than the note clipping.
387
+ */
388
+ .tabs-row {
374
389
  display: flex;
375
- gap: 2px;
390
+ flex-wrap: wrap;
391
+ align-items: flex-end;
392
+ gap: 4px 12px;
376
393
  margin-bottom: 10px;
377
394
  border-bottom: 1px solid var(--xd-border);
378
395
  }
379
396
 
397
+ .tabs-row .tabs {
398
+ margin-bottom: 0;
399
+ border-bottom: 0;
400
+ }
401
+
402
+ .tab-risk {
403
+ margin: 0 0 7px auto;
404
+ color: var(--xd-danger);
405
+ font-size: 12.5px;
406
+ font-weight: 600;
407
+ text-align: right;
408
+ }
409
+
380
410
  .tab {
381
411
  border: 0;
382
412
  border-bottom: 2px solid transparent;
@@ -408,6 +438,10 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
408
438
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 8h3l2-4.5 3 9 2-4.5h3'/%3E%3C/svg%3E");
409
439
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 8h3l2-4.5 3 9 2-4.5h3'/%3E%3C/svg%3E");
410
440
  }
441
+ .subtab[data-tab="growth"]::before {
442
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13.5V6.5'/%3E%3Cpath d='M8 8.8C6.6 8.6 5.5 7.5 5.3 6.1 6.7 6.3 7.8 7.4 8 8.8Z'/%3E%3Cpath d='M8 7.6C9.4 7.4 10.5 6.3 10.7 4.9 9.3 5.1 8.2 6.2 8 7.6Z'/%3E%3Cpath d='M3.2 13.5h9.6'/%3E%3C/svg%3E");
443
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13.5V6.5'/%3E%3Cpath d='M8 8.8C6.6 8.6 5.5 7.5 5.3 6.1 6.7 6.3 7.8 7.4 8 8.8Z'/%3E%3Cpath d='M8 7.6C9.4 7.4 10.5 6.3 10.7 4.9 9.3 5.1 8.2 6.2 8 7.6Z'/%3E%3Cpath d='M3.2 13.5h9.6'/%3E%3C/svg%3E");
444
+ }
411
445
  .tab:hover:not(:disabled) { background: transparent; color: var(--xd-fg); }
412
446
  .tab.active {
413
447
  color: var(--xd-fg);
@@ -458,6 +492,9 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
458
492
  flex-wrap: wrap;
459
493
  }
460
494
  .strip strong { font-variant-numeric: tabular-nums; }
495
+ /* A region with no accounts has nothing to put in the strip, and an empty one
496
+ drew a tinted bar with no content above the list. */
497
+ .strip:empty { display: none; }
461
498
 
462
499
  /* The all-accounts check-in is the one action in a head row that does something
463
500
  the user asked for, so it keeps a real border rather than the `ghost` treatment
@@ -524,14 +561,28 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
524
561
  open account never paints green on green with the badges beside it. */
525
562
  .acct-toggle.on .acct-toggle-dot { background: var(--xd-ok); }
526
563
 
527
- .acct-remove {
564
+ /* Both carry the row's own small box: the delete button is the remove button's
565
+ neighbour in one flex line, and inheriting the default button padding made it
566
+ taller, so it sat higher than the control it belongs beside. */
567
+ .acct-remove,
568
+ .acct-delete {
528
569
  padding: 4px 10px;
529
570
  font-size: 12.5px;
571
+ }
572
+ .acct-remove {
530
573
  color: var(--xd-muted);
531
574
  border-color: transparent;
532
575
  }
533
576
  .acct-remove:hover:not(:disabled) { color: var(--xd-danger); border-color: color-mix(in srgb, var(--xd-danger) 40%, transparent); background: transparent; }
534
577
 
578
+ /* The irreversible one, so it reads as the heavier of the two. */
579
+ .acct-delete { color: var(--xd-danger); border-color: color-mix(in srgb, var(--xd-danger) 30%, transparent); }
580
+ .acct-delete:hover:not(:disabled) { color: var(--xd-danger); border-color: var(--xd-danger); background: color-mix(in srgb, var(--xd-danger) 10%, transparent); }
581
+
582
+ /* Armed: the next press deletes, so the button stops looking like the idle one. */
583
+ .acct-delete.confirming { color: #fff; background: var(--xd-danger); border-color: var(--xd-danger); font-weight: 600; }
584
+ .acct-delete.confirming:hover:not(:disabled) { background: color-mix(in srgb, var(--xd-danger) 85%, #000); border-color: color-mix(in srgb, var(--xd-danger) 85%, #000); }
585
+
535
586
  /* Switched off: visibly parked without being hidden. */
536
587
  .card-off { border-style: dashed; background: transparent; }
537
588
 
@@ -608,6 +659,40 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
608
659
 
609
660
  .credits-body { padding: 2px 6px 0 6px; }
610
661
 
662
+ /* The growth page's state dots: one on each row's head for the account as a
663
+ whole, one per tier line for that tier. The colours are the check-in log's
664
+ own, so the two pages read alike. */
665
+ .growth-dot {
666
+ flex: none;
667
+ width: 7px;
668
+ height: 7px;
669
+ border-radius: 50%;
670
+ background: var(--xd-muted);
671
+ /* Sits on the text's baseline rather than the box's, so the rows line up. */
672
+ transform: translateY(-1px);
673
+ }
674
+ .growth-dot.ok { background: var(--xd-ok); }
675
+ .growth-dot.fail { background: var(--xd-danger); }
676
+
677
+ /* The page splits its rows by realm. The rule beside a heading is what makes
678
+ the split readable when both realms hold accounts. */
679
+ .growth-group {
680
+ display: flex;
681
+ align-items: center;
682
+ gap: 8px;
683
+ margin: 14px 0 2px;
684
+ font-weight: 600;
685
+ font-size: 12.5px;
686
+ }
687
+ .growth-group .muted { font-weight: 400; }
688
+ .growth-group::after {
689
+ content: "";
690
+ flex: 1;
691
+ height: 1px;
692
+ background: var(--xd-border);
693
+ }
694
+ .growth-group:first-child { margin-top: 4px; }
695
+
611
696
  /* The credit floor for one account: number, unit, save, then the outcome. */
612
697
  .reserve {
613
698
  display: flex;
@@ -762,6 +847,10 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
762
847
  .switch-copy { display: flex; flex-direction: column; gap: 3px; }
763
848
  .switch-copy .hint { margin: 0; max-width: 52ch; }
764
849
  .switch-lead { font-size: 13px; }
850
+ /* The growth card's two buttons are plain actions rather than switches: the dot
851
+ the row draws says "selected", and neither of these holds a state. */
852
+ .switch-row > button.small::before { content: none; }
853
+ .switch-row > button.small { margin-top: 0; padding: 4px 10px; }
765
854
 
766
855
  .count-chip {
767
856
  font-size: 11.5px;
@@ -797,9 +886,13 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
797
886
  is scrolled. The scrollbar is drawn thin and quiet: inside a 52vh pane the
798
887
  default chunky bar costs more attention than it informs. */
799
888
  .model-col > .model-rows {
889
+ /* The roster is a <ul>: its rows are list items, so the marker and the
890
+ indentation the browser gives a list have to come off. */
891
+ list-style: none;
892
+ margin: 0;
800
893
  max-height: 52vh;
801
894
  overflow-y: auto;
802
- padding-right: 2px;
895
+ padding: 0 2px 0 0;
803
896
  scrollbar-width: thin;
804
897
  scrollbar-color: color-mix(in srgb, var(--xd-muted) 45%, transparent) transparent;
805
898
  }
@@ -856,7 +949,7 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
856
949
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
857
950
  }
858
951
  .pane-action:hover:not(:disabled) { background: var(--xd-soft); color: var(--xd-fg); }
859
- .pane-action:disabled { opacity: .55; cursor: default; }
952
+ .pane-action:disabled { cursor: default; }
860
953
 
861
954
  /* One search per column, on its own row under the heading. */
862
955
  .pane-search { margin-bottom: 6px; }
@@ -880,6 +973,9 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
880
973
  /* A whisper of accent so enabled rows group visually without painting the
881
974
  whole roster blue. */
882
975
  .row:has(.row-check:checked) { background: color-mix(in srgb, var(--xd-accent) 5%, transparent); }
976
+ /* The row whose sheet is open in the right-hand column. A left rule rather than
977
+ a fill, because the checked rows already own the fill. */
978
+ .row.is-editing { box-shadow: inset 2px 0 0 var(--xd-accent); }
883
979
 
884
980
  .row-label {
885
981
  display: flex;
@@ -907,7 +1003,10 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
907
1003
  }
908
1004
  .row-limits {
909
1005
  flex: none;
910
- color: color-mix(in srgb, var(--xd-muted) 78%, transparent);
1006
+ /* The muted token at full strength. Melting it toward transparent took it to
1007
+ roughly 3.2:1 over the light card, under the 4.5:1 small text needs, and
1008
+ this is the row that carries the token limits. */
1009
+ color: var(--xd-muted);
911
1010
  font-size: 12px;
912
1011
  font-variant-numeric: tabular-nums;
913
1012
  }
@@ -967,7 +1066,13 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
967
1066
  }
968
1067
  .chosen-remove:hover { background: var(--xd-soft); color: var(--xd-danger); }
969
1068
 
970
- .sheet-body { padding: 2px 12px 12px; border-top: 1px solid var(--xd-line); }
1069
+ .sheet-body {
1070
+ padding: 2px 12px 12px;
1071
+ border-top: 1px solid var(--xd-line);
1072
+ /* The sheet is a column of the drawer, so its width follows the panel's, not
1073
+ the window's. Container queries below read this, not the viewport. */
1074
+ container-type: inline-size;
1075
+ }
971
1076
 
972
1077
  .field { margin-top: 12px; }
973
1078
  .field-head {
@@ -991,6 +1096,14 @@ button.park:hover:not(:disabled) { filter: brightness(1.08); background: var(--x
991
1096
  }
992
1097
 
993
1098
  .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
1099
+ /*
1100
+ * Side by side, each field is only as wide as half the sheet. That is fine while
1101
+ * the drawer is wide, but in a narrow one it leaves ~180px per field: the preset
1102
+ * ladder then wraps to two lines and the chips read as a broken row. Stacking is
1103
+ * decided by the sheet's own width, because the panel keeps its width while the
1104
+ * window changes around it.
1105
+ */
1106
+ @container (max-width: 680px) { .field-pair { grid-template-columns: 1fr; gap: 4px; } }
994
1107
  @media (max-width: 620px) { .field-pair { grid-template-columns: 1fr; } }
995
1108
 
996
1109
  .text-input, .num-input, .select {