@firstpick/pi-package-webui 0.8.8 → 0.9.0

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 (44) hide show
  1. package/README.md +12 -0
  2. package/bin/pi-webui-rpc-supervisor.mjs +4 -1
  3. package/bin/pi-webui.mjs +15 -3
  4. package/lib/rpc-supervisor-protocol.mjs +6 -1
  5. package/package.json +1 -1
  6. package/public/app.js +659 -150
  7. package/public/index.html +28 -13
  8. package/public/service-worker.js +1 -1
  9. package/public/styles.css +789 -23
  10. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  11. package/tests/browser/interaction-continuity.spec.mjs +120 -0
  12. package/tests/browser/mobile-foundation.spec.mjs +363 -5
  13. package/tests/browser/optimistic-prompt.spec.mjs +24 -10
  14. package/tests/browser/persistent-ui-layout.spec.mjs +2 -0
  15. package/tests/browser/search-match-highlighting.spec.mjs +104 -0
  16. package/tests/browser/side-panel-section-reorder.spec.mjs +16 -1
  17. package/tests/codex-fast-mode-static.test.mjs +2 -2
  18. package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
  19. package/tests/fast-mode-client-static.test.mjs +1 -1
  20. package/tests/feature-decision-output-popup-static.test.mjs +2 -2
  21. package/tests/file-tree-search-layout-static.test.mjs +261 -0
  22. package/tests/file-viewer-search-static.test.mjs +7 -2
  23. package/tests/fixtures/fake-pi.mjs +4 -1
  24. package/tests/foreground-transcript-catch-up-static.test.mjs +91 -0
  25. package/tests/http-endpoints-harness.test.mjs +35 -2
  26. package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
  27. package/tests/mobile-compact-layout.test.mjs +60 -0
  28. package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
  29. package/tests/mobile-foundation-static.test.mjs +12 -12
  30. package/tests/mobile-phone-experience-static.test.mjs +2 -2
  31. package/tests/mobile-static.test.mjs +39 -20
  32. package/tests/open-issue-wizard-static.test.mjs +1 -1
  33. package/tests/persistent-ui-layout-static.test.mjs +3 -3
  34. package/tests/questionnaire-dialog.test.mjs +3 -3
  35. package/tests/rpc-supervisor-host.test.mjs +18 -1
  36. package/tests/rpc-supervisor-protocol.test.mjs +5 -0
  37. package/tests/search-match-highlighting-static.test.mjs +27 -0
  38. package/tests/session-sampling-ui-static.test.mjs +3 -3
  39. package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
  40. package/tests/side-panel-section-reorder-static.test.mjs +23 -10
  41. package/tests/stream-output-isolation-static.test.mjs +1 -1
  42. package/tests/streaming-ui-coupling.test.mjs +8 -0
  43. package/tests/terminal-tab-workspace-static.test.mjs +15 -1
  44. package/tests/theme-customizer-static.test.mjs +1 -1
package/public/styles.css CHANGED
@@ -270,7 +270,7 @@ textarea {
270
270
  textarea::placeholder { color: rgba(var(--ctp-subtext-rgb), 0.62); }
271
271
  #promptInput {
272
272
  min-height: calc(1.5em + 1.8rem);
273
- max-height: min(38vh, 18rem);
273
+ max-height: min(25vh, 10rem);
274
274
  resize: none;
275
275
  overflow-y: hidden;
276
276
  }
@@ -940,6 +940,7 @@ body.side-panel-resizing * {
940
940
  .file-viewer-editor,
941
941
  .file-viewer-preview,
942
942
  .file-viewer-changes {
943
+ grid-area: 1 / 1;
943
944
  width: 100%;
944
945
  height: 100%;
945
946
  min-width: 0;
@@ -950,6 +951,8 @@ body.side-panel-resizing * {
950
951
  background: rgba(var(--ctp-crust-rgb), 0.64);
951
952
  }
952
953
  .file-viewer-editor {
954
+ position: relative;
955
+ z-index: 1;
953
956
  resize: none;
954
957
  padding: 0.72rem;
955
958
  overflow-x: hidden;
@@ -960,6 +963,37 @@ body.side-panel-resizing * {
960
963
  line-height: 1.45;
961
964
  white-space: pre-wrap;
962
965
  }
966
+ .file-viewer-search-overlay {
967
+ grid-area: 1 / 1;
968
+ z-index: 0;
969
+ box-sizing: border-box;
970
+ width: 100%;
971
+ height: 100%;
972
+ min-width: 0;
973
+ min-height: 0;
974
+ margin: 0;
975
+ padding: 0.72rem;
976
+ overflow: auto;
977
+ border: 1px solid rgba(180, 190, 254, 0.16);
978
+ border-radius: 0.86rem;
979
+ background: rgba(var(--ctp-crust-rgb), 0.64);
980
+ color: transparent;
981
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
982
+ font-size: 0.82rem;
983
+ line-height: 1.45;
984
+ overflow-wrap: anywhere;
985
+ pointer-events: none;
986
+ scrollbar-width: none;
987
+ white-space: pre-wrap;
988
+ }
989
+ .file-viewer-search-overlay::-webkit-scrollbar { display: none; }
990
+ .file-viewer-content.search-highlights-source .file-viewer-editor { background: transparent; }
991
+ .file-viewer-search-match {
992
+ border-radius: 0.12rem;
993
+ background: rgba(249, 226, 175, 0.48);
994
+ color: transparent;
995
+ }
996
+ .file-viewer-search-match.current { background: rgba(250, 179, 135, 0.78); }
963
997
  .file-viewer-preview {
964
998
  padding: 0.85rem;
965
999
  line-height: 1.55;
@@ -1110,6 +1144,39 @@ body.embedded-split .side-panel-backdrop {
1110
1144
  font-size: 1rem;
1111
1145
  line-height: 1.25;
1112
1146
  }
1147
+ .side-panel-edit-hint {
1148
+ margin-top: 0.24rem;
1149
+ color: var(--ctp-teal);
1150
+ font-size: var(--text-xs);
1151
+ font-weight: 760;
1152
+ line-height: 1.2;
1153
+ }
1154
+ .side-panel-edit-hint[hidden] { display: none; }
1155
+ .side-panel-header-actions {
1156
+ display: flex;
1157
+ flex: 0 0 auto;
1158
+ align-items: center;
1159
+ gap: 0.42rem;
1160
+ }
1161
+ .side-panel-edit-button {
1162
+ display: none;
1163
+ align-items: center;
1164
+ justify-content: center;
1165
+ gap: 0.28rem;
1166
+ min-width: 0;
1167
+ padding: 0.34rem 0.52rem;
1168
+ color: var(--ctp-subtext);
1169
+ border-color: rgba(180, 190, 254, 0.28);
1170
+ background: rgba(var(--ctp-surface-rgb), 0.52);
1171
+ font-size: var(--text-xs);
1172
+ font-weight: 850;
1173
+ }
1174
+ .side-panel-edit-button[aria-pressed="true"] {
1175
+ color: var(--ctp-crust);
1176
+ border-color: rgba(148, 226, 213, 0.72);
1177
+ background: linear-gradient(135deg, var(--ctp-teal), var(--ctp-blue));
1178
+ box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.12), 0 0 1rem rgba(148, 226, 213, 0.18);
1179
+ }
1113
1180
  .side-panel-brand-row {
1114
1181
  display: flex;
1115
1182
  align-items: center;
@@ -1333,6 +1400,10 @@ body.embedded-split .side-panel-backdrop {
1333
1400
  border-color: rgba(245, 194, 231, 0.32);
1334
1401
  }
1335
1402
  .side-panel-section-toggle[data-side-panel-section-toggle] {
1403
+ cursor: pointer;
1404
+ touch-action: manipulation;
1405
+ }
1406
+ .side-panel.section-edit-mode .side-panel-section-toggle[data-side-panel-section-toggle] {
1336
1407
  cursor: grab;
1337
1408
  touch-action: none;
1338
1409
  user-select: none;
@@ -1965,11 +2036,18 @@ body.embedded-split .side-panel-backdrop {
1965
2036
  white-space: nowrap;
1966
2037
  }
1967
2038
  .file-tree-search-label {
1968
- display: grid;
1969
- gap: 0.08rem;
2039
+ display: flex;
2040
+ gap: 0.38rem;
2041
+ align-items: baseline;
1970
2042
  min-width: 0;
2043
+ overflow: hidden;
2044
+ white-space: nowrap;
2045
+ }
2046
+ .file-tree-search-label .file-tree-name {
2047
+ flex: 0 1 auto;
1971
2048
  }
1972
2049
  .file-tree-search-path {
2050
+ flex: 1 1 auto;
1973
2051
  min-width: 0;
1974
2052
  overflow: hidden;
1975
2053
  color: rgba(var(--ctp-subtext-rgb), 0.68);
@@ -1978,8 +2056,13 @@ body.embedded-split .side-panel-backdrop {
1978
2056
  text-overflow: ellipsis;
1979
2057
  white-space: nowrap;
1980
2058
  }
2059
+ .file-tree-search-path::before {
2060
+ content: "·";
2061
+ margin-right: 0.38rem;
2062
+ color: rgba(var(--ctp-subtext-rgb), 0.46);
2063
+ }
1981
2064
  .file-tree-search-item {
1982
- grid-template-columns: auto minmax(0, 1fr) auto auto;
2065
+ grid-template-columns: auto auto minmax(0, 1fr) auto auto;
1983
2066
  }
1984
2067
  .file-tree-kind {
1985
2068
  color: rgba(var(--ctp-subtext-rgb), 0.64);
@@ -2655,7 +2738,6 @@ body.embedded-split .side-panel-backdrop {
2655
2738
  border-color: transparent;
2656
2739
  background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-peach), var(--ctp-red));
2657
2740
  }
2658
- #networkControlField #showRemoteQrButton { display: none; }
2659
2741
  #showRemoteQrButton {
2660
2742
  color: var(--ctp-teal);
2661
2743
  border-color: rgba(148, 226, 213, 0.32);
@@ -4414,6 +4496,26 @@ button.subagent-gate-attempt:focus-visible {
4414
4496
  .terminal-tab-group-button {
4415
4497
  width: 100%;
4416
4498
  }
4499
+ .terminal-tab-group-dropdown-indicator {
4500
+ display: none;
4501
+ flex: 0 0 auto;
4502
+ place-items: center;
4503
+ width: 1.5rem;
4504
+ height: 1.5rem;
4505
+ margin-left: auto;
4506
+ color: var(--ctp-teal);
4507
+ border: 1px solid rgba(148, 226, 213, 0.28);
4508
+ border-radius: 999px;
4509
+ background: rgba(148, 226, 213, 0.08);
4510
+ font-size: 1rem;
4511
+ font-weight: 900;
4512
+ line-height: 1;
4513
+ transition: transform 140ms ease, background 140ms ease;
4514
+ }
4515
+ .terminal-tab-group-button[aria-expanded="true"] .terminal-tab-group-dropdown-indicator {
4516
+ transform: rotate(180deg);
4517
+ background: rgba(148, 226, 213, 0.18);
4518
+ }
4417
4519
  .terminal-tab-group-count {
4418
4520
  flex: 0 0 auto;
4419
4521
  min-width: 1.35rem;
@@ -4921,7 +5023,7 @@ button.subagent-gate-attempt:focus-visible {
4921
5023
  body.terminal-tabs-left .chat-panel {
4922
5024
  display: grid;
4923
5025
  grid-template-columns: clamp(13rem, 18vw, 19rem) minmax(0, 1fr);
4924
- grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto auto;
5026
+ grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto auto auto;
4925
5027
  align-items: stretch;
4926
5028
  }
4927
5029
  body.terminal-tabs-left .terminal-tabs-shell {
@@ -5022,6 +5124,7 @@ button.subagent-gate-attempt:focus-visible {
5022
5124
  body.terminal-tabs-left .widget-area,
5023
5125
  body.terminal-tabs-left .subagent-terminal-view,
5024
5126
  body.terminal-tabs-left .chat,
5127
+ body.terminal-tabs-left .run-indicator-host,
5025
5128
  body.terminal-tabs-left .feedback-tray,
5026
5129
  body.terminal-tabs-left .jump-to-latest-button,
5027
5130
  body.terminal-tabs-left .statusbar,
@@ -5034,11 +5137,12 @@ button.subagent-gate-attempt:focus-visible {
5034
5137
  body.terminal-tabs-left .widget-area { grid-row: 2; }
5035
5138
  body.terminal-tabs-left .subagent-terminal-view { grid-row: 1 / -1; }
5036
5139
  body.terminal-tabs-left .chat { grid-row: 3; }
5037
- body.terminal-tabs-left .feedback-tray { grid-row: 4; }
5038
- body.terminal-tabs-left .jump-to-latest-button { grid-row: 5; }
5039
- body.terminal-tabs-left .statusbar { grid-row: 6; }
5040
- body.terminal-tabs-left .git-workflow-panel { grid-row: 7; }
5041
- body.terminal-tabs-left .composer { grid-row: 8; }
5140
+ body.terminal-tabs-left .run-indicator-host { grid-row: 4; }
5141
+ body.terminal-tabs-left .feedback-tray { grid-row: 5; }
5142
+ body.terminal-tabs-left .jump-to-latest-button { grid-row: 6; }
5143
+ body.terminal-tabs-left .statusbar { grid-row: 7; }
5144
+ body.terminal-tabs-left .git-workflow-panel { grid-row: 8; }
5145
+ body.terminal-tabs-left .composer { grid-row: 9; }
5042
5146
  }
5043
5147
 
5044
5148
  .widget-area {
@@ -7626,13 +7730,24 @@ button.git-workflow-step:hover:not(:disabled) {
7626
7730
  }
7627
7731
  .chat {
7628
7732
  position: relative;
7733
+ display: flex;
7629
7734
  flex: 1 1 auto;
7735
+ flex-direction: column;
7630
7736
  min-height: 0;
7631
7737
  overflow: auto;
7632
7738
  overflow-anchor: none;
7633
7739
  padding: 1rem;
7634
7740
  scroll-behavior: smooth;
7635
7741
  }
7742
+ /* Keep transcript cards top-anchored so textarea autosizing changes only the
7743
+ available viewport height instead of translating settled agent output. */
7744
+ .chat > .message:first-of-type { margin-top: 0; }
7745
+ .run-indicator-host:empty { display: none; }
7746
+ .run-indicator-host {
7747
+ flex: 0 0 auto;
7748
+ min-width: 0;
7749
+ padding: 0 1rem 1rem;
7750
+ }
7636
7751
  .sticky-user-prompt-button[hidden] { display: none; }
7637
7752
  .sticky-user-prompt-button {
7638
7753
  position: sticky;
@@ -11744,7 +11859,6 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
11744
11859
  }
11745
11860
  body.subagent-terminal-active .workspace-dashboard,
11746
11861
  body.subagent-terminal-active .widget-area,
11747
- body.subagent-terminal-active .chat-search-bar,
11748
11862
  body.subagent-terminal-active .chat,
11749
11863
  body.subagent-terminal-active .feedback-tray,
11750
11864
  body.subagent-terminal-active .jump-to-latest-button,
@@ -13790,6 +13904,10 @@ button.git-workflow-step { min-height: 1.9rem; }
13790
13904
  height: auto !important;
13791
13905
  overflow: visible !important;
13792
13906
  }
13907
+ .side-panel-section-toggle[data-side-panel-section-toggle] {
13908
+ cursor: pointer;
13909
+ touch-action: manipulation;
13910
+ }
13793
13911
  .chat { flex-basis: 0; }
13794
13912
  body:not(.side-panel-collapsed) { overflow: hidden; }
13795
13913
  body:not(.side-panel-collapsed) .chat-panel {
@@ -13949,6 +14067,14 @@ button.git-workflow-step { min-height: 1.9rem; }
13949
14067
  right: 0.42rem;
13950
14068
  z-index: 120;
13951
14069
  }
14070
+ body.footer-details-expanded .side-panel-toggle-button,
14071
+ body.footer-details-expanded .side-panel-expand-button,
14072
+ body.composer-actions-open .side-panel-toggle-button,
14073
+ body.composer-actions-open .side-panel-expand-button,
14074
+ body.mobile-tabs-expanded .side-panel-toggle-button,
14075
+ body.mobile-tabs-expanded .side-panel-expand-button {
14076
+ display: none !important;
14077
+ }
13952
14078
  .terminal-close-all-button {
13953
14079
  min-height: 44px;
13954
14080
  padding: 0.16rem 0.46rem;
@@ -14002,9 +14128,14 @@ button.git-workflow-step { min-height: 1.9rem; }
14002
14128
  flex-basis: 100%;
14003
14129
  }
14004
14130
  .terminal-tab-group-button {
14005
- width: auto;
14131
+ width: 100%;
14006
14132
  min-width: 0;
14007
14133
  }
14134
+ .terminal-tab-group-dropdown-indicator { display: inline-grid; }
14135
+ .terminal-tab-group:hover:not(.menu-open) .terminal-tab-group-menu,
14136
+ .terminal-tab-group:focus-within:not(.menu-open) .terminal-tab-group-menu {
14137
+ display: none;
14138
+ }
14008
14139
  .terminal-tab-group-menu {
14009
14140
  grid-column: 1 / -1;
14010
14141
  position: static;
@@ -14029,6 +14160,9 @@ button.git-workflow-step { min-height: 1.9rem; }
14029
14160
  width: auto;
14030
14161
  flex-wrap: wrap;
14031
14162
  }
14163
+ .terminal-tabs:has(> .terminal-tab-group.menu-open:not(.terminal-tab-subagent-group)) > .terminal-new-tab-menu {
14164
+ display: none;
14165
+ }
14032
14166
  .terminal-new-tab-menu.open,
14033
14167
  .terminal-new-tab-menu:focus-within {
14034
14168
  flex-basis: 100%;
@@ -14051,6 +14185,7 @@ button.git-workflow-step { min-height: 1.9rem; }
14051
14185
  .terminal-tab-button { padding: 0.32rem 0.52rem; }
14052
14186
  .terminal-tab-title { font-size: 0.78rem; }
14053
14187
  .terminal-tab-meta { display: none; }
14188
+ .terminal-tab-group > .terminal-tab-group-button > .terminal-tab-meta { display: block; }
14054
14189
  .terminal-tab-actions,
14055
14190
  .terminal-tab-close {
14056
14191
  flex-basis: 44px;
@@ -14115,14 +14250,30 @@ button.git-workflow-step { min-height: 1.9rem; }
14115
14250
  padding-bottom: 0.42rem;
14116
14251
  }
14117
14252
  .todo-widget-summary { gap: 0.24rem; }
14253
+ .todo-widget:not([open]) .todo-widget-summary { display: block; }
14254
+ .todo-widget:not([open]) .todo-widget-goal,
14255
+ .todo-widget:not([open]) .todo-widget-progress { display: none; }
14118
14256
  .todo-widget-goal { font-size: var(--text-xs); }
14119
14257
  .todo-widget-header { gap: 0.26rem; }
14258
+ .todo-widget:not([open]) .todo-widget-header {
14259
+ flex-wrap: nowrap;
14260
+ overflow: hidden;
14261
+ }
14120
14262
  .todo-widget-toggle {
14121
14263
  width: 0.9rem;
14122
14264
  height: 0.9rem;
14123
14265
  font-size: 0.88rem;
14124
14266
  }
14125
14267
  .todo-widget-title { font-size: var(--text-xs); }
14268
+ .todo-widget:not([open]) .todo-widget-title {
14269
+ flex: 1 1 auto;
14270
+ overflow: hidden;
14271
+ text-overflow: ellipsis;
14272
+ white-space: nowrap;
14273
+ }
14274
+ .todo-widget:not([open]) .todo-widget-toggle,
14275
+ .todo-widget:not([open]) .todo-widget-count,
14276
+ .todo-widget:not([open]) .todo-widget-meta { flex: 0 0 auto; }
14126
14277
  .todo-widget-count,
14127
14278
  .todo-widget-meta {
14128
14279
  min-height: 0.98rem;
@@ -14149,6 +14300,22 @@ button.git-workflow-step { min-height: 1.9rem; }
14149
14300
  padding: 0.62rem 0.58rem;
14150
14301
  scroll-padding-bottom: calc(12rem + var(--keyboard-inset-bottom, 0px));
14151
14302
  }
14303
+ .run-indicator-host {
14304
+ padding: 0 0.58rem 0.62rem;
14305
+ }
14306
+ .run-indicator-host > .run-indicator-message .run-indicator-row {
14307
+ display: grid;
14308
+ grid-template-columns: auto auto minmax(0, 1fr);
14309
+ flex-wrap: nowrap;
14310
+ min-width: 0;
14311
+ }
14312
+ .run-indicator-host > .run-indicator-message .run-indicator-text { white-space: nowrap; }
14313
+ .run-indicator-host > .run-indicator-message .run-indicator-meta {
14314
+ min-width: 0;
14315
+ overflow: hidden;
14316
+ text-overflow: ellipsis;
14317
+ white-space: nowrap;
14318
+ }
14152
14319
  .sticky-user-prompt-button {
14153
14320
  grid-template-columns: minmax(0, 1fr) auto;
14154
14321
  min-height: 36px;
@@ -14219,10 +14386,39 @@ button.git-workflow-step { min-height: 1.9rem; }
14219
14386
  font-size: var(--text-xs);
14220
14387
  }
14221
14388
  .context-meter-bar { display: none !important; }
14222
- body.footer-details-expanded .statusbar {
14223
- max-height: min(42dvh, 20rem);
14224
- overflow: auto;
14389
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) .statusbar-git-footer .git-footer-refresh-button { display: none; }
14390
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer {
14391
+ position: fixed;
14392
+ z-index: 130;
14393
+ inset: 0;
14394
+ width: 100vw;
14395
+ height: var(--visual-viewport-height, 100dvh);
14396
+ max-height: none;
14397
+ padding: calc(4rem + env(safe-area-inset-top)) max(0.7rem, env(safe-area-inset-right)) max(0.7rem, env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
14398
+ overflow-x: hidden;
14399
+ overflow-y: auto;
14225
14400
  overscroll-behavior: contain;
14401
+ border: 0;
14402
+ border-radius: 0;
14403
+ background:
14404
+ radial-gradient(circle at 8% 0%, rgba(245, 194, 231, 0.14), transparent 18rem),
14405
+ radial-gradient(circle at 92% 12%, rgba(148, 226, 213, 0.12), transparent 20rem),
14406
+ linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.995), rgba(var(--ctp-base-rgb), 0.99));
14407
+ box-shadow: none;
14408
+ }
14409
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer .git-footer-refresh-button {
14410
+ position: fixed;
14411
+ z-index: 132;
14412
+ top: max(0.65rem, env(safe-area-inset-top));
14413
+ right: max(0.7rem, env(safe-area-inset-right));
14414
+ display: inline-grid;
14415
+ width: 44px;
14416
+ min-width: 44px;
14417
+ height: 44px;
14418
+ min-height: 44px;
14419
+ opacity: 1;
14420
+ pointer-events: auto;
14421
+ transform: none;
14226
14422
  }
14227
14423
  body.footer-model-picker-open .statusbar {
14228
14424
  z-index: 12;
@@ -14293,7 +14489,8 @@ button.git-workflow-step { min-height: 1.9rem; }
14293
14489
  }
14294
14490
  .footer-details-toggle {
14295
14491
  display: block;
14296
- min-height: 36px;
14492
+ min-width: 44px;
14493
+ min-height: 44px;
14297
14494
  padding: 0.24rem 0.5rem;
14298
14495
  color: var(--ctp-yellow);
14299
14496
  border-color: rgba(249, 226, 175, 0.34);
@@ -14301,6 +14498,21 @@ button.git-workflow-step { min-height: 1.9rem; }
14301
14498
  font-weight: 900;
14302
14499
  line-height: 1.1;
14303
14500
  }
14501
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-details-toggle {
14502
+ position: fixed;
14503
+ z-index: 132;
14504
+ top: max(0.65rem, env(safe-area-inset-top));
14505
+ left: max(0.7rem, env(safe-area-inset-left));
14506
+ display: grid;
14507
+ place-items: center;
14508
+ width: 44px;
14509
+ min-width: 44px;
14510
+ height: 44px;
14511
+ min-height: 44px;
14512
+ padding: 0;
14513
+ font-size: 1.5rem;
14514
+ line-height: 1;
14515
+ }
14304
14516
  .composer {
14305
14517
  position: sticky;
14306
14518
  bottom: 0;
@@ -14988,16 +15200,24 @@ button.git-workflow-step { min-height: 1.9rem; }
14988
15200
  }
14989
15201
  .chat-search-button:hover,
14990
15202
  .file-viewer-search-button:hover { background: var(--panel); }
14991
- ::highlight(file-viewer-search-current) {
15203
+ ::highlight(file-viewer-search-match),
15204
+ ::highlight(chat-search-match) {
15205
+ color: inherit;
15206
+ background: rgba(249, 226, 175, 0.48);
15207
+ }
15208
+ ::highlight(file-viewer-search-current),
15209
+ ::highlight(chat-search-current) {
14992
15210
  color: var(--button-primary-text);
14993
- background: var(--ctp-yellow);
15211
+ background: var(--ctp-peach);
14994
15212
  }
14995
- .file-viewer-search-current-fallback {
14996
- outline: 2px solid var(--ctp-yellow);
14997
- outline-offset: 2px;
15213
+ .file-viewer-search-match-fallback,
15214
+ .message.search-match {
15215
+ outline: 1px solid rgba(249, 226, 175, 0.72);
15216
+ outline-offset: 1px;
14998
15217
  }
15218
+ .file-viewer-search-current-fallback,
14999
15219
  .message.search-current {
15000
- outline: 2px solid var(--accent-2);
15220
+ outline: 2px solid var(--ctp-peach);
15001
15221
  outline-offset: 2px;
15002
15222
  }
15003
15223
 
@@ -16565,6 +16785,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
16565
16785
  padding: calc(5.4rem + env(safe-area-inset-top)) 0.75rem 0.8rem;
16566
16786
  scroll-padding-block-start: 5.75rem;
16567
16787
  }
16788
+ html[data-mobile-shell="v2"] .run-indicator-host { padding: 0 0.75rem 0.8rem; }
16568
16789
  html[data-mobile-shell="v2"] .composer {
16569
16790
  padding: 0.65rem 0.75rem calc(4.8rem + env(safe-area-inset-bottom));
16570
16791
  background: linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.74), rgba(var(--ctp-crust-rgb), 0.96));
@@ -17540,3 +17761,548 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
17540
17761
  .session-summary-overlay-actions { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
17541
17762
  .session-summary-overlay-actions button { flex: 1 1 0; min-width: 0; }
17542
17763
  }
17764
+
17765
+ /* Compact legacy-mobile shell: terminal navigation is a left drawer and the
17766
+ composer keeps only primary run controls visible until More is expanded. */
17767
+ .terminal-tabs-drawer-content { display: contents; }
17768
+ .terminal-tabs-backdrop,
17769
+ .composer-actions-heading { display: none; }
17770
+
17771
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
17772
+ .terminal-tabs-drawer-content { display: none; }
17773
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:not([hidden]) {
17774
+ position: fixed;
17775
+ inset: 0;
17776
+ z-index: 121;
17777
+ display: block;
17778
+ width: 100%;
17779
+ min-height: 100%;
17780
+ padding: 0;
17781
+ border: 0;
17782
+ border-radius: 0;
17783
+ background: rgba(var(--ctp-crust-rgb), 0.66);
17784
+ box-shadow: none;
17785
+ backdrop-filter: blur(4px);
17786
+ }
17787
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:hover,
17788
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:active {
17789
+ transform: none;
17790
+ border-color: transparent;
17791
+ box-shadow: none;
17792
+ }
17793
+ body.mobile-tabs-expanded .terminal-tabs-shell {
17794
+ position: fixed;
17795
+ z-index: 122;
17796
+ top: 0;
17797
+ right: 0;
17798
+ bottom: auto;
17799
+ left: 0;
17800
+ display: flex;
17801
+ flex-direction: column;
17802
+ align-items: stretch;
17803
+ gap: 0.55rem;
17804
+ width: 100vw;
17805
+ height: var(--visual-viewport-height, 100dvh);
17806
+ min-height: 0;
17807
+ max-height: none;
17808
+ padding: calc(0.68rem + env(safe-area-inset-top)) max(0.68rem, env(safe-area-inset-right)) calc(0.68rem + env(safe-area-inset-bottom)) max(0.68rem, env(safe-area-inset-left));
17809
+ overflow: hidden;
17810
+ border: 0;
17811
+ border-radius: 0;
17812
+ background:
17813
+ radial-gradient(circle at 0% 0%, rgba(148, 226, 213, 0.13), transparent 14rem),
17814
+ linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.99), rgba(var(--ctp-base-rgb), 0.97));
17815
+ box-shadow: none;
17816
+ }
17817
+ body.mobile-tabs-expanded .terminal-tabs-shell[aria-modal="true"] {
17818
+ z-index: 122;
17819
+ }
17820
+ body.mobile-tabs-expanded .terminal-tabs-toggle-button {
17821
+ flex: 0 0 auto;
17822
+ width: 100%;
17823
+ max-width: none;
17824
+ }
17825
+ body.mobile-tabs-expanded .terminal-tabs-drawer-content {
17826
+ display: flex;
17827
+ flex: 1 1 auto;
17828
+ flex-direction: column;
17829
+ gap: 0.52rem;
17830
+ min-height: 0;
17831
+ }
17832
+ body.mobile-tabs-expanded .terminal-tabs {
17833
+ position: static;
17834
+ display: flex;
17835
+ flex: 1 1 auto;
17836
+ flex-direction: column;
17837
+ flex-wrap: nowrap;
17838
+ align-items: stretch;
17839
+ gap: 0.38rem;
17840
+ width: 100%;
17841
+ max-height: none;
17842
+ min-height: 0;
17843
+ padding: 0.08rem;
17844
+ overflow-x: hidden;
17845
+ overflow-y: auto;
17846
+ border: 0;
17847
+ border-radius: 0;
17848
+ background: transparent;
17849
+ box-shadow: none;
17850
+ }
17851
+ body.mobile-tabs-expanded .terminal-tabs.terminal-tabs-dense { max-height: none; }
17852
+ body.mobile-tabs-expanded .terminal-tab,
17853
+ body.mobile-tabs-expanded .terminal-tabs.terminal-tabs-dense .terminal-tab,
17854
+ body.mobile-tabs-expanded .terminal-tab-group,
17855
+ body.mobile-tabs-expanded .terminal-new-tab-menu {
17856
+ flex: 0 0 auto;
17857
+ width: 100%;
17858
+ min-width: 0;
17859
+ max-width: none;
17860
+ }
17861
+ body.mobile-tabs-expanded .terminal-new-tab-button { width: 100%; justify-content: flex-start; }
17862
+ body.mobile-tabs-expanded .terminal-sidebar-actions {
17863
+ display: grid;
17864
+ grid-template-columns: repeat(3, minmax(0, 1fr));
17865
+ gap: 0.42rem;
17866
+ width: 100%;
17867
+ padding: 0.42rem;
17868
+ border: 1px solid rgba(180, 190, 254, 0.16);
17869
+ border-radius: 0.86rem;
17870
+ background: rgba(var(--ctp-crust-rgb), 0.42);
17871
+ }
17872
+ body.mobile-tabs-expanded .terminal-sidebar-actions > button {
17873
+ width: 100%;
17874
+ min-width: 0;
17875
+ min-height: 44px;
17876
+ padding: 0.42rem;
17877
+ }
17878
+ body.mobile-tabs-expanded .remote-access-indicator,
17879
+ body.mobile-tabs-expanded .terminal-close-all-button { width: 100%; max-width: none; }
17880
+
17881
+ body.mobile-composer-disclosure .composer-input-row {
17882
+ grid-template-columns: minmax(0, 1fr) 44px;
17883
+ gap: 0.36rem;
17884
+ }
17885
+ body.mobile-composer-disclosure .composer-row {
17886
+ grid-template-columns: repeat(5, minmax(0, 1fr));
17887
+ gap: 0.28rem;
17888
+ }
17889
+ body.mobile-composer-disclosure .composer-row > #abortButton,
17890
+ body.mobile-composer-disclosure .composer-row > #steerButton,
17891
+ body.mobile-composer-disclosure .composer-row > #followUpButton,
17892
+ body.mobile-composer-disclosure .composer-row > #sendButton,
17893
+ body.mobile-composer-disclosure .composer-row > .composer-actions-button {
17894
+ min-width: 0;
17895
+ grid-column: auto;
17896
+ padding-inline: 0.28rem;
17897
+ font-size: 0.72rem;
17898
+ }
17899
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #abortButton { order: 1; }
17900
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #steerButton { order: 2; }
17901
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #followUpButton { order: 3; }
17902
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > .composer-actions-button { order: 4; }
17903
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #sendButton { order: 5; }
17904
+ body.mobile-composer-disclosure:not(.pi-run-active):not(.mobile-keyboard-open) .composer-row > .composer-actions-button {
17905
+ order: 1;
17906
+ grid-column: span 2;
17907
+ }
17908
+ body.mobile-composer-disclosure:not(.pi-run-active):not(.mobile-keyboard-open) .composer-row > #sendButton {
17909
+ order: 2;
17910
+ grid-column: span 3;
17911
+ }
17912
+ body.mobile-composer-disclosure.composer-actions-open .composer { z-index: 130; }
17913
+ body.mobile-composer-disclosure .composer-actions-panel {
17914
+ position: fixed;
17915
+ z-index: 130;
17916
+ inset: 0;
17917
+ grid-template-columns: repeat(2, minmax(0, 1fr));
17918
+ align-content: start;
17919
+ gap: 0.44rem;
17920
+ width: 100vw;
17921
+ height: var(--visual-viewport-height, 100dvh);
17922
+ max-height: none;
17923
+ padding: calc(4rem + env(safe-area-inset-top)) max(0.7rem, env(safe-area-inset-right)) max(0.7rem, env(safe-area-inset-bottom)) max(0.7rem, env(safe-area-inset-left));
17924
+ overflow-x: hidden;
17925
+ overflow-y: auto;
17926
+ overscroll-behavior: contain;
17927
+ border: 0;
17928
+ border-radius: 0;
17929
+ box-shadow: none;
17930
+ -webkit-overflow-scrolling: touch;
17931
+ }
17932
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-panel { display: grid; }
17933
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-button {
17934
+ position: fixed;
17935
+ z-index: 132;
17936
+ top: max(0.65rem, env(safe-area-inset-top));
17937
+ right: max(0.7rem, env(safe-area-inset-right));
17938
+ display: grid;
17939
+ place-items: center;
17940
+ width: 44px;
17941
+ min-width: 44px;
17942
+ height: 44px;
17943
+ min-height: 44px;
17944
+ grid-column: auto;
17945
+ padding: 0;
17946
+ font-size: 1.5rem;
17947
+ line-height: 1;
17948
+ }
17949
+ body.mobile-composer-disclosure .composer-actions-heading {
17950
+ grid-column: 1 / -1;
17951
+ display: block;
17952
+ margin: 0.2rem 0 0;
17953
+ padding: 0.34rem 0.12rem 0.18rem;
17954
+ color: var(--ctp-subtext);
17955
+ border-top: 1px solid rgba(180, 190, 254, 0.14);
17956
+ font-size: var(--text-xs);
17957
+ letter-spacing: 0.08em;
17958
+ text-transform: uppercase;
17959
+ }
17960
+ body.mobile-composer-disclosure .composer-actions-heading:first-child {
17961
+ margin-top: 0;
17962
+ padding-top: 0;
17963
+ border-top: 0;
17964
+ }
17965
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-workflow-mode-dock,
17966
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags,
17967
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-busy-mode-menu,
17968
+ body.mobile-composer-disclosure .composer-actions-panel > .follow-up-queue-trigger {
17969
+ position: static;
17970
+ grid-column: 1 / -1;
17971
+ width: 100%;
17972
+ max-width: none;
17973
+ margin: 0;
17974
+ transform: none;
17975
+ }
17976
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-workflow-mode-dock {
17977
+ display: flex;
17978
+ justify-content: flex-start;
17979
+ min-height: 44px;
17980
+ padding: 0.28rem;
17981
+ border: 1px solid rgba(180, 190, 254, 0.16);
17982
+ border-radius: 0.72rem;
17983
+ background: rgba(var(--ctp-crust-rgb), 0.34);
17984
+ }
17985
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags {
17986
+ display: flex;
17987
+ min-height: 44px;
17988
+ padding: 0.3rem;
17989
+ overflow: visible;
17990
+ pointer-events: auto;
17991
+ border: 1px solid rgba(180, 190, 254, 0.16);
17992
+ border-radius: 0.72rem;
17993
+ background: rgba(var(--ctp-crust-rgb), 0.34);
17994
+ }
17995
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags > * { pointer-events: auto; }
17996
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-busy-mode-menu {
17997
+ display: grid;
17998
+ z-index: auto;
17999
+ padding: 0;
18000
+ border: 0;
18001
+ box-shadow: none;
18002
+ }
18003
+ body.mobile-composer-disclosure .composer-actions-panel > .follow-up-queue-trigger {
18004
+ display: inline-flex;
18005
+ justify-content: center;
18006
+ min-height: 44px;
18007
+ }
18008
+ body.mobile-composer-disclosure .composer-actions-panel > #btwButton,
18009
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-conversation-voice-menu,
18010
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-conversation-end-button {
18011
+ grid-column: span 1;
18012
+ width: 100%;
18013
+ min-width: 0;
18014
+ min-height: 44px;
18015
+ margin: 0;
18016
+ }
18017
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row {
18018
+ grid-template-columns: repeat(4, minmax(0, 1fr));
18019
+ gap: 0.28rem;
18020
+ }
18021
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-actions-button,
18022
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-actions-panel { display: none !important; }
18023
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #abortButton,
18024
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #steerButton,
18025
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #followUpButton,
18026
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #sendButton {
18027
+ grid-column: auto;
18028
+ min-height: 44px;
18029
+ }
18030
+ body.mobile-composer-disclosure.mobile-keyboard-open:not(.pi-run-active) .composer-row > #sendButton { grid-column: 1 / -1; }
18031
+ }
18032
+
18033
+ /* Balanced phone density: retain reliable 40px controls while reducing the
18034
+ padding, gaps, and type scale that compete with transcript content. */
18035
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
18036
+ :root {
18037
+ --mobile-control-size: 40px;
18038
+ --mobile-page-gutter: 0.5rem;
18039
+ --mobile-card-padding: 0.5rem;
18040
+ --mobile-gap: 0.3rem;
18041
+ --mobile-body-text: 0.86rem;
18042
+ --mobile-label-text: 0.72rem;
18043
+ }
18044
+ body { font-size: var(--mobile-body-text); }
18045
+ button {
18046
+ min-width: var(--mobile-control-size);
18047
+ min-height: var(--mobile-control-size);
18048
+ padding: 0.42rem 0.68rem;
18049
+ font-size: 0.8rem;
18050
+ }
18051
+ input,
18052
+ select { min-height: var(--mobile-control-size); font-size: 0.84rem; }
18053
+ textarea { font-size: 0.84rem; }
18054
+
18055
+ .terminal-tabs-shell {
18056
+ gap: 0.22rem;
18057
+ min-height: calc(var(--mobile-control-size) + env(safe-area-inset-top));
18058
+ padding: calc(0.08rem + env(safe-area-inset-top)) var(--mobile-page-gutter) 0.08rem;
18059
+ }
18060
+ body.side-panel-collapsed .terminal-tabs-shell { padding-right: calc(var(--mobile-control-size) + 0.65rem); }
18061
+ .terminal-tabs-toggle-button,
18062
+ .terminal-close-all-button { min-height: var(--mobile-control-size); padding-block: 0.12rem; }
18063
+ .side-panel-toggle-button,
18064
+ .side-panel-expand-button,
18065
+ .composer-attach-button,
18066
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer .git-footer-refresh-button,
18067
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-details-toggle,
18068
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-button {
18069
+ width: var(--mobile-control-size);
18070
+ min-width: var(--mobile-control-size);
18071
+ height: var(--mobile-control-size);
18072
+ min-height: var(--mobile-control-size);
18073
+ }
18074
+ .terminal-tab-button,
18075
+ .terminal-tab-actions,
18076
+ .terminal-tab-close,
18077
+ .terminal-new-tab-button,
18078
+ .terminal-new-tab-menu-item,
18079
+ .terminal-tab-group-add,
18080
+ .composer-row button,
18081
+ .composer-row button.primary,
18082
+ .composer-actions-panel label,
18083
+ .composer-options-submenu-trigger,
18084
+ .composer-options-submenu-panel > .composer-options-menu-item,
18085
+ .follow-up-queue-close-button,
18086
+ .follow-up-queue-move-button,
18087
+ .follow-up-queue-remove-button { min-height: var(--mobile-control-size); }
18088
+ .terminal-tab-actions,
18089
+ .terminal-tab-close { flex-basis: var(--mobile-control-size); min-width: var(--mobile-control-size); }
18090
+ .terminal-tabs { gap: 0.28rem; padding: 0.42rem; }
18091
+ .terminal-tab-button { padding: 0.26rem 0.44rem; }
18092
+ .terminal-tab-title { font-size: 0.74rem; }
18093
+ .terminal-new-tab-button,
18094
+ .terminal-new-tab-menu-item { padding: 0.3rem 0.48rem; }
18095
+
18096
+ .widget-area { padding: 0.28rem 0.46rem; }
18097
+ .release-npm-widget { gap: 0.36rem; padding: 0.46rem; }
18098
+ .release-npm-stream-header { padding: 0.24rem 0.34rem; }
18099
+ .release-npm-terminal { padding: 0.44rem 0.36rem; font-size: 0.72rem; }
18100
+ .todo-widget { padding: 0.3rem 0.36rem; }
18101
+ .todo-widget[open] { gap: 0.22rem; padding-bottom: 0.34rem; }
18102
+ .todo-widget-body { gap: 0.2rem; }
18103
+ .todo-widget-item { gap: 0.24rem; font-size: 0.7rem; }
18104
+
18105
+ .chat { padding: 0.5rem 0.46rem; }
18106
+ .run-indicator-host { padding: 0 0.46rem 0.5rem; }
18107
+ .message { margin-bottom: 0.5rem; padding: 0.56rem 0.58rem; border-radius: 0.74rem; }
18108
+ .message-body { font-size: 0.84rem; }
18109
+ .message-header { gap: 0.4rem; margin-bottom: 0.3rem; font-size: var(--mobile-label-text); }
18110
+ .message-copy-button { top: 0.28rem; right: 0.32rem; width: 1.8rem; min-width: 1.8rem; min-height: 1.8rem; }
18111
+ .message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-header,
18112
+ .message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-body,
18113
+ .message.has-copy-action > .message-collapse > summary.message-header { padding-right: 2.2rem; }
18114
+ .code-block { padding: 0.48rem; font-size: 0.74rem; }
18115
+ details { padding: 0.42rem; }
18116
+ .statusbar { padding: 0.22rem 0.34rem; font-size: var(--mobile-label-text); }
18117
+ .footer-metric,
18118
+ .footer-meta { padding: 0.18rem 0.3rem; }
18119
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer {
18120
+ align-content: start;
18121
+ grid-auto-rows: max-content;
18122
+ gap: 0.48rem;
18123
+ padding: calc(3.15rem + env(safe-area-inset-top)) max(0.52rem, env(safe-area-inset-right)) max(0.62rem, env(safe-area-inset-bottom)) max(0.52rem, env(safe-area-inset-left));
18124
+ }
18125
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main,
18126
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta {
18127
+ display: grid;
18128
+ grid-template-columns: repeat(2, minmax(0, 1fr));
18129
+ align-content: start;
18130
+ gap: 0.36rem;
18131
+ margin: 0;
18132
+ }
18133
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main::before,
18134
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta::before {
18135
+ grid-column: 1 / -1;
18136
+ padding: 0.08rem 0.12rem 0.02rem;
18137
+ color: rgba(var(--ctp-subtext-rgb), 0.68);
18138
+ font-size: 0.66rem;
18139
+ font-weight: 900;
18140
+ letter-spacing: 0.11em;
18141
+ text-transform: uppercase;
18142
+ }
18143
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main::before { content: "Session"; }
18144
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta::before { content: "Workspace, Git & runtime"; }
18145
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main > .footer-metric {
18146
+ grid-template-columns: auto minmax(0, 1fr);
18147
+ grid-template-areas: "icon label" "icon value";
18148
+ align-self: start;
18149
+ min-height: 3rem;
18150
+ padding: 0.42rem 0.46rem;
18151
+ gap: 0.06rem 0.38rem;
18152
+ border-radius: 0.68rem;
18153
+ }
18154
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main > .footer-metric:nth-child(odd):last-child { grid-column: 1 / -1; }
18155
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-icon { grid-area: icon; }
18156
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label { grid-area: label; }
18157
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value { grid-area: value; }
18158
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label,
18159
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-meta-label { font-size: 0.66rem; letter-spacing: 0.08em; }
18160
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value,
18161
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-meta-value { font-size: 0.76rem; line-height: 1.2; }
18162
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta .footer-meta {
18163
+ align-self: start;
18164
+ min-height: 2.6rem;
18165
+ padding: 0.38rem 0.44rem;
18166
+ gap: 0.3rem;
18167
+ border-radius: 0.64rem;
18168
+ }
18169
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-workspace,
18170
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-context,
18171
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-model,
18172
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-git-state,
18173
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-git-extra,
18174
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-extension-meta { grid-column: 1 / -1; }
18175
+ .footer-details-toggle { min-width: var(--mobile-control-size); min-height: var(--mobile-control-size); }
18176
+
18177
+ .composer { padding: 0.3rem 0.34rem calc(0.3rem + env(safe-area-inset-bottom)); }
18178
+ .composer-input-row { gap: 0.28rem; }
18179
+ .composer-attach-button { padding: 0.36rem; border-radius: 0.64rem; }
18180
+ #promptInput {
18181
+ min-height: calc(1.3em + 0.88rem);
18182
+ padding: 0.44rem 0.52rem;
18183
+ font-size: 0.88rem;
18184
+ line-height: 1.3;
18185
+ }
18186
+ .composer-row { gap: 0.24rem; margin-top: 0.3rem; }
18187
+ .composer-row button { padding: 0.28rem 0.36rem; font-size: 0.74rem; }
18188
+ .composer-row button.primary { font-size: 0.8rem; }
18189
+ .composer-actions-panel { gap: 0.34rem; padding: 0.56rem; }
18190
+ .composer-actions-panel label { gap: 0.42rem; font-size: var(--mobile-label-text); }
18191
+ body.mobile-composer-disclosure .composer-input-row { grid-template-columns: minmax(0, 1fr) var(--mobile-control-size); gap: 0.28rem; }
18192
+ body.mobile-composer-disclosure .composer-row { gap: 0.22rem; }
18193
+ body.mobile-composer-disclosure .composer-actions-panel {
18194
+ gap: 0.34rem;
18195
+ padding: calc(3.5rem + env(safe-area-inset-top)) max(0.55rem, env(safe-area-inset-right)) max(0.55rem, env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
18196
+ }
18197
+ body.mobile-composer-disclosure .composer-actions-heading { margin-top: 0.14rem; padding: 0.26rem 0.08rem 0.12rem; font-size: var(--mobile-label-text); }
18198
+
18199
+ .side-panel { inset: calc(0.35rem + env(safe-area-inset-top)) 0.35rem calc(0.35rem + env(safe-area-inset-bottom)); border-radius: 0.82rem; }
18200
+ .side-panel-header { gap: var(--mobile-gap); padding: 0.48rem; }
18201
+ .side-panel-header-actions { gap: 0.24rem; }
18202
+ .side-panel-edit-button { display: inline-flex; padding-inline: 0.42rem; }
18203
+ .side-panel.section-edit-mode .side-panel-section-toggle[data-side-panel-section-toggle] {
18204
+ border-color: rgba(148, 226, 213, 0.42);
18205
+ box-shadow: inset 3px 0 0 rgba(148, 226, 213, 0.58), inset 0 1px 0 rgba(255,255,255,0.045), 0 0 1rem rgba(148, 226, 213, 0.08);
18206
+ }
18207
+ .side-panel.section-edit-mode .side-panel-section-label::before {
18208
+ content: "↕";
18209
+ margin-right: 0.34rem;
18210
+ color: var(--ctp-teal);
18211
+ }
18212
+ .side-panel-body { gap: 0.36rem; padding: 0.44rem; }
18213
+ .side-panel-section-toggle { min-height: var(--mobile-control-size); padding: 0.36rem 0.44rem; font-size: 0.78rem; }
18214
+ .side-panel-section-content { padding: 0.42rem; font-size: 0.8rem; }
18215
+ .command-suggest { font-size: 0.8rem; }
18216
+ .command-suggest-item { gap: 0.2rem; padding: 0.48rem 0.56rem; }
18217
+
18218
+ .extension-dialog { font-size: 0.82rem; }
18219
+ .extension-dialog > header,
18220
+ .extension-dialog .dialog-header { padding: 0.52rem 0.58rem; }
18221
+ .questionnaire-dialog #dialogTitle { font-size: 1.02rem; }
18222
+ .questionnaire-dialog #dialogMessage { margin: 0.42rem 0 0.52rem; padding: 0.46rem 0.52rem; }
18223
+ .questionnaire-options { gap: 0.38rem; }
18224
+ .questionnaire-options button { min-height: 3rem; }
18225
+ .questionnaire-option { gap: 0.4rem; padding: 0.46rem 0.44rem; }
18226
+
18227
+ body.mobile-tabs-expanded .terminal-tabs-shell {
18228
+ gap: 0.42rem;
18229
+ padding: calc(0.5rem + env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
18230
+ }
18231
+ body.mobile-tabs-expanded .terminal-tabs-drawer-content { gap: 0.4rem; }
18232
+ body.mobile-tabs-expanded .terminal-tabs { gap: 0.3rem; }
18233
+ body.mobile-tabs-expanded .terminal-sidebar-actions { gap: 0.32rem; padding: 0.32rem; }
18234
+ body.mobile-tabs-expanded .terminal-sidebar-actions > button { min-height: var(--mobile-control-size); padding: 0.32rem; }
18235
+
18236
+ html[data-mobile-shell="v2"] .mobile-shell-session-button,
18237
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button,
18238
+ html[data-mobile-shell="v2"] .mobile-shell-nav button,
18239
+ html[data-mobile-shell="v2"] .mobile-route button,
18240
+ html[data-mobile-shell="v2"] .mobile-shell-surface button,
18241
+ html[data-mobile-shell="v2"] .mobile-search-field input,
18242
+ html[data-mobile-shell="v2"] .message .message-collapse > summary,
18243
+ html[data-mobile-shell="v2"] .thinking-block > summary { min-height: var(--mobile-control-size); }
18244
+ html[data-mobile-shell="v2"] .mobile-shell-appbar {
18245
+ gap: 0.26rem;
18246
+ min-height: calc(68px + env(safe-area-inset-top));
18247
+ padding: calc(0.16rem + env(safe-area-inset-top)) 0.42rem 0.16rem;
18248
+ }
18249
+ html[data-mobile-shell="v2"] .mobile-shell-session-button { grid-column: 1; grid-row: 1; gap: 0.34rem; padding: 0.26rem 0.36rem; }
18250
+ html[data-mobile-shell="v2"] #mobileSearchButton { grid-column: 2; grid-row: 1; }
18251
+ html[data-mobile-shell="v2"] #mobileMoreButton { grid-column: 3; grid-row: 1; }
18252
+ html[data-mobile-shell="v2"] .mobile-shell-indicators { grid-row: 2; gap: 0.22rem; }
18253
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button { padding-inline: 0.44rem; font-size: var(--mobile-label-text); }
18254
+ html[data-mobile-shell="v2"] .mobile-shell-nav {
18255
+ min-height: calc(54px + env(safe-area-inset-bottom));
18256
+ padding: 0.14rem 0.22rem calc(0.14rem + env(safe-area-inset-bottom));
18257
+ }
18258
+ html[data-mobile-shell="v2"] .mobile-shell-nav button { gap: 0.04rem; padding: 0.14rem; border-radius: 0.62rem; font-size: 0.7rem; }
18259
+ html[data-mobile-shell="v2"] .mobile-shell-destination:not(.mobile-chat-route) {
18260
+ padding: calc(4.8rem + env(safe-area-inset-top)) 0.58rem calc(4.35rem + env(safe-area-inset-bottom));
18261
+ }
18262
+ html[data-mobile-shell="v2"] .chat { padding: calc(4.8rem + env(safe-area-inset-top)) 0.58rem 0.62rem; scroll-padding-block-start: 5rem; }
18263
+ html[data-mobile-shell="v2"] .run-indicator-host { padding: 0 0.58rem 0.62rem; }
18264
+ html[data-mobile-shell="v2"] .composer { padding: 0.5rem 0.58rem calc(4.35rem + env(safe-area-inset-bottom)); }
18265
+ html[data-mobile-shell="v2"] .mobile-route { scroll-padding-block: 0.58rem; }
18266
+ html[data-mobile-shell="v2"] .mobile-route-header,
18267
+ html[data-mobile-shell="v2"] .mobile-surface-header { gap: 0.38rem; min-height: 48px; padding: 0.14rem 0 0.38rem; }
18268
+ html[data-mobile-shell="v2"] .mobile-route-header h1,
18269
+ html[data-mobile-shell="v2"] .mobile-surface-header h1 { font-size: 1rem; }
18270
+ html[data-mobile-shell="v2"] .mobile-session-actions,
18271
+ html[data-mobile-shell="v2"] .mobile-project-workflow-actions,
18272
+ html[data-mobile-shell="v2"] .mobile-activity-actions,
18273
+ html[data-mobile-shell="v2"] .mobile-presentation-choices { gap: 0.32rem; }
18274
+ html[data-mobile-shell="v2"] .mobile-search-field { gap: 0.16rem; margin: 0.52rem 0; }
18275
+ html[data-mobile-shell="v2"] .mobile-route-status { margin: 0.32rem 0 0.5rem; }
18276
+ html[data-mobile-shell="v2"] .mobile-session-group,
18277
+ html[data-mobile-shell="v2"] .mobile-activity-group,
18278
+ html[data-mobile-shell="v2"] .mobile-more-presentation { margin: 0.52rem 0; border-radius: 0.76rem; }
18279
+ html[data-mobile-shell="v2"] .mobile-session-group-heading { padding: 0.44rem 0.54rem; font-size: var(--mobile-label-text); }
18280
+ html[data-mobile-shell="v2"] .mobile-session-row { gap: 0.28rem; padding: 0.22rem; }
18281
+ html[data-mobile-shell="v2"] .mobile-session-select { gap: 0.42rem; padding: 0.32rem; }
18282
+ html[data-mobile-shell="v2"] .mobile-row-action { min-width: var(--mobile-control-size); padding-inline: 0.4rem; font-size: var(--mobile-label-text); }
18283
+ html[data-mobile-shell="v2"] .mobile-activity-item { padding: 0.54rem; }
18284
+ html[data-mobile-shell="v2"] .mobile-activity-item p { margin: 0.16rem 0 0.42rem; }
18285
+ html[data-mobile-shell="v2"] .mobile-topic-tabs { top: 48px; gap: 0.2rem; padding: 0.26rem 0; }
18286
+ html[data-mobile-shell="v2"] .mobile-topic-tabs button { min-width: var(--mobile-control-size); padding-inline: 0.22rem; font-size: var(--mobile-label-text); }
18287
+ html[data-mobile-shell="v2"] .mobile-canonical-host { padding-bottom: 0.56rem; }
18288
+ html[data-mobile-shell="v2"] .mobile-canonical-host > .side-panel-section-content { padding-block: 0.26rem; }
18289
+ html[data-mobile-shell="v2"] .mobile-shell-surface { padding: calc(0.24rem + env(safe-area-inset-top)) 0.58rem calc(0.5rem + env(safe-area-inset-bottom)); }
18290
+ html[data-mobile-shell="v2"] .mobile-surface-root { gap: 0.32rem; }
18291
+ html[data-mobile-shell="v2"] .mobile-more-presentation { padding: 0.56rem; }
18292
+ html[data-mobile-shell="v2"] .mobile-context-actions { gap: 0.32rem; }
18293
+ html[data-mobile-shell="v2"] .mobile-continuity-notice { top: calc(4.8rem + env(safe-area-inset-top)); right: 0.58rem; left: 0.58rem; padding: 0.44rem 0.56rem; }
18294
+ html[data-mobile-shell="v2"] .mobile-failed-send-recovery { gap: 0.3rem; padding: 0.38rem; }
18295
+ html[data-mobile-shell="v2"] .mobile-indicator { min-height: 1.2rem; padding: 0.06rem 0.3rem; font-size: 0.7rem; }
18296
+ html[data-mobile-shell="v2"] .jump-to-latest-button { bottom: calc(6.75rem + env(safe-area-inset-bottom)); }
18297
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .composer { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
18298
+ }
18299
+
18300
+ /* Touch browsers can leave :hover latched after a tap. Keep explicit
18301
+ keyboard and tap-feedback states, but do not render hover-only tooltips. */
18302
+ @media (hover: none) and (pointer: coarse) {
18303
+ [data-tooltip]:not(:focus-visible):not(.tooltip-open)::before,
18304
+ [data-tooltip]:not(:focus-visible):not(.tooltip-open)::after {
18305
+ display: none !important;
18306
+ opacity: 0 !important;
18307
+ }
18308
+ }