@firstpick/pi-package-webui 0.8.7 → 0.8.9

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 (41) hide show
  1. package/README.md +5 -0
  2. package/bin/pi-webui-rpc-supervisor.mjs +4 -1
  3. package/bin/pi-webui.mjs +9 -1
  4. package/lib/rpc-supervisor-protocol.mjs +6 -1
  5. package/package.json +1 -1
  6. package/public/app.js +679 -128
  7. package/public/index.html +49 -13
  8. package/public/service-worker.js +1 -1
  9. package/public/styles.css +836 -16
  10. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  11. package/tests/browser/interaction-continuity.spec.mjs +58 -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/side-panel-section-reorder.spec.mjs +16 -1
  16. package/tests/codex-fast-mode-static.test.mjs +2 -2
  17. package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
  18. package/tests/fast-mode-client-static.test.mjs +1 -1
  19. package/tests/feature-decision-output-popup-static.test.mjs +2 -2
  20. package/tests/file-tree-search-layout-static.test.mjs +261 -0
  21. package/tests/fixtures/fake-pi.mjs +6 -2
  22. package/tests/http-endpoints-harness.test.mjs +6 -2
  23. package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
  24. package/tests/mobile-compact-layout.test.mjs +60 -0
  25. package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
  26. package/tests/mobile-foundation-static.test.mjs +12 -12
  27. package/tests/mobile-phone-experience-static.test.mjs +2 -2
  28. package/tests/mobile-static.test.mjs +226 -21
  29. package/tests/open-issue-wizard-static.test.mjs +1 -1
  30. package/tests/optional-feature-migration-frontend.test.mjs +4 -0
  31. package/tests/persistent-ui-layout-static.test.mjs +3 -3
  32. package/tests/prompt-routing-tab-status.test.mjs +8 -0
  33. package/tests/questionnaire-dialog.test.mjs +3 -3
  34. package/tests/rpc-supervisor-host.test.mjs +18 -1
  35. package/tests/rpc-supervisor-protocol.test.mjs +5 -0
  36. package/tests/session-sampling-ui-static.test.mjs +3 -3
  37. package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
  38. package/tests/side-panel-section-reorder-static.test.mjs +23 -10
  39. package/tests/streaming-ui-coupling.test.mjs +8 -0
  40. package/tests/terminal-tab-workspace-static.test.mjs +15 -1
  41. 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
  }
@@ -1110,6 +1110,39 @@ body.embedded-split .side-panel-backdrop {
1110
1110
  font-size: 1rem;
1111
1111
  line-height: 1.25;
1112
1112
  }
1113
+ .side-panel-edit-hint {
1114
+ margin-top: 0.24rem;
1115
+ color: var(--ctp-teal);
1116
+ font-size: var(--text-xs);
1117
+ font-weight: 760;
1118
+ line-height: 1.2;
1119
+ }
1120
+ .side-panel-edit-hint[hidden] { display: none; }
1121
+ .side-panel-header-actions {
1122
+ display: flex;
1123
+ flex: 0 0 auto;
1124
+ align-items: center;
1125
+ gap: 0.42rem;
1126
+ }
1127
+ .side-panel-edit-button {
1128
+ display: none;
1129
+ align-items: center;
1130
+ justify-content: center;
1131
+ gap: 0.28rem;
1132
+ min-width: 0;
1133
+ padding: 0.34rem 0.52rem;
1134
+ color: var(--ctp-subtext);
1135
+ border-color: rgba(180, 190, 254, 0.28);
1136
+ background: rgba(var(--ctp-surface-rgb), 0.52);
1137
+ font-size: var(--text-xs);
1138
+ font-weight: 850;
1139
+ }
1140
+ .side-panel-edit-button[aria-pressed="true"] {
1141
+ color: var(--ctp-crust);
1142
+ border-color: rgba(148, 226, 213, 0.72);
1143
+ background: linear-gradient(135deg, var(--ctp-teal), var(--ctp-blue));
1144
+ box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.12), 0 0 1rem rgba(148, 226, 213, 0.18);
1145
+ }
1113
1146
  .side-panel-brand-row {
1114
1147
  display: flex;
1115
1148
  align-items: center;
@@ -1333,6 +1366,10 @@ body.embedded-split .side-panel-backdrop {
1333
1366
  border-color: rgba(245, 194, 231, 0.32);
1334
1367
  }
1335
1368
  .side-panel-section-toggle[data-side-panel-section-toggle] {
1369
+ cursor: pointer;
1370
+ touch-action: manipulation;
1371
+ }
1372
+ .side-panel.section-edit-mode .side-panel-section-toggle[data-side-panel-section-toggle] {
1336
1373
  cursor: grab;
1337
1374
  touch-action: none;
1338
1375
  user-select: none;
@@ -1965,11 +2002,18 @@ body.embedded-split .side-panel-backdrop {
1965
2002
  white-space: nowrap;
1966
2003
  }
1967
2004
  .file-tree-search-label {
1968
- display: grid;
1969
- gap: 0.08rem;
2005
+ display: flex;
2006
+ gap: 0.38rem;
2007
+ align-items: baseline;
1970
2008
  min-width: 0;
2009
+ overflow: hidden;
2010
+ white-space: nowrap;
2011
+ }
2012
+ .file-tree-search-label .file-tree-name {
2013
+ flex: 0 1 auto;
1971
2014
  }
1972
2015
  .file-tree-search-path {
2016
+ flex: 1 1 auto;
1973
2017
  min-width: 0;
1974
2018
  overflow: hidden;
1975
2019
  color: rgba(var(--ctp-subtext-rgb), 0.68);
@@ -1978,8 +2022,13 @@ body.embedded-split .side-panel-backdrop {
1978
2022
  text-overflow: ellipsis;
1979
2023
  white-space: nowrap;
1980
2024
  }
2025
+ .file-tree-search-path::before {
2026
+ content: "·";
2027
+ margin-right: 0.38rem;
2028
+ color: rgba(var(--ctp-subtext-rgb), 0.46);
2029
+ }
1981
2030
  .file-tree-search-item {
1982
- grid-template-columns: auto minmax(0, 1fr) auto auto;
2031
+ grid-template-columns: auto auto minmax(0, 1fr) auto auto;
1983
2032
  }
1984
2033
  .file-tree-kind {
1985
2034
  color: rgba(var(--ctp-subtext-rgb), 0.64);
@@ -2655,7 +2704,6 @@ body.embedded-split .side-panel-backdrop {
2655
2704
  border-color: transparent;
2656
2705
  background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-peach), var(--ctp-red));
2657
2706
  }
2658
- #networkControlField #showRemoteQrButton { display: none; }
2659
2707
  #showRemoteQrButton {
2660
2708
  color: var(--ctp-teal);
2661
2709
  border-color: rgba(148, 226, 213, 0.32);
@@ -3552,6 +3600,7 @@ button.subagent-gate-attempt:focus-visible {
3552
3600
  pointer-events: none;
3553
3601
  }
3554
3602
  .optional-feature-migration-card {
3603
+ position: relative;
3555
3604
  display: grid;
3556
3605
  grid-template-columns: minmax(0, 1fr) auto;
3557
3606
  gap: 0.65rem;
@@ -3571,6 +3620,9 @@ button.subagent-gate-attempt:focus-visible {
3571
3620
  .optional-feature-migration-card.phase-partial {
3572
3621
  border-color: rgba(249, 226, 175, 0.48);
3573
3622
  }
3623
+ .optional-feature-migration-card.phase-degraded {
3624
+ padding-right: 3.35rem;
3625
+ }
3574
3626
  .optional-feature-migration-card.phase-complete {
3575
3627
  border-color: rgba(166, 227, 161, 0.46);
3576
3628
  }
@@ -3606,6 +3658,29 @@ button.subagent-gate-attempt:focus-visible {
3606
3658
  font-size: var(--text-xs);
3607
3659
  font-weight: 850;
3608
3660
  }
3661
+ .optional-feature-migration-dismiss {
3662
+ position: absolute;
3663
+ top: 0.48rem;
3664
+ right: 0.48rem;
3665
+ display: inline-grid;
3666
+ place-items: center;
3667
+ min-width: 2rem;
3668
+ min-height: 2rem;
3669
+ padding: 0;
3670
+ border-color: rgba(180, 190, 254, 0.28);
3671
+ border-radius: 0.58rem;
3672
+ color: rgba(var(--ctp-subtext-rgb), 0.86);
3673
+ background: rgba(var(--ctp-surface-rgb), 0.36);
3674
+ font-size: 1.1rem;
3675
+ font-weight: 900;
3676
+ line-height: 1;
3677
+ }
3678
+ .optional-feature-migration-dismiss:hover,
3679
+ .optional-feature-migration-dismiss:focus-visible {
3680
+ border-color: rgba(148, 226, 213, 0.58);
3681
+ color: var(--ctp-text);
3682
+ background: rgba(148, 226, 213, 0.16);
3683
+ }
3609
3684
  .optional-feature-migration-output {
3610
3685
  grid-column: 1 / -1;
3611
3686
  max-height: 7rem;
@@ -4212,6 +4287,10 @@ button.subagent-gate-attempt:focus-visible {
4212
4287
  grid-template-columns: 1fr;
4213
4288
  max-height: min(52vh, 25rem);
4214
4289
  }
4290
+ .optional-feature-migration-dismiss {
4291
+ min-width: 2.75rem;
4292
+ min-height: 2.75rem;
4293
+ }
4215
4294
  .optional-feature-migration-actions,
4216
4295
  .optional-feature-batch-actions,
4217
4296
  .optional-feature-migration-dialog menu { justify-content: stretch; }
@@ -4383,6 +4462,26 @@ button.subagent-gate-attempt:focus-visible {
4383
4462
  .terminal-tab-group-button {
4384
4463
  width: 100%;
4385
4464
  }
4465
+ .terminal-tab-group-dropdown-indicator {
4466
+ display: none;
4467
+ flex: 0 0 auto;
4468
+ place-items: center;
4469
+ width: 1.5rem;
4470
+ height: 1.5rem;
4471
+ margin-left: auto;
4472
+ color: var(--ctp-teal);
4473
+ border: 1px solid rgba(148, 226, 213, 0.28);
4474
+ border-radius: 999px;
4475
+ background: rgba(148, 226, 213, 0.08);
4476
+ font-size: 1rem;
4477
+ font-weight: 900;
4478
+ line-height: 1;
4479
+ transition: transform 140ms ease, background 140ms ease;
4480
+ }
4481
+ .terminal-tab-group-button[aria-expanded="true"] .terminal-tab-group-dropdown-indicator {
4482
+ transform: rotate(180deg);
4483
+ background: rgba(148, 226, 213, 0.18);
4484
+ }
4386
4485
  .terminal-tab-group-count {
4387
4486
  flex: 0 0 auto;
4388
4487
  min-width: 1.35rem;
@@ -4890,7 +4989,7 @@ button.subagent-gate-attempt:focus-visible {
4890
4989
  body.terminal-tabs-left .chat-panel {
4891
4990
  display: grid;
4892
4991
  grid-template-columns: clamp(13rem, 18vw, 19rem) minmax(0, 1fr);
4893
- grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto auto;
4992
+ grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto auto auto;
4894
4993
  align-items: stretch;
4895
4994
  }
4896
4995
  body.terminal-tabs-left .terminal-tabs-shell {
@@ -4991,6 +5090,7 @@ button.subagent-gate-attempt:focus-visible {
4991
5090
  body.terminal-tabs-left .widget-area,
4992
5091
  body.terminal-tabs-left .subagent-terminal-view,
4993
5092
  body.terminal-tabs-left .chat,
5093
+ body.terminal-tabs-left .run-indicator-host,
4994
5094
  body.terminal-tabs-left .feedback-tray,
4995
5095
  body.terminal-tabs-left .jump-to-latest-button,
4996
5096
  body.terminal-tabs-left .statusbar,
@@ -5003,11 +5103,12 @@ button.subagent-gate-attempt:focus-visible {
5003
5103
  body.terminal-tabs-left .widget-area { grid-row: 2; }
5004
5104
  body.terminal-tabs-left .subagent-terminal-view { grid-row: 1 / -1; }
5005
5105
  body.terminal-tabs-left .chat { grid-row: 3; }
5006
- body.terminal-tabs-left .feedback-tray { grid-row: 4; }
5007
- body.terminal-tabs-left .jump-to-latest-button { grid-row: 5; }
5008
- body.terminal-tabs-left .statusbar { grid-row: 6; }
5009
- body.terminal-tabs-left .git-workflow-panel { grid-row: 7; }
5010
- body.terminal-tabs-left .composer { grid-row: 8; }
5106
+ body.terminal-tabs-left .run-indicator-host { grid-row: 4; }
5107
+ body.terminal-tabs-left .feedback-tray { grid-row: 5; }
5108
+ body.terminal-tabs-left .jump-to-latest-button { grid-row: 6; }
5109
+ body.terminal-tabs-left .statusbar { grid-row: 7; }
5110
+ body.terminal-tabs-left .git-workflow-panel { grid-row: 8; }
5111
+ body.terminal-tabs-left .composer { grid-row: 9; }
5011
5112
  }
5012
5113
 
5013
5114
  .widget-area {
@@ -7595,13 +7696,24 @@ button.git-workflow-step:hover:not(:disabled) {
7595
7696
  }
7596
7697
  .chat {
7597
7698
  position: relative;
7699
+ display: flex;
7598
7700
  flex: 1 1 auto;
7701
+ flex-direction: column;
7599
7702
  min-height: 0;
7600
7703
  overflow: auto;
7601
7704
  overflow-anchor: none;
7602
7705
  padding: 1rem;
7603
7706
  scroll-behavior: smooth;
7604
7707
  }
7708
+ /* Keep transcript cards top-anchored so textarea autosizing changes only the
7709
+ available viewport height instead of translating settled agent output. */
7710
+ .chat > .message:first-of-type { margin-top: 0; }
7711
+ .run-indicator-host:empty { display: none; }
7712
+ .run-indicator-host {
7713
+ flex: 0 0 auto;
7714
+ min-width: 0;
7715
+ padding: 0 1rem 1rem;
7716
+ }
7605
7717
  .sticky-user-prompt-button[hidden] { display: none; }
7606
7718
  .sticky-user-prompt-button {
7607
7719
  position: sticky;
@@ -10856,6 +10968,70 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
10856
10968
  color: var(--text);
10857
10969
  box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem var(--glow-mauve);
10858
10970
  }
10971
+ .extension-dialog.git-pull-error-dialog {
10972
+ width: min(46rem, calc(100vw - 2rem));
10973
+ border-color: rgba(243, 139, 168, 0.52);
10974
+ box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem rgba(243, 139, 168, 0.18);
10975
+ }
10976
+ .git-pull-error-dialog h2 {
10977
+ margin: 0;
10978
+ color: var(--ctp-red);
10979
+ }
10980
+ .git-pull-error-output {
10981
+ max-height: min(24rem, 48vh);
10982
+ margin: 0.9rem 0 0;
10983
+ padding: 0.9rem;
10984
+ overflow: auto;
10985
+ border: 1px solid rgba(243, 139, 168, 0.34);
10986
+ border-radius: 0.72rem;
10987
+ color: var(--ctp-text);
10988
+ background: rgba(var(--ctp-crust-rgb), 0.86);
10989
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
10990
+ font-size: 0.9rem;
10991
+ line-height: 1.45;
10992
+ overflow-wrap: anywhere;
10993
+ user-select: text;
10994
+ white-space: pre-wrap;
10995
+ }
10996
+ .git-pull-error-recovery {
10997
+ margin-top: 0.9rem;
10998
+ padding: 0.9rem;
10999
+ border: 1px solid rgba(249, 226, 175, 0.38);
11000
+ border-radius: 0.72rem;
11001
+ background: rgba(249, 226, 175, 0.08);
11002
+ }
11003
+ .git-pull-error-recovery[hidden] { display: none; }
11004
+ .git-pull-error-recovery > strong { color: var(--ctp-yellow); }
11005
+ .git-pull-error-recovery > p {
11006
+ margin: 0.4rem 0 0;
11007
+ color: var(--ctp-subtext1);
11008
+ }
11009
+ .git-pull-error-recovery-actions {
11010
+ display: flex;
11011
+ flex-wrap: wrap;
11012
+ justify-content: flex-end;
11013
+ gap: 0.55rem;
11014
+ margin-top: 0.75rem;
11015
+ }
11016
+ .git-pull-error-dialog[aria-busy="true"] .git-pull-error-recovery {
11017
+ opacity: 0.72;
11018
+ }
11019
+ .git-pull-error-status {
11020
+ min-height: 1.3rem;
11021
+ margin: 0.65rem 0 0;
11022
+ }
11023
+ .git-pull-error-status.success { color: var(--ctp-green); }
11024
+ .git-pull-error-status.error { color: var(--ctp-red); }
11025
+ @media (max-width: 34rem) {
11026
+ .git-pull-error-recovery-actions,
11027
+ .git-pull-error-dialog menu {
11028
+ display: grid;
11029
+ grid-template-columns: 1fr;
11030
+ }
11031
+ .git-pull-error-recovery-actions button,
11032
+ .git-pull-error-dialog menu button { width: 100%; }
11033
+ }
11034
+
10859
11035
  .extension-dialog.feature-decision-dialog {
10860
11036
  width: min(30rem, calc(100vw - 2rem));
10861
11037
  }
@@ -13695,6 +13871,10 @@ button.git-workflow-step { min-height: 1.9rem; }
13695
13871
  height: auto !important;
13696
13872
  overflow: visible !important;
13697
13873
  }
13874
+ .side-panel-section-toggle[data-side-panel-section-toggle] {
13875
+ cursor: pointer;
13876
+ touch-action: manipulation;
13877
+ }
13698
13878
  .chat { flex-basis: 0; }
13699
13879
  body:not(.side-panel-collapsed) { overflow: hidden; }
13700
13880
  body:not(.side-panel-collapsed) .chat-panel {
@@ -13854,6 +14034,14 @@ button.git-workflow-step { min-height: 1.9rem; }
13854
14034
  right: 0.42rem;
13855
14035
  z-index: 120;
13856
14036
  }
14037
+ body.footer-details-expanded .side-panel-toggle-button,
14038
+ body.footer-details-expanded .side-panel-expand-button,
14039
+ body.composer-actions-open .side-panel-toggle-button,
14040
+ body.composer-actions-open .side-panel-expand-button,
14041
+ body.mobile-tabs-expanded .side-panel-toggle-button,
14042
+ body.mobile-tabs-expanded .side-panel-expand-button {
14043
+ display: none !important;
14044
+ }
13857
14045
  .terminal-close-all-button {
13858
14046
  min-height: 44px;
13859
14047
  padding: 0.16rem 0.46rem;
@@ -13907,9 +14095,14 @@ button.git-workflow-step { min-height: 1.9rem; }
13907
14095
  flex-basis: 100%;
13908
14096
  }
13909
14097
  .terminal-tab-group-button {
13910
- width: auto;
14098
+ width: 100%;
13911
14099
  min-width: 0;
13912
14100
  }
14101
+ .terminal-tab-group-dropdown-indicator { display: inline-grid; }
14102
+ .terminal-tab-group:hover:not(.menu-open) .terminal-tab-group-menu,
14103
+ .terminal-tab-group:focus-within:not(.menu-open) .terminal-tab-group-menu {
14104
+ display: none;
14105
+ }
13913
14106
  .terminal-tab-group-menu {
13914
14107
  grid-column: 1 / -1;
13915
14108
  position: static;
@@ -13934,6 +14127,9 @@ button.git-workflow-step { min-height: 1.9rem; }
13934
14127
  width: auto;
13935
14128
  flex-wrap: wrap;
13936
14129
  }
14130
+ .terminal-tabs:has(> .terminal-tab-group.menu-open:not(.terminal-tab-subagent-group)) > .terminal-new-tab-menu {
14131
+ display: none;
14132
+ }
13937
14133
  .terminal-new-tab-menu.open,
13938
14134
  .terminal-new-tab-menu:focus-within {
13939
14135
  flex-basis: 100%;
@@ -13956,6 +14152,7 @@ button.git-workflow-step { min-height: 1.9rem; }
13956
14152
  .terminal-tab-button { padding: 0.32rem 0.52rem; }
13957
14153
  .terminal-tab-title { font-size: 0.78rem; }
13958
14154
  .terminal-tab-meta { display: none; }
14155
+ .terminal-tab-group > .terminal-tab-group-button > .terminal-tab-meta { display: block; }
13959
14156
  .terminal-tab-actions,
13960
14157
  .terminal-tab-close {
13961
14158
  flex-basis: 44px;
@@ -14020,14 +14217,30 @@ button.git-workflow-step { min-height: 1.9rem; }
14020
14217
  padding-bottom: 0.42rem;
14021
14218
  }
14022
14219
  .todo-widget-summary { gap: 0.24rem; }
14220
+ .todo-widget:not([open]) .todo-widget-summary { display: block; }
14221
+ .todo-widget:not([open]) .todo-widget-goal,
14222
+ .todo-widget:not([open]) .todo-widget-progress { display: none; }
14023
14223
  .todo-widget-goal { font-size: var(--text-xs); }
14024
14224
  .todo-widget-header { gap: 0.26rem; }
14225
+ .todo-widget:not([open]) .todo-widget-header {
14226
+ flex-wrap: nowrap;
14227
+ overflow: hidden;
14228
+ }
14025
14229
  .todo-widget-toggle {
14026
14230
  width: 0.9rem;
14027
14231
  height: 0.9rem;
14028
14232
  font-size: 0.88rem;
14029
14233
  }
14030
14234
  .todo-widget-title { font-size: var(--text-xs); }
14235
+ .todo-widget:not([open]) .todo-widget-title {
14236
+ flex: 1 1 auto;
14237
+ overflow: hidden;
14238
+ text-overflow: ellipsis;
14239
+ white-space: nowrap;
14240
+ }
14241
+ .todo-widget:not([open]) .todo-widget-toggle,
14242
+ .todo-widget:not([open]) .todo-widget-count,
14243
+ .todo-widget:not([open]) .todo-widget-meta { flex: 0 0 auto; }
14031
14244
  .todo-widget-count,
14032
14245
  .todo-widget-meta {
14033
14246
  min-height: 0.98rem;
@@ -14054,6 +14267,22 @@ button.git-workflow-step { min-height: 1.9rem; }
14054
14267
  padding: 0.62rem 0.58rem;
14055
14268
  scroll-padding-bottom: calc(12rem + var(--keyboard-inset-bottom, 0px));
14056
14269
  }
14270
+ .run-indicator-host {
14271
+ padding: 0 0.58rem 0.62rem;
14272
+ }
14273
+ .run-indicator-host > .run-indicator-message .run-indicator-row {
14274
+ display: grid;
14275
+ grid-template-columns: auto auto minmax(0, 1fr);
14276
+ flex-wrap: nowrap;
14277
+ min-width: 0;
14278
+ }
14279
+ .run-indicator-host > .run-indicator-message .run-indicator-text { white-space: nowrap; }
14280
+ .run-indicator-host > .run-indicator-message .run-indicator-meta {
14281
+ min-width: 0;
14282
+ overflow: hidden;
14283
+ text-overflow: ellipsis;
14284
+ white-space: nowrap;
14285
+ }
14057
14286
  .sticky-user-prompt-button {
14058
14287
  grid-template-columns: minmax(0, 1fr) auto;
14059
14288
  min-height: 36px;
@@ -14124,10 +14353,39 @@ button.git-workflow-step { min-height: 1.9rem; }
14124
14353
  font-size: var(--text-xs);
14125
14354
  }
14126
14355
  .context-meter-bar { display: none !important; }
14127
- body.footer-details-expanded .statusbar {
14128
- max-height: min(42dvh, 20rem);
14129
- overflow: auto;
14356
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) .statusbar-git-footer .git-footer-refresh-button { display: none; }
14357
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer {
14358
+ position: fixed;
14359
+ z-index: 130;
14360
+ inset: 0;
14361
+ width: 100vw;
14362
+ height: var(--visual-viewport-height, 100dvh);
14363
+ max-height: none;
14364
+ 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));
14365
+ overflow-x: hidden;
14366
+ overflow-y: auto;
14130
14367
  overscroll-behavior: contain;
14368
+ border: 0;
14369
+ border-radius: 0;
14370
+ background:
14371
+ radial-gradient(circle at 8% 0%, rgba(245, 194, 231, 0.14), transparent 18rem),
14372
+ radial-gradient(circle at 92% 12%, rgba(148, 226, 213, 0.12), transparent 20rem),
14373
+ linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.995), rgba(var(--ctp-base-rgb), 0.99));
14374
+ box-shadow: none;
14375
+ }
14376
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer .git-footer-refresh-button {
14377
+ position: fixed;
14378
+ z-index: 132;
14379
+ top: max(0.65rem, env(safe-area-inset-top));
14380
+ right: max(0.7rem, env(safe-area-inset-right));
14381
+ display: inline-grid;
14382
+ width: 44px;
14383
+ min-width: 44px;
14384
+ height: 44px;
14385
+ min-height: 44px;
14386
+ opacity: 1;
14387
+ pointer-events: auto;
14388
+ transform: none;
14131
14389
  }
14132
14390
  body.footer-model-picker-open .statusbar {
14133
14391
  z-index: 12;
@@ -14198,7 +14456,8 @@ button.git-workflow-step { min-height: 1.9rem; }
14198
14456
  }
14199
14457
  .footer-details-toggle {
14200
14458
  display: block;
14201
- min-height: 36px;
14459
+ min-width: 44px;
14460
+ min-height: 44px;
14202
14461
  padding: 0.24rem 0.5rem;
14203
14462
  color: var(--ctp-yellow);
14204
14463
  border-color: rgba(249, 226, 175, 0.34);
@@ -14206,6 +14465,21 @@ button.git-workflow-step { min-height: 1.9rem; }
14206
14465
  font-weight: 900;
14207
14466
  line-height: 1.1;
14208
14467
  }
14468
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-details-toggle {
14469
+ position: fixed;
14470
+ z-index: 132;
14471
+ top: max(0.65rem, env(safe-area-inset-top));
14472
+ left: max(0.7rem, env(safe-area-inset-left));
14473
+ display: grid;
14474
+ place-items: center;
14475
+ width: 44px;
14476
+ min-width: 44px;
14477
+ height: 44px;
14478
+ min-height: 44px;
14479
+ padding: 0;
14480
+ font-size: 1.5rem;
14481
+ line-height: 1;
14482
+ }
14209
14483
  .composer {
14210
14484
  position: sticky;
14211
14485
  bottom: 0;
@@ -16470,6 +16744,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
16470
16744
  padding: calc(5.4rem + env(safe-area-inset-top)) 0.75rem 0.8rem;
16471
16745
  scroll-padding-block-start: 5.75rem;
16472
16746
  }
16747
+ html[data-mobile-shell="v2"] .run-indicator-host { padding: 0 0.75rem 0.8rem; }
16473
16748
  html[data-mobile-shell="v2"] .composer {
16474
16749
  padding: 0.65rem 0.75rem calc(4.8rem + env(safe-area-inset-bottom));
16475
16750
  background: linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.74), rgba(var(--ctp-crust-rgb), 0.96));
@@ -17445,3 +17720,548 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
17445
17720
  .session-summary-overlay-actions { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
17446
17721
  .session-summary-overlay-actions button { flex: 1 1 0; min-width: 0; }
17447
17722
  }
17723
+
17724
+ /* Compact legacy-mobile shell: terminal navigation is a left drawer and the
17725
+ composer keeps only primary run controls visible until More is expanded. */
17726
+ .terminal-tabs-drawer-content { display: contents; }
17727
+ .terminal-tabs-backdrop,
17728
+ .composer-actions-heading { display: none; }
17729
+
17730
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
17731
+ .terminal-tabs-drawer-content { display: none; }
17732
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:not([hidden]) {
17733
+ position: fixed;
17734
+ inset: 0;
17735
+ z-index: 121;
17736
+ display: block;
17737
+ width: 100%;
17738
+ min-height: 100%;
17739
+ padding: 0;
17740
+ border: 0;
17741
+ border-radius: 0;
17742
+ background: rgba(var(--ctp-crust-rgb), 0.66);
17743
+ box-shadow: none;
17744
+ backdrop-filter: blur(4px);
17745
+ }
17746
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:hover,
17747
+ body.mobile-tabs-expanded .terminal-tabs-backdrop:active {
17748
+ transform: none;
17749
+ border-color: transparent;
17750
+ box-shadow: none;
17751
+ }
17752
+ body.mobile-tabs-expanded .terminal-tabs-shell {
17753
+ position: fixed;
17754
+ z-index: 122;
17755
+ top: 0;
17756
+ right: 0;
17757
+ bottom: auto;
17758
+ left: 0;
17759
+ display: flex;
17760
+ flex-direction: column;
17761
+ align-items: stretch;
17762
+ gap: 0.55rem;
17763
+ width: 100vw;
17764
+ height: var(--visual-viewport-height, 100dvh);
17765
+ min-height: 0;
17766
+ max-height: none;
17767
+ 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));
17768
+ overflow: hidden;
17769
+ border: 0;
17770
+ border-radius: 0;
17771
+ background:
17772
+ radial-gradient(circle at 0% 0%, rgba(148, 226, 213, 0.13), transparent 14rem),
17773
+ linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.99), rgba(var(--ctp-base-rgb), 0.97));
17774
+ box-shadow: none;
17775
+ }
17776
+ body.mobile-tabs-expanded .terminal-tabs-shell[aria-modal="true"] {
17777
+ z-index: 122;
17778
+ }
17779
+ body.mobile-tabs-expanded .terminal-tabs-toggle-button {
17780
+ flex: 0 0 auto;
17781
+ width: 100%;
17782
+ max-width: none;
17783
+ }
17784
+ body.mobile-tabs-expanded .terminal-tabs-drawer-content {
17785
+ display: flex;
17786
+ flex: 1 1 auto;
17787
+ flex-direction: column;
17788
+ gap: 0.52rem;
17789
+ min-height: 0;
17790
+ }
17791
+ body.mobile-tabs-expanded .terminal-tabs {
17792
+ position: static;
17793
+ display: flex;
17794
+ flex: 1 1 auto;
17795
+ flex-direction: column;
17796
+ flex-wrap: nowrap;
17797
+ align-items: stretch;
17798
+ gap: 0.38rem;
17799
+ width: 100%;
17800
+ max-height: none;
17801
+ min-height: 0;
17802
+ padding: 0.08rem;
17803
+ overflow-x: hidden;
17804
+ overflow-y: auto;
17805
+ border: 0;
17806
+ border-radius: 0;
17807
+ background: transparent;
17808
+ box-shadow: none;
17809
+ }
17810
+ body.mobile-tabs-expanded .terminal-tabs.terminal-tabs-dense { max-height: none; }
17811
+ body.mobile-tabs-expanded .terminal-tab,
17812
+ body.mobile-tabs-expanded .terminal-tabs.terminal-tabs-dense .terminal-tab,
17813
+ body.mobile-tabs-expanded .terminal-tab-group,
17814
+ body.mobile-tabs-expanded .terminal-new-tab-menu {
17815
+ flex: 0 0 auto;
17816
+ width: 100%;
17817
+ min-width: 0;
17818
+ max-width: none;
17819
+ }
17820
+ body.mobile-tabs-expanded .terminal-new-tab-button { width: 100%; justify-content: flex-start; }
17821
+ body.mobile-tabs-expanded .terminal-sidebar-actions {
17822
+ display: grid;
17823
+ grid-template-columns: repeat(3, minmax(0, 1fr));
17824
+ gap: 0.42rem;
17825
+ width: 100%;
17826
+ padding: 0.42rem;
17827
+ border: 1px solid rgba(180, 190, 254, 0.16);
17828
+ border-radius: 0.86rem;
17829
+ background: rgba(var(--ctp-crust-rgb), 0.42);
17830
+ }
17831
+ body.mobile-tabs-expanded .terminal-sidebar-actions > button {
17832
+ width: 100%;
17833
+ min-width: 0;
17834
+ min-height: 44px;
17835
+ padding: 0.42rem;
17836
+ }
17837
+ body.mobile-tabs-expanded .remote-access-indicator,
17838
+ body.mobile-tabs-expanded .terminal-close-all-button { width: 100%; max-width: none; }
17839
+
17840
+ body.mobile-composer-disclosure .composer-input-row {
17841
+ grid-template-columns: minmax(0, 1fr) 44px;
17842
+ gap: 0.36rem;
17843
+ }
17844
+ body.mobile-composer-disclosure .composer-row {
17845
+ grid-template-columns: repeat(5, minmax(0, 1fr));
17846
+ gap: 0.28rem;
17847
+ }
17848
+ body.mobile-composer-disclosure .composer-row > #abortButton,
17849
+ body.mobile-composer-disclosure .composer-row > #steerButton,
17850
+ body.mobile-composer-disclosure .composer-row > #followUpButton,
17851
+ body.mobile-composer-disclosure .composer-row > #sendButton,
17852
+ body.mobile-composer-disclosure .composer-row > .composer-actions-button {
17853
+ min-width: 0;
17854
+ grid-column: auto;
17855
+ padding-inline: 0.28rem;
17856
+ font-size: 0.72rem;
17857
+ }
17858
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #abortButton { order: 1; }
17859
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #steerButton { order: 2; }
17860
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #followUpButton { order: 3; }
17861
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > .composer-actions-button { order: 4; }
17862
+ body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #sendButton { order: 5; }
17863
+ body.mobile-composer-disclosure:not(.pi-run-active):not(.mobile-keyboard-open) .composer-row > .composer-actions-button {
17864
+ order: 1;
17865
+ grid-column: span 2;
17866
+ }
17867
+ body.mobile-composer-disclosure:not(.pi-run-active):not(.mobile-keyboard-open) .composer-row > #sendButton {
17868
+ order: 2;
17869
+ grid-column: span 3;
17870
+ }
17871
+ body.mobile-composer-disclosure.composer-actions-open .composer { z-index: 130; }
17872
+ body.mobile-composer-disclosure .composer-actions-panel {
17873
+ position: fixed;
17874
+ z-index: 130;
17875
+ inset: 0;
17876
+ grid-template-columns: repeat(2, minmax(0, 1fr));
17877
+ align-content: start;
17878
+ gap: 0.44rem;
17879
+ width: 100vw;
17880
+ height: var(--visual-viewport-height, 100dvh);
17881
+ max-height: none;
17882
+ 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));
17883
+ overflow-x: hidden;
17884
+ overflow-y: auto;
17885
+ overscroll-behavior: contain;
17886
+ border: 0;
17887
+ border-radius: 0;
17888
+ box-shadow: none;
17889
+ -webkit-overflow-scrolling: touch;
17890
+ }
17891
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-panel { display: grid; }
17892
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-button {
17893
+ position: fixed;
17894
+ z-index: 132;
17895
+ top: max(0.65rem, env(safe-area-inset-top));
17896
+ right: max(0.7rem, env(safe-area-inset-right));
17897
+ display: grid;
17898
+ place-items: center;
17899
+ width: 44px;
17900
+ min-width: 44px;
17901
+ height: 44px;
17902
+ min-height: 44px;
17903
+ grid-column: auto;
17904
+ padding: 0;
17905
+ font-size: 1.5rem;
17906
+ line-height: 1;
17907
+ }
17908
+ body.mobile-composer-disclosure .composer-actions-heading {
17909
+ grid-column: 1 / -1;
17910
+ display: block;
17911
+ margin: 0.2rem 0 0;
17912
+ padding: 0.34rem 0.12rem 0.18rem;
17913
+ color: var(--ctp-subtext);
17914
+ border-top: 1px solid rgba(180, 190, 254, 0.14);
17915
+ font-size: var(--text-xs);
17916
+ letter-spacing: 0.08em;
17917
+ text-transform: uppercase;
17918
+ }
17919
+ body.mobile-composer-disclosure .composer-actions-heading:first-child {
17920
+ margin-top: 0;
17921
+ padding-top: 0;
17922
+ border-top: 0;
17923
+ }
17924
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-workflow-mode-dock,
17925
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags,
17926
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-busy-mode-menu,
17927
+ body.mobile-composer-disclosure .composer-actions-panel > .follow-up-queue-trigger {
17928
+ position: static;
17929
+ grid-column: 1 / -1;
17930
+ width: 100%;
17931
+ max-width: none;
17932
+ margin: 0;
17933
+ transform: none;
17934
+ }
17935
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-workflow-mode-dock {
17936
+ display: flex;
17937
+ justify-content: flex-start;
17938
+ min-height: 44px;
17939
+ padding: 0.28rem;
17940
+ border: 1px solid rgba(180, 190, 254, 0.16);
17941
+ border-radius: 0.72rem;
17942
+ background: rgba(var(--ctp-crust-rgb), 0.34);
17943
+ }
17944
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags {
17945
+ display: flex;
17946
+ min-height: 44px;
17947
+ padding: 0.3rem;
17948
+ overflow: visible;
17949
+ pointer-events: auto;
17950
+ border: 1px solid rgba(180, 190, 254, 0.16);
17951
+ border-radius: 0.72rem;
17952
+ background: rgba(var(--ctp-crust-rgb), 0.34);
17953
+ }
17954
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags > * { pointer-events: auto; }
17955
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-busy-mode-menu {
17956
+ display: grid;
17957
+ z-index: auto;
17958
+ padding: 0;
17959
+ border: 0;
17960
+ box-shadow: none;
17961
+ }
17962
+ body.mobile-composer-disclosure .composer-actions-panel > .follow-up-queue-trigger {
17963
+ display: inline-flex;
17964
+ justify-content: center;
17965
+ min-height: 44px;
17966
+ }
17967
+ body.mobile-composer-disclosure .composer-actions-panel > #btwButton,
17968
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-conversation-voice-menu,
17969
+ body.mobile-composer-disclosure .composer-actions-panel > .composer-conversation-end-button {
17970
+ grid-column: span 1;
17971
+ width: 100%;
17972
+ min-width: 0;
17973
+ min-height: 44px;
17974
+ margin: 0;
17975
+ }
17976
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row {
17977
+ grid-template-columns: repeat(4, minmax(0, 1fr));
17978
+ gap: 0.28rem;
17979
+ }
17980
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-actions-button,
17981
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-actions-panel { display: none !important; }
17982
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #abortButton,
17983
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #steerButton,
17984
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #followUpButton,
17985
+ body.mobile-composer-disclosure.mobile-keyboard-open .composer-row > #sendButton {
17986
+ grid-column: auto;
17987
+ min-height: 44px;
17988
+ }
17989
+ body.mobile-composer-disclosure.mobile-keyboard-open:not(.pi-run-active) .composer-row > #sendButton { grid-column: 1 / -1; }
17990
+ }
17991
+
17992
+ /* Balanced phone density: retain reliable 40px controls while reducing the
17993
+ padding, gaps, and type scale that compete with transcript content. */
17994
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
17995
+ :root {
17996
+ --mobile-control-size: 40px;
17997
+ --mobile-page-gutter: 0.5rem;
17998
+ --mobile-card-padding: 0.5rem;
17999
+ --mobile-gap: 0.3rem;
18000
+ --mobile-body-text: 0.86rem;
18001
+ --mobile-label-text: 0.72rem;
18002
+ }
18003
+ body { font-size: var(--mobile-body-text); }
18004
+ button {
18005
+ min-width: var(--mobile-control-size);
18006
+ min-height: var(--mobile-control-size);
18007
+ padding: 0.42rem 0.68rem;
18008
+ font-size: 0.8rem;
18009
+ }
18010
+ input,
18011
+ select { min-height: var(--mobile-control-size); font-size: 0.84rem; }
18012
+ textarea { font-size: 0.84rem; }
18013
+
18014
+ .terminal-tabs-shell {
18015
+ gap: 0.22rem;
18016
+ min-height: calc(var(--mobile-control-size) + env(safe-area-inset-top));
18017
+ padding: calc(0.08rem + env(safe-area-inset-top)) var(--mobile-page-gutter) 0.08rem;
18018
+ }
18019
+ body.side-panel-collapsed .terminal-tabs-shell { padding-right: calc(var(--mobile-control-size) + 0.65rem); }
18020
+ .terminal-tabs-toggle-button,
18021
+ .terminal-close-all-button { min-height: var(--mobile-control-size); padding-block: 0.12rem; }
18022
+ .side-panel-toggle-button,
18023
+ .side-panel-expand-button,
18024
+ .composer-attach-button,
18025
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer .git-footer-refresh-button,
18026
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-details-toggle,
18027
+ body.mobile-composer-disclosure.composer-actions-open .composer-actions-button {
18028
+ width: var(--mobile-control-size);
18029
+ min-width: var(--mobile-control-size);
18030
+ height: var(--mobile-control-size);
18031
+ min-height: var(--mobile-control-size);
18032
+ }
18033
+ .terminal-tab-button,
18034
+ .terminal-tab-actions,
18035
+ .terminal-tab-close,
18036
+ .terminal-new-tab-button,
18037
+ .terminal-new-tab-menu-item,
18038
+ .terminal-tab-group-add,
18039
+ .composer-row button,
18040
+ .composer-row button.primary,
18041
+ .composer-actions-panel label,
18042
+ .composer-options-submenu-trigger,
18043
+ .composer-options-submenu-panel > .composer-options-menu-item,
18044
+ .follow-up-queue-close-button,
18045
+ .follow-up-queue-move-button,
18046
+ .follow-up-queue-remove-button { min-height: var(--mobile-control-size); }
18047
+ .terminal-tab-actions,
18048
+ .terminal-tab-close { flex-basis: var(--mobile-control-size); min-width: var(--mobile-control-size); }
18049
+ .terminal-tabs { gap: 0.28rem; padding: 0.42rem; }
18050
+ .terminal-tab-button { padding: 0.26rem 0.44rem; }
18051
+ .terminal-tab-title { font-size: 0.74rem; }
18052
+ .terminal-new-tab-button,
18053
+ .terminal-new-tab-menu-item { padding: 0.3rem 0.48rem; }
18054
+
18055
+ .widget-area { padding: 0.28rem 0.46rem; }
18056
+ .release-npm-widget { gap: 0.36rem; padding: 0.46rem; }
18057
+ .release-npm-stream-header { padding: 0.24rem 0.34rem; }
18058
+ .release-npm-terminal { padding: 0.44rem 0.36rem; font-size: 0.72rem; }
18059
+ .todo-widget { padding: 0.3rem 0.36rem; }
18060
+ .todo-widget[open] { gap: 0.22rem; padding-bottom: 0.34rem; }
18061
+ .todo-widget-body { gap: 0.2rem; }
18062
+ .todo-widget-item { gap: 0.24rem; font-size: 0.7rem; }
18063
+
18064
+ .chat { padding: 0.5rem 0.46rem; }
18065
+ .run-indicator-host { padding: 0 0.46rem 0.5rem; }
18066
+ .message { margin-bottom: 0.5rem; padding: 0.56rem 0.58rem; border-radius: 0.74rem; }
18067
+ .message-body { font-size: 0.84rem; }
18068
+ .message-header { gap: 0.4rem; margin-bottom: 0.3rem; font-size: var(--mobile-label-text); }
18069
+ .message-copy-button { top: 0.28rem; right: 0.32rem; width: 1.8rem; min-width: 1.8rem; min-height: 1.8rem; }
18070
+ .message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-header,
18071
+ .message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-body,
18072
+ .message.has-copy-action > .message-collapse > summary.message-header { padding-right: 2.2rem; }
18073
+ .code-block { padding: 0.48rem; font-size: 0.74rem; }
18074
+ details { padding: 0.42rem; }
18075
+ .statusbar { padding: 0.22rem 0.34rem; font-size: var(--mobile-label-text); }
18076
+ .footer-metric,
18077
+ .footer-meta { padding: 0.18rem 0.3rem; }
18078
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .statusbar-git-footer {
18079
+ align-content: start;
18080
+ grid-auto-rows: max-content;
18081
+ gap: 0.48rem;
18082
+ 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));
18083
+ }
18084
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main,
18085
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta {
18086
+ display: grid;
18087
+ grid-template-columns: repeat(2, minmax(0, 1fr));
18088
+ align-content: start;
18089
+ gap: 0.36rem;
18090
+ margin: 0;
18091
+ }
18092
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main::before,
18093
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta::before {
18094
+ grid-column: 1 / -1;
18095
+ padding: 0.08rem 0.12rem 0.02rem;
18096
+ color: rgba(var(--ctp-subtext-rgb), 0.68);
18097
+ font-size: 0.66rem;
18098
+ font-weight: 900;
18099
+ letter-spacing: 0.11em;
18100
+ text-transform: uppercase;
18101
+ }
18102
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main::before { content: "Session"; }
18103
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta::before { content: "Workspace, Git & runtime"; }
18104
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-main > .footer-metric {
18105
+ grid-template-columns: auto minmax(0, 1fr);
18106
+ grid-template-areas: "icon label" "icon value";
18107
+ align-self: start;
18108
+ min-height: 3rem;
18109
+ padding: 0.42rem 0.46rem;
18110
+ gap: 0.06rem 0.38rem;
18111
+ border-radius: 0.68rem;
18112
+ }
18113
+ 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; }
18114
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-icon { grid-area: icon; }
18115
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label { grid-area: label; }
18116
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value { grid-area: value; }
18117
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label,
18118
+ 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; }
18119
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value,
18120
+ 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; }
18121
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta .footer-meta {
18122
+ align-self: start;
18123
+ min-height: 2.6rem;
18124
+ padding: 0.38rem 0.44rem;
18125
+ gap: 0.3rem;
18126
+ border-radius: 0.64rem;
18127
+ }
18128
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-workspace,
18129
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-context,
18130
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-model,
18131
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-git-state,
18132
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-git-extra,
18133
+ html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-extension-meta { grid-column: 1 / -1; }
18134
+ .footer-details-toggle { min-width: var(--mobile-control-size); min-height: var(--mobile-control-size); }
18135
+
18136
+ .composer { padding: 0.3rem 0.34rem calc(0.3rem + env(safe-area-inset-bottom)); }
18137
+ .composer-input-row { gap: 0.28rem; }
18138
+ .composer-attach-button { padding: 0.36rem; border-radius: 0.64rem; }
18139
+ #promptInput {
18140
+ min-height: calc(1.3em + 0.88rem);
18141
+ padding: 0.44rem 0.52rem;
18142
+ font-size: 0.88rem;
18143
+ line-height: 1.3;
18144
+ }
18145
+ .composer-row { gap: 0.24rem; margin-top: 0.3rem; }
18146
+ .composer-row button { padding: 0.28rem 0.36rem; font-size: 0.74rem; }
18147
+ .composer-row button.primary { font-size: 0.8rem; }
18148
+ .composer-actions-panel { gap: 0.34rem; padding: 0.56rem; }
18149
+ .composer-actions-panel label { gap: 0.42rem; font-size: var(--mobile-label-text); }
18150
+ body.mobile-composer-disclosure .composer-input-row { grid-template-columns: minmax(0, 1fr) var(--mobile-control-size); gap: 0.28rem; }
18151
+ body.mobile-composer-disclosure .composer-row { gap: 0.22rem; }
18152
+ body.mobile-composer-disclosure .composer-actions-panel {
18153
+ gap: 0.34rem;
18154
+ 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));
18155
+ }
18156
+ body.mobile-composer-disclosure .composer-actions-heading { margin-top: 0.14rem; padding: 0.26rem 0.08rem 0.12rem; font-size: var(--mobile-label-text); }
18157
+
18158
+ .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; }
18159
+ .side-panel-header { gap: var(--mobile-gap); padding: 0.48rem; }
18160
+ .side-panel-header-actions { gap: 0.24rem; }
18161
+ .side-panel-edit-button { display: inline-flex; padding-inline: 0.42rem; }
18162
+ .side-panel.section-edit-mode .side-panel-section-toggle[data-side-panel-section-toggle] {
18163
+ border-color: rgba(148, 226, 213, 0.42);
18164
+ 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);
18165
+ }
18166
+ .side-panel.section-edit-mode .side-panel-section-label::before {
18167
+ content: "↕";
18168
+ margin-right: 0.34rem;
18169
+ color: var(--ctp-teal);
18170
+ }
18171
+ .side-panel-body { gap: 0.36rem; padding: 0.44rem; }
18172
+ .side-panel-section-toggle { min-height: var(--mobile-control-size); padding: 0.36rem 0.44rem; font-size: 0.78rem; }
18173
+ .side-panel-section-content { padding: 0.42rem; font-size: 0.8rem; }
18174
+ .command-suggest { font-size: 0.8rem; }
18175
+ .command-suggest-item { gap: 0.2rem; padding: 0.48rem 0.56rem; }
18176
+
18177
+ .extension-dialog { font-size: 0.82rem; }
18178
+ .extension-dialog > header,
18179
+ .extension-dialog .dialog-header { padding: 0.52rem 0.58rem; }
18180
+ .questionnaire-dialog #dialogTitle { font-size: 1.02rem; }
18181
+ .questionnaire-dialog #dialogMessage { margin: 0.42rem 0 0.52rem; padding: 0.46rem 0.52rem; }
18182
+ .questionnaire-options { gap: 0.38rem; }
18183
+ .questionnaire-options button { min-height: 3rem; }
18184
+ .questionnaire-option { gap: 0.4rem; padding: 0.46rem 0.44rem; }
18185
+
18186
+ body.mobile-tabs-expanded .terminal-tabs-shell {
18187
+ gap: 0.42rem;
18188
+ 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));
18189
+ }
18190
+ body.mobile-tabs-expanded .terminal-tabs-drawer-content { gap: 0.4rem; }
18191
+ body.mobile-tabs-expanded .terminal-tabs { gap: 0.3rem; }
18192
+ body.mobile-tabs-expanded .terminal-sidebar-actions { gap: 0.32rem; padding: 0.32rem; }
18193
+ body.mobile-tabs-expanded .terminal-sidebar-actions > button { min-height: var(--mobile-control-size); padding: 0.32rem; }
18194
+
18195
+ html[data-mobile-shell="v2"] .mobile-shell-session-button,
18196
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button,
18197
+ html[data-mobile-shell="v2"] .mobile-shell-nav button,
18198
+ html[data-mobile-shell="v2"] .mobile-route button,
18199
+ html[data-mobile-shell="v2"] .mobile-shell-surface button,
18200
+ html[data-mobile-shell="v2"] .mobile-search-field input,
18201
+ html[data-mobile-shell="v2"] .message .message-collapse > summary,
18202
+ html[data-mobile-shell="v2"] .thinking-block > summary { min-height: var(--mobile-control-size); }
18203
+ html[data-mobile-shell="v2"] .mobile-shell-appbar {
18204
+ gap: 0.26rem;
18205
+ min-height: calc(68px + env(safe-area-inset-top));
18206
+ padding: calc(0.16rem + env(safe-area-inset-top)) 0.42rem 0.16rem;
18207
+ }
18208
+ html[data-mobile-shell="v2"] .mobile-shell-session-button { grid-column: 1; grid-row: 1; gap: 0.34rem; padding: 0.26rem 0.36rem; }
18209
+ html[data-mobile-shell="v2"] #mobileSearchButton { grid-column: 2; grid-row: 1; }
18210
+ html[data-mobile-shell="v2"] #mobileMoreButton { grid-column: 3; grid-row: 1; }
18211
+ html[data-mobile-shell="v2"] .mobile-shell-indicators { grid-row: 2; gap: 0.22rem; }
18212
+ html[data-mobile-shell="v2"] .mobile-shell-icon-button { padding-inline: 0.44rem; font-size: var(--mobile-label-text); }
18213
+ html[data-mobile-shell="v2"] .mobile-shell-nav {
18214
+ min-height: calc(54px + env(safe-area-inset-bottom));
18215
+ padding: 0.14rem 0.22rem calc(0.14rem + env(safe-area-inset-bottom));
18216
+ }
18217
+ html[data-mobile-shell="v2"] .mobile-shell-nav button { gap: 0.04rem; padding: 0.14rem; border-radius: 0.62rem; font-size: 0.7rem; }
18218
+ html[data-mobile-shell="v2"] .mobile-shell-destination:not(.mobile-chat-route) {
18219
+ padding: calc(4.8rem + env(safe-area-inset-top)) 0.58rem calc(4.35rem + env(safe-area-inset-bottom));
18220
+ }
18221
+ html[data-mobile-shell="v2"] .chat { padding: calc(4.8rem + env(safe-area-inset-top)) 0.58rem 0.62rem; scroll-padding-block-start: 5rem; }
18222
+ html[data-mobile-shell="v2"] .run-indicator-host { padding: 0 0.58rem 0.62rem; }
18223
+ html[data-mobile-shell="v2"] .composer { padding: 0.5rem 0.58rem calc(4.35rem + env(safe-area-inset-bottom)); }
18224
+ html[data-mobile-shell="v2"] .mobile-route { scroll-padding-block: 0.58rem; }
18225
+ html[data-mobile-shell="v2"] .mobile-route-header,
18226
+ html[data-mobile-shell="v2"] .mobile-surface-header { gap: 0.38rem; min-height: 48px; padding: 0.14rem 0 0.38rem; }
18227
+ html[data-mobile-shell="v2"] .mobile-route-header h1,
18228
+ html[data-mobile-shell="v2"] .mobile-surface-header h1 { font-size: 1rem; }
18229
+ html[data-mobile-shell="v2"] .mobile-session-actions,
18230
+ html[data-mobile-shell="v2"] .mobile-project-workflow-actions,
18231
+ html[data-mobile-shell="v2"] .mobile-activity-actions,
18232
+ html[data-mobile-shell="v2"] .mobile-presentation-choices { gap: 0.32rem; }
18233
+ html[data-mobile-shell="v2"] .mobile-search-field { gap: 0.16rem; margin: 0.52rem 0; }
18234
+ html[data-mobile-shell="v2"] .mobile-route-status { margin: 0.32rem 0 0.5rem; }
18235
+ html[data-mobile-shell="v2"] .mobile-session-group,
18236
+ html[data-mobile-shell="v2"] .mobile-activity-group,
18237
+ html[data-mobile-shell="v2"] .mobile-more-presentation { margin: 0.52rem 0; border-radius: 0.76rem; }
18238
+ html[data-mobile-shell="v2"] .mobile-session-group-heading { padding: 0.44rem 0.54rem; font-size: var(--mobile-label-text); }
18239
+ html[data-mobile-shell="v2"] .mobile-session-row { gap: 0.28rem; padding: 0.22rem; }
18240
+ html[data-mobile-shell="v2"] .mobile-session-select { gap: 0.42rem; padding: 0.32rem; }
18241
+ html[data-mobile-shell="v2"] .mobile-row-action { min-width: var(--mobile-control-size); padding-inline: 0.4rem; font-size: var(--mobile-label-text); }
18242
+ html[data-mobile-shell="v2"] .mobile-activity-item { padding: 0.54rem; }
18243
+ html[data-mobile-shell="v2"] .mobile-activity-item p { margin: 0.16rem 0 0.42rem; }
18244
+ html[data-mobile-shell="v2"] .mobile-topic-tabs { top: 48px; gap: 0.2rem; padding: 0.26rem 0; }
18245
+ 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); }
18246
+ html[data-mobile-shell="v2"] .mobile-canonical-host { padding-bottom: 0.56rem; }
18247
+ html[data-mobile-shell="v2"] .mobile-canonical-host > .side-panel-section-content { padding-block: 0.26rem; }
18248
+ 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)); }
18249
+ html[data-mobile-shell="v2"] .mobile-surface-root { gap: 0.32rem; }
18250
+ html[data-mobile-shell="v2"] .mobile-more-presentation { padding: 0.56rem; }
18251
+ html[data-mobile-shell="v2"] .mobile-context-actions { gap: 0.32rem; }
18252
+ 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; }
18253
+ html[data-mobile-shell="v2"] .mobile-failed-send-recovery { gap: 0.3rem; padding: 0.38rem; }
18254
+ html[data-mobile-shell="v2"] .mobile-indicator { min-height: 1.2rem; padding: 0.06rem 0.3rem; font-size: 0.7rem; }
18255
+ html[data-mobile-shell="v2"] .jump-to-latest-button { bottom: calc(6.75rem + env(safe-area-inset-bottom)); }
18256
+ html[data-mobile-shell="v2"] body.mobile-keyboard-open .composer { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
18257
+ }
18258
+
18259
+ /* Touch browsers can leave :hover latched after a tap. Keep explicit
18260
+ keyboard and tap-feedback states, but do not render hover-only tooltips. */
18261
+ @media (hover: none) and (pointer: coarse) {
18262
+ [data-tooltip]:not(:focus-visible):not(.tooltip-open)::before,
18263
+ [data-tooltip]:not(:focus-visible):not(.tooltip-open)::after {
18264
+ display: none !important;
18265
+ opacity: 0 !important;
18266
+ }
18267
+ }