@firstpick/pi-package-webui 0.7.9 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +32 -9
  2. package/bin/pi-webui.mjs +750 -113
  3. package/lib/git-workflow-preferences.mjs +16 -0
  4. package/lib/git-worktrees.mjs +43 -4
  5. package/lib/npm-command.mjs +81 -0
  6. package/lib/queue-mutation.mjs +6 -0
  7. package/lib/workspace-files-live-watcher.mjs +138 -0
  8. package/package.json +11 -4
  9. package/public/app.js +3397 -380
  10. package/public/index.html +119 -20
  11. package/public/mobile-shell-state.mjs +166 -0
  12. package/public/service-worker.js +60 -13
  13. package/public/styles.css +1066 -362
  14. package/public/subagent-gate-visibility.mjs +16 -0
  15. package/public/subagent-launch-slot-state.mjs +16 -0
  16. package/public/transcript-renderer.mjs +433 -0
  17. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  18. package/tests/browser/interaction-continuity.spec.mjs +739 -0
  19. package/tests/browser/mobile-foundation.spec.mjs +352 -0
  20. package/tests/browser/optimistic-prompt.spec.mjs +130 -0
  21. package/tests/chat-scroll-intent-static.test.mjs +6 -1
  22. package/tests/codex-fast-mode-static.test.mjs +59 -0
  23. package/tests/compact-sections-static.test.mjs +20 -2
  24. package/tests/compaction-mutation-contract.test.mjs +18 -4
  25. package/tests/compaction-static.test.mjs +1 -0
  26. package/tests/completion-signal-contract.test.mjs +13 -2
  27. package/tests/composer-skill-tag-layout.test.mjs +70 -0
  28. package/tests/fast-mode-client-static.test.mjs +14 -11
  29. package/tests/fixtures/fake-pi.mjs +222 -2
  30. package/tests/git-panel-gitignore-static.test.mjs +104 -0
  31. package/tests/git-workflow-preferences.test.mjs +8 -0
  32. package/tests/guided-git-publication-backend-static.test.mjs +40 -0
  33. package/tests/http-endpoints-harness.test.mjs +490 -3
  34. package/tests/interaction-state-stability-static.test.mjs +254 -0
  35. package/tests/mobile-continuity-tablet-static.test.mjs +55 -0
  36. package/tests/mobile-foundation-static.test.mjs +69 -0
  37. package/tests/mobile-phone-experience-static.test.mjs +65 -0
  38. package/tests/mobile-shell-state.test.mjs +69 -0
  39. package/tests/mobile-static.test.mjs +300 -43
  40. package/tests/mobile-transcript-cache-characterization.test.mjs +34 -0
  41. package/tests/npm-command.test.mjs +64 -1
  42. package/tests/open-issue-wizard-static.test.mjs +2 -1
  43. package/tests/queue-edit-reorder-static.test.mjs +9 -1
  44. package/tests/queue-mutation-contract.test.mjs +22 -0
  45. package/tests/service-worker-lifecycle.test.mjs +120 -0
  46. package/tests/side-panel-resize-static.test.mjs +8 -1
  47. package/tests/sse-backpressure-harness.test.mjs +98 -0
  48. package/tests/streaming-ui-coupling.test.mjs +7 -1
  49. package/tests/subagent-gate-visibility.test.mjs +18 -2
  50. package/tests/subagent-launch-slot-state.test.mjs +32 -0
  51. package/tests/subagent-launch-slots-static.test.mjs +8 -2
  52. package/tests/subagents-helper.test.mjs +90 -0
  53. package/tests/terminal-tab-workspace-static.test.mjs +1 -1
  54. package/tests/update-commands.test.mjs +4 -0
  55. package/tests/workspace-files-live-updates-static.test.mjs +76 -0
  56. package/tests/workspace-files-live-watcher.test.mjs +95 -0
  57. package/webui-rpc-helper.mjs +175 -3
package/public/styles.css CHANGED
@@ -1936,36 +1936,34 @@ body.embedded-split .side-panel-backdrop {
1936
1936
  .file-tree-status.success { color: var(--ctp-green); }
1937
1937
  .side-panel-controls {
1938
1938
  display: grid;
1939
- gap: 0.82rem;
1939
+ gap: 0.55rem;
1940
1940
  }
1941
1941
  .controls-intro {
1942
1942
  margin: 0;
1943
- padding: 0.08rem 0.16rem;
1944
- color: rgba(var(--ctp-subtext-rgb), 0.78);
1943
+ padding: 0 0.08rem;
1944
+ color: rgba(var(--ctp-subtext-rgb), 0.7);
1945
1945
  font-size: var(--text-xs);
1946
- font-weight: 700;
1947
- line-height: 1.45;
1946
+ font-weight: 650;
1947
+ line-height: 1.35;
1948
1948
  }
1949
1949
  .control-group {
1950
1950
  display: grid;
1951
- gap: 0.72rem;
1951
+ gap: 0.5rem;
1952
1952
  min-width: 0;
1953
- padding: 0.78rem;
1954
- border: 1px solid rgba(180, 190, 254, 0.17);
1955
- border-radius: 0.9rem;
1956
- background:
1957
- linear-gradient(145deg, rgba(var(--ctp-surface-rgb), 0.18), transparent 42%),
1958
- rgba(var(--ctp-crust-rgb), 0.5);
1959
- box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0.75rem 1.8rem rgba(var(--ctp-crust-rgb), 0.16);
1953
+ padding: 0.58rem;
1954
+ border: 1px solid rgba(180, 190, 254, 0.14);
1955
+ border-radius: 0.68rem;
1956
+ background: rgba(var(--ctp-crust-rgb), 0.36);
1957
+ box-shadow: none;
1960
1958
  }
1961
1959
  .control-group-header {
1962
1960
  display: flex;
1963
- align-items: flex-start;
1961
+ align-items: center;
1964
1962
  justify-content: space-between;
1965
- gap: 0.7rem;
1963
+ gap: 0.5rem;
1966
1964
  min-width: 0;
1967
- padding-bottom: 0.64rem;
1968
- border-bottom: 1px solid rgba(180, 190, 254, 0.14);
1965
+ padding-bottom: 0.42rem;
1966
+ border-bottom: 1px solid rgba(180, 190, 254, 0.11);
1969
1967
  }
1970
1968
  .control-group-heading {
1971
1969
  min-width: 0;
@@ -1973,28 +1971,28 @@ body.embedded-split .side-panel-backdrop {
1973
1971
  .control-group-heading h3 {
1974
1972
  margin: 0;
1975
1973
  color: var(--ctp-text);
1976
- font-size: 0.9rem;
1977
- font-weight: 900;
1974
+ font-size: 0.84rem;
1975
+ font-weight: 850;
1978
1976
  letter-spacing: 0.01em;
1979
- line-height: 1.25;
1977
+ line-height: 1.2;
1980
1978
  }
1981
1979
  .control-group-heading p {
1982
- margin: 0.2rem 0 0;
1983
- color: rgba(var(--ctp-subtext-rgb), 0.7);
1980
+ margin: 0.1rem 0 0;
1981
+ color: rgba(var(--ctp-subtext-rgb), 0.64);
1984
1982
  font-size: var(--text-xs);
1985
- font-weight: 680;
1986
- line-height: 1.35;
1983
+ font-weight: 620;
1984
+ line-height: 1.25;
1987
1985
  }
1988
1986
  .control-scope-badge {
1989
1987
  flex: 0 0 auto;
1990
- padding: 0.16rem 0.44rem;
1988
+ padding: 0.1rem 0.36rem;
1991
1989
  color: var(--ctp-teal);
1992
- border: 1px solid rgba(148, 226, 213, 0.28);
1990
+ border: 1px solid rgba(148, 226, 213, 0.24);
1993
1991
  border-radius: 999px;
1994
- background: rgba(148, 226, 213, 0.08);
1992
+ background: rgba(148, 226, 213, 0.06);
1995
1993
  font-size: var(--text-xs);
1996
- font-weight: 850;
1997
- line-height: 1.25;
1994
+ font-weight: 800;
1995
+ line-height: 1.2;
1998
1996
  white-space: nowrap;
1999
1997
  }
2000
1998
  .control-scope-badge.warning {
@@ -2012,51 +2010,51 @@ body.embedded-split .side-panel-backdrop {
2012
2010
  }
2013
2011
  .control-field {
2014
2012
  display: grid;
2015
- gap: 0.42rem;
2013
+ gap: 0.28rem;
2016
2014
  min-width: 0;
2017
2015
  }
2018
2016
  .control-group > .control-field + .control-field {
2019
- padding-top: 0.7rem;
2020
- border-top: 1px solid rgba(180, 190, 254, 0.1);
2017
+ padding-top: 0.46rem;
2018
+ border-top: 1px solid rgba(180, 190, 254, 0.08);
2021
2019
  }
2022
2020
  .control-field-header {
2023
2021
  display: flex;
2024
2022
  align-items: baseline;
2025
2023
  justify-content: space-between;
2026
- gap: 0.6rem;
2024
+ gap: 0.4rem;
2027
2025
  min-width: 0;
2028
2026
  }
2029
2027
  .control-field > label,
2030
2028
  .control-field > .control-label,
2031
2029
  .control-field-header > label {
2032
- color: rgba(var(--ctp-text-rgb), 0.82);
2030
+ color: rgba(var(--ctp-text-rgb), 0.8);
2033
2031
  font-size: var(--text-xs);
2034
- font-weight: 900;
2035
- letter-spacing: 0.04em;
2032
+ font-weight: 850;
2033
+ letter-spacing: 0.025em;
2036
2034
  }
2037
2035
  .control-field-context {
2038
2036
  min-width: 0;
2039
2037
  overflow: hidden;
2040
- color: rgba(var(--ctp-subtext-rgb), 0.62);
2038
+ color: rgba(var(--ctp-subtext-rgb), 0.58);
2041
2039
  font-size: var(--text-xs);
2042
- font-weight: 700;
2040
+ font-weight: 650;
2043
2041
  text-overflow: ellipsis;
2044
2042
  white-space: nowrap;
2045
2043
  }
2046
2044
  .control-action-row {
2047
2045
  display: grid;
2048
2046
  grid-template-columns: minmax(0, 1fr) auto;
2049
- gap: 0.42rem;
2047
+ gap: 0.32rem;
2050
2048
  align-items: center;
2051
2049
  min-width: 0;
2052
2050
  }
2053
2051
  .control-action-row .control-apply-button {
2054
2052
  width: auto;
2055
- min-width: 4.8rem;
2056
- padding-inline: 0.7rem;
2053
+ min-width: 4.1rem;
2054
+ padding-inline: 0.58rem;
2057
2055
  color: var(--ctp-teal);
2058
- border-color: rgba(148, 226, 213, 0.32);
2059
- font-weight: 850;
2056
+ border-color: rgba(148, 226, 213, 0.28);
2057
+ font-weight: 800;
2060
2058
  }
2061
2059
  .control-action-row .control-apply-button:hover,
2062
2060
  .control-action-row .control-apply-button:focus-visible {
@@ -2076,29 +2074,33 @@ body.embedded-split .side-panel-backdrop {
2076
2074
  }
2077
2075
  .side-panel-controls select,
2078
2076
  .side-panel-controls button,
2079
- .side-panel-controls input {
2077
+ .side-panel-controls input:not([type="checkbox"]):not([type="file"]) {
2080
2078
  width: 100%;
2081
2079
  min-width: 0;
2080
+ min-height: 2.25rem;
2081
+ padding-block: 0.32rem;
2082
+ border-radius: 0.55rem;
2083
+ font-size: var(--text-sm);
2082
2084
  }
2083
2085
  .theme-scheme-toggle {
2084
2086
  display: flex;
2085
- gap: 2px;
2086
- padding: 2px;
2087
- border: 1px solid var(--border);
2088
- border-radius: 8px;
2089
- background: var(--panel-2);
2087
+ gap: 1px;
2088
+ padding: 1px;
2089
+ border: 1px solid rgba(180, 190, 254, 0.18);
2090
+ border-radius: 0.55rem;
2091
+ background: rgba(var(--ctp-crust-rgb), 0.3);
2090
2092
  }
2091
2093
  .theme-scheme-toggle button {
2092
2094
  flex: 1 1 0;
2093
2095
  width: auto;
2094
- padding: 0.2rem 0.4rem;
2096
+ padding: 0.12rem 0.32rem;
2095
2097
  border: 0;
2096
- border-radius: 6px;
2098
+ border-radius: 0.42rem;
2097
2099
  background: transparent;
2098
- color: rgba(var(--ctp-text-rgb), 0.72);
2100
+ color: rgba(var(--ctp-text-rgb), 0.7);
2099
2101
  font-size: var(--text-xs);
2100
- font-weight: 800;
2101
- letter-spacing: 0.04em;
2102
+ font-weight: 780;
2103
+ letter-spacing: 0.03em;
2102
2104
  cursor: pointer;
2103
2105
  transition: background 0.15s ease, color 0.15s ease;
2104
2106
  }
@@ -2134,8 +2136,9 @@ body.embedded-split .side-panel-backdrop {
2134
2136
  border-radius: 0.78rem;
2135
2137
  background: rgba(var(--ctp-crust-rgb), 0.42);
2136
2138
  }
2137
- .model-search-result {
2139
+ .side-panel-controls .model-search-result {
2138
2140
  display: grid;
2141
+ align-content: center;
2139
2142
  gap: 0.12rem;
2140
2143
  width: 100%;
2141
2144
  min-height: 3.2rem;
@@ -2155,7 +2158,7 @@ body.embedded-split .side-panel-backdrop {
2155
2158
  overflow: hidden;
2156
2159
  text-overflow: ellipsis;
2157
2160
  white-space: nowrap;
2158
- line-height: 1.3;
2161
+ line-height: 1.4;
2159
2162
  }
2160
2163
  .model-search-result-main {
2161
2164
  font-weight: 900;
@@ -2260,27 +2263,27 @@ body.embedded-split .side-panel-backdrop {
2260
2263
  }
2261
2264
  .background-status {
2262
2265
  min-width: 0;
2263
- padding: 0.5rem 0.58rem;
2266
+ padding: 0.3rem 0.46rem;
2264
2267
  overflow-wrap: anywhere;
2265
- color: rgba(var(--ctp-subtext-rgb), 0.74);
2266
- border: 1px solid rgba(180, 190, 254, 0.14);
2267
- border-radius: 0.62rem;
2268
- background: rgba(var(--ctp-crust-rgb), 0.42);
2268
+ color: rgba(var(--ctp-subtext-rgb), 0.68);
2269
+ border: 1px solid rgba(180, 190, 254, 0.08);
2270
+ border-radius: 0.45rem;
2271
+ background: rgba(var(--ctp-crust-rgb), 0.26);
2269
2272
  font-size: var(--text-xs);
2270
- font-weight: 750;
2271
- line-height: 1.35;
2273
+ font-weight: 700;
2274
+ line-height: 1.25;
2272
2275
  }
2273
2276
  .toggle-control {
2274
2277
  display: grid;
2275
2278
  grid-template-columns: auto minmax(0, 1fr);
2276
- gap: 0.65rem;
2279
+ gap: 0.46rem;
2277
2280
  align-items: center;
2278
- min-height: 44px;
2279
- padding: 0.58rem 0.68rem;
2281
+ min-height: 2.25rem;
2282
+ padding: 0.34rem 0.48rem;
2280
2283
  cursor: pointer;
2281
- border: 1px solid rgba(180, 190, 254, 0.20);
2282
- border-radius: 0.72rem;
2283
- background: rgba(var(--ctp-crust-rgb), 0.58);
2284
+ border: 1px solid rgba(180, 190, 254, 0.14);
2285
+ border-radius: 0.52rem;
2286
+ background: rgba(var(--ctp-crust-rgb), 0.32);
2284
2287
  }
2285
2288
  .control-field .toggle-control {
2286
2289
  color: rgba(var(--ctp-text-rgb), 0.88);
@@ -2302,22 +2305,32 @@ body.embedded-split .side-panel-backdrop {
2302
2305
  .toggle-control-label {
2303
2306
  display: block;
2304
2307
  color: var(--ctp-text);
2305
- font-size: 0.82rem;
2306
- font-weight: 900;
2308
+ font-size: 0.78rem;
2309
+ font-weight: 850;
2307
2310
  }
2308
2311
  .toggle-control-hint {
2309
2312
  display: block;
2310
- margin-top: 0.16rem;
2311
- color: rgba(var(--ctp-subtext-rgb), 0.70);
2313
+ margin-top: 0.1rem;
2314
+ color: rgba(var(--ctp-subtext-rgb), 0.66);
2312
2315
  font-size: var(--text-xs);
2313
- font-weight: 700;
2316
+ font-weight: 650;
2317
+ }
2318
+ .side-panel-controls .toggle-control > span {
2319
+ display: flex;
2320
+ align-items: baseline;
2321
+ justify-content: space-between;
2322
+ gap: 0.45rem;
2323
+ min-width: 0;
2324
+ }
2325
+ .side-panel-controls .toggle-control-hint {
2326
+ margin-top: 0;
2314
2327
  }
2315
2328
  .toggle-control-hint.warning {
2316
2329
  color: var(--ctp-yellow);
2317
2330
  }
2318
2331
  .toggle-control:has(input:checked) {
2319
- border-color: rgba(148, 226, 213, 0.42);
2320
- box-shadow: 0 0 0.9rem rgba(148, 226, 213, 0.10);
2332
+ border-color: rgba(148, 226, 213, 0.34);
2333
+ box-shadow: none;
2321
2334
  }
2322
2335
  .toggle-control:has(input:disabled) {
2323
2336
  cursor: not-allowed;
@@ -2460,41 +2473,51 @@ body.embedded-split .side-panel-backdrop {
2460
2473
  display: block;
2461
2474
  container: subagent-launch-slots / inline-size;
2462
2475
  min-width: 0;
2463
- margin: 0 0 0.55rem;
2476
+ margin: 0 0 0.4rem;
2464
2477
  overflow: hidden;
2465
- border: 1px solid rgba(203, 166, 247, 0.30);
2466
- border-radius: 0.8rem;
2467
- background:
2468
- radial-gradient(circle at 100% 0, rgba(203, 166, 247, 0.11), transparent 12rem),
2469
- rgba(var(--ctp-crust-rgb), 0.46);
2478
+ border: 1px solid rgba(180, 190, 254, 0.18);
2479
+ border-radius: 0.6rem;
2480
+ background: rgba(var(--ctp-crust-rgb), 0.3);
2470
2481
  }
2471
2482
  .subagent-launch-slots-summary {
2472
2483
  display: flex;
2473
2484
  align-items: center;
2474
2485
  justify-content: space-between;
2475
- gap: 0.65rem;
2476
- min-height: 3.35rem;
2477
- padding: 0.66rem 0.72rem;
2486
+ gap: 0.48rem;
2487
+ padding: 0.34rem 0.48rem;
2478
2488
  cursor: pointer;
2479
2489
  list-style: none;
2480
2490
  user-select: none;
2481
2491
  }
2482
2492
  .subagent-launch-slots-summary::-webkit-details-marker { display: none; }
2483
- .subagent-launch-slots-summary:hover { background: rgba(203, 166, 247, 0.07); }
2484
- .subagent-launch-slots[open] > .subagent-launch-slots-summary { border-bottom: 1px solid rgba(203, 166, 247, 0.20); }
2485
- .subagent-launch-slots-summary-heading { display: grid; gap: 0.08rem; min-width: 0; }
2486
- .subagent-launch-slots-summary-heading strong { color: var(--ctp-text); font-size: 0.82rem; }
2487
- .subagent-launch-slots-summary-heading span { color: rgba(var(--ctp-subtext-rgb), 0.75); font-size: var(--text-xs); line-height: 1.35; }
2493
+ .subagent-launch-slots-summary:hover { background: rgba(180, 190, 254, 0.06); }
2494
+ .subagent-launch-slots[open] > .subagent-launch-slots-summary { border-bottom: 1px solid rgba(180, 190, 254, 0.14); }
2495
+ .subagent-launch-slots-summary-heading {
2496
+ display: flex;
2497
+ align-items: baseline;
2498
+ gap: 0.4rem;
2499
+ min-width: 0;
2500
+ }
2501
+ .subagent-launch-slots-summary-heading strong { flex: 0 0 auto; color: var(--ctp-text); font-size: 0.78rem; }
2502
+ .subagent-launch-slots-summary-heading span {
2503
+ min-width: 0;
2504
+ overflow: hidden;
2505
+ color: rgba(var(--ctp-subtext-rgb), 0.68);
2506
+ font-size: var(--text-xs);
2507
+ line-height: 1.2;
2508
+ text-overflow: ellipsis;
2509
+ white-space: nowrap;
2510
+ }
2488
2511
  .subagent-launch-slots-summary-chevron {
2489
2512
  flex: 0 0 auto;
2490
- color: var(--ctp-mauve);
2491
- font-size: 1.3rem;
2513
+ color: rgba(203, 166, 247, 0.82);
2514
+ font-size: 1rem;
2492
2515
  line-height: 1;
2493
2516
  transform: rotate(0deg);
2494
2517
  transition: transform 140ms ease;
2495
2518
  }
2496
2519
  .subagent-launch-slots[open] .subagent-launch-slots-summary-chevron { transform: rotate(90deg); }
2497
- .subagent-launch-slots-body { display: grid; gap: 0.58rem; min-width: 0; padding: 0.62rem; }
2520
+ .subagent-launch-slots-body { display: grid; gap: 0.36rem; min-width: 0; padding: 0.4rem; }
2498
2521
  .subagent-launch-slots-intro,
2499
2522
  .subagent-launch-slot-role-header,
2500
2523
  .subagent-launch-slot-row-header,
@@ -2507,93 +2530,84 @@ body.embedded-split .side-panel-backdrop {
2507
2530
  min-width: 0;
2508
2531
  }
2509
2532
  .subagent-launch-slots-intro p,
2510
- .subagent-launch-slot-role-heading p,
2511
- .subagent-launch-slot-meta,
2512
2533
  .subagent-launch-slot-scope p {
2513
- margin: 0.18rem 0 0;
2514
- color: rgba(var(--ctp-subtext-rgb), 0.78);
2534
+ margin: 0;
2535
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
2515
2536
  font-size: var(--text-xs);
2516
- line-height: 1.42;
2537
+ line-height: 1.3;
2517
2538
  }
2518
- .subagent-launch-slots-intro p { flex: 1 1 auto; margin: 0; }
2519
- .subagent-launch-slot-role-heading h4 { margin: 0; color: var(--ctp-text); font-size: 0.8rem; }
2539
+ .subagent-launch-slots-intro { align-items: center; }
2540
+ .subagent-launch-slots-intro p { flex: 1 1 auto; }
2541
+ .subagent-launch-slot-role-heading { margin: 0; color: var(--ctp-text); font-size: 0.76rem; }
2520
2542
  .subagent-launch-slots-intro button,
2521
2543
  .subagent-launch-slot-add,
2522
2544
  .subagent-launch-slot-remove,
2523
2545
  .subagent-launch-slots-actions button,
2524
2546
  .subagent-launch-slots-reload-actions button,
2525
2547
  .subagent-launch-slot-scope button {
2526
- min-height: 2.4rem;
2548
+ min-height: 2rem;
2549
+ padding-block: 0.28rem;
2527
2550
  font-size: var(--text-xs);
2528
2551
  }
2529
2552
  .subagent-launch-slot-scope {
2530
2553
  display: grid;
2531
- grid-template-columns: minmax(0, 1fr) minmax(8rem, auto) auto;
2532
- gap: 0.35rem 0.5rem;
2554
+ grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto) auto;
2555
+ gap: 0.28rem 0.4rem;
2533
2556
  align-items: center;
2534
- padding: 0.5rem;
2535
- border: 1px solid rgba(137, 180, 250, 0.18);
2536
- border-radius: 0.64rem;
2537
- background: rgba(137, 180, 250, 0.05);
2557
+ padding: 0.34rem 0.4rem;
2558
+ border: 1px solid rgba(137, 180, 250, 0.13);
2559
+ border-radius: 0.46rem;
2538
2560
  }
2539
- .subagent-launch-slot-scope label { color: rgba(var(--ctp-text-rgb), 0.9); font-size: var(--text-xs); font-weight: 850; }
2540
- .subagent-launch-slot-scope select { min-width: 8rem; font-size: var(--text-xs); }
2561
+ .subagent-launch-slot-scope label { color: rgba(var(--ctp-text-rgb), 0.86); font-size: var(--text-xs); font-weight: 850; }
2562
+ .subagent-launch-slot-scope select { min-width: 7.5rem; min-height: 2rem; font-size: var(--text-xs); }
2541
2563
  .subagent-launch-slot-scope p { grid-column: 1 / -1; }
2542
- .subagent-launch-slots-status { min-height: 1.25rem; margin: 0; font-size: var(--text-xs); line-height: 1.4; }
2564
+ .subagent-launch-slots-status { min-height: 1rem; margin: 0; font-size: var(--text-xs); line-height: 1.3; }
2543
2565
  .subagent-launch-slots-status.error { color: var(--ctp-red); }
2544
- .subagent-launch-slot-roles { display: grid; gap: 0.52rem; min-width: 0; }
2566
+ .subagent-launch-slot-roles { display: grid; gap: 0.32rem; min-width: 0; }
2545
2567
  .subagent-launch-slot-empty { margin: 0; color: rgba(var(--ctp-subtext-rgb), 0.74); font-size: var(--text-xs); }
2546
2568
  .subagent-launch-slot-role {
2547
2569
  display: grid;
2548
- gap: 0.48rem;
2570
+ gap: 0.28rem;
2549
2571
  min-width: 0;
2550
- padding: 0.54rem;
2551
- border: 1px solid rgba(180, 190, 254, 0.18);
2552
- border-radius: 0.7rem;
2553
- background: rgba(var(--ctp-base-rgb), 0.22);
2572
+ padding: 0.34rem;
2573
+ border: 1px solid rgba(180, 190, 254, 0.13);
2574
+ border-radius: 0.46rem;
2575
+ background: rgba(var(--ctp-base-rgb), 0.12);
2554
2576
  }
2555
2577
  .subagent-launch-slot-role-header { align-items: center; }
2556
2578
  .subagent-launch-slot-role-heading { min-width: 0; }
2557
2579
  .subagent-launch-slot-count {
2558
2580
  flex: 0 0 auto;
2559
- padding: 0.12rem 0.38rem;
2560
- border-radius: 999px;
2561
- color: var(--ctp-mauve);
2562
- background: rgba(203, 166, 247, 0.12);
2581
+ color: rgba(203, 166, 247, 0.82);
2563
2582
  font-size: var(--text-xs);
2564
- font-weight: 850;
2583
+ font-weight: 800;
2565
2584
  }
2566
- .subagent-launch-slot-list { display: grid; gap: 0.42rem; }
2585
+ .subagent-launch-slot-list { display: grid; gap: 0.3rem; }
2567
2586
  .subagent-launch-slot-row {
2568
2587
  display: grid;
2569
2588
  grid-template-columns: minmax(0, 1fr) auto;
2570
- gap: 0.38rem 0.5rem;
2589
+ gap: 0.28rem 0.38rem;
2571
2590
  min-width: 0;
2572
- padding: 0.48rem;
2573
- border: 1px solid rgba(180, 190, 254, 0.13);
2574
- border-radius: 0.58rem;
2575
- background: rgba(var(--ctp-surface-rgb), 0.16);
2576
2591
  }
2577
- .subagent-launch-slot-row-header { grid-column: 1 / -1; align-items: center; }
2578
- .subagent-launch-slot-row-header strong { color: rgba(var(--ctp-text-rgb), 0.92); font-size: var(--text-xs); }
2579
- .subagent-launch-slot-id {
2580
- max-width: 14rem;
2581
- overflow-wrap: anywhere;
2582
- color: rgba(var(--ctp-subtext-rgb), 0.67);
2583
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
2592
+ .subagent-launch-slot-row + .subagent-launch-slot-row {
2593
+ padding-top: 0.3rem;
2594
+ border-top: 1px solid rgba(180, 190, 254, 0.1);
2595
+ }
2596
+ .subagent-launch-slot-row-header {
2597
+ grid-column: 1 / -1;
2598
+ color: rgba(var(--ctp-subtext-rgb), 0.78);
2584
2599
  font-size: var(--text-xs);
2585
2600
  }
2586
2601
  .subagent-launch-slot-controls {
2587
2602
  display: grid;
2588
2603
  grid-column: 1 / -1;
2589
2604
  grid-template-columns: repeat(2, minmax(0, 1fr));
2590
- gap: 0.42rem;
2605
+ gap: 0.32rem;
2591
2606
  min-width: 0;
2592
2607
  }
2593
- .subagent-launch-slot-field { display: grid; gap: 0.22rem; min-width: 0; color: rgba(var(--ctp-text-rgb), 0.88); font-size: var(--text-xs); font-weight: 750; }
2594
- .subagent-launch-slot-field select { width: 100%; min-width: 0; font-size: var(--text-xs); }
2595
- .subagent-launch-slot-meta { grid-column: 1; align-self: center; overflow-wrap: anywhere; }
2596
- .subagent-launch-slot-remove { grid-column: 2; align-self: center; color: var(--ctp-red); border-color: rgba(243, 139, 168, 0.32); }
2608
+ .subagent-launch-slot-field { display: grid; gap: 0.16rem; min-width: 0; color: rgba(var(--ctp-text-rgb), 0.82); font-size: var(--text-xs); font-weight: 750; }
2609
+ .subagent-launch-slot-field select { width: 100%; min-width: 0; min-height: 2rem; font-size: var(--text-xs); }
2610
+ .subagent-launch-slot-remove { grid-column: 2; align-self: center; color: var(--ctp-red); border-color: rgba(243, 139, 168, 0.24); }
2597
2611
  .subagent-launch-slot-add { justify-self: start; }
2598
2612
  .subagent-launch-slots-actions { align-items: center; flex-wrap: wrap; }
2599
2613
  .subagent-launch-slots-actions span,
@@ -2611,9 +2625,8 @@ body.embedded-split .side-panel-backdrop {
2611
2625
  min-width: min(12rem, 100%);
2612
2626
  color: rgba(var(--ctp-text-rgb), 0.88);
2613
2627
  }
2614
- @container subagent-launch-slots (max-width: 30rem) {
2628
+ @container subagent-launch-slots (max-width: 22rem) {
2615
2629
  .subagent-launch-slots-intro,
2616
- .subagent-launch-slot-row-header,
2617
2630
  .subagent-launch-slots-reload-actions { align-items: stretch; flex-direction: column; }
2618
2631
  .subagent-launch-slots-intro button,
2619
2632
  .subagent-launch-slot-add,
@@ -2626,14 +2639,11 @@ body.embedded-split .side-panel-backdrop {
2626
2639
  .subagent-launch-slot-controls { grid-template-columns: minmax(0, 1fr); }
2627
2640
  .subagent-launch-slot-scope select,
2628
2641
  .subagent-launch-slot-field select { width: 100%; }
2629
- .subagent-launch-slot-meta,
2630
2642
  .subagent-launch-slot-remove { grid-column: 1; }
2631
- .subagent-launch-slot-id { max-width: 100%; }
2632
2643
  .subagent-launch-slots-actions { align-items: stretch; flex-direction: column; }
2633
2644
  }
2634
2645
  @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
2635
2646
  .subagent-launch-slots-intro,
2636
- .subagent-launch-slot-row-header,
2637
2647
  .subagent-launch-slots-reload-actions { align-items: stretch; flex-direction: column; }
2638
2648
  .subagent-launch-slots-intro button,
2639
2649
  .subagent-launch-slot-add,
@@ -2646,9 +2656,7 @@ body.embedded-split .side-panel-backdrop {
2646
2656
  .subagent-launch-slot-controls { grid-template-columns: minmax(0, 1fr); }
2647
2657
  .subagent-launch-slot-scope select,
2648
2658
  .subagent-launch-slot-field select { width: 100%; }
2649
- .subagent-launch-slot-meta,
2650
2659
  .subagent-launch-slot-remove { grid-column: 1; }
2651
- .subagent-launch-slot-id { max-width: 100%; }
2652
2660
  .subagent-launch-slots-actions { align-items: stretch; flex-direction: column; }
2653
2661
  }
2654
2662
  .subagent-open-mode-field {
@@ -2678,11 +2686,25 @@ body.embedded-split .side-panel-backdrop {
2678
2686
  grid-column: 1 / -1;
2679
2687
  font-size: var(--text-xs);
2680
2688
  }
2681
- .subagents-status {
2689
+ .subagents-status-row {
2690
+ display: flex;
2691
+ align-items: flex-start;
2692
+ gap: 0.48rem;
2682
2693
  margin: 0 0 0.48rem;
2694
+ }
2695
+ .subagents-status {
2696
+ flex: 1 1 auto;
2697
+ min-width: 0;
2698
+ margin: 0;
2683
2699
  font-size: var(--text-xs);
2684
2700
  line-height: 1.35;
2685
2701
  }
2702
+ .subagents-clear-finished-button {
2703
+ flex: 0 0 auto;
2704
+ min-height: 2rem;
2705
+ padding: 0.28rem 0.5rem;
2706
+ font-size: var(--text-xs);
2707
+ }
2686
2708
  .subagents-box {
2687
2709
  display: grid;
2688
2710
  gap: 0.58rem;
@@ -2737,7 +2759,9 @@ body.embedded-split .side-panel-backdrop {
2737
2759
  background: rgba(137, 180, 250, 0.10);
2738
2760
  }
2739
2761
  .subagent-tab-title {
2762
+ container-type: inline-size;
2740
2763
  display: grid;
2764
+ flex: 1 1 0;
2741
2765
  gap: 0.12rem;
2742
2766
  min-width: 0;
2743
2767
  }
@@ -2749,6 +2773,7 @@ body.embedded-split .side-panel-backdrop {
2749
2773
  }
2750
2774
  .subagent-tab-title strong {
2751
2775
  font-size: 0.78rem;
2776
+ font-size: clamp(0.64rem, calc(0.5rem + 0.65cqi), 0.78rem);
2752
2777
  }
2753
2778
  .subagent-tab-session {
2754
2779
  color: rgba(var(--ctp-subtext-rgb), 0.66);
@@ -2757,6 +2782,7 @@ body.embedded-split .side-panel-backdrop {
2757
2782
  }
2758
2783
  .subagent-tab-count {
2759
2784
  display: inline-flex;
2785
+ flex: 0 0 auto;
2760
2786
  align-items: center;
2761
2787
  justify-content: center;
2762
2788
  min-width: 1.45rem;
@@ -2768,138 +2794,124 @@ body.embedded-split .side-panel-backdrop {
2768
2794
  background: rgba(148, 226, 213, 0.08);
2769
2795
  font-size: var(--text-xs);
2770
2796
  font-weight: 900;
2797
+ white-space: nowrap;
2771
2798
  }
2772
2799
  .subagent-agent-list {
2773
2800
  display: grid;
2774
- gap: 0.38rem;
2775
- padding: 0.5rem;
2801
+ gap: 0.16rem;
2802
+ padding: 0.3rem 0.38rem;
2776
2803
  }
2777
2804
  .subagent-agent-row {
2778
2805
  display: grid;
2779
- grid-template-columns: auto minmax(0, 1fr);
2780
- gap: 0.48rem;
2781
- align-items: start;
2806
+ grid-template-columns: auto minmax(0, 1fr) auto;
2807
+ gap: 0.38rem;
2808
+ align-items: center;
2782
2809
  width: 100%;
2783
2810
  min-width: 0;
2784
- min-height: 0;
2785
- padding: 0.42rem 0.48rem;
2811
+ min-height: 1.75rem;
2812
+ padding: 0.22rem 0.32rem;
2786
2813
  border: 1px solid transparent;
2787
- border-radius: 0.62rem;
2814
+ border-radius: 0.42rem;
2788
2815
  color: inherit;
2789
- background: rgba(var(--ctp-surface-rgb), 0.16);
2816
+ background: transparent;
2790
2817
  text-align: left;
2791
2818
  }
2792
2819
  .subagent-agent-row:hover,
2793
2820
  .subagent-agent-row:focus-visible {
2794
- border-color: rgba(148, 226, 213, 0.38);
2795
- background: rgba(148, 226, 213, 0.09);
2796
- box-shadow: 0 0 0.8rem rgba(148, 226, 213, 0.08);
2821
+ border-color: rgba(148, 226, 213, 0.3);
2822
+ background: rgba(148, 226, 213, 0.07);
2823
+ box-shadow: none;
2797
2824
  transform: none;
2798
2825
  }
2799
2826
  .subagent-agent-row.nested {
2800
- margin-left: 0.68rem;
2801
- border-left: 2px solid rgba(203, 166, 247, 0.32);
2827
+ width: calc(100% - 0.55rem);
2828
+ margin-left: 0.55rem;
2829
+ border-left: 1px solid rgba(203, 166, 247, 0.3);
2802
2830
  }
2803
2831
  .subagent-running-dot {
2804
- width: 0.52rem;
2805
- height: 0.52rem;
2806
- margin-top: 0.22rem;
2832
+ width: 0.46rem;
2833
+ height: 0.46rem;
2807
2834
  border-radius: 999px;
2808
- background: var(--ctp-green);
2809
- box-shadow: 0 0 0.6rem rgba(166, 227, 161, 0.62);
2835
+ background: var(--ctp-yellow);
2836
+ box-shadow: 0 0 0.45rem rgba(249, 226, 175, 0.58);
2810
2837
  animation: subagent-running-pulse 1.35s ease-in-out infinite;
2811
2838
  }
2812
- .subagent-agent-content {
2813
- display: grid;
2814
- gap: 0.13rem;
2839
+ .subagent-agent-identity {
2840
+ display: flex;
2841
+ align-items: baseline;
2842
+ gap: 0.28rem;
2815
2843
  min-width: 0;
2844
+ overflow: hidden;
2845
+ white-space: nowrap;
2816
2846
  }
2817
2847
  .subagent-agent-name {
2848
+ flex: 0 1 auto;
2849
+ min-width: 0;
2818
2850
  overflow: hidden;
2819
- color: rgba(var(--ctp-text-rgb), 0.94);
2820
- font-size: 0.76rem;
2851
+ color: rgba(var(--ctp-text-rgb), 0.92);
2852
+ font-size: var(--text-xs);
2821
2853
  text-overflow: ellipsis;
2822
2854
  white-space: nowrap;
2823
2855
  }
2824
- .subagent-agent-meta {
2825
- color: rgba(var(--ctp-subtext-rgb), 0.67);
2856
+ .subagent-agent-inline-meta {
2857
+ flex: 1 1 auto;
2858
+ min-width: 0;
2859
+ overflow: hidden;
2860
+ color: rgba(var(--ctp-subtext-rgb), 0.66);
2826
2861
  font-size: var(--text-xs);
2827
- line-height: 1.35;
2828
- overflow-wrap: anywhere;
2862
+ font-weight: 650;
2863
+ text-overflow: ellipsis;
2864
+ white-space: nowrap;
2865
+ }
2866
+ .subagent-agent-open {
2867
+ color: rgba(var(--ctp-subtext-rgb), 0.58);
2868
+ font-size: 0.92rem;
2869
+ line-height: 1;
2829
2870
  }
2830
2871
  .subagent-run {
2831
2872
  display: grid;
2832
- gap: 0.42rem;
2873
+ grid-template-columns: minmax(0, 1fr) auto;
2874
+ gap: 0.2rem;
2875
+ align-items: center;
2833
2876
  min-width: 0;
2834
- padding: 0.5rem;
2835
- border: 1px solid rgba(180, 190, 254, 0.16);
2836
- border-radius: 0.68rem;
2837
- background: rgba(var(--ctp-surface-rgb), 0.12);
2877
+ padding: 0.12rem 0;
2878
+ border: 0;
2879
+ background: transparent;
2838
2880
  }
2839
- .subagent-run.done { border-color: rgba(166, 227, 161, 0.32); }
2840
- .subagent-run.failed,
2841
- .subagent-run.cancelled { border-color: rgba(243, 139, 168, 0.34); }
2842
- .subagent-run-header,
2881
+ .subagent-run + .subagent-run { border-top: 1px solid rgba(180, 190, 254, 0.1); }
2882
+ .subagent-run-agents { display: grid; gap: 0.08rem; min-width: 0; }
2843
2883
  .subagent-run-actions {
2844
2884
  display: flex;
2845
2885
  align-items: center;
2846
- gap: 0.42rem;
2847
- }
2848
- .subagent-run-header { justify-content: space-between; }
2849
- .subagent-run-title {
2850
- display: grid;
2851
- gap: 0.1rem;
2852
- min-width: 0;
2853
- }
2854
- .subagent-run-title strong {
2855
- overflow: hidden;
2856
- color: rgba(var(--ctp-text-rgb), 0.94);
2857
- font-size: var(--text-xs);
2858
- text-overflow: ellipsis;
2859
- white-space: nowrap;
2860
- }
2861
- .subagent-run-meta {
2862
- color: rgba(var(--ctp-subtext-rgb), 0.68);
2863
- font-size: var(--text-xs);
2864
- overflow-wrap: anywhere;
2886
+ flex: 0 0 auto;
2865
2887
  }
2866
- .subagent-run-actions { flex: 0 0 auto; }
2867
2888
  .subagent-run-cancel,
2868
2889
  .subagent-run-dismiss {
2869
- min-height: 2rem;
2870
- padding: 0.28rem 0.48rem;
2890
+ display: inline-grid;
2891
+ place-items: center;
2892
+ width: 1.55rem;
2893
+ min-width: 1.55rem;
2894
+ height: 1.55rem;
2895
+ min-height: 1.55rem;
2896
+ padding: 0;
2897
+ border-radius: 0.42rem;
2898
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
2899
+ border-color: transparent;
2900
+ background: transparent;
2871
2901
  font-size: var(--text-xs);
2902
+ line-height: 1;
2872
2903
  }
2873
- .subagent-run-cancel {
2874
- color: var(--ctp-red);
2875
- border-color: rgba(243, 139, 168, 0.38);
2876
- }
2877
- .subagent-run-dismiss {
2878
- min-width: 2rem;
2904
+ .subagent-run-cancel:hover,
2905
+ .subagent-run-cancel:focus-visible,
2906
+ .subagent-run-dismiss:hover,
2907
+ .subagent-run-dismiss:focus-visible {
2879
2908
  color: var(--ctp-red);
2880
- border-color: rgba(243, 139, 168, 0.32);
2881
- }
2882
- .subagent-run-state {
2883
- display: inline-flex;
2884
- align-items: center;
2885
- min-height: 1.55rem;
2886
- padding: 0.1rem 0.4rem;
2887
- border: 1px solid rgba(180, 190, 254, 0.24);
2888
- border-radius: 999px;
2889
- color: rgba(var(--ctp-subtext-rgb), 0.88);
2890
- background: rgba(var(--ctp-surface-rgb), 0.32);
2891
- font-size: var(--text-xs);
2892
- font-weight: 800;
2893
- white-space: nowrap;
2909
+ border-color: rgba(243, 139, 168, 0.3);
2910
+ background: rgba(243, 139, 168, 0.08);
2894
2911
  }
2895
- .subagent-run-state.done { color: var(--ctp-green); border-color: rgba(166, 227, 161, 0.38); background: rgba(166, 227, 161, 0.1); }
2896
- .subagent-run-state.failed,
2897
- .subagent-run-state.cancelled { color: var(--ctp-red); border-color: rgba(243, 139, 168, 0.4); background: rgba(243, 139, 168, 0.1); }
2898
- .subagent-run-agents { display: grid; gap: 0.32rem; }
2899
2912
  .subagent-state-dot {
2900
- width: 0.52rem;
2901
- height: 0.52rem;
2902
- margin-top: 0.22rem;
2913
+ width: 0.46rem;
2914
+ height: 0.46rem;
2903
2915
  border-radius: 999px;
2904
2916
  background: var(--ctp-overlay);
2905
2917
  }
@@ -2923,83 +2935,93 @@ body.embedded-split .side-panel-backdrop {
2923
2935
  .subagent-overlay-cancel-action { color: var(--button-primary-text); }
2924
2936
  .subagent-gate-card {
2925
2937
  display: grid;
2926
- gap: 0.48rem;
2938
+ gap: 0.12rem;
2927
2939
  min-width: 0;
2928
- padding: 0.54rem;
2929
- border: 1px solid rgba(137, 180, 250, 0.22);
2930
- border-radius: 0.68rem;
2931
- background: rgba(137, 180, 250, 0.06);
2940
+ padding: 0.14rem 0;
2941
+ border: 0;
2942
+ border-radius: 0;
2943
+ background: transparent;
2932
2944
  }
2933
- .subagent-gate-card.satisfied { border-color: rgba(166, 227, 161, 0.38); }
2934
- .subagent-gate-card.failed,
2935
- .subagent-gate-card.cancelled { border-color: rgba(243, 139, 168, 0.38); }
2945
+ .subagent-gate-card + .subagent-gate-card { border-top: 1px solid rgba(180, 190, 254, 0.1); }
2936
2946
  .subagent-gate-header {
2937
2947
  display: flex;
2938
- align-items: flex-start;
2948
+ align-items: center;
2939
2949
  justify-content: space-between;
2940
- gap: 0.5rem;
2950
+ gap: 0.4rem;
2951
+ min-width: 0;
2952
+ padding: 0.06rem 0.28rem;
2941
2953
  }
2942
2954
  .subagent-gate-title {
2943
- display: grid;
2944
- gap: 0.08rem;
2955
+ display: flex;
2956
+ align-items: baseline;
2957
+ gap: 0.34rem;
2945
2958
  min-width: 0;
2959
+ overflow: hidden;
2960
+ white-space: nowrap;
2946
2961
  }
2947
- .subagent-gate-title strong { color: var(--ctp-text); font-size: 0.75rem; }
2948
- .subagent-gate-title span { color: rgba(var(--ctp-subtext-rgb), 0.72); font-size: var(--text-xs); }
2949
- .subagent-gate-actions {
2950
- display: flex;
2951
- align-items: center;
2952
- gap: 0.3rem;
2962
+ .subagent-gate-title strong {
2953
2963
  flex: 0 0 auto;
2964
+ color: var(--ctp-text);
2965
+ font-size: 0.7rem;
2966
+ }
2967
+ .subagent-gate-title span {
2968
+ overflow: hidden;
2969
+ color: rgba(var(--ctp-subtext-rgb), 0.68);
2970
+ font-size: var(--text-xs);
2971
+ text-overflow: ellipsis;
2954
2972
  }
2973
+ .subagent-gate-actions { display: flex; flex: 0 0 auto; align-items: center; }
2955
2974
  .subagent-gate-close {
2956
2975
  display: inline-grid;
2957
2976
  place-items: center;
2958
- width: 1.75rem;
2959
- min-width: 1.75rem;
2960
- height: 1.75rem;
2961
- min-height: 1.75rem;
2977
+ width: 1.45rem;
2978
+ min-width: 1.45rem;
2979
+ height: 1.45rem;
2980
+ min-height: 1.45rem;
2962
2981
  padding: 0;
2963
- border: 1px solid rgba(var(--ctp-subtext-rgb), 0.2);
2964
- border-radius: 999px;
2965
- color: rgba(var(--ctp-text-rgb), 0.76);
2966
- background: rgba(var(--ctp-surface-rgb), 0.2);
2982
+ border: 1px solid transparent;
2983
+ border-radius: 0.4rem;
2984
+ color: rgba(var(--ctp-subtext-rgb), 0.7);
2985
+ background: transparent;
2967
2986
  font: inherit;
2968
- font-size: 1rem;
2987
+ font-size: 0.88rem;
2969
2988
  line-height: 1;
2970
2989
  cursor: pointer;
2971
2990
  }
2972
2991
  .subagent-gate-close:hover,
2973
2992
  .subagent-gate-close:focus-visible {
2974
- border-color: rgba(243, 139, 168, 0.48);
2993
+ border-color: rgba(243, 139, 168, 0.35);
2975
2994
  color: var(--ctp-red);
2976
- background: rgba(243, 139, 168, 0.12);
2977
- }
2978
- .subagent-gate-status {
2979
- flex: 0 0 auto;
2980
- padding: 0.08rem 0.34rem;
2981
- border-radius: 999px;
2982
- color: var(--ctp-blue);
2983
- background: rgba(137, 180, 250, 0.12);
2984
- font-size: var(--text-xs);
2985
- font-weight: 850;
2995
+ background: rgba(243, 139, 168, 0.08);
2986
2996
  }
2987
- .subagent-gate-status.satisfied { color: var(--ctp-green); background: rgba(166, 227, 161, 0.12); }
2988
- .subagent-gate-status.failed,
2989
- .subagent-gate-status.cancelled { color: var(--ctp-red); background: rgba(243, 139, 168, 0.12); }
2990
- .subagent-gate-attempts { display: grid; gap: 0.32rem; }
2997
+ .subagent-gate-attempts { display: grid; gap: 0.04rem; }
2991
2998
  .subagent-gate-attempt {
2992
2999
  display: grid;
2993
- grid-template-columns: auto minmax(0, 1fr);
2994
- gap: 0.4rem;
2995
- padding: 0.38rem;
2996
- border-radius: 0.5rem;
2997
- background: rgba(var(--ctp-surface-rgb), 0.16);
3000
+ grid-template-columns: auto minmax(0, 1fr) auto;
3001
+ gap: 0.36rem;
3002
+ align-items: center;
3003
+ width: 100%;
3004
+ min-width: 0;
3005
+ min-height: 1.68rem;
3006
+ padding: 0.18rem 0.28rem;
3007
+ border: 1px solid transparent;
3008
+ border-radius: 0.42rem;
3009
+ color: inherit;
3010
+ background: transparent;
3011
+ font: inherit;
3012
+ text-align: left;
3013
+ }
3014
+ button.subagent-gate-attempt { cursor: pointer; }
3015
+ button.subagent-gate-attempt:hover,
3016
+ button.subagent-gate-attempt:focus-visible {
3017
+ border-color: rgba(148, 226, 213, 0.3);
3018
+ background: rgba(148, 226, 213, 0.07);
3019
+ box-shadow: none;
3020
+ transform: none;
2998
3021
  }
2999
3022
  .subagent-gate-attempt-marker {
3000
- width: 0.48rem;
3001
- height: 0.48rem;
3002
- margin-top: 0.18rem;
3023
+ width: 0.44rem;
3024
+ height: 0.44rem;
3003
3025
  border-radius: 999px;
3004
3026
  background: var(--ctp-blue);
3005
3027
  }
@@ -3009,16 +3031,38 @@ body.embedded-split .side-panel-backdrop {
3009
3031
  .subagent-gate-attempt.failed .subagent-gate-attempt-marker,
3010
3032
  .subagent-gate-attempt.not-qualifying .subagent-gate-attempt-marker,
3011
3033
  .subagent-gate-attempt.cancelled .subagent-gate-attempt-marker { background: var(--ctp-red); }
3012
- .subagent-gate-attempt-content { display: grid; gap: 0.08rem; min-width: 0; }
3013
- .subagent-gate-attempt-content strong { color: rgba(var(--ctp-text-rgb), 0.92); font-size: 0.7rem; }
3014
- .subagent-gate-attempt-meta,
3015
- .subagent-gate-attempt-error {
3016
- color: rgba(var(--ctp-subtext-rgb), 0.68);
3034
+ .subagent-gate-attempt-identity {
3035
+ display: flex;
3036
+ align-items: baseline;
3037
+ gap: 0.28rem;
3038
+ min-width: 0;
3039
+ overflow: hidden;
3040
+ white-space: nowrap;
3041
+ }
3042
+ .subagent-gate-attempt-name {
3043
+ flex: 0 1 auto;
3044
+ min-width: 0;
3045
+ overflow: hidden;
3046
+ color: rgba(var(--ctp-text-rgb), 0.92);
3017
3047
  font-size: var(--text-xs);
3018
- line-height: 1.35;
3019
- overflow-wrap: anywhere;
3048
+ text-overflow: ellipsis;
3049
+ white-space: nowrap;
3050
+ }
3051
+ .subagent-gate-attempt-meta {
3052
+ flex: 1 1 auto;
3053
+ min-width: 0;
3054
+ overflow: hidden;
3055
+ color: rgba(var(--ctp-subtext-rgb), 0.66);
3056
+ font-size: var(--text-xs);
3057
+ font-weight: 650;
3058
+ text-overflow: ellipsis;
3059
+ white-space: nowrap;
3060
+ }
3061
+ .subagent-gate-attempt-open {
3062
+ color: rgba(var(--ctp-subtext-rgb), 0.58);
3063
+ font-size: 0.92rem;
3064
+ line-height: 1;
3020
3065
  }
3021
- .subagent-gate-attempt-error { color: var(--ctp-red); }
3022
3066
  @keyframes subagent-running-pulse {
3023
3067
  0%, 100% { opacity: 0.58; transform: scale(0.86); }
3024
3068
  50% { opacity: 1; transform: scale(1); }
@@ -3070,6 +3114,46 @@ body.embedded-split .side-panel-backdrop {
3070
3114
  display: grid;
3071
3115
  gap: 0.48rem;
3072
3116
  }
3117
+ .codex-fast-mode-control {
3118
+ display: grid;
3119
+ gap: 0.28rem;
3120
+ margin-top: 0.58rem;
3121
+ padding: 0.48rem 0.55rem;
3122
+ border: 1px solid rgba(148, 226, 213, 0.16);
3123
+ border-radius: 0.68rem;
3124
+ background: rgba(var(--ctp-crust-rgb), 0.34);
3125
+ }
3126
+ .codex-fast-mode-row {
3127
+ display: grid;
3128
+ grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 8rem) auto;
3129
+ gap: 0.38rem;
3130
+ align-items: center;
3131
+ min-width: 0;
3132
+ }
3133
+ .codex-fast-mode-row label {
3134
+ color: rgba(var(--ctp-text-rgb), 0.82);
3135
+ font-size: var(--text-xs);
3136
+ font-weight: 900;
3137
+ }
3138
+ .codex-fast-mode-row select,
3139
+ .codex-fast-mode-row .control-apply-button {
3140
+ min-height: 2rem;
3141
+ padding-block: 0.28rem;
3142
+ font-size: var(--text-xs);
3143
+ }
3144
+ .codex-fast-mode-row .control-apply-button {
3145
+ width: auto;
3146
+ min-width: 3.8rem;
3147
+ padding-inline: 0.58rem;
3148
+ color: var(--ctp-teal);
3149
+ border-color: rgba(148, 226, 213, 0.28);
3150
+ font-weight: 850;
3151
+ }
3152
+ .codex-fast-mode-control .toggle-control-hint {
3153
+ margin: 0;
3154
+ font-size: var(--text-xs);
3155
+ line-height: 1.3;
3156
+ }
3073
3157
  .codex-usage-actions,
3074
3158
  .claude-usage-actions {
3075
3159
  display: flex;
@@ -4118,31 +4202,11 @@ body.embedded-split .side-panel-backdrop {
4118
4202
  }
4119
4203
  body.terminal-tabs-left .terminal-sidebar-actions > button {
4120
4204
  display: grid;
4121
- grid-template-rows: auto auto;
4122
4205
  place-items: center;
4123
- gap: 0.24rem;
4124
4206
  width: 100%;
4125
4207
  min-width: 0;
4126
- min-height: 3.55rem;
4127
- padding: 0.46rem 0.2rem;
4128
- }
4129
- body.terminal-tabs-left .terminal-sidebar-action-label {
4130
- display: block;
4131
- min-width: 0;
4132
- overflow: hidden;
4133
- color: currentColor;
4134
- font-size: var(--text-xs);
4135
- font-weight: 800;
4136
- line-height: 1.1;
4137
- text-overflow: ellipsis;
4138
- white-space: nowrap;
4139
- }
4140
- body.terminal-tabs-left .terminal-sidebar-action-label-unsplit,
4141
- body.terminal-tabs-left .terminal-split-button[aria-pressed="true"] .terminal-sidebar-action-label-split {
4142
- display: none;
4143
- }
4144
- body.terminal-tabs-left .terminal-split-button[aria-pressed="true"] .terminal-sidebar-action-label-unsplit {
4145
- display: block;
4208
+ min-height: 2.75rem;
4209
+ padding: 0.42rem;
4146
4210
  }
4147
4211
  body.terminal-tabs-left .terminal-new-tab-menu .composer-publish-menu-panel {
4148
4212
  --terminal-left-dropdown-bridge: 0.78rem;
@@ -6728,6 +6792,7 @@ button.git-workflow-step:hover:not(:disabled) {
6728
6792
  flex: 1 1 auto;
6729
6793
  min-height: 0;
6730
6794
  overflow: auto;
6795
+ overflow-anchor: none;
6731
6796
  padding: 1rem;
6732
6797
  scroll-behavior: smooth;
6733
6798
  }
@@ -7725,7 +7790,9 @@ summary { cursor: pointer; color: var(--warning); }
7725
7790
  right: 3.3rem;
7726
7791
  display: inline-flex;
7727
7792
  align-items: center;
7793
+ justify-content: center;
7728
7794
  gap: 0.28rem;
7795
+ min-width: 5.25rem;
7729
7796
  min-height: 0;
7730
7797
  margin: 0;
7731
7798
  padding: 0.14rem 0.46rem;
@@ -7791,7 +7858,8 @@ summary { cursor: pointer; color: var(--warning); }
7791
7858
  font-size: 0.86rem;
7792
7859
  }
7793
7860
  .follow-up-queue-close-button,
7794
- .follow-up-queue-move-button {
7861
+ .follow-up-queue-move-button,
7862
+ .follow-up-queue-remove-button {
7795
7863
  min-width: 2rem;
7796
7864
  min-height: 2rem;
7797
7865
  padding: 0.26rem 0.42rem;
@@ -7809,6 +7877,16 @@ summary { cursor: pointer; color: var(--warning); }
7809
7877
  border-color: rgba(148, 226, 213, 0.58);
7810
7878
  background: rgba(148, 226, 213, 0.16);
7811
7879
  }
7880
+ .follow-up-queue-remove-button {
7881
+ color: var(--ctp-red);
7882
+ border-color: rgba(243, 139, 168, 0.34);
7883
+ background: rgba(243, 139, 168, 0.12);
7884
+ }
7885
+ .follow-up-queue-remove-button:hover:not(:disabled),
7886
+ .follow-up-queue-remove-button:focus-visible:not(:disabled) {
7887
+ border-color: rgba(243, 139, 168, 0.64);
7888
+ background: rgba(243, 139, 168, 0.22);
7889
+ }
7812
7890
  .follow-up-queue-rows {
7813
7891
  display: grid;
7814
7892
  gap: 0.46rem;
@@ -7863,6 +7941,7 @@ summary { cursor: pointer; color: var(--warning); }
7863
7941
  gap: 0.28rem;
7864
7942
  }
7865
7943
  .follow-up-queue-move-button:disabled,
7944
+ .follow-up-queue-remove-button:disabled,
7866
7945
  .follow-up-queue-overlay.is-busy .follow-up-queue-row,
7867
7946
  .follow-up-queue-overlay.is-draining .follow-up-queue-row {
7868
7947
  cursor: wait;
@@ -7886,7 +7965,19 @@ summary { cursor: pointer; color: var(--warning); }
7886
7965
  display: inline-flex;
7887
7966
  align-items: center;
7888
7967
  gap: 0.32rem;
7968
+ width: calc(100% - 4.5rem);
7889
7969
  max-width: calc(100% - 4.5rem);
7970
+ min-width: 0;
7971
+ pointer-events: none;
7972
+ }
7973
+ .composer-input-row:has(.follow-up-queue-trigger:not([hidden])) .composer-context-tags {
7974
+ max-width: max(0px, calc(100% - 9.7rem));
7975
+ }
7976
+ .composer-busy-mode-tag,
7977
+ .composer-skill-tag,
7978
+ .composer-conversation-mode-chip,
7979
+ .composer-workflow-mode-chip {
7980
+ pointer-events: auto;
7890
7981
  }
7891
7982
  .composer-busy-mode-tag {
7892
7983
  position: relative;
@@ -7942,6 +8033,7 @@ summary { cursor: pointer; color: var(--warning); }
7942
8033
  }
7943
8034
  .composer-skill-tags {
7944
8035
  display: inline-flex;
8036
+ flex: 1 1 0;
7945
8037
  align-items: center;
7946
8038
  gap: 0.28rem;
7947
8039
  min-width: 0;
@@ -8144,6 +8236,7 @@ body.conversation-mode-active .composer::before {
8144
8236
  }
8145
8237
  .composer-skill-tag {
8146
8238
  display: inline-flex;
8239
+ flex: 0 0 auto;
8147
8240
  align-items: center;
8148
8241
  min-width: 0;
8149
8242
  min-height: 0;
@@ -8182,6 +8275,7 @@ button.composer-skill-tag:focus-visible {
8182
8275
  }
8183
8276
  .composer-skill-tag.overflow {
8184
8277
  color: var(--ctp-subtext0);
8278
+ font-variant-numeric: tabular-nums;
8185
8279
  border-color: rgba(166, 173, 200, 0.30);
8186
8280
  background: linear-gradient(120deg, rgba(166, 173, 200, 0.22), rgba(166, 173, 200, 0.08)), var(--ctp-crust);
8187
8281
  }
@@ -8483,6 +8577,9 @@ button.composer-skill-tag:focus-visible {
8483
8577
  padding: 0;
8484
8578
  }
8485
8579
  .composer-workflow-mode-dock[hidden] { display: none !important; }
8580
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .follow-up-queue-trigger {
8581
+ right: calc(3.55rem + 2.25rem + 0.4rem);
8582
+ }
8486
8583
  .composer-input-row .composer-workflow-mode-dock button[data-tooltip]::before,
8487
8584
  .composer-input-row .composer-workflow-mode-dock button[data-tooltip]::after {
8488
8585
  display: none;
@@ -8493,6 +8590,9 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
8493
8590
  body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .composer-context-tags {
8494
8591
  max-width: calc(100% - 7.5rem);
8495
8592
  }
8593
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])):has(.follow-up-queue-trigger:not([hidden])) .composer-context-tags {
8594
+ max-width: max(0px, calc(100% - 12.6rem));
8595
+ }
8496
8596
  .composer-workflow-mode-dock.has-open-control {
8497
8597
  min-width: 1.95rem;
8498
8598
  min-height: 2.35rem;
@@ -10343,6 +10443,66 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
10343
10443
  font-size: var(--text-xs);
10344
10444
  }
10345
10445
  .subagent-terminal-status.warning { color: var(--ctp-yellow); }
10446
+ .subagent-terminal-cards {
10447
+ flex: 0 0 auto;
10448
+ min-width: 0;
10449
+ padding: 0.54rem 0.72rem;
10450
+ border-top: 1px solid rgba(137, 180, 250, 0.14);
10451
+ border-bottom: 1px solid rgba(166, 227, 161, 0.18);
10452
+ background: rgba(var(--ctp-mantle-rgb), 0.48);
10453
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
10454
+ }
10455
+ .subagent-terminal-card-list {
10456
+ display: grid;
10457
+ grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr));
10458
+ gap: 0.42rem;
10459
+ width: 100%;
10460
+ min-width: 0;
10461
+ margin: 0;
10462
+ }
10463
+ .subagent-terminal-card {
10464
+ display: grid;
10465
+ grid-template-columns: auto minmax(0, 1fr);
10466
+ grid-template-areas:
10467
+ "icon label"
10468
+ "icon value";
10469
+ column-gap: 0.38rem;
10470
+ min-width: 0;
10471
+ padding: 0.42rem 0.5rem;
10472
+ border: 1px solid rgba(137, 180, 250, 0.18);
10473
+ border-radius: 0.48rem;
10474
+ background: rgba(var(--ctp-crust-rgb), 0.42);
10475
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
10476
+ }
10477
+ .subagent-terminal-card-icon {
10478
+ grid-area: icon;
10479
+ align-self: center;
10480
+ color: var(--ctp-teal);
10481
+ font-size: 0.92rem;
10482
+ line-height: 1;
10483
+ }
10484
+ .subagent-terminal-card-label {
10485
+ grid-area: label;
10486
+ min-width: 0;
10487
+ color: rgba(var(--ctp-subtext-rgb), 0.82);
10488
+ font-size: 0.75rem;
10489
+ font-weight: 850;
10490
+ letter-spacing: 0.06em;
10491
+ line-height: 1.2;
10492
+ text-transform: uppercase;
10493
+ }
10494
+ .subagent-terminal-card-value {
10495
+ grid-area: value;
10496
+ min-width: 0;
10497
+ margin: 0.08rem 0 0;
10498
+ overflow: hidden;
10499
+ color: rgba(var(--ctp-text-rgb), 0.94);
10500
+ font-size: 0.76rem;
10501
+ font-weight: 800;
10502
+ line-height: 1.25;
10503
+ text-overflow: ellipsis;
10504
+ white-space: nowrap;
10505
+ }
10346
10506
  .subagent-terminal-composer {
10347
10507
  flex: 0 0 auto;
10348
10508
  display: grid;
@@ -10392,12 +10552,17 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10392
10552
  .subagent-terminal-actions { justify-content: stretch; }
10393
10553
  .subagent-terminal-actions button { flex: 1 1 auto; }
10394
10554
  .subagent-terminal-transcript { padding: 0.65rem 0.58rem; }
10555
+ .subagent-terminal-cards { padding-inline: 0.58rem; }
10556
+ .subagent-terminal-card-list { grid-template-columns: repeat(auto-fit, minmax(7.75rem, 1fr)); }
10395
10557
  .subagent-terminal-composer {
10396
10558
  grid-template-columns: minmax(0, 1fr);
10397
10559
  padding-bottom: calc(0.58rem + env(safe-area-inset-bottom));
10398
10560
  }
10399
10561
  .subagent-terminal-composer button { display: none; }
10400
10562
  }
10563
+ @media (max-width: 320px) {
10564
+ .subagent-terminal-card-list { grid-template-columns: minmax(0, 1fr); }
10565
+ }
10401
10566
  .extension-dialog.stats-overlay-dialog {
10402
10567
  width: min(92rem, calc(100vw - 1.5rem));
10403
10568
  height: min(54rem, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
@@ -11536,29 +11701,7 @@ body.subagent-terminal-active .composer-remote-mic-consent {
11536
11701
  padding: 0.34rem 0.48rem;
11537
11702
  line-height: 1.35;
11538
11703
  }
11539
- .subagent-launch-slots {
11540
- margin-bottom: 0.4rem;
11541
- border-radius: 0.7rem;
11542
- }
11543
- .subagent-launch-slots-summary {
11544
- gap: 0.5rem;
11545
- min-height: 2.7rem;
11546
- padding: 0.46rem 0.58rem;
11547
- }
11548
- .subagent-launch-slots-body {
11549
- gap: 0.42rem;
11550
- padding: 0.48rem;
11551
- }
11552
- .subagent-launch-slot-roles { gap: 0.4rem; }
11553
- .subagent-launch-slot-role {
11554
- gap: 0.36rem;
11555
- padding: 0.42rem;
11556
- }
11557
- .subagent-launch-slot-list { gap: 0.32rem; }
11558
- .subagent-launch-slot-row {
11559
- gap: 0.3rem 0.4rem;
11560
- padding: 0.38rem;
11561
- }
11704
+ .subagent-launch-slots-summary { min-height: 2.35rem; }
11562
11705
  .subagent-open-mode-field {
11563
11706
  gap: 0.24rem 0.42rem;
11564
11707
  margin-bottom: 0.4rem;
@@ -11569,10 +11712,17 @@ body.subagent-terminal-active .composer-remote-mic-consent {
11569
11712
  min-height: 2rem;
11570
11713
  padding-block: 0.24rem;
11571
11714
  }
11572
- .subagents-status {
11715
+ .subagents-status-row {
11716
+ gap: 0.36rem;
11573
11717
  margin-bottom: 0.32rem;
11718
+ }
11719
+ .subagents-status {
11574
11720
  line-height: 1.3;
11575
11721
  }
11722
+ .subagents-clear-finished-button {
11723
+ min-height: 1.9rem;
11724
+ padding: 0.24rem 0.42rem;
11725
+ }
11576
11726
  .subagents-box {
11577
11727
  gap: 0.38rem;
11578
11728
  padding: 0.48rem;
@@ -11583,21 +11733,21 @@ body.subagent-terminal-active .composer-remote-mic-consent {
11583
11733
  padding: 0.34rem 0.46rem;
11584
11734
  }
11585
11735
  .subagent-agent-list {
11586
- gap: 0.28rem;
11587
- padding: 0.36rem;
11736
+ gap: 0.16rem;
11737
+ padding: 0.3rem 0.38rem;
11588
11738
  }
11589
11739
  .subagent-agent-row {
11590
11740
  gap: 0.38rem;
11591
- padding: 0.3rem 0.4rem;
11741
+ padding: 0.22rem 0.32rem;
11592
11742
  }
11593
11743
  .subagent-gate-card {
11594
- gap: 0.36rem;
11595
- padding: 0.42rem;
11744
+ gap: 0.1rem;
11745
+ padding: 0.12rem 0;
11596
11746
  }
11597
- .subagent-gate-attempts { gap: 0.24rem; }
11747
+ .subagent-gate-attempts { gap: 0.04rem; }
11598
11748
  .subagent-gate-attempt {
11599
- gap: 0.34rem;
11600
- padding: 0.3rem;
11749
+ gap: 0.32rem;
11750
+ padding: 0.16rem 0.24rem;
11601
11751
  }
11602
11752
 
11603
11753
  .git-side-panel {
@@ -11751,7 +11901,11 @@ button.git-workflow-step { min-height: 1.9rem; }
11751
11901
  .git-side-panel-folder-summary,
11752
11902
  .git-side-panel-file,
11753
11903
  button.git-workflow-step,
11754
- .git-workflow-message-input {
11904
+ .git-workflow-message-input,
11905
+ .side-panel-controls select,
11906
+ .side-panel-controls button,
11907
+ .side-panel-controls input:not([type="checkbox"]):not([type="file"]),
11908
+ .side-panel-controls .toggle-control {
11755
11909
  min-height: 44px;
11756
11910
  }
11757
11911
  }
@@ -11921,7 +12075,7 @@ button.git-workflow-step { min-height: 1.9rem; }
11921
12075
  align-items: center;
11922
12076
  flex-direction: row;
11923
12077
  gap: 0.28rem;
11924
- min-height: calc(28px + env(safe-area-inset-top));
12078
+ min-height: calc(44px + env(safe-area-inset-top));
11925
12079
  padding: calc(0.12rem + env(safe-area-inset-top)) 0.42rem 0.12rem;
11926
12080
  overflow: visible;
11927
12081
  }
@@ -11932,7 +12086,7 @@ button.git-workflow-step { min-height: 1.9rem; }
11932
12086
  width: auto;
11933
12087
  min-width: 0;
11934
12088
  max-width: min(14rem, calc(100vw - 11.4rem));
11935
- min-height: 28px;
12089
+ min-height: 44px;
11936
12090
  padding: 0.16rem 0.58rem;
11937
12091
  overflow: hidden;
11938
12092
  color: var(--ctp-teal);
@@ -11949,10 +12103,10 @@ button.git-workflow-step { min-height: 1.9rem; }
11949
12103
  }
11950
12104
  .side-panel-toggle-button,
11951
12105
  .side-panel-expand-button {
11952
- width: 36px;
11953
- min-width: 36px;
11954
- height: 32px;
11955
- min-height: 32px;
12106
+ width: 44px;
12107
+ min-width: 44px;
12108
+ height: 44px;
12109
+ min-height: 44px;
11956
12110
  border-radius: 0.58rem;
11957
12111
  }
11958
12112
  .side-panel-expand-button {
@@ -11961,7 +12115,7 @@ button.git-workflow-step { min-height: 1.9rem; }
11961
12115
  z-index: 120;
11962
12116
  }
11963
12117
  .terminal-close-all-button {
11964
- min-height: 28px;
12118
+ min-height: 44px;
11965
12119
  padding: 0.16rem 0.46rem;
11966
12120
  border-radius: 0.58rem;
11967
12121
  font-size: var(--text-xs);
@@ -12332,28 +12486,38 @@ button.git-workflow-step { min-height: 1.9rem; }
12332
12486
  padding: 0.58rem;
12333
12487
  }
12334
12488
  .follow-up-queue-close-button,
12335
- .follow-up-queue-move-button { min-width: 2.35rem; min-height: 2.35rem; }
12489
+ .follow-up-queue-move-button,
12490
+ .follow-up-queue-remove-button { min-width: 44px; min-height: 44px; }
12336
12491
  .follow-up-queue-row { grid-template-columns: auto minmax(0, 1fr); }
12337
12492
  .follow-up-queue-row-controls { grid-column: 2; grid-auto-flow: column; justify-content: start; }
12338
12493
  body.mobile-keyboard-open .follow-up-queue-trigger:not([hidden]) { display: inline-flex; }
12339
12494
  .composer-workflow-mode-dock {
12340
12495
  top: -0.4rem;
12341
12496
  right: 3rem;
12342
- min-height: 2.25rem;
12497
+ min-height: 44px;
12343
12498
  max-width: calc(100% - 3.7rem);
12344
12499
  padding: 0;
12345
12500
  }
12501
+ .composer-input-row:has(.follow-up-queue-trigger:not([hidden])) .composer-context-tags {
12502
+ max-width: max(0px, calc(100% - 9.4rem));
12503
+ }
12504
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .follow-up-queue-trigger {
12505
+ right: calc(3rem + 2.25rem + 0.4rem);
12506
+ }
12346
12507
  body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) #promptInput { padding-right: 3.35rem; }
12347
12508
  body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .composer-context-tags { max-width: calc(100% - 6.5rem); }
12509
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])):has(.follow-up-queue-trigger:not([hidden])) .composer-context-tags {
12510
+ max-width: max(0px, calc(100% - 12.05rem));
12511
+ }
12348
12512
  .composer-workflow-mode-dock .composer-workflow-overlay-open-button {
12349
12513
  top: -0.2rem;
12350
12514
  right: -0.2rem;
12351
12515
  }
12352
12516
  body.mobile-keyboard-open .composer-workflow-mode-dock { display: none !important; }
12353
12517
  .composer-attach-button {
12354
- width: 2.55rem;
12355
- min-width: 2.55rem;
12356
- min-height: 38px;
12518
+ width: 44px;
12519
+ min-width: 44px;
12520
+ min-height: 44px;
12357
12521
  padding: 0.44rem;
12358
12522
  border-radius: 0.72rem;
12359
12523
  }
@@ -12409,7 +12573,7 @@ button.git-workflow-step { min-height: 1.9rem; }
12409
12573
  body.mobile-keyboard-open .composer-row button.primary,
12410
12574
  body.mobile-keyboard-open .composer-abort-button:not([hidden]) {
12411
12575
  grid-column: 1 / -1;
12412
- min-height: 40px;
12576
+ min-height: 44px;
12413
12577
  }
12414
12578
  .composer-actions-panel {
12415
12579
  position: absolute;
@@ -12443,14 +12607,14 @@ button.git-workflow-step { min-height: 1.9rem; }
12443
12607
  .spacer { display: none; }
12444
12608
  .composer-row button {
12445
12609
  width: 100%;
12446
- min-height: 40px;
12610
+ min-height: 44px;
12447
12611
  margin-right: 0;
12448
12612
  padding: 0.34rem 0.44rem;
12449
12613
  font-size: 0.78rem;
12450
12614
  }
12451
12615
  .composer-row button.primary {
12452
12616
  grid-column: 1 / -1;
12453
- min-height: 40px;
12617
+ min-height: 44px;
12454
12618
  font-size: 0.86rem;
12455
12619
  }
12456
12620
  body:not(.pi-run-active):not(.mobile-keyboard-open) .composer-row button.primary { grid-column: span 2; }
@@ -14315,10 +14479,550 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
14315
14479
  html[data-density="compact"] button,
14316
14480
  html[data-density="compact"] input,
14317
14481
  html[data-density="compact"] select { min-height: 2.25rem; }
14482
+ /* Intent superseded: on a phone or coarse pointer Compact density changes
14483
+ spacing, never the minimum 44px interactive hit area. */
14484
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
14485
+ html[data-density="compact"] button,
14486
+ html[data-density="compact"] input,
14487
+ html[data-density="compact"] select { min-height: 44px; }
14488
+ /* Phase 1 foundation only: final v2 layout rules must remain root-scoped. */
14489
+ html[data-mobile-shell="v2"] { --mobile-shell-v2-active: 1; }
14490
+ }
14318
14491
  html[data-density="compact"] .side-panel-section-content,
14319
14492
  html[data-density="compact"] .workspace-dashboard,
14320
14493
  html[data-density="compact"] .composer { padding-block: 0.5rem; }
14321
14494
 
14495
+ /* Mobile Experience v2 is strictly flag and phone scoped. Desktop and legacy
14496
+ mobile keep their existing layout because none of these selectors apply. */
14497
+ @media (max-width: 720px), (pointer: coarse) and (hover: none) and (max-height: 500px) and (max-width: 950px) {
14498
+ html[data-mobile-shell="v2"] .mobile-shell-v2 {
14499
+ position: fixed;
14500
+ inset: 0;
14501
+ z-index: 90;
14502
+ display: block;
14503
+ pointer-events: none;
14504
+ color: var(--ctp-text);
14505
+ }
14506
+ html[data-mobile-shell="v2"] .mobile-shell-v2[hidden],
14507
+ html[data-mobile-shell="v2"] .mobile-shell-surface[hidden],
14508
+ html[data-mobile-shell="v2"] .mobile-route[hidden] { display: none !important; }
14509
+ html[data-mobile-shell="v2"] .mobile-shell-appbar,
14510
+ html[data-mobile-shell="v2"] .mobile-shell-nav,
14511
+ html[data-mobile-shell="v2"] .mobile-shell-destination,
14512
+ html[data-mobile-shell="v2"] .mobile-shell-surface { pointer-events: auto; }
14513
+ html[data-mobile-shell="v2"] body.file-viewer-open .mobile-shell-appbar,
14514
+ html[data-mobile-shell="v2"] body.file-viewer-open .mobile-shell-nav,
14515
+ html[data-mobile-shell="v2"] body.file-viewer-open .mobile-shell-destination,
14516
+ html[data-mobile-shell="v2"] body.file-viewer-open .mobile-shell-surface { pointer-events: none; }
14517
+ html[data-mobile-shell="v2"] .terminal-tabs-shell,
14518
+ html[data-mobile-shell="v2"] .side-panel,
14519
+ html[data-mobile-shell="v2"] .side-panel-expand-button,
14520
+ html[data-mobile-shell="v2"] .side-panel-backdrop,
14521
+ html[data-mobile-shell="v2"] .terminal-split-shell { display: none !important; }
14522
+ html[data-mobile-shell="v2"] .layout {
14523
+ display: block;
14524
+ height: var(--visual-viewport-height, 100dvh);
14525
+ padding: 0;
14526
+ overflow: hidden;
14527
+ }
14528
+ html[data-mobile-shell="v2"] .chat-panel {
14529
+ height: 100%;
14530
+ visibility: visible;
14531
+ pointer-events: auto;
14532
+ border-radius: 0;
14533
+ box-shadow: none;
14534
+ background: var(--panel-gradient);
14535
+ }
14536
+ html[data-mobile-shell="v2"] .chat-panel::before { border-radius: 0; }
14537
+ html[data-mobile-shell="v2"] .workspace-dashboard,
14538
+ html[data-mobile-shell="v2"] .chat-search-bar { margin-inline: 0.75rem; }
14539
+ html[data-mobile-shell="v2"] .widget-area { margin: 0.15rem 0.75rem; }
14540
+ html[data-mobile-shell="v2"] .chat {
14541
+ padding: calc(5.4rem + env(safe-area-inset-top)) 0.75rem 0.8rem;
14542
+ scroll-padding-block-start: 5.75rem;
14543
+ }
14544
+ html[data-mobile-shell="v2"] .composer {
14545
+ padding: 0.65rem 0.75rem calc(4.8rem + env(safe-area-inset-bottom));
14546
+ background: linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.74), rgba(var(--ctp-crust-rgb), 0.96));
14547
+ }
14548
+ html[data-mobile-shell="v2"] .composer-actions-panel,
14549
+ html[data-mobile-shell="v2"] .composer-actions-panel.open { display: none !important; }
14550
+ html[data-mobile-shell="v2"] .composer-row {
14551
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
14552
+ gap: 0.42rem;
14553
+ }
14554
+ html[data-mobile-shell="v2"] .composer-row button.primary { grid-column: auto; }
14555
+ html[data-mobile-shell="v2"] .composer-row .composer-actions-button { grid-column: auto; }
14556
+ html[data-mobile-shell="v2"] .mobile-shell-appbar {
14557
+ position: fixed;
14558
+ z-index: 3;
14559
+ top: 0;
14560
+ right: 0;
14561
+ left: 0;
14562
+ display: grid;
14563
+ grid-template-columns: minmax(0, 1fr) auto auto;
14564
+ align-items: center;
14565
+ gap: 0.32rem;
14566
+ min-height: calc(76px + env(safe-area-inset-top));
14567
+ padding: calc(0.22rem + env(safe-area-inset-top)) 0.5rem 0.22rem;
14568
+ border-bottom: 1px solid rgba(180, 190, 254, 0.2);
14569
+ background: rgba(var(--ctp-mantle-rgb), 0.97);
14570
+ backdrop-filter: blur(18px) saturate(145%);
14571
+ }
14572
+ html[data-mobile-shell="v2"] .mobile-shell-session-button,
14573
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button,
14574
+ html[data-mobile-shell="v2"] .mobile-shell-nav button,
14575
+ html[data-mobile-shell="v2"] .mobile-route button,
14576
+ html[data-mobile-shell="v2"] .mobile-shell-surface button { min-height: 44px; }
14577
+ html[data-mobile-shell="v2"] .mobile-shell-session-button {
14578
+ display: flex;
14579
+ align-items: center;
14580
+ gap: 0.42rem;
14581
+ min-width: 0;
14582
+ padding: 0.34rem 0.45rem;
14583
+ overflow: hidden;
14584
+ color: var(--ctp-text);
14585
+ text-align: left;
14586
+ background: transparent;
14587
+ border-color: transparent;
14588
+ }
14589
+ html[data-mobile-shell="v2"] #mobileSessionTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
14590
+ html[data-mobile-shell="v2"] #mobileSessionStatus { color: var(--ctp-teal); font-weight: 950; }
14591
+ html[data-mobile-shell="v2"] .mobile-shell-indicators {
14592
+ grid-column: 1 / -1;
14593
+ display: flex;
14594
+ gap: 0.3rem;
14595
+ min-width: 0;
14596
+ overflow-x: auto;
14597
+ scrollbar-width: none;
14598
+ }
14599
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button { padding-inline: 0.55rem; font-size: var(--text-xs); }
14600
+ html[data-mobile-shell="v2"] .mobile-shell-nav {
14601
+ position: fixed;
14602
+ z-index: 4;
14603
+ right: 0;
14604
+ bottom: 0;
14605
+ left: 0;
14606
+ display: grid;
14607
+ grid-template-columns: repeat(4, minmax(0, 1fr));
14608
+ min-height: calc(58px + env(safe-area-inset-bottom));
14609
+ padding: 0.2rem 0.28rem calc(0.2rem + env(safe-area-inset-bottom));
14610
+ border-top: 1px solid rgba(180, 190, 254, 0.24);
14611
+ background: rgba(var(--ctp-mantle-rgb), 0.98);
14612
+ backdrop-filter: blur(18px) saturate(145%);
14613
+ }
14614
+ html[data-mobile-shell="v2"] .mobile-shell-nav button {
14615
+ position: relative;
14616
+ display: grid;
14617
+ place-items: center;
14618
+ align-content: center;
14619
+ gap: 0.08rem;
14620
+ min-width: 0;
14621
+ padding: 0.2rem;
14622
+ border-color: transparent;
14623
+ border-radius: 0.7rem;
14624
+ color: rgba(var(--ctp-subtext-rgb), 0.92);
14625
+ background: transparent;
14626
+ font-size: 0.75rem;
14627
+ font-weight: 800;
14628
+ }
14629
+ html[data-mobile-shell="v2"] .mobile-shell-nav button.is-selected {
14630
+ color: var(--ctp-teal);
14631
+ background: rgba(148, 226, 213, 0.14);
14632
+ box-shadow: inset 0 0 0 1px rgba(148, 226, 213, 0.28);
14633
+ }
14634
+ html[data-mobile-shell="v2"] .mobile-nav-badge {
14635
+ position: absolute;
14636
+ top: 0.1rem;
14637
+ right: max(0.3rem, calc(50% - 1.35rem));
14638
+ display: grid;
14639
+ min-width: 1.15rem;
14640
+ min-height: 1.15rem;
14641
+ place-items: center;
14642
+ padding-inline: 0.2rem;
14643
+ border-radius: 999px;
14644
+ color: var(--ctp-crust);
14645
+ background: var(--ctp-peach);
14646
+ font-size: 0.75rem;
14647
+ font-variant-numeric: tabular-nums;
14648
+ }
14649
+ html[data-mobile-shell="v2"] .mobile-shell-destination:not(.mobile-chat-route) {
14650
+ position: fixed;
14651
+ z-index: 2;
14652
+ inset: 0;
14653
+ display: block;
14654
+ padding: calc(5.3rem + env(safe-area-inset-top)) 0.75rem calc(4.8rem + env(safe-area-inset-bottom));
14655
+ overflow: hidden;
14656
+ background: var(--ctp-base);
14657
+ }
14658
+ html[data-mobile-shell="v2"] .mobile-shell-destination.mobile-chat-route { display: none; }
14659
+ html[data-mobile-shell="v2"] .mobile-route {
14660
+ height: 100%;
14661
+ overflow: auto;
14662
+ overscroll-behavior: contain;
14663
+ scroll-padding-block: 0.75rem;
14664
+ }
14665
+ html[data-mobile-shell="v2"] .mobile-route-header,
14666
+ html[data-mobile-shell="v2"] .mobile-surface-header {
14667
+ position: sticky;
14668
+ z-index: 2;
14669
+ top: 0;
14670
+ display: flex;
14671
+ align-items: center;
14672
+ justify-content: space-between;
14673
+ gap: 0.5rem;
14674
+ min-height: 52px;
14675
+ padding: 0.2rem 0 0.5rem;
14676
+ background: var(--ctp-base);
14677
+ }
14678
+ html[data-mobile-shell="v2"] .mobile-route-header h1,
14679
+ html[data-mobile-shell="v2"] .mobile-surface-header h1 { margin: 0; font-size: 1.1rem; }
14680
+ html[data-mobile-shell="v2"] .mobile-route-header h1:focus,
14681
+ html[data-mobile-shell="v2"] .mobile-surface-header h1:focus { outline: none; }
14682
+ html[data-mobile-shell="v2"] .mobile-session-actions,
14683
+ html[data-mobile-shell="v2"] .mobile-project-workflow-actions,
14684
+ html[data-mobile-shell="v2"] .mobile-activity-actions,
14685
+ html[data-mobile-shell="v2"] .mobile-presentation-choices { display: flex; flex-wrap: wrap; gap: 0.42rem; }
14686
+ html[data-mobile-shell="v2"] .mobile-session-actions > *,
14687
+ html[data-mobile-shell="v2"] .mobile-project-workflow-actions > * { flex: 1 1 8rem; }
14688
+ html[data-mobile-shell="v2"] .mobile-search-field {
14689
+ display: grid;
14690
+ gap: 0.22rem;
14691
+ margin: 0.75rem 0;
14692
+ color: var(--ctp-subtext);
14693
+ font-size: var(--text-xs);
14694
+ font-weight: 800;
14695
+ }
14696
+ html[data-mobile-shell="v2"] .mobile-search-field input { min-height: 44px; }
14697
+ html[data-mobile-shell="v2"] .mobile-route-status { margin: 0.45rem 0 0.7rem; }
14698
+ html[data-mobile-shell="v2"] .mobile-session-group,
14699
+ html[data-mobile-shell="v2"] .mobile-activity-group,
14700
+ html[data-mobile-shell="v2"] .mobile-more-presentation {
14701
+ margin: 0.7rem 0;
14702
+ border: 1px solid rgba(180, 190, 254, 0.18);
14703
+ border-radius: 0.85rem;
14704
+ background: rgba(var(--ctp-surface-rgb), 0.42);
14705
+ }
14706
+ html[data-mobile-shell="v2"] .mobile-session-group-heading {
14707
+ margin: 0;
14708
+ padding: 0.55rem 0.68rem;
14709
+ color: var(--ctp-subtext);
14710
+ font-size: var(--text-xs);
14711
+ letter-spacing: 0.07em;
14712
+ text-transform: uppercase;
14713
+ }
14714
+ html[data-mobile-shell="v2"] .mobile-session-row {
14715
+ display: grid;
14716
+ grid-template-columns: minmax(0, 1fr) auto;
14717
+ gap: 0.35rem;
14718
+ align-items: center;
14719
+ padding: 0.28rem;
14720
+ border-top: 1px solid rgba(180, 190, 254, 0.12);
14721
+ }
14722
+ html[data-mobile-shell="v2"] .mobile-session-select {
14723
+ display: grid;
14724
+ grid-template-columns: auto minmax(0, 1fr);
14725
+ gap: 0.55rem;
14726
+ align-items: center;
14727
+ min-width: 0;
14728
+ padding: 0.42rem;
14729
+ text-align: left;
14730
+ border-color: transparent;
14731
+ background: transparent;
14732
+ }
14733
+ html[data-mobile-shell="v2"] .mobile-session-row.is-active .mobile-session-select { border-color: rgba(137, 180, 250, 0.5); background: rgba(137, 180, 250, 0.1); }
14734
+ html[data-mobile-shell="v2"] .mobile-session-copy { display: grid; min-width: 0; gap: 0.12rem; }
14735
+ html[data-mobile-shell="v2"] .mobile-session-copy strong,
14736
+ html[data-mobile-shell="v2"] .mobile-session-copy .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
14737
+ html[data-mobile-shell="v2"] .mobile-state-glyph { font-size: 1rem; font-weight: 950; color: var(--ctp-teal); }
14738
+ html[data-mobile-shell="v2"] .is-blocked .mobile-state-glyph { color: var(--ctp-yellow); }
14739
+ html[data-mobile-shell="v2"] .is-failed .mobile-state-glyph { color: var(--ctp-red); }
14740
+ html[data-mobile-shell="v2"] .mobile-row-action { min-width: 44px; padding-inline: 0.5rem; font-size: var(--text-xs); }
14741
+ html[data-mobile-shell="v2"] .mobile-activity-item { padding: 0.7rem; border-top: 1px solid rgba(180, 190, 254, 0.12); }
14742
+ html[data-mobile-shell="v2"] .mobile-activity-item p { margin: 0.22rem 0 0.55rem; }
14743
+ html[data-mobile-shell="v2"] .mobile-topic-tabs {
14744
+ position: sticky;
14745
+ z-index: 1;
14746
+ top: 52px;
14747
+ display: grid;
14748
+ grid-template-columns: repeat(4, minmax(0, 1fr));
14749
+ gap: 0.26rem;
14750
+ padding: 0.35rem 0;
14751
+ overflow-x: auto;
14752
+ background: var(--ctp-base);
14753
+ }
14754
+ html[data-mobile-shell="v2"] .mobile-topic-tabs button { min-width: 44px; padding-inline: 0.28rem; font-size: var(--text-xs); }
14755
+ html[data-mobile-shell="v2"] .mobile-topic-tabs button[aria-selected="true"] { border-color: var(--ctp-teal); color: var(--ctp-teal); }
14756
+ html[data-mobile-shell="v2"] .mobile-canonical-host {
14757
+ min-width: 0;
14758
+ padding-bottom: 0.75rem;
14759
+ }
14760
+ html[data-mobile-shell="v2"] .mobile-canonical-host > .side-panel-section-content {
14761
+ display: block !important;
14762
+ padding: 0.35rem 0;
14763
+ overflow: visible;
14764
+ border: 0;
14765
+ background: transparent;
14766
+ }
14767
+ html[data-mobile-shell="v2"] .mobile-canonical-host .file-tree,
14768
+ html[data-mobile-shell="v2"] .mobile-canonical-host .git-side-panel-groups,
14769
+ html[data-mobile-shell="v2"] .mobile-canonical-host .queue-box,
14770
+ html[data-mobile-shell="v2"] .mobile-canonical-host .event-log { max-height: none; }
14771
+ html[data-mobile-shell="v2"] .mobile-shell-surface {
14772
+ position: fixed;
14773
+ z-index: 8;
14774
+ inset: 0;
14775
+ display: flex;
14776
+ flex-direction: column;
14777
+ padding: calc(0.32rem + env(safe-area-inset-top)) 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
14778
+ overflow: hidden;
14779
+ background: var(--ctp-base);
14780
+ }
14781
+ html[data-mobile-shell="v2"] .mobile-surface-header { flex: 0 0 auto; padding-top: 0; }
14782
+ html[data-mobile-shell="v2"] .mobile-surface-root,
14783
+ html[data-mobile-shell="v2"] .mobile-shell-surface > .mobile-canonical-host {
14784
+ min-height: 0;
14785
+ overflow: auto;
14786
+ overscroll-behavior: contain;
14787
+ }
14788
+ html[data-mobile-shell="v2"] .mobile-surface-root { display: grid; align-content: start; gap: 0.42rem; }
14789
+ html[data-mobile-shell="v2"] .mobile-more-topic { width: 100%; text-align: left; }
14790
+ html[data-mobile-shell="v2"] .mobile-more-presentation { padding: 0.72rem; }
14791
+ html[data-mobile-shell="v2"] .mobile-context-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.42rem; }
14792
+ html[data-mobile-shell="v2"] .mobile-paste-context-label { display: grid; gap: 0.35rem; font-weight: 800; }
14793
+ html[data-mobile-shell="v2"] .mobile-paste-context-text { min-height: 8rem; resize: vertical; }
14794
+ html[data-mobile-shell="v2"] .mobile-diagnostics-preview { max-height: 16rem; overflow: auto; white-space: pre-wrap; font-size: 0.75rem; }
14795
+ html[data-mobile-shell="v2"] .mobile-continuity-notice {
14796
+ position: fixed;
14797
+ z-index: 7;
14798
+ top: calc(5.25rem + env(safe-area-inset-top));
14799
+ right: 0.75rem;
14800
+ left: 0.75rem;
14801
+ margin: 0;
14802
+ padding: 0.55rem 0.7rem;
14803
+ border: 1px solid rgba(249, 226, 175, 0.55);
14804
+ border-radius: 0.7rem;
14805
+ background: rgba(var(--ctp-mantle-rgb), 0.98);
14806
+ font-size: var(--text-xs);
14807
+ }
14808
+ html[data-mobile-shell="v2"] .mobile-failed-send-recovery {
14809
+ display: grid;
14810
+ grid-template-columns: minmax(0, 1fr) auto auto;
14811
+ gap: 0.4rem;
14812
+ align-items: center;
14813
+ padding: 0.48rem;
14814
+ border: 1px solid var(--ctp-red);
14815
+ border-radius: 0.7rem;
14816
+ background: rgba(var(--ctp-red-rgb), 0.12);
14817
+ }
14818
+ html[data-mobile-shell="v2"] .mobile-failed-send-recovery[hidden] { display: none !important; }
14819
+ html[data-mobile-shell="v2"] .attachment-pill.requires-reselect { border-color: var(--ctp-yellow); }
14820
+ html[data-mobile-shell="v2"] .mobile-more-presentation h2,
14821
+ html[data-mobile-shell="v2"] .mobile-more-presentation p { margin: 0 0 0.48rem; }
14822
+ html[data-mobile-shell="v2"] .mobile-indicator { display: inline-flex; min-height: 1.35rem; align-items: center; padding: 0.08rem 0.38rem; border-radius: 999px; font-size: 0.75rem; font-weight: 900; }
14823
+ html[data-mobile-shell="v2"] .mobile-indicator.warning { color: var(--ctp-crust); background: var(--ctp-yellow); }
14824
+ html[data-mobile-shell="v2"] .mobile-indicator.error { color: var(--ctp-base); background: var(--ctp-red); }
14825
+ html[data-mobile-shell="v2"] .file-viewer-pane {
14826
+ position: fixed;
14827
+ z-index: 101;
14828
+ inset: 0;
14829
+ width: auto;
14830
+ height: 100dvh;
14831
+ border-radius: 0;
14832
+ }
14833
+ html[data-mobile-shell="v2"] .file-viewer-resize-handle { display: none; }
14834
+ html[data-mobile-shell="v2"][data-mobile-presentation="essential"] .message.toolResult:not(.error) .message-collapse:not([open]) > .message-body,
14835
+ html[data-mobile-shell="v2"][data-mobile-presentation="essential"] .message.bashExecution:not(.error) .message-collapse:not([open]) > .message-body,
14836
+ html[data-mobile-shell="v2"][data-mobile-presentation="essential"] .message.toolExecution details:not([open]) > :not(summary),
14837
+ html[data-mobile-shell="v2"][data-mobile-presentation="essential"] .thinking-block:not([open]) > :not(summary) { display: none; }
14838
+ html[data-mobile-shell="v2"] .message .message-collapse > summary,
14839
+ html[data-mobile-shell="v2"] .thinking-block > summary { min-height: 44px; }
14840
+ html[data-mobile-shell="v2"] .jump-to-latest-button { bottom: calc(7.3rem + env(safe-area-inset-bottom)); }
14841
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .mobile-shell-nav { display: none; }
14842
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .widget-area,
14843
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .statusbar { display: grid !important; }
14844
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .composer-actions-button { display: block !important; }
14845
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .composer { padding-bottom: calc(0.65rem + env(safe-area-inset-bottom)); }
14846
+ html[data-mobile-shell="v2"] :focus-visible { outline: 3px solid var(--ctp-yellow); outline-offset: 2px; }
14847
+ }
14848
+ @media (prefers-reduced-motion: reduce) {
14849
+ html[data-mobile-shell="v2"] .mobile-shell-v2 *,
14850
+ html[data-mobile-shell="v2"] .mobile-shell-v2 *::before,
14851
+ html[data-mobile-shell="v2"] .mobile-shell-v2 *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
14852
+ }
14853
+ @media (forced-colors: active) {
14854
+ html[data-mobile-shell="v2"] .mobile-shell-nav button.is-selected,
14855
+ html[data-mobile-shell="v2"] .mobile-session-row.is-active .mobile-session-select,
14856
+ html[data-mobile-shell="v2"] .mobile-topic-tabs button[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; forced-color-adjust: auto; }
14857
+ html[data-mobile-shell="v2"] .mobile-nav-badge { border: 1px solid CanvasText; }
14858
+ }
14859
+
14860
+ /* Tablet Experience v2 has a separate flag and medium-width architecture.
14861
+ Width selects the rail/sheet layout; pointer capability changes hit sizing. */
14862
+ @media (min-width: 721px) and (max-width: 1050px) {
14863
+ html[data-tablet-shell="v2"] .mobile-shell-v2 {
14864
+ position: fixed;
14865
+ inset: 0;
14866
+ z-index: 90;
14867
+ display: block;
14868
+ pointer-events: none;
14869
+ color: var(--ctp-text);
14870
+ }
14871
+ html[data-tablet-shell="v2"] .mobile-shell-v2[hidden],
14872
+ html[data-tablet-shell="v2"] .mobile-shell-surface[hidden],
14873
+ html[data-tablet-shell="v2"] .mobile-route[hidden],
14874
+ html[data-tablet-shell="v2"] .mobile-failed-send-recovery[hidden] { display: none !important; }
14875
+ html[data-tablet-shell="v2"] .mobile-shell-appbar,
14876
+ html[data-tablet-shell="v2"] .mobile-shell-nav,
14877
+ html[data-tablet-shell="v2"] .mobile-shell-destination,
14878
+ html[data-tablet-shell="v2"] .mobile-shell-surface { pointer-events: auto; }
14879
+ html[data-tablet-shell="v2"] body.file-viewer-open .mobile-shell-appbar,
14880
+ html[data-tablet-shell="v2"] body.file-viewer-open .mobile-shell-nav,
14881
+ html[data-tablet-shell="v2"] body.file-viewer-open .mobile-shell-destination,
14882
+ html[data-tablet-shell="v2"] body.file-viewer-open .mobile-shell-surface { pointer-events: none; }
14883
+ html[data-tablet-shell="v2"] .terminal-tabs-shell,
14884
+ html[data-tablet-shell="v2"] .side-panel,
14885
+ html[data-tablet-shell="v2"] .side-panel-expand-button,
14886
+ html[data-tablet-shell="v2"] .side-panel-backdrop,
14887
+ html[data-tablet-shell="v2"] .terminal-split-shell { display: none !important; }
14888
+ html[data-tablet-shell="v2"] .layout {
14889
+ display: block;
14890
+ height: var(--visual-viewport-height, 100dvh);
14891
+ margin-left: 7rem;
14892
+ padding: 0;
14893
+ overflow: hidden;
14894
+ }
14895
+ html[data-tablet-shell="v2"] .chat-panel { height: 100%; visibility: visible; pointer-events: auto; border-radius: 0; box-shadow: none; }
14896
+ html[data-tablet-shell="v2"] .chat-panel::before { border-radius: 0; }
14897
+ html[data-tablet-shell="v2"] .chat { padding: calc(4rem + env(safe-area-inset-top)) 1rem 1rem; }
14898
+ html[data-tablet-shell="v2"] .composer { padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); }
14899
+ html[data-tablet-shell="v2"] .composer-actions-panel,
14900
+ html[data-tablet-shell="v2"] .composer-actions-panel.open { display: none !important; }
14901
+ html[data-tablet-shell="v2"] .mobile-shell-appbar {
14902
+ position: fixed;
14903
+ z-index: 4;
14904
+ top: 0;
14905
+ right: 0;
14906
+ left: 7rem;
14907
+ display: grid;
14908
+ grid-template-columns: minmax(12rem, 1fr) minmax(0, 1fr) auto auto;
14909
+ align-items: center;
14910
+ gap: 0.45rem;
14911
+ min-height: calc(56px + env(safe-area-inset-top));
14912
+ padding: calc(0.3rem + env(safe-area-inset-top)) 0.75rem 0.3rem;
14913
+ border-bottom: 1px solid rgba(180, 190, 254, 0.2);
14914
+ background: rgba(var(--ctp-mantle-rgb), 0.97);
14915
+ }
14916
+ html[data-tablet-shell="v2"] .mobile-shell-session-button { display: flex; align-items: center; gap: 0.45rem; min-width: 0; overflow: hidden; text-align: left; background: transparent; border-color: transparent; }
14917
+ html[data-tablet-shell="v2"] #mobileSessionTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
14918
+ html[data-tablet-shell="v2"] .mobile-shell-indicators { display: flex; gap: 0.3rem; min-width: 0; overflow-x: auto; }
14919
+ html[data-tablet-shell="v2"] .mobile-shell-nav {
14920
+ position: fixed;
14921
+ z-index: 5;
14922
+ inset: 0 auto 0 0;
14923
+ display: grid;
14924
+ grid-auto-rows: minmax(64px, max-content);
14925
+ align-content: start;
14926
+ gap: 0.45rem;
14927
+ width: 7rem;
14928
+ padding: calc(0.75rem + env(safe-area-inset-top)) 0.55rem calc(0.75rem + env(safe-area-inset-bottom));
14929
+ border-right: 1px solid rgba(180, 190, 254, 0.22);
14930
+ background: rgba(var(--ctp-mantle-rgb), 0.98);
14931
+ }
14932
+ html[data-tablet-shell="v2"] .mobile-shell-nav button {
14933
+ position: relative;
14934
+ display: grid;
14935
+ place-items: center;
14936
+ gap: 0.15rem;
14937
+ min-width: 0;
14938
+ padding: 0.55rem 0.3rem;
14939
+ color: var(--ctp-subtext);
14940
+ border-color: transparent;
14941
+ background: transparent;
14942
+ font-size: 0.78rem;
14943
+ font-weight: 850;
14944
+ }
14945
+ html[data-tablet-shell="v2"] .mobile-shell-nav button.is-selected { color: var(--ctp-teal); border-color: rgba(148, 226, 213, 0.38); background: rgba(148, 226, 213, 0.12); }
14946
+ html[data-tablet-shell="v2"] .mobile-nav-badge { position: absolute; top: 0.3rem; right: 0.5rem; min-width: 1.2rem; padding: 0.1rem 0.25rem; border-radius: 999px; color: var(--ctp-crust); background: var(--ctp-peach); }
14947
+ html[data-tablet-shell="v2"] .mobile-shell-destination:not(.mobile-chat-route) {
14948
+ position: fixed;
14949
+ z-index: 3;
14950
+ inset: 0 0 0 7rem;
14951
+ display: block;
14952
+ padding: calc(4.2rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
14953
+ overflow: hidden;
14954
+ background: var(--ctp-base);
14955
+ }
14956
+ html[data-tablet-shell="v2"] .mobile-shell-destination.mobile-chat-route { display: none; }
14957
+ html[data-tablet-shell="v2"] .mobile-route { height: 100%; overflow: auto; overscroll-behavior: contain; }
14958
+ html[data-tablet-shell="v2"] .mobile-route-header,
14959
+ html[data-tablet-shell="v2"] .mobile-surface-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 52px; padding: 0.25rem 0 0.55rem; background: var(--ctp-base); }
14960
+ html[data-tablet-shell="v2"] .mobile-route-header h1,
14961
+ html[data-tablet-shell="v2"] .mobile-surface-header h1 { margin: 0; font-size: 1.2rem; }
14962
+ html[data-tablet-shell="v2"] .mobile-session-actions,
14963
+ html[data-tablet-shell="v2"] .mobile-project-workflow-actions,
14964
+ html[data-tablet-shell="v2"] .mobile-activity-actions,
14965
+ html[data-tablet-shell="v2"] .mobile-presentation-choices,
14966
+ html[data-tablet-shell="v2"] .mobile-context-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
14967
+ html[data-tablet-shell="v2"] .mobile-search-field,
14968
+ html[data-tablet-shell="v2"] .mobile-paste-context-label { display: grid; gap: 0.3rem; margin: 0.65rem 0; font-weight: 800; }
14969
+ html[data-tablet-shell="v2"] .mobile-route-status { margin: 0.45rem 0 0.7rem; }
14970
+ html[data-tablet-shell="v2"] .mobile-session-group,
14971
+ html[data-tablet-shell="v2"] .mobile-activity-group,
14972
+ html[data-tablet-shell="v2"] .mobile-more-presentation { margin: 0.75rem 0; border: 1px solid rgba(180, 190, 254, 0.18); border-radius: 0.85rem; background: rgba(var(--ctp-surface-rgb), 0.42); }
14973
+ html[data-tablet-shell="v2"] .mobile-session-group-heading { margin: 0; padding: 0.55rem 0.7rem; color: var(--ctp-subtext); font-size: var(--text-xs); text-transform: uppercase; }
14974
+ html[data-tablet-shell="v2"] .mobile-session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; align-items: center; padding: 0.3rem; border-top: 1px solid rgba(180, 190, 254, 0.12); }
14975
+ html[data-tablet-shell="v2"] .mobile-session-select { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55rem; align-items: center; min-width: 0; text-align: left; border-color: transparent; background: transparent; }
14976
+ html[data-tablet-shell="v2"] .mobile-session-copy { display: grid; min-width: 0; }
14977
+ html[data-tablet-shell="v2"] .mobile-session-copy > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
14978
+ html[data-tablet-shell="v2"] .mobile-activity-item { padding: 0.75rem; border-top: 1px solid rgba(180, 190, 254, 0.12); }
14979
+ html[data-tablet-shell="v2"] .mobile-topic-tabs { position: sticky; z-index: 1; top: 52px; display: flex; gap: 0.4rem; padding: 0.4rem 0; overflow-x: auto; background: var(--ctp-base); }
14980
+ html[data-tablet-shell="v2"] .mobile-topic-tabs button[aria-selected="true"] { color: var(--ctp-teal); border-color: var(--ctp-teal); }
14981
+ html[data-tablet-shell="v2"] .mobile-canonical-host > .side-panel-section-content { display: block !important; padding: 0.4rem 0; overflow: visible; border: 0; background: transparent; }
14982
+ html[data-tablet-shell="v2"] .mobile-canonical-host .file-tree,
14983
+ html[data-tablet-shell="v2"] .mobile-canonical-host .git-side-panel-groups,
14984
+ html[data-tablet-shell="v2"] .mobile-canonical-host .queue-box,
14985
+ html[data-tablet-shell="v2"] .mobile-canonical-host .event-log { max-height: none; }
14986
+ html[data-tablet-shell="v2"] .mobile-shell-surface {
14987
+ position: fixed;
14988
+ z-index: 12;
14989
+ top: 0;
14990
+ right: 0;
14991
+ bottom: 0;
14992
+ display: flex;
14993
+ flex-direction: column;
14994
+ width: min(30rem, 72vw);
14995
+ padding: calc(0.45rem + env(safe-area-inset-top)) 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
14996
+ overflow: hidden;
14997
+ border-left: 1px solid rgba(180, 190, 254, 0.28);
14998
+ background: var(--ctp-base);
14999
+ box-shadow: -1rem 0 3rem rgba(var(--ctp-crust-rgb), 0.5);
15000
+ }
15001
+ html[data-tablet-shell="v2"] .mobile-surface-root,
15002
+ html[data-tablet-shell="v2"] .mobile-shell-surface > .mobile-canonical-host { min-height: 0; overflow: auto; overscroll-behavior: contain; }
15003
+ html[data-tablet-shell="v2"] .mobile-surface-root { display: grid; align-content: start; gap: 0.45rem; }
15004
+ html[data-tablet-shell="v2"] .mobile-more-topic { width: 100%; text-align: left; }
15005
+ html[data-tablet-shell="v2"] .mobile-more-presentation { padding: 0.75rem; }
15006
+ html[data-tablet-shell="v2"] .mobile-paste-context-text { min-height: 9rem; resize: vertical; }
15007
+ html[data-tablet-shell="v2"] .mobile-diagnostics-preview { max-height: 18rem; overflow: auto; white-space: pre-wrap; font-size: 0.76rem; }
15008
+ html[data-tablet-shell="v2"] .mobile-continuity-notice { position: fixed; z-index: 11; top: calc(4.2rem + env(safe-area-inset-top)); right: 1rem; width: min(30rem, calc(100vw - 9rem)); margin: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--ctp-yellow); border-radius: 0.7rem; background: var(--ctp-mantle); }
15009
+ html[data-tablet-shell="v2"] .mobile-failed-send-recovery { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.45rem; align-items: center; padding: 0.5rem; border: 1px solid var(--ctp-red); border-radius: 0.7rem; background: rgba(var(--ctp-red-rgb), 0.12); }
15010
+ html[data-tablet-shell="v2"] .mobile-indicator { display: inline-flex; align-items: center; padding: 0.15rem 0.4rem; border-radius: 999px; font-size: 0.75rem; font-weight: 850; }
15011
+ html[data-tablet-shell="v2"] .mobile-indicator.warning { color: var(--ctp-crust); background: var(--ctp-yellow); }
15012
+ html[data-tablet-shell="v2"] .mobile-indicator.error { color: var(--ctp-base); background: var(--ctp-red); }
15013
+ html[data-tablet-shell="v2"] .file-viewer-pane { position: fixed; z-index: 101; inset: 0; width: auto; height: 100dvh; border-radius: 0; }
15014
+ html[data-tablet-shell="v2"] .file-viewer-resize-handle { display: none; }
15015
+ html[data-tablet-shell="v2"] body.mobile-keyboard-open .widget-area,
15016
+ html[data-tablet-shell="v2"] body.mobile-keyboard-open .statusbar { display: grid !important; }
15017
+ html[data-tablet-shell="v2"] body.mobile-keyboard-open .composer-actions-button { display: block !important; }
15018
+ html[data-tablet-shell="v2"] :focus-visible { outline: 3px solid var(--ctp-yellow); outline-offset: 2px; }
15019
+ }
15020
+ @media (min-width: 721px) and (max-width: 1050px) and (pointer: coarse) {
15021
+ html[data-tablet-shell="v2"] button,
15022
+ html[data-tablet-shell="v2"] input,
15023
+ html[data-tablet-shell="v2"] select { min-height: 44px; }
15024
+ }
15025
+
14322
15026
  .remote-access-indicator {
14323
15027
  flex: 0 0 auto;
14324
15028
  padding: 0.5rem 0.7rem;