openclacky 1.5.25 → 1.5.26

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/lib/clacky/agent/chunk_index.rb +2 -1
  4. data/lib/clacky/agent/message_compressor_helper.rb +20 -2
  5. data/lib/clacky/agent/session_serializer.rb +28 -1
  6. data/lib/clacky/agent/skill_manager.rb +2 -8
  7. data/lib/clacky/agent/time_machine.rb +108 -127
  8. data/lib/clacky/agent/tool_executor.rb +2 -11
  9. data/lib/clacky/agent.rb +15 -19
  10. data/lib/clacky/agent_config.rb +14 -4
  11. data/lib/clacky/billing/media_usage.rb +69 -0
  12. data/lib/clacky/billing/platform_billing.rb +5 -0
  13. data/lib/clacky/brand_config.rb +16 -215
  14. data/lib/clacky/default_extensions/ext-studio/agents/ext-developer/system_prompt.md +2 -80
  15. data/lib/clacky/default_extensions/ext-studio/panels/studio/view.js +1 -1
  16. data/lib/clacky/default_extensions/ext-studio/skills/ext-develop/SKILL.md +10 -96
  17. data/lib/clacky/default_extensions/git/panels/git/view.js +208 -69
  18. data/lib/clacky/default_extensions/knowledge/README.md +1 -1
  19. data/lib/clacky/default_extensions/knowledge/README.zh.md +1 -1
  20. data/lib/clacky/default_extensions/knowledge/lib/importer.rb +1 -1
  21. data/lib/clacky/default_extensions/knowledge/panels/kb/view.js +3 -3
  22. data/lib/clacky/default_extensions/meeting/api/handler.rb +23 -2
  23. data/lib/clacky/default_extensions/meeting/panels/meeting/view.js +194 -36
  24. data/lib/clacky/default_extensions/preview/icon.svg +3 -2
  25. data/lib/clacky/default_extensions/secretary/panels/work/view.js +108 -33
  26. data/lib/clacky/default_extensions/side-chat/README.md +40 -0
  27. data/lib/clacky/default_extensions/side-chat/README.zh.md +40 -0
  28. data/lib/clacky/default_extensions/side-chat/api/handler.rb +90 -0
  29. data/lib/clacky/default_extensions/side-chat/api/runtime.rb +411 -0
  30. data/lib/clacky/default_extensions/side-chat/ext.yml +16 -0
  31. data/lib/clacky/default_extensions/side-chat/icon.svg +14 -0
  32. data/lib/clacky/default_extensions/side-chat/panels/side-chat/view.js +779 -0
  33. data/lib/clacky/default_extensions/terminal/README.md +36 -0
  34. data/lib/clacky/default_extensions/terminal/README.zh.md +36 -0
  35. data/lib/clacky/default_extensions/terminal/api/handler.rb +121 -0
  36. data/lib/clacky/default_extensions/terminal/api/runtime.rb +397 -0
  37. data/lib/clacky/default_extensions/terminal/ext.yml +16 -0
  38. data/lib/clacky/default_extensions/terminal/icon.svg +13 -0
  39. data/lib/clacky/default_extensions/terminal/panels/terminal/view.js +351 -0
  40. data/lib/clacky/default_extensions/terminal/vendor/LICENSE +21 -0
  41. data/lib/clacky/default_extensions/terminal/vendor/addon-fit.js +2 -0
  42. data/lib/clacky/default_extensions/terminal/vendor/xterm.css +218 -0
  43. data/lib/clacky/default_extensions/terminal/vendor/xterm.js +2 -0
  44. data/lib/clacky/default_skills/media-gen/SKILL.md +30 -9
  45. data/lib/clacky/extension/api_extension.rb +12 -0
  46. data/lib/clacky/locales/en.rb +14 -11
  47. data/lib/clacky/locales/i18n.rb +25 -0
  48. data/lib/clacky/locales/zh.rb +14 -11
  49. data/lib/clacky/media/base.rb +11 -1
  50. data/lib/clacky/media/openai_compat.rb +271 -3
  51. data/lib/clacky/message_format/open_ai.rb +17 -0
  52. data/lib/clacky/prompts/base.md +3 -0
  53. data/lib/clacky/providers.rb +33 -20
  54. data/lib/clacky/reasoning_levels.rb +75 -0
  55. data/lib/clacky/server/channel/channel_ui_controller.rb +12 -5
  56. data/lib/clacky/server/git_panel.rb +40 -18
  57. data/lib/clacky/server/http_server.rb +62 -71
  58. data/lib/clacky/server/session_registry.rb +3 -0
  59. data/lib/clacky/ui2/markdown_renderer.rb +153 -0
  60. data/lib/clacky/ui2/strings_cjk_patch.rb +134 -124
  61. data/lib/clacky/utils/file_link_normalizer.rb +30 -3
  62. data/lib/clacky/utils/frontmatter.rb +63 -0
  63. data/lib/clacky/utils/model_pricing.rb +67 -9
  64. data/lib/clacky/version.rb +1 -1
  65. data/lib/clacky/web/app.css +722 -274
  66. data/lib/clacky/web/app.js +2 -0
  67. data/lib/clacky/web/components/chat-composer.js +504 -0
  68. data/lib/clacky/web/components/chat-navigator.js +1 -1
  69. data/lib/clacky/web/components/model-picker.js +319 -20
  70. data/lib/clacky/web/components/quote-select.js +97 -39
  71. data/lib/clacky/web/core/aside.js +137 -27
  72. data/lib/clacky/web/core/ext.js +658 -81
  73. data/lib/clacky/web/features/brand/store.js +0 -4
  74. data/lib/clacky/web/features/brand/view.js +2 -99
  75. data/lib/clacky/web/features/extensions/store.js +3 -1
  76. data/lib/clacky/web/features/extensions/view.js +14 -15
  77. data/lib/clacky/web/features/new-session/store.js +4 -0
  78. data/lib/clacky/web/features/new-session/view.js +27 -4
  79. data/lib/clacky/web/features/skills/store.js +7 -5
  80. data/lib/clacky/web/features/skills/view.js +65 -16
  81. data/lib/clacky/web/features/version/view.js +1 -1
  82. data/lib/clacky/web/features/workspace/store.js +7 -3
  83. data/lib/clacky/web/features/workspace/view.js +46 -5
  84. data/lib/clacky/web/i18n.js +104 -58
  85. data/lib/clacky/web/index.html +21 -22
  86. data/lib/clacky/web/lib/box-diagram.js +239 -0
  87. data/lib/clacky/web/sessions.js +117 -151
  88. data/lib/clacky/web/settings.js +23 -16
  89. data/lib/clacky/web/ws-dispatcher.js +4 -1
  90. data/lib/clacky.rb +2 -0
  91. metadata +24 -1
@@ -911,7 +911,7 @@ body {
911
911
  }
912
912
  #session-list { padding: 4px 0 0; }
913
913
 
914
- /* ── Extension nav slots (top / mid / bottom) ───────────────────────────── */
914
+ /* ── Extension nav slots (top / in-group) ───────────────────────────────── */
915
915
  [id^="ext-slot-sidebar-nav"] { display: block; }
916
916
  [id^="ext-slot-sidebar-nav"]:empty { display: none; }
917
917
  #ext-slot-sidebar-nav-top {
@@ -919,15 +919,12 @@ body {
919
919
  margin-bottom: 6px;
920
920
  border-bottom: 1px solid var(--color-border-secondary);
921
921
  }
922
- #ext-slot-sidebar-nav {
923
- margin-top: 10px;
924
- padding: 10px 0 0px;
925
- border-top: 1px solid var(--color-border-secondary);
926
- }
927
- #ext-slot-sidebar-nav-bottom {
928
- padding: 8px 0 10px;
929
- margin-top: 6px;
930
- border-top: 1px solid var(--color-border-secondary);
922
+ /* Group slots: extension entries that live inside a collapsible section
923
+ (General / More). No separators — they sit between built-in items of the
924
+ same list. */
925
+ #ext-slot-sidebar-nav:not(:empty),
926
+ #ext-slot-sidebar-nav-bottom:not(:empty) {
927
+ padding-top: 2px;
931
928
  }
932
929
 
933
930
  /* ── Sidebar divider (Section Labels) ───────────────────────────────────── */
@@ -977,7 +974,7 @@ body {
977
974
  gap: 4px;
978
975
  }
979
976
 
980
- /* ── Collapsible sidebar sections (Config / My Data) ─────────────────────── */
977
+ /* ── Collapsible sidebar sections (General / More) ───────────────────────── */
981
978
  .sidebar-section-header {
982
979
  cursor: pointer;
983
980
  user-select: none;
@@ -3827,8 +3824,11 @@ body {
3827
3824
  the slot has no panels for the current agent it stays empty and the whole
3828
3825
  column collapses to zero width. */
3829
3826
  #session-aside {
3830
- --session-aside-width: 16rem;
3827
+ --session-aside-width: 18.5rem;
3831
3828
  --aside-tabbar-actions-width: 78px;
3829
+ /* A warm wash one step lighter than the theme's hover fill, so cards and
3830
+ resting pills stay quiet while still matching the palette. */
3831
+ --aside-fill: color-mix(in srgb, var(--color-bg-hover) 60%, var(--color-bg-secondary));
3832
3832
  width: var(--session-aside-width);
3833
3833
  flex-shrink: 0;
3834
3834
  position: relative;
@@ -3882,9 +3882,8 @@ body {
3882
3882
  display: flex;
3883
3883
  align-items: center;
3884
3884
  gap: 2px;
3885
- padding-right: 4px;
3885
+ padding-right: 6px;
3886
3886
  background: var(--color-bg-secondary);
3887
- border-bottom: 1px solid var(--color-border-primary);
3888
3887
  }
3889
3888
  .session-aside-collapse,
3890
3889
  .session-aside-fullscreen {
@@ -3914,24 +3913,26 @@ body {
3914
3913
  }
3915
3914
  #chat-panel.aside-fullscreen .session-aside-resize { display: none; }
3916
3915
 
3917
- /* Too narrow to split: the aside crossed the chat column's floor, so it takes
3918
- the workspace and the resize handle moves inside the window edge to drag
3919
- the split back. */
3920
- #chat-panel.chat-collapsed #chat-main { display: none; }
3921
- #chat-panel.chat-collapsed #session-aside {
3922
- width: 100%;
3923
- border-left: none;
3924
- }
3925
- #chat-panel.chat-collapsed .session-aside-resize { left: 0; }
3916
+ /* The aside crossed the chat column's floor: it takes the workspace through
3917
+ fullscreen, so one button / Esc leaves both. */
3926
3918
 
3927
3919
  .session-aside-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
3928
3920
 
3929
3921
  /* Tab bar (rendered by Clacky.ext). Neutral edge fades reveal when more tabs
3930
- are available in either direction without competing with the active color. */
3922
+ are available in either direction without competing with the active color.
3923
+ The strip scrolls; the + opener is parked outside it so a crowded row never
3924
+ pushes the way to add another tab off screen. */
3931
3925
  .aside-tabs-frame {
3932
3926
  position: relative;
3933
3927
  flex: none;
3934
- height: 40px;
3928
+ display: flex;
3929
+ align-items: center;
3930
+ gap: 0.25rem;
3931
+ height: 42px;
3932
+ padding-right: calc(var(--aside-tabbar-actions-width) + 2px);
3933
+ border-bottom: 1px solid var(--color-border-secondary);
3934
+ /* Lets the tabs size themselves against the strip's real width (100cqw). */
3935
+ container-type: inline-size;
3935
3936
  }
3936
3937
  .aside-tabs-frame::before,
3937
3938
  .aside-tabs-frame::after {
@@ -3950,41 +3951,142 @@ body {
3950
3951
  background: linear-gradient(to right, var(--color-bg-secondary), transparent);
3951
3952
  }
3952
3953
  .aside-tabs-frame::after {
3953
- right: var(--aside-tabbar-actions-width);
3954
+ right: calc(var(--aside-tabbar-actions-width) + 2px + 1.75rem + 0.25rem);
3955
+ width: 42px;
3954
3956
  background: linear-gradient(to left, var(--color-bg-secondary), transparent);
3955
3957
  }
3956
3958
  .aside-tabs-frame.can-scroll-left::before,
3957
3959
  .aside-tabs-frame.can-scroll-right::after { opacity: 1; }
3958
3960
 
3959
- /* Leaves room on the right for the fullscreen + collapse buttons docked by
3960
- the host over that end. */
3961
+ /* Shrink-to-fit while the tabs are few (so the + keeps following the last
3962
+ one); squeezed to the available width once they overflow. */
3961
3963
  .aside-tabs {
3962
3964
  display: flex;
3963
- align-items: stretch;
3964
- width: 100%;
3965
- height: 40px;
3966
- padding: 0 var(--aside-tabbar-actions-width) 0 4px;
3967
- gap: 2px;
3968
- border-bottom: 1px solid var(--color-border-primary);
3965
+ align-items: center;
3966
+ flex: 0 1 auto;
3967
+ min-width: 0;
3968
+ height: 100%;
3969
+ padding: 0 0.25rem 0 6px;
3970
+ gap: 0.25rem;
3969
3971
  overflow-x: auto;
3970
3972
  scrollbar-width: none;
3971
3973
  }
3972
3974
  .aside-tabs::-webkit-scrollbar { display: none; }
3975
+ /* A tab is a pill floating in the strip, not a strip segment: padding on a
3976
+ soft fill instead of an underline, so nothing draws a full-width edge.
3977
+ Width follows the strip rather than the label, so a two-letter name still
3978
+ reads as a target: the tabs share what's available, capped at 10rem while
3979
+ there are only a couple, and never squeezed below 6.5rem — an icon, a gap
3980
+ and the close slot already eat ~3.5rem, which left room for a single glyph
3981
+ at 6rem. Past the floor the strip scrolls and the + opener stays parked at
3982
+ the right end. */
3973
3983
  .aside-tab {
3974
3984
  display: inline-flex;
3985
+ position: relative;
3975
3986
  align-items: center;
3987
+ flex: 0 0 auto;
3988
+ width: clamp(6.5rem, calc((100cqw - 2.625rem) / var(--aside-tab-count, 1) - 0.25rem), 10rem);
3976
3989
  gap: 6px;
3977
- padding: 0 12px;
3990
+ height: 1.9rem;
3991
+ padding: 0 0.5rem 0 0.625rem;
3978
3992
  white-space: nowrap;
3993
+ /* A <button> centres its text by default; the label must hug the icon. */
3994
+ text-align: left;
3979
3995
  cursor: pointer;
3980
3996
  border: none;
3981
- background: none;
3997
+ border-radius: 0.5rem;
3998
+ background: transparent;
3982
3999
  font-size: 12.5px;
4000
+ color: var(--color-text-secondary);
4001
+ transition: background-color var(--transition-fast), color var(--transition-fast);
4002
+ }
4003
+ .aside-tab:hover { color: var(--color-text-primary); background: var(--aside-fill); }
4004
+ /* A hairline only between two idle tabs: a filled neighbour (active or hovered)
4005
+ already reads as its own block, and a line against its edge looked like dirt. */
4006
+ .aside-tab:not(.active) + .aside-tab:not(.active)::before {
4007
+ content: "";
4008
+ position: absolute;
4009
+ left: calc(-0.125rem - 0.5px);
4010
+ top: 50%;
4011
+ width: 1px;
4012
+ height: 1rem;
4013
+ margin-top: -0.5rem;
4014
+ background: var(--color-border-primary);
4015
+ transition: opacity var(--transition-fast);
4016
+ pointer-events: none;
4017
+ }
4018
+ .aside-tab:hover::before,
4019
+ .aside-tab:hover + .aside-tab::before { opacity: 0; }
4020
+ /* Hover takes the quiet wash, selection the theme's hover fill one step
4021
+ deeper, so the current tab still stands out from a hovered neighbour. */
4022
+ .aside-tab.active { color: var(--color-text-primary); background: var(--color-bg-hover); font-weight: 500; }
4023
+ .aside-tab-icon { flex: none; display: inline-flex; opacity: 0.7; }
4024
+ .aside-tab-icon svg { display: block; }
4025
+ .aside-tab.active .aside-tab-icon { opacity: 0.9; }
4026
+ /* Takes the slack so the ✕ sits on the pill's right edge instead of floating
4027
+ mid-pill when the strip is wide. A narrow strip clips the label at the pill
4028
+ edge instead of spending width on an ellipsis, the way a browser tab does:
4029
+ the name stays readable as long as it fits and loses its tail, rather than
4030
+ turning into "会…" while there is still room for two more glyphs. */
4031
+ .aside-tab-label { flex: 1 1 auto; min-width: 0; overflow: hidden; }
4032
+ /* Only the labels actually cut get a soft edge (the class comes from
4033
+ `syncClippedLabels`), and the mask fades the glyphs' own colour — no
4034
+ background needed, so it reads right on the idle wash, the selected fill and
4035
+ a hovered pill alike. */
4036
+ .aside-tab.is-clipped .aside-tab-label {
4037
+ -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 0.75rem), transparent);
4038
+ mask-image: linear-gradient(to right, #000 calc(100% - 0.75rem), transparent);
4039
+ }
4040
+ /* Keeps its own slot so hovering never shifts the label: the ✕ is always in
4041
+ the layout, invisible until the tab is the current one or under the pointer. */
4042
+ .aside-tab-close {
4043
+ display: inline-flex;
4044
+ align-items: center;
4045
+ justify-content: center;
4046
+ flex: none;
4047
+ width: 16px;
4048
+ height: 16px;
4049
+ margin-left: 1px;
4050
+ border-radius: var(--radius-xs);
4051
+ opacity: 0;
4052
+ transition: opacity var(--transition-fast), background-color var(--transition-fast);
4053
+ }
4054
+ .aside-tab:hover .aside-tab-close,
4055
+ .aside-tab.active .aside-tab-close,
4056
+ .aside-tab-close:focus-visible { opacity: 0.5; }
4057
+ /* Translucent so it deepens whatever sits underneath: the tab itself is
4058
+ already at --color-bg-hover when selected, and an opaque fill vanished there. */
4059
+ .aside-tab .aside-tab-close:hover {
4060
+ opacity: 1;
4061
+ background: color-mix(in srgb, var(--color-text-primary) 12%, transparent);
4062
+ }
4063
+ /* Last item in the strip, so it sits right after the final tab and scrolls
4064
+ with them. Same pill as a tab, one square instead of a label. */
4065
+ .aside-tab-add {
4066
+ flex: none;
4067
+ display: inline-flex;
4068
+ align-items: center;
4069
+ justify-content: center;
4070
+ width: 1.9rem;
4071
+ height: 1.9rem;
4072
+ padding: 0;
4073
+ border: none;
4074
+ border-radius: 0.5rem;
4075
+ background: none;
4076
+ /* Same tone as the host's fullscreen / collapse buttons at that end. */
3983
4077
  color: var(--color-text-tertiary);
3984
- border-bottom: 2px solid transparent;
4078
+ cursor: pointer;
4079
+ transition: color var(--transition-fast), background-color var(--transition-fast);
4080
+ }
4081
+ .aside-tab-add:hover { color: var(--color-text-primary); background: var(--color-bg-hover); }
4082
+ /* Already on the picker the opener has no target; it nudges once if the user
4083
+ hits it anyway, but it keeps its full contrast: dimming read as disabled. */
4084
+ .aside-tab-add.is-nudging { animation: aside-add-nudge 0.22s ease-in-out; }
4085
+ @keyframes aside-add-nudge {
4086
+ 0%, 100% { transform: translateX(0); }
4087
+ 35% { transform: translateX(-0.09375rem); }
4088
+ 70% { transform: translateX(0.09375rem); }
3985
4089
  }
3986
- .aside-tab:hover { color: var(--color-text-secondary); }
3987
- .aside-tab.active { color: var(--color-text-primary); border-bottom-color: var(--color-accent-primary); font-weight: 500; }
3988
4090
  .aside-tab-badge {
3989
4091
  font-size: 10px;
3990
4092
  min-width: 16px;
@@ -3998,6 +4100,59 @@ body {
3998
4100
  justify-content: center;
3999
4101
  }
4000
4102
 
4103
+ /* The "+" page: pick an unopened panel. Two groups — tools that ship with the
4104
+ app, and panels contributed by installed / self-made extensions. Cards stay
4105
+ at two per row and stretch, however wide the column gets; only a squeezed
4106
+ column (the 296px minimum, ~15.5rem of usable width) falls back to one per
4107
+ row so labels keep breathing. */
4108
+ .aside-newtab {
4109
+ padding: 1.5rem 1rem 1.5rem;
4110
+ gap: 1.5rem;
4111
+ overflow-y: auto;
4112
+ container: aside-newtab / inline-size;
4113
+ }
4114
+ .aside-newtab-group { display: flex; flex-direction: column; gap: 0.625rem; }
4115
+ .aside-newtab-title {
4116
+ padding-left: 0.125rem;
4117
+ font-size: 0.8125rem;
4118
+ font-weight: 500;
4119
+ color: var(--color-text-primary);
4120
+ }
4121
+ .aside-newtab-grid {
4122
+ display: grid;
4123
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4124
+ gap: 0.375rem;
4125
+ }
4126
+ @container aside-newtab (max-width: 17rem) {
4127
+ .aside-newtab-grid { grid-template-columns: minmax(0, 1fr); }
4128
+ }
4129
+ /* Borderless rows on the quiet wash; hovering steps up to the theme hover
4130
+ fill, the same colour a selected tab uses. */
4131
+ .aside-newtab-card {
4132
+ display: flex;
4133
+ align-items: center;
4134
+ gap: 0.5rem;
4135
+ min-width: 0;
4136
+ min-height: 2.45rem;
4137
+ padding: 0.5rem 0.625rem;
4138
+ border: none;
4139
+ border-radius: 0.625rem;
4140
+ background: var(--aside-fill);
4141
+ color: var(--color-text-primary);
4142
+ font-size: 0.8125rem;
4143
+ text-align: left;
4144
+ cursor: pointer;
4145
+ transition: background-color var(--transition-fast);
4146
+ }
4147
+ .aside-newtab-card:hover { background: var(--color-bg-hover); }
4148
+ .aside-newtab-icon { flex: none; display: inline-flex; color: var(--color-text-secondary); }
4149
+ .aside-newtab-icon svg { display: block; }
4150
+ .aside-newtab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
4151
+ .aside-newtab-name,
4152
+ .aside-newtab-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
4153
+ .aside-newtab-desc { font-size: 11.5px; color: var(--color-text-tertiary); }
4154
+ .aside-newtab-empty { font-size: 12.5px; color: var(--color-text-tertiary); }
4155
+
4001
4156
  .aside-bodies { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
4002
4157
  .aside-panel { flex: 1; min-height: 0; overflow: auto; display: none; flex-direction: column; }
4003
4158
  .aside-panel.active { display: flex; }
@@ -4652,7 +4807,7 @@ body {
4652
4807
  .chat-nav-bar {
4653
4808
  position: absolute;
4654
4809
  left: 0.5rem;
4655
- height: 0.1875rem;
4810
+ height: 0.1475rem;
4656
4811
  transform: translateY(-50%);
4657
4812
  border-radius: 0.125rem;
4658
4813
  background: var(--color-text-muted);
@@ -4877,8 +5032,8 @@ body {
4877
5032
  border-radius: 8px;
4878
5033
  max-width: 90%;
4879
5034
  min-width: 0;
4880
- font-size: 0.875rem;
4881
- line-height: 1.6;
5035
+ font-size: 0.9rem;
5036
+ line-height: 1.7;
4882
5037
  word-break: break-word;
4883
5038
  position: relative;
4884
5039
  }
@@ -5205,6 +5360,14 @@ body {
5205
5360
  .msg-assistant .code-block pre code {
5206
5361
  padding: 0;
5207
5362
  }
5363
+ /* Box-drawing diagrams: every wide glyph is pinned to 2ch so a diagram padded
5364
+ by display cells lines up in a browser monospace font (CJK is 1.66 advances
5365
+ by default, not 2). See lib/box-diagram.js. */
5366
+ .bd-c {
5367
+ display: inline-block;
5368
+ width: 2ch;
5369
+ text-align: center;
5370
+ }
5208
5371
  .code-block-header {
5209
5372
  display: flex;
5210
5373
  align-items: center;
@@ -6551,14 +6714,13 @@ body {
6551
6714
  padding: 0.2rem;
6552
6715
  opacity: 0.75; /* tier 2 */
6553
6716
  transition: all 0.15s ease;
6554
- max-width: 17rem;
6717
+ max-width: 14rem;
6555
6718
  }
6556
6719
  /* The path is the only shrinkable part — the caret must stay visible.
6557
6720
  line-height is pinned so the wrapper's height stays driven by the text and
6558
6721
  the bar keeps its height (an unconstrained flex item would grow to its line
6559
6722
  box, ~3px taller). */
6560
- #sib-dir-text,
6561
- #sib-reasoning-text {
6723
+ #sib-dir-text {
6562
6724
  min-width: 0;
6563
6725
  line-height: 1.2;
6564
6726
  overflow: hidden;
@@ -6705,10 +6867,9 @@ body {
6705
6867
  #sib-model.sib-model-no-subs .sib-caret {
6706
6868
  display: none;
6707
6869
  }
6708
- /* The dir/reasoning/mode carets are hints only: clicking them must reach the
6870
+ /* The dir/mode carets are hints only: clicking them must reach the
6709
6871
  row, and the row hover already provides the feedback. */
6710
6872
  #sib-dir .sib-caret,
6711
- .sib-reasoning-clickable .sib-caret,
6712
6873
  .sib-mode-clickable .sib-caret {
6713
6874
  pointer-events: none;
6714
6875
  }
@@ -6716,8 +6877,6 @@ body {
6716
6877
  .sib-model-clickable.is-open .sib-caret,
6717
6878
  #sib-dir:hover .sib-caret,
6718
6879
  #sib-dir.is-open .sib-caret,
6719
- .sib-reasoning-clickable:hover .sib-caret,
6720
- .sib-reasoning-clickable.is-open .sib-caret,
6721
6880
  .sib-mode-clickable:hover .sib-caret,
6722
6881
  .sib-mode-clickable.is-open .sib-caret {
6723
6882
  opacity: 1;
@@ -6731,7 +6890,6 @@ body {
6731
6890
  }
6732
6891
  .sib-model-clickable.is-open .sib-caret,
6733
6892
  #sib-dir.is-open .sib-caret,
6734
- .sib-reasoning-clickable.is-open .sib-caret,
6735
6893
  .sib-mode-clickable.is-open .sib-caret {
6736
6894
  transform: rotate(180deg);
6737
6895
  }
@@ -6747,27 +6905,9 @@ body {
6747
6905
  color: inherit !important;
6748
6906
  }
6749
6907
 
6750
- /* Reasoning effort switcher — same dropdown pattern as model switcher */
6751
- .sib-reasoning-clickable {
6752
- display: inline-flex;
6753
- align-items: center;
6754
- gap: 0.3125rem;
6755
- cursor: pointer;
6756
- border-radius: 3px;
6757
- padding: 0.2rem;
6758
- transition: all 0.15s ease;
6759
- font-variant-numeric: tabular-nums;
6760
- }
6761
- .sib-reasoning-clickable:hover {
6762
- background: var(--color-bg-hover);
6763
- opacity: 1 !important;
6764
- color: var(--color-accent-primary);
6765
- }
6766
-
6767
6908
  /* Pickers render as outlined pills so they read as controls, not status text. */
6768
6909
  #session-info-bar #sib-dir,
6769
6910
  #session-info-bar .sib-model-clickable,
6770
- #session-info-bar .sib-reasoning-clickable,
6771
6911
  #session-info-bar .sib-mode-clickable {
6772
6912
  height: 1.375rem;
6773
6913
  padding: 0 0.4375rem 0 0.5rem;
@@ -6779,11 +6919,9 @@ body {
6779
6919
  }
6780
6920
  #session-info-bar #sib-dir:hover,
6781
6921
  #session-info-bar .sib-model-clickable:hover,
6782
- #session-info-bar .sib-reasoning-clickable:hover,
6783
6922
  #session-info-bar .sib-mode-clickable:hover,
6784
6923
  #session-info-bar #sib-dir.is-open,
6785
6924
  #session-info-bar .sib-model-clickable.is-open,
6786
- #session-info-bar .sib-reasoning-clickable.is-open,
6787
6925
  #session-info-bar .sib-mode-clickable.is-open {
6788
6926
  background: var(--color-bg-secondary);
6789
6927
  border-color: var(--color-text-tertiary);
@@ -6801,64 +6939,367 @@ body {
6801
6939
  display: none;
6802
6940
  }
6803
6941
  #sib-model-wrap,
6804
- #sib-reasoning-wrap,
6805
6942
  #sib-mode-wrap {
6806
6943
  margin-left: 0.1875rem;
6807
6944
  }
6808
- .sib-reasoning-dropdown {
6945
+ /* Shared skin for every model list: the session info-bar dropdown and the
6946
+ new-session popover are the same control in two places, so they must not
6947
+ drift apart again (this used to be two independent rule sets). */
6948
+ .sib-model-dropdown,
6949
+ .ns-ctx-popover--model {
6809
6950
  position: fixed;
6810
- min-width: 11rem;
6951
+ /* Position will be calculated dynamically via JavaScript */
6952
+ min-width: 15rem;
6953
+ max-width: min(22rem, calc(100vw - 1.5rem));
6811
6954
  z-index: 1000;
6955
+ max-height: calc(100vh - 6rem);
6812
6956
  overflow: hidden;
6957
+ padding: 0.5rem;
6958
+ background: var(--color-bg-secondary);
6959
+ border: 0;
6960
+ border-radius: 14px;
6961
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
6813
6962
  }
6814
- .sib-reasoning-header {
6815
- padding: 0.5rem 0.875rem;
6816
- border-bottom: 1px solid var(--color-border-primary);
6963
+ /* The context-bar popover keeps its own stacking. It is a column so that a
6964
+ flipped box (capped by the space above its anchor) can take height from the
6965
+ list and still keep the reasoning card in reach. */
6966
+ .ns-ctx-popover.ns-ctx-popover--model {
6967
+ z-index: 9999;
6968
+ display: flex;
6969
+ flex-direction: column;
6970
+ gap: 0;
6971
+ }
6972
+ .ns-ctx-popover--model .sib-model-list {
6973
+ flex: 1 1 auto;
6974
+ min-height: 0;
6975
+ }
6976
+ .sib-model-list {
6977
+ max-height: 11rem;
6978
+ overflow-y: auto;
6979
+ overflow-x: hidden;
6980
+ padding: 0.25rem 0;
6981
+ border-top: 1px solid var(--color-border-secondary);
6982
+ }
6983
+
6984
+ /* Reasoning tag inside the model pill: a dot whose strength follows --p. */
6985
+ .sib-rsn-chip {
6986
+ display: inline-flex;
6987
+ align-items: center;
6988
+ gap: 0.25rem;
6989
+ margin-left: 0.375rem;
6990
+ height: 1rem;
6991
+ border-radius: 999px;
6992
+ background: var(--color-bg-secondary);
6993
+ color: var(--color-text-secondary);
6994
+ font-size: 0.6875rem;
6995
+ line-height: 1;
6996
+ white-space: nowrap;
6997
+ }
6998
+ .sib-rsn-chip-dot {
6999
+ width: 0.375rem;
7000
+ height: 0.375rem;
7001
+ border-radius: 50%;
7002
+ background: var(--color-accent-primary);
7003
+ opacity: calc(0.45 + var(--p, 0) * 0.55);
7004
+ box-shadow: 0 0 calc(var(--p, 0) * 6px) var(--color-accent-primary);
7005
+ }
7006
+ .sib-rsn-chip.is-off .sib-rsn-chip-dot {
7007
+ background: var(--color-text-tertiary);
7008
+ box-shadow: none;
7009
+ opacity: 0.6;
6817
7010
  }
6818
- .sib-reasoning-heading {
7011
+
7012
+ /* Reasoning card at the bottom of the model dropdown. */
7013
+ .sib-rsn {
7014
+ --h: 2.5rem;
7015
+ --rsn-a: #7c5cff;
7016
+ --rsn-b: #3ad0ff;
7017
+ --rsn-bg1: #0b0720;
7018
+ --rsn-bg2: #1a0f45;
7019
+ margin: 0.375rem 0.3125rem 0.3125rem;
7020
+ padding: 0.625rem 0.75rem 0.5rem;
7021
+ border-radius: 12px;
7022
+ background: color-mix(in srgb, var(--color-text-primary) 4%, var(--color-bg-secondary));
6819
7023
  font-size: 0.75rem;
7024
+ user-select: none;
7025
+ }
7026
+ .sib-rsn[data-theme="c1"] { --rsn-a: #8f6bff; --rsn-b: #ffd98a; --rsn-bg1: #0a0618; --rsn-bg2: #2a1a66; }
7027
+ .sib-rsn[data-theme="c2"] { --rsn-a: #9a7bff; --rsn-b: #e9e4ff; --rsn-bg1: #07051a; --rsn-bg2: #1b1040; }
7028
+ .sib-rsn[data-theme="c3"] { --rsn-a: #ffe9a8; --rsn-b: #fff3c4; --rsn-bg1: #0d0820; --rsn-bg2: #1d1240; }
7029
+ .sib-rsn[data-theme="c4"] { --rsn-a: #ff6a3d; --rsn-b: #ffc08a; --rsn-bg1: #1a0a24; --rsn-bg2: #3a0f2e; }
7030
+ .sib-rsn-head {
7031
+ display: flex;
7032
+ align-items: center;
7033
+ justify-content: space-between;
7034
+ gap: 0.5rem;
7035
+ }
7036
+ .sib-rsn-title {
6820
7037
  font-weight: 500;
6821
7038
  color: var(--color-text-primary);
6822
7039
  }
6823
- .sib-reasoning-hint {
6824
- margin-top: 0.1875rem;
6825
- font-size: 0.6875rem;
6826
- color: var(--color-text-secondary);
6827
- line-height: 1.35;
7040
+ .sib-rsn-seg {
7041
+ display: inline-flex;
7042
+ padding: 2px;
7043
+ border-radius: 999px;
7044
+ background: var(--color-bg-primary);
7045
+ border: 1px solid var(--color-border-primary);
6828
7046
  }
6829
- .sib-reasoning-header + .sib-reasoning-option {
6830
- margin-top: 0.25rem;
7047
+ .sib-rsn-seg-btn {
7048
+ padding: 0 0.4375rem;
7049
+ height: 1.125rem;
7050
+ border: 0;
7051
+ border-radius: 999px;
7052
+ background: transparent;
7053
+ color: var(--color-text-tertiary);
7054
+ font-size: 0.625rem;
7055
+ cursor: pointer;
6831
7056
  }
6832
- .sib-reasoning-option {
6833
- margin: 2px 0.3125rem;
6834
- padding: 0.5rem 0.5625rem;
6835
- border-radius: 6px;
6836
- font-size: 0.75rem;
7057
+ .sib-rsn-seg-btn.current {
7058
+ background: var(--color-bg-hover);
6837
7059
  color: var(--color-text-primary);
7060
+ }
7061
+ .sib-rsn-sub {
7062
+ display: flex;
7063
+ justify-content: space-between;
7064
+ margin: 0.25rem 0 0.5rem;
7065
+ color: var(--color-text-tertiary);
7066
+ font-size: 0.6875rem;
7067
+ }
7068
+ .sib-rsn-track {
7069
+ position: relative;
7070
+ height: var(--h);
7071
+ border-radius: 999px;
7072
+ overflow: hidden;
6838
7073
  cursor: pointer;
6839
- transition: background-color 0.15s ease;
6840
- font-family: var(--font-mono, monospace);
7074
+ touch-action: none;
7075
+ background:
7076
+ radial-gradient(120% 140% at calc(var(--p, 0) * 100%) 50%, color-mix(in srgb, var(--rsn-a) 55%, transparent), transparent 62%),
7077
+ linear-gradient(90deg, var(--rsn-bg1), var(--rsn-bg2));
7078
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
6841
7079
  }
6842
- .sib-reasoning-option:last-child {
6843
- margin-bottom: 0.3125rem;
7080
+ .sib-rsn-track:focus-visible {
7081
+ outline: 2px solid var(--rsn-b);
7082
+ outline-offset: 2px;
6844
7083
  }
6845
- .sib-reasoning-option:hover {
6846
- background: var(--color-bg-hover);
6847
- color: var(--color-accent-primary);
7084
+ .sib-rsn-field {
7085
+ position: absolute;
7086
+ inset: 0;
7087
+ pointer-events: none;
6848
7088
  }
6849
- .sib-reasoning-option.current {
7089
+ .sib-rsn-streak {
7090
+ position: absolute;
7091
+ top: var(--y);
7092
+ right: 0;
7093
+ width: var(--w);
7094
+ height: 1px;
7095
+ border-radius: 1px;
7096
+ background: linear-gradient(90deg, transparent, var(--rsn-b));
7097
+ opacity: calc(0.15 + var(--p, 0) * 0.75);
7098
+ animation: sib-rsn-warp calc((2.4s - var(--s, 0) * 1.9s) / var(--k, 1)) linear infinite;
7099
+ animation-delay: var(--d, 0s);
7100
+ }
7101
+ @keyframes sib-rsn-warp {
7102
+ from { transform: translateX(0); }
7103
+ to { transform: translateX(calc(-1 * (100cqw + 4rem))); }
7104
+ }
7105
+ @keyframes sib-rsn-drift {
7106
+ from { transform: translateX(0); }
7107
+ to { transform: translateX(calc(100cqw + 4rem)); }
7108
+ }
7109
+ .sib-rsn-field::before,
7110
+ .sib-rsn-field::after {
7111
+ content: "";
7112
+ position: absolute;
7113
+ pointer-events: none;
7114
+ }
7115
+ /* C1: short gold streaks racing left, a ringed orb riding the thumb. */
7116
+ .sib-rsn[data-theme="c1"] .sib-rsn-streak {
7117
+ height: 2px;
7118
+ background: linear-gradient(90deg, transparent, var(--rsn-b));
7119
+ box-shadow: 0 0 4px var(--rsn-b);
7120
+ }
7121
+ .sib-rsn[data-theme="c1"] .sib-rsn-field::before {
7122
+ top: 50%;
7123
+ left: calc(var(--h) / 2 + (100% - var(--h)) * var(--p, 0));
7124
+ width: calc(var(--h) * 1.7);
7125
+ height: calc(var(--h) * 0.62);
7126
+ border: 1px solid color-mix(in srgb, var(--rsn-b) 80%, transparent);
7127
+ border-radius: 50%;
7128
+ transform: translate(-50%, -50%) rotate(-18deg);
7129
+ }
7130
+ .sib-rsn[data-theme="c1"] .sib-rsn-field::after {
7131
+ inset: 0;
7132
+ background: radial-gradient(60% 120% at calc(var(--p, 0) * 100%) 50%, color-mix(in srgb, var(--rsn-b) 35%, transparent), transparent 70%);
7133
+ }
7134
+ /* C2: dust drifting left plus a comet tail trailing the thumb. */
7135
+ .sib-rsn[data-theme="c2"] .sib-rsn-streak {
7136
+ width: 2px;
7137
+ height: 2px;
7138
+ border-radius: 50%;
7139
+ background: var(--rsn-b);
7140
+ box-shadow: 0 0 3px var(--rsn-a);
7141
+ }
7142
+ .sib-rsn[data-theme="c2"] .sib-rsn-field::before {
7143
+ top: 50%;
7144
+ right: calc(100% - var(--h) / 2 - (100% - var(--h)) * var(--p, 0));
7145
+ width: calc(var(--p, 0) * 70%);
7146
+ height: 2px;
7147
+ background: linear-gradient(90deg, transparent, var(--rsn-b));
7148
+ transform: rotate(-6deg);
7149
+ transform-origin: right center;
7150
+ box-shadow: 0 0 6px var(--rsn-a);
7151
+ }
7152
+ .sib-rsn[data-theme="c2"] .sib-rsn-field::after {
7153
+ inset: 0;
7154
+ background: radial-gradient(50% 130% at calc(var(--p, 0) * 100%) 50%, color-mix(in srgb, var(--rsn-a) 45%, transparent), transparent 70%);
7155
+ }
7156
+ /* C3: constellation of dots joined by a zigzag line. */
7157
+ .sib-rsn[data-theme="c3"] .sib-rsn-streak {
7158
+ width: 4px;
7159
+ height: 4px;
7160
+ border-radius: 50%;
7161
+ background: var(--rsn-b);
7162
+ box-shadow: 0 0 5px var(--rsn-a);
7163
+ right: auto;
7164
+ left: 100%;
7165
+ opacity: calc(0.35 + var(--p, 0) * 0.65);
7166
+ animation: sib-rsn-warp calc((7s - var(--s, 0) * 5.8s) / var(--k, 1)) linear infinite;
7167
+ animation-delay: var(--d, 0s);
7168
+ }
7169
+ @keyframes sib-rsn-constellation {
7170
+ from { transform: translate3d(0, 0, 0); }
7171
+ to { transform: translate3d(-60px, 0, 0); }
7172
+ }
7173
+ .sib-rsn[data-theme="c3"] .sib-rsn-field::before {
7174
+ top: 20%;
7175
+ bottom: 20%;
7176
+ left: 0;
7177
+ width: calc(100% + 60px);
7178
+ background:
7179
+ linear-gradient(160deg, transparent 47%, color-mix(in srgb, var(--rsn-b) 55%, transparent) 48% 52%, transparent 53%) 0 0 / 60px 100% repeat-x,
7180
+ linear-gradient(20deg, transparent 47%, color-mix(in srgb, var(--rsn-b) 55%, transparent) 48% 52%, transparent 53%) 30px 0 / 60px 100% repeat-x;
7181
+ opacity: calc(0.25 + var(--p, 0) * 0.6);
7182
+ will-change: transform;
7183
+ animation: sib-rsn-constellation calc(1.2s - var(--s, 0) * 0.9s) linear infinite;
7184
+ }
7185
+ .sib-rsn[data-theme="c3"] .sib-rsn-streak {
7186
+ will-change: transform;
7187
+ }
7188
+ .sib-rsn.is-off[data-theme="c3"] .sib-rsn-streak,
7189
+ .sib-rsn.is-off[data-theme="c3"] .sib-rsn-field::before {
7190
+ animation-play-state: paused;
7191
+ }
7192
+ /* C4: red-orange corona on the left, concentric arcs and drifting dust. */
7193
+ .sib-rsn[data-theme="c4"] .sib-rsn-streak {
7194
+ right: auto;
7195
+ left: 0;
7196
+ width: 3px;
7197
+ height: 3px;
7198
+ border-radius: 50%;
7199
+ background: #ffe2c9;
7200
+ box-shadow: 0 0 3px #ffb98a;
7201
+ animation-name: sib-rsn-drift;
7202
+ }
7203
+ .sib-rsn[data-theme="c4"] .sib-rsn-field::before {
7204
+ inset: 0;
7205
+ background: radial-gradient(70% 160% at 0% 50%, #fff4ea 0%, var(--rsn-a) 18%, color-mix(in srgb, var(--rsn-a) 40%, transparent) 38%, transparent 62%);
7206
+ opacity: calc(1 - var(--p, 0) * 0.35);
7207
+ }
7208
+ .sib-rsn[data-theme="c4"] .sib-rsn-field::after {
7209
+ inset: -40% auto -40% -30%;
7210
+ width: 90%;
7211
+ border-radius: 50%;
7212
+ background: repeating-radial-gradient(ellipse at 0% 50%, transparent 0 14px, rgba(255, 255, 255, 0.22) 14px 15px);
7213
+ }
7214
+ .sib-rsn-track { container-type: inline-size; }
7215
+ .sib-rsn.is-off .sib-rsn-streak {
7216
+ animation-play-state: paused;
7217
+ opacity: 0.12;
7218
+ }
7219
+ .sib-rsn-thumb {
7220
+ position: absolute;
7221
+ top: 50%;
7222
+ left: calc(var(--h) / 2 + (100% - var(--h)) * var(--p, 0));
7223
+ width: calc(var(--h) - 0.5rem);
7224
+ height: calc(var(--h) - 0.5rem);
7225
+ border-radius: 50%;
7226
+ transform: translate(-50%, -50%);
7227
+ background: radial-gradient(circle at 35% 30%, #fff, var(--rsn-b) 55%, var(--rsn-a));
7228
+ box-shadow: 0 0 calc(4px + var(--p, 0) * 14px) var(--rsn-a), 0 0 2px #fff;
7229
+ transition: left 0.18s ease, box-shadow 0.18s ease;
7230
+ pointer-events: none;
7231
+ }
7232
+ .sib-rsn.is-dragging .sib-rsn-thumb { transition: none; }
7233
+ .sib-rsn.is-off .sib-rsn-thumb {
7234
+ background: radial-gradient(circle at 35% 30%, #ffffff, #d9dce6 55%, #aeb3c4);
7235
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 5px rgba(0, 0, 0, 0.4);
7236
+ }
7237
+ .sib-rsn-ticks {
7238
+ position: relative;
7239
+ height: 1.125rem;
7240
+ margin-top: 0.375rem;
7241
+ }
7242
+ .sib-rsn-tick {
7243
+ position: absolute;
7244
+ top: 0;
7245
+ left: calc(var(--h) / 2 + (100% - var(--h)) * var(--i, 0) / var(--m, 1));
7246
+ padding: 0.125rem 0;
7247
+ border: 0;
7248
+ background: transparent;
7249
+ color: var(--color-text-tertiary);
7250
+ font-size: 0.625rem;
7251
+ text-align: center;
7252
+ transform: translateX(-50%);
7253
+ cursor: pointer;
7254
+ white-space: nowrap;
7255
+ }
7256
+ .sib-rsn-tick:hover { color: var(--color-text-primary); }
7257
+ .sib-rsn-tick.current {
7258
+ color: var(--color-text-primary);
7259
+ font-weight: 600;
7260
+ }
7261
+ @media (prefers-reduced-motion: reduce) {
7262
+ .sib-rsn-streak,
7263
+ .sib-rsn-field::before { animation: none !important; }
7264
+ .sib-rsn-thumb { transition: none; }
7265
+ }
7266
+ .sib-model-tabs {
7267
+ display: flex;
7268
+ gap: 0.25rem;
7269
+ padding: 0.375rem 0.5rem;
7270
+ overflow-x: auto;
7271
+ scrollbar-width: none;
7272
+ background: var(--color-bg-secondary);
7273
+ }
7274
+ .sib-model-tabs::-webkit-scrollbar {
7275
+ display: none;
7276
+ }
7277
+ .sib-model-tab {
7278
+ display: inline-flex;
7279
+ align-items: center;
7280
+ gap: 0.25rem;
7281
+ flex: 0 0 auto;
7282
+ height: 1.5rem;
7283
+ padding: 0 0.625rem;
7284
+ border: 0;
7285
+ border-radius: 999px;
7286
+ background: transparent;
7287
+ color: var(--color-text-secondary);
7288
+ font-size: 0.75rem;
7289
+ white-space: nowrap;
7290
+ cursor: pointer;
7291
+ }
7292
+ .sib-model-tab:hover {
6850
7293
  background: var(--color-bg-hover);
6851
- font-weight: 500;
7294
+ color: var(--color-text-primary);
6852
7295
  }
6853
- .sib-model-dropdown {
6854
- position: fixed;
6855
- /* Position will be calculated dynamically via JavaScript */
6856
- min-width: 12.5rem;
6857
- max-width: min(20rem, calc(100vw - 1.5rem));
6858
- z-index: 1000;
6859
- max-height: 18.75rem;
6860
- overflow-y: auto;
6861
- overflow-x: hidden;
7296
+ .sib-model-tab.current {
7297
+ background: var(--color-brand-blue);
7298
+ color: #fff;
7299
+ }
7300
+ .sib-model-tab .sib-vendor-badge {
7301
+ width: 0.875rem;
7302
+ height: 0.875rem;
6862
7303
  }
6863
7304
  .sib-model-option {
6864
7305
  margin: 2px 0.3125rem;
@@ -7083,8 +7524,7 @@ body {
7083
7524
  justify-content: space-between; /* hint on the left, button on the right */
7084
7525
  gap: 0.5rem;
7085
7526
  padding: 0.25rem 0.5rem 0.25rem 0.625rem; /* compact: tighter top/bottom + tighter right side */
7086
- border-bottom: 1px solid var(--color-border-primary);
7087
- background: var(--color-bg-primary);
7527
+ background: var(--color-bg-secondary);
7088
7528
  position: sticky; /* keep visible while scrolling a long model list */
7089
7529
  top: 0;
7090
7530
  z-index: 1;
@@ -7165,11 +7605,14 @@ body {
7165
7605
  align-items: center;
7166
7606
  gap: 0.375rem;
7167
7607
  padding: 0.375rem 0.5rem;
7168
- border-top: 1px solid var(--color-border-primary);
7169
- background: var(--color-bg-primary);
7608
+ border-top: 1px solid var(--color-border-secondary);
7609
+ background: var(--color-bg-secondary);
7610
+ }
7611
+ .sib-model-dock {
7170
7612
  position: sticky;
7171
7613
  bottom: 0;
7172
7614
  z-index: 1;
7615
+ background: var(--color-bg-secondary);
7173
7616
  }
7174
7617
  .sib-gen-title {
7175
7618
  font-size: 0.625rem;
@@ -7463,7 +7906,8 @@ body {
7463
7906
 
7464
7907
  /* Attachment strip — top part of the composer card, above the input row */
7465
7908
  #image-preview-strip,
7466
- #ns-image-preview-strip {
7909
+ #ns-image-preview-strip,
7910
+ .composer-strip {
7467
7911
  display: flex;
7468
7912
  flex-wrap: wrap;
7469
7913
  gap: 0.5rem;
@@ -7830,20 +8274,23 @@ body {
7830
8274
  /* ── Composer card ───────────────────────────────────────────────────────── */
7831
8275
  /* Attachment chips and the input row live inside one card, so the accent border
7832
8276
  on focus wraps the whole composer instead of only the text row. */
7833
- #input-card {
8277
+ #input-card,
8278
+ .composer-card {
7834
8279
  border: 1px solid var(--color-border-primary);
7835
8280
  border-radius: 13px;
7836
8281
  background: var(--color-bg-primary);
7837
8282
  box-shadow: var(--shadow-card);
7838
8283
  transition: border-color .14s;
7839
8284
  }
7840
- #input-card:focus-within {
8285
+ #input-card:focus-within,
8286
+ .composer-card:focus-within {
7841
8287
  border-color: color-mix(in srgb, var(--color-accent-primary) 50%, var(--color-border-primary));
7842
8288
  }
7843
8289
 
7844
8290
  /* ── Input bar ───────────────────────────────────────────────────────────── */
7845
8291
  /* Layout only — the card above draws the frame. */
7846
- #input-bar {
8292
+ #input-bar,
8293
+ .composer-bar {
7847
8294
  margin: 0;
7848
8295
  padding: 10px 12px;
7849
8296
  display: flex;
@@ -7852,7 +8299,8 @@ body {
7852
8299
  }
7853
8300
 
7854
8301
  /* Attach button — left of textarea, vertically centered */
7855
- #btn-attach {
8302
+ #btn-attach,
8303
+ .composer-attach {
7856
8304
  border: none;
7857
8305
  background: transparent;
7858
8306
  color: var(--color-text-tertiary);
@@ -7867,16 +8315,19 @@ body {
7867
8315
  border-radius: 8px;
7868
8316
  transition: background .12s, color .12s;
7869
8317
  }
7870
- #btn-attach:hover {
8318
+ #btn-attach:hover,
8319
+ .composer-attach:hover {
7871
8320
  color: var(--color-text-primary);
7872
8321
  background: var(--color-bg-hover);
7873
8322
  }
7874
- #btn-attach svg {
8323
+ #btn-attach svg,
8324
+ .composer-attach svg {
7875
8325
  width: 18px;
7876
8326
  height: 18px;
7877
8327
  }
7878
8328
 
7879
- #btn-slash {
8329
+ #btn-slash,
8330
+ .composer-slash {
7880
8331
  border: none;
7881
8332
  background: transparent;
7882
8333
  color: var(--color-text-tertiary);
@@ -7890,15 +8341,18 @@ body {
7890
8341
  border-radius: 8px;
7891
8342
  transition: background .12s, color .12s;
7892
8343
  }
7893
- #btn-slash svg {
8344
+ #btn-slash svg,
8345
+ .composer-slash svg {
7894
8346
  width: 1.125rem;
7895
8347
  height: 1.125rem;
7896
8348
  }
7897
- #btn-slash:hover {
8349
+ #btn-slash:hover,
8350
+ .composer-slash:hover {
7898
8351
  color: var(--color-text-primary);
7899
8352
  background: var(--color-bg-hover);
7900
8353
  }
7901
- #btn-slash.active {
8354
+ #btn-slash.active,
8355
+ .composer-slash.active {
7902
8356
  color: var(--color-accent-primary);
7903
8357
  background: var(--color-accent-soft);
7904
8358
  }
@@ -8057,7 +8511,9 @@ body {
8057
8511
  display: inline-flex;
8058
8512
  align-items: center;
8059
8513
  gap: 0.25rem;
8060
- padding: 0 0.375rem;
8514
+ /* Half the leading of the composer's 1.55 line box, so the chip's box fills
8515
+ the line instead of sitting on its baseline with the slack below. */
8516
+ padding: 0.09375rem 0.375rem;
8061
8517
  margin: 0 0.125rem;
8062
8518
  background: var(--color-bg-hover);
8063
8519
  color: var(--color-text-primary);
@@ -8070,8 +8526,15 @@ body {
8070
8526
  .mention-chip-icon {
8071
8527
  display: inline-flex;
8072
8528
  align-items: center;
8529
+ flex: none;
8073
8530
  color: var(--color-text-secondary);
8074
8531
  }
8532
+ .mention-chip svg {
8533
+ flex: none;
8534
+ }
8535
+ .mention-chip-label {
8536
+ min-width: 0;
8537
+ }
8075
8538
  .reference-drag-preview {
8076
8539
  position: fixed;
8077
8540
  top: -1000px;
@@ -8128,7 +8591,8 @@ a.msg-mention-badge:hover { text-decoration: underline; }
8128
8591
  white-space: nowrap;
8129
8592
  }
8130
8593
 
8131
- #user-input {
8594
+ #user-input,
8595
+ .composer-input {
8132
8596
  flex: 1;
8133
8597
  background: transparent !important;
8134
8598
  border: none !important;
@@ -8148,8 +8612,10 @@ a.msg-mention-badge:hover { text-decoration: underline; }
8148
8612
  word-break: break-word;
8149
8613
  min-height: calc(1.55em + 8px);
8150
8614
  }
8151
- #user-input::-webkit-scrollbar { display: none; }
8152
- #user-input:empty::before {
8615
+ #user-input::-webkit-scrollbar,
8616
+ .composer-input::-webkit-scrollbar { display: none; }
8617
+ #user-input:empty::before,
8618
+ .composer-input:empty::before {
8153
8619
  content: attr(data-placeholder);
8154
8620
  color: var(--color-text-tertiary);
8155
8621
  pointer-events: none;
@@ -8159,7 +8625,8 @@ a.msg-mention-badge:hover { text-decoration: underline; }
8159
8625
  text-overflow: ellipsis;
8160
8626
  }
8161
8627
 
8162
- #btn-send, #btn-interrupt {
8628
+ #btn-send, #btn-interrupt,
8629
+ .composer-send, .composer-stop {
8163
8630
  border: none;
8164
8631
  border-radius: 9px;
8165
8632
  width: 34px;
@@ -8171,34 +8638,45 @@ a.msg-mention-badge:hover { text-decoration: underline; }
8171
8638
  place-items: center;
8172
8639
  transition: background .12s, opacity .12s;
8173
8640
  }
8174
- #btn-send {
8641
+ #btn-send,
8642
+ .composer-send {
8175
8643
  background: var(--color-accent-primary);
8176
8644
  color: #fff;
8177
8645
  }
8178
- #btn-send svg {
8646
+ #btn-send svg,
8647
+ .composer-send svg {
8179
8648
  width: 15px;
8180
8649
  height: 15px;
8181
8650
  }
8182
- #btn-send:hover {
8651
+ #btn-send:hover,
8652
+ .composer-send:hover {
8183
8653
  background: color-mix(in srgb, var(--color-accent-primary) 85%, #fff);
8184
8654
  }
8185
- #btn-send:disabled {
8655
+ #btn-send:disabled,
8656
+ .composer-send:disabled {
8186
8657
  background: var(--color-border-primary);
8187
8658
  color: var(--color-text-tertiary);
8188
8659
  cursor: not-allowed;
8189
8660
  opacity: 0.6;
8190
8661
  }
8191
- #btn-interrupt {
8662
+ #btn-interrupt,
8663
+ .composer-stop {
8192
8664
  background: var(--color-error);
8193
8665
  color: #fff;
8194
8666
  }
8195
- #btn-interrupt svg {
8667
+ #btn-interrupt svg,
8668
+ .composer-stop svg {
8196
8669
  width: 14px;
8197
8670
  height: 14px;
8198
8671
  }
8199
- #btn-interrupt:hover {
8672
+ #btn-interrupt:hover,
8673
+ .composer-stop:hover {
8200
8674
  background: color-mix(in srgb, var(--color-error) 85%, #fff);
8201
8675
  }
8676
+ /* `hidden` must beat the display values declared above (flex / grid). */
8677
+ .composer-strip[hidden],
8678
+ .composer-send[hidden],
8679
+ .composer-stop[hidden] { display: none; }
8202
8680
 
8203
8681
  /* ── Sidebar footer ──────────────────────────────────────────────────────── */
8204
8682
  #sidebar-footer {
@@ -9125,27 +9603,21 @@ a.msg-mention-badge:hover { text-decoration: underline; }
9125
9603
  gap: 0.75rem;
9126
9604
  margin-bottom: 0.25rem;
9127
9605
  }
9128
- .provider-promo-hint .promo-link {
9606
+ .provider-promo-hint .promo-actions {
9129
9607
  flex-shrink: 0;
9130
9608
  display: inline-flex;
9131
9609
  align-items: center;
9132
9610
  gap: 0.25rem;
9133
- font-size: 0.75rem;
9134
- font-weight: 600;
9135
- color: var(--color-accent-primary);
9136
- text-decoration: none;
9137
- padding: 0.125rem 0.5rem;
9138
- border-radius: 999px;
9139
- transition: background 0.15s, color 0.15s;
9140
- }
9141
- .provider-promo-hint .promo-link svg { transition: transform 0.15s; }
9142
- .provider-promo-hint .promo-link:hover {
9143
- background: color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
9144
9611
  }
9145
- .provider-promo-hint .promo-link:hover svg { transform: translateX(2px); }
9146
- .provider-promo-hint .promo-link:focus-visible {
9147
- outline: 2px solid var(--color-accent-primary);
9148
- outline-offset: 2px;
9612
+ /* The hint carries its own dismiss button, shown while the hint is hovered.
9613
+ No grey disc here: the provider dropdown above sits in the same column, so a
9614
+ pointer travelling down to the next field crosses this spot and would light
9615
+ the disc up uninvited. Banner's ✕ keeps its disc — it sits in white space. */
9616
+ .provider-promo-hint .promo-close { opacity: 0; }
9617
+ .provider-promo-hint:hover .promo-close,
9618
+ .provider-promo-hint:focus-within .promo-close { opacity: 1; }
9619
+ @media (hover: none) {
9620
+ .provider-promo-hint .promo-close { opacity: 1; }
9149
9621
  }
9150
9622
  .provider-promo-hint .promo-title {
9151
9623
  font-size: 0.8125rem;
@@ -11556,17 +12028,17 @@ button:focus-visible { outline: 2px solid var(--color-accent-primary); outline-o
11556
12028
  .brand-skills-activate-btn {
11557
12029
  font-size: 0.8125rem;
11558
12030
  font-weight: 500;
11559
- padding: 0.375rem 1rem;
11560
- border-radius: 6px;
11561
- border: 1px solid var(--color-accent, #6366f1);
11562
- color: var(--color-accent, #6366f1);
11563
- background: transparent;
12031
+ padding: 0.4375rem 0.875rem;
12032
+ border-radius: 8px;
12033
+ border: none;
12034
+ color: var(--color-button-primary-text);
12035
+ background: var(--color-button-primary);
11564
12036
  cursor: pointer;
11565
- transition: background .15s, color .15s;
12037
+ transition: background-color .2s ease, transform .15s ease;
11566
12038
  }
11567
12039
  .brand-skills-activate-btn:hover {
11568
- background: var(--color-accent, #6366f1);
11569
- color: #fff;
12040
+ background: var(--color-button-primary-hover);
12041
+ transform: translateY(-1px);
11570
12042
  }
11571
12043
 
11572
12044
  /* Inline notice bar — shared by the skills and extensions panels. Remote
@@ -11586,6 +12058,47 @@ button:focus-visible { outline: 2px solid var(--color-accent-primary); outline-o
11586
12058
  background: var(--color-error-bg);
11587
12059
  border-color: var(--color-error-border);
11588
12060
  }
12061
+ .inline-notice--warning {
12062
+ color: var(--color-warning-text);
12063
+ background: var(--color-warning-bg);
12064
+ border-color: var(--color-warning-border);
12065
+ }
12066
+ .inline-notice-row {
12067
+ display: flex;
12068
+ align-items: center;
12069
+ justify-content: space-between;
12070
+ gap: 0.75rem;
12071
+ }
12072
+ .inline-notice-action {
12073
+ flex-shrink: 0;
12074
+ font-family: inherit;
12075
+ font-size: 0.75rem;
12076
+ font-weight: 600;
12077
+ line-height: 1.5;
12078
+ padding: 0 0.375rem;
12079
+ margin-left: -0.125rem;
12080
+ border: 0;
12081
+ border-radius: 4px;
12082
+ background: transparent;
12083
+ color: inherit;
12084
+ cursor: pointer;
12085
+ text-decoration: underline;
12086
+ text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
12087
+ text-underline-offset: 2.5px;
12088
+ transition: background 0.15s ease, text-decoration-color 0.15s ease;
12089
+ }
12090
+ .inline-notice-action:hover {
12091
+ background: color-mix(in srgb, currentColor 14%, transparent);
12092
+ text-decoration-color: currentColor;
12093
+ }
12094
+ .inline-notice-action:active {
12095
+ background: color-mix(in srgb, currentColor 22%, transparent);
12096
+ }
12097
+ .inline-notice-action:disabled {
12098
+ opacity: 0.5;
12099
+ cursor: default;
12100
+ background: transparent;
12101
+ }
11589
12102
 
11590
12103
  /* ── Extension Market ─────────────────────────────────────────────────── */
11591
12104
  #extensions-panel {
@@ -13714,103 +14227,6 @@ body.setup-mode {
13714
14227
  }
13715
14228
 
13716
14229
 
13717
- /* ── Brand warning bar ───────────────────────────────────────────────────── */
13718
- .brand-warning-bar {
13719
- display: flex;
13720
- align-items: center;
13721
- justify-content: space-between;
13722
- gap: 0.75rem;
13723
- padding: 0.5rem 1rem;
13724
- background: var(--color-warning-bg);
13725
- border-bottom: 1px solid var(--color-warning-border);
13726
- color: var(--color-warning);
13727
- font-size: 0.8125rem;
13728
- flex-shrink: 0;
13729
- }
13730
-
13731
- .brand-warning-bar > span { flex: 1; }
13732
-
13733
- .brand-warning-bar button {
13734
- background: transparent;
13735
- border: none;
13736
- color: var(--color-warning);
13737
- cursor: pointer;
13738
- font-size: 0.875rem;
13739
- padding: 0 0.25rem;
13740
- opacity: 0.7;
13741
- }
13742
-
13743
- .brand-warning-bar .brand-warning-renew-btn {
13744
- background: transparent;
13745
- border: 1px solid currentColor;
13746
- border-radius: var(--radius-sm, 4px);
13747
- color: var(--color-warning);
13748
- cursor: pointer;
13749
- font-size: 0.75rem;
13750
- font-weight: 500;
13751
- padding: 0.2rem 0.6rem;
13752
- opacity: 0.9;
13753
- flex-shrink: 0;
13754
- white-space: nowrap;
13755
- }
13756
-
13757
- .brand-warning-bar button:hover { opacity: 1; }
13758
-
13759
- /* ── Brand activation banner (top info bar, replaces full-screen panel) ──── */
13760
- .brand-activation-banner {
13761
- display: flex;
13762
- align-items: center;
13763
- gap: 0.625rem;
13764
- padding: 0.5625rem 1rem;
13765
- background: color-mix(in srgb, var(--color-accent-primary) 7%, var(--color-bg-primary));
13766
- border-bottom: 1px solid color-mix(in srgb, var(--color-accent-primary) 18%, var(--color-border-primary));
13767
- color: var(--color-text-primary);
13768
- font-size: 0.8125rem;
13769
- flex-shrink: 0;
13770
- }
13771
-
13772
- .brand-activation-banner > span {
13773
- flex: 1;
13774
- color: var(--color-text-primary);
13775
- }
13776
-
13777
- .brand-activation-banner-link {
13778
- background: var(--color-button-primary);
13779
- border: none;
13780
- border-radius: 6px;
13781
- color: var(--color-button-primary-text);
13782
- cursor: pointer;
13783
- font-size: 0.75rem;
13784
- font-weight: 500;
13785
- padding: 0.25rem 0.75rem;
13786
- white-space: nowrap;
13787
- transition: background 0.15s;
13788
- }
13789
-
13790
- .brand-activation-banner-link:hover { background: var(--color-button-primary-hover); }
13791
-
13792
- .brand-activation-banner-close {
13793
- display: inline-flex;
13794
- align-items: center;
13795
- justify-content: center;
13796
- width: 1.5rem;
13797
- height: 1.5rem;
13798
- background: transparent;
13799
- border: none;
13800
- border-radius: 6px;
13801
- color: var(--color-text-secondary);
13802
- cursor: pointer;
13803
- font-size: 0.875rem;
13804
- padding: 0;
13805
- flex-shrink: 0;
13806
- transition: color 0.15s, background 0.15s;
13807
- }
13808
-
13809
- .brand-activation-banner-close:hover {
13810
- color: var(--color-text-primary);
13811
- background: color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
13812
- }
13813
-
13814
14230
  /* ── Scrollbar ───────────────────────────────────────────────────────────── */
13815
14231
  ::-webkit-scrollbar { width: 0.375rem; }
13816
14232
  ::-webkit-scrollbar-track { background: transparent; }
@@ -16978,6 +17394,17 @@ body.setup-mode {
16978
17394
  .media-row.is-expanded {
16979
17395
  background: var(--color-bg-secondary);
16980
17396
  }
17397
+ /* Arriving from a "go fix it" link: outline the row long enough to spot it. */
17398
+ .media-row.is-flash {
17399
+ animation: media-row-flash 1.8s ease-out;
17400
+ }
17401
+ @keyframes media-row-flash {
17402
+ 0%, 45% { box-shadow: 0 0 0 2px var(--color-accent-primary); }
17403
+ 100% { box-shadow: 0 0 0 2px transparent; }
17404
+ }
17405
+ @media (prefers-reduced-motion: reduce) {
17406
+ .media-row.is-flash { animation: none; box-shadow: 0 0 0 2px var(--color-accent-primary); }
17407
+ }
16981
17408
  .media-row-head {
16982
17409
  display: flex;
16983
17410
  align-items: center;
@@ -17750,7 +18177,6 @@ body.setup-mode {
17750
18177
  .sib-sep-after-cost,
17751
18178
  #sib-dir,
17752
18179
  .sib-sep-after-dir,
17753
- #sib-reasoning-wrap,
17754
18180
  #sib-signal-wrap,
17755
18181
  .sib-sep-after-signal {
17756
18182
  display: none;
@@ -17774,27 +18200,32 @@ body.setup-mode {
17774
18200
  }
17775
18201
 
17776
18202
  /* Input bar: proportional spacing, touch-friendly */
17777
- #input-bar {
18203
+ #input-bar,
18204
+ .composer-bar {
17778
18205
  padding: 0.375rem 0.5rem;
17779
18206
  gap: 0.25rem;
17780
18207
  }
17781
18208
 
17782
18209
  /* Attach & slash buttons: slightly smaller touch target */
17783
- #btn-attach {
18210
+ #btn-attach,
18211
+ .composer-attach {
17784
18212
  padding: 0.25rem;
17785
18213
  }
17786
- #btn-slash {
18214
+ #btn-slash,
18215
+ .composer-slash {
17787
18216
  padding: 0.25rem 0.375rem;
17788
18217
  }
17789
18218
 
17790
18219
  /* Textarea: prevent iOS auto-zoom (must be ≥1rem) */
17791
- #user-input {
18220
+ #user-input,
18221
+ .composer-input {
17792
18222
  font-size: 1rem;
17793
18223
  padding: 0.1875rem 0.375rem;
17794
18224
  }
17795
18225
 
17796
18226
  /* Send button: bigger tap target */
17797
- #btn-send, #btn-interrupt {
18227
+ #btn-send, #btn-interrupt,
18228
+ .composer-send, .composer-stop {
17798
18229
  padding: 0.3125rem 0.75rem;
17799
18230
  font-size: 0.875rem;
17800
18231
  }
@@ -18882,15 +19313,29 @@ body.setup-mode {
18882
19313
  .project-picker-done-btn:hover {
18883
19314
  background: var(--color-bg-hover);
18884
19315
  }
18885
- /* ═══ Quote-on-selection floating button (quote-select.js) ═══
19316
+ /* ═══ Quote-on-selection floating bar (quote-select.js) ═══
18886
19317
  Appears above a text selection inside a user/assistant message.
18887
19318
  Neutral dark pill — deliberately brand-color independent so it stays
18888
- legible in both light and dark themes. */
18889
- .quote-select-btn {
19319
+ legible in both light and dark themes. Two actions share the bar: quote into
19320
+ the composer, or ask about the selection in the side chat. */
19321
+ .quote-select-bar {
18890
19322
  position: fixed;
18891
19323
  z-index: 3000;
18892
19324
  transform: translateX(-50%);
18893
19325
  display: none;
19326
+ align-items: stretch;
19327
+ overflow: hidden;
19328
+ background: rgba(24, 26, 32, 0.92);
19329
+ border: 1px solid rgba(255, 255, 255, 0.14);
19330
+ border-radius: 6px;
19331
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
19332
+ transition: opacity var(--transition-fast, 120ms);
19333
+ }
19334
+ .quote-select-bar.visible {
19335
+ display: inline-flex;
19336
+ }
19337
+ .quote-select-btn {
19338
+ display: inline-flex;
18894
19339
  align-items: center;
18895
19340
  gap: 5px;
18896
19341
  padding: 5px 11px;
@@ -18898,26 +19343,24 @@ body.setup-mode {
18898
19343
  font-weight: 500;
18899
19344
  line-height: 1.5;
18900
19345
  color: #fff;
18901
- background: rgba(24, 26, 32, 0.92);
18902
- border: 1px solid rgba(255, 255, 255, 0.14);
18903
- border-radius: 6px;
18904
- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
19346
+ background: transparent;
19347
+ border: 0;
18905
19348
  cursor: pointer;
18906
19349
  user-select: none;
18907
- transition: opacity var(--transition-fast, 120ms);
18908
19350
  }
18909
- .quote-select-btn.visible {
18910
- display: inline-flex;
19351
+ .quote-select-btn + .quote-select-btn {
19352
+ border-left: 1px solid rgba(255, 255, 255, 0.14);
18911
19353
  }
19354
+ .quote-select-btn[hidden] { display: none; }
18912
19355
  .quote-select-btn svg {
18913
19356
  flex: none;
18914
19357
  pointer-events: none;
18915
19358
  }
18916
19359
  .quote-select-btn:hover {
18917
- background: rgba(24, 26, 32, 1);
19360
+ background: rgba(255, 255, 255, 0.12);
18918
19361
  }
18919
19362
  .quote-select-btn:active {
18920
- background: #000;
19363
+ background: rgba(255, 255, 255, 0.2);
18921
19364
  }
18922
19365
 
18923
19366
  /* ═══ Staged quote chip (quote-select.js) ═══
@@ -18926,7 +19369,12 @@ body.setup-mode {
18926
19369
  by Composer.text(). It only adds the single-line truncation — a quote can be
18927
19370
  paragraphs long, the chip must stay one line. */
18928
19371
  .quote-chip {
18929
- max-width: 100%;
19372
+ /* The label is capped at 46ch, which can still be wider than a narrow
19373
+ composer. Capping the chip at 100% leaves no room for its own 0.125rem
19374
+ side margins, so the zero-width guard quote-select.js puts in front of
19375
+ every chip becomes the break point: the chip drops to a second line and
19376
+ the input grows an empty first row that reads as a chip sitting too low. */
19377
+ max-width: calc(100% - 0.25rem);
18930
19378
  }
18931
19379
  .quote-chip .mention-chip-label {
18932
19380
  max-width: 46ch;