openclacky 1.5.21 → 1.5.23

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 (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +119 -0
  3. data/docs/secretary-prototype.md +286 -0
  4. data/lib/clacky/agent/session_serializer.rb +15 -11
  5. data/lib/clacky/agent.rb +58 -15
  6. data/lib/clacky/agent_config.rb +3 -1
  7. data/lib/clacky/agent_profile.rb +33 -6
  8. data/lib/clacky/billing/platform_billing.rb +9 -0
  9. data/lib/clacky/default_extensions/advisor/README.md +25 -0
  10. data/lib/clacky/default_extensions/advisor/README.zh.md +25 -0
  11. data/lib/clacky/default_extensions/advisor/ext.yml +1 -1
  12. data/lib/clacky/default_extensions/advisor/icon.svg +14 -0
  13. data/lib/clacky/default_extensions/coding/ext.yml +0 -1
  14. data/lib/clacky/default_extensions/computer-use/README.md +48 -0
  15. data/lib/clacky/default_extensions/computer-use/README.zh.md +48 -0
  16. data/lib/clacky/default_extensions/computer-use/ext.yml +1 -1
  17. data/lib/clacky/default_extensions/computer-use/icon.svg +16 -0
  18. data/lib/clacky/default_extensions/ext-studio/ext.yml +0 -1
  19. data/lib/clacky/default_extensions/general/ext.yml +0 -1
  20. data/lib/clacky/default_extensions/git/README.md +41 -0
  21. data/lib/clacky/default_extensions/git/README.zh.md +41 -0
  22. data/lib/clacky/default_extensions/git/ext.yml +1 -1
  23. data/lib/clacky/default_extensions/git/icon.svg +15 -0
  24. data/lib/clacky/default_extensions/git/panels/git/view.js +1960 -399
  25. data/lib/clacky/default_extensions/meeting/README.md +46 -0
  26. data/lib/clacky/default_extensions/meeting/README.zh.md +47 -0
  27. data/lib/clacky/default_extensions/meeting/ext.yml +1 -1
  28. data/lib/clacky/default_extensions/meeting/icon.svg +13 -0
  29. data/lib/clacky/default_extensions/preview/README.md +29 -0
  30. data/lib/clacky/default_extensions/preview/README.zh.md +29 -0
  31. data/lib/clacky/default_extensions/preview/ext.yml +1 -1
  32. data/lib/clacky/default_extensions/preview/icon.svg +13 -0
  33. data/lib/clacky/default_extensions/preview/panels/preview/view.js +199 -34
  34. data/lib/clacky/default_extensions/secretary/agents/secretary.md +41 -0
  35. data/lib/clacky/default_extensions/secretary/agents/worker.md +35 -0
  36. data/lib/clacky/default_extensions/secretary/api/handler.rb +8 -0
  37. data/lib/clacky/default_extensions/secretary/ext.yml +39 -0
  38. data/lib/clacky/default_extensions/secretary/panels/work/view.js +344 -0
  39. data/lib/clacky/default_extensions/secretary/tools/delegate_work.rb +37 -0
  40. data/lib/clacky/default_extensions/secretary/tools/manage_work.rb +22 -0
  41. data/lib/clacky/default_extensions/secretary/tools/yield_work.rb +35 -0
  42. data/lib/clacky/default_extensions/time_machine/README.md +32 -0
  43. data/lib/clacky/default_extensions/time_machine/README.zh.md +32 -0
  44. data/lib/clacky/default_extensions/time_machine/ext.yml +1 -1
  45. data/lib/clacky/default_extensions/time_machine/icon.svg +14 -0
  46. data/lib/clacky/default_skills/channel-manager/SKILL.md +79 -8
  47. data/lib/clacky/default_skills/channel-manager/discord_setup.rb +5 -1
  48. data/lib/clacky/default_skills/channel-manager/weixin_setup.rb +8 -1
  49. data/lib/clacky/default_skills/cron-task-creator/SKILL.md +183 -206
  50. data/lib/clacky/default_skills/cron-task-creator/evals/evals.json +45 -0
  51. data/lib/clacky/default_skills/media-gen/SKILL.md +17 -8
  52. data/lib/clacky/extension/api_extension.rb +10 -2
  53. data/lib/clacky/extension/loader.rb +2 -0
  54. data/lib/clacky/extension/verifier.rb +2 -2
  55. data/lib/clacky/locales/en.rb +14 -0
  56. data/lib/clacky/locales/zh.rb +14 -0
  57. data/lib/clacky/prompts/base.md +1 -1
  58. data/lib/clacky/providers.rb +68 -31
  59. data/lib/clacky/search_config.rb +33 -11
  60. data/lib/clacky/server/channel/adapters/base.rb +18 -0
  61. data/lib/clacky/server/channel/adapters/feishu/message_parser.rb +1 -0
  62. data/lib/clacky/server/channel/adapters/telegram/adapter.rb +1 -0
  63. data/lib/clacky/server/channel/channel_config.rb +185 -48
  64. data/lib/clacky/server/channel/channel_manager.rb +179 -66
  65. data/lib/clacky/server/git_panel.rb +362 -35
  66. data/lib/clacky/server/http_server.rb +530 -181
  67. data/lib/clacky/server/preview.rb +118 -17
  68. data/lib/clacky/server/scheduler.rb +211 -51
  69. data/lib/clacky/server/web_ui_controller.rb +35 -27
  70. data/lib/clacky/session_manager.rb +56 -6
  71. data/lib/clacky/tools/base.rb +7 -1
  72. data/lib/clacky/utils/file_processor.rb +20 -10
  73. data/lib/clacky/utils/mac_app_detector.rb +8 -7
  74. data/lib/clacky/utils/model_pricing.rb +60 -2
  75. data/lib/clacky/utils/windows_app_detector.rb +3 -1
  76. data/lib/clacky/version.rb +1 -1
  77. data/lib/clacky/web/app.css +1114 -205
  78. data/lib/clacky/web/app.js +143 -8
  79. data/lib/clacky/web/auth.js +1 -1
  80. data/lib/clacky/web/components/code-editor.js +73 -4
  81. data/lib/clacky/web/components/composer.js +107 -8
  82. data/lib/clacky/web/components/image-zoom.js +165 -0
  83. data/lib/clacky/web/components/model-picker.js +7 -5
  84. data/lib/clacky/web/components/notify.js +39 -12
  85. data/lib/clacky/web/components/onboard.js +1 -1
  86. data/lib/clacky/web/core/aside.js +60 -3
  87. data/lib/clacky/web/features/billing/view.js +2 -2
  88. data/lib/clacky/web/features/channels/store.js +19 -4
  89. data/lib/clacky/web/features/channels/view.js +92 -28
  90. data/lib/clacky/web/features/extensions/view.js +17 -10
  91. data/lib/clacky/web/features/new-session/store.js +79 -2
  92. data/lib/clacky/web/features/new-session/view.js +516 -75
  93. data/lib/clacky/web/features/skills/store.js +1 -1
  94. data/lib/clacky/web/features/tasks/store.js +5 -3
  95. data/lib/clacky/web/features/tasks/view.js +249 -66
  96. data/lib/clacky/web/features/workspace/store.js +13 -6
  97. data/lib/clacky/web/features/workspace/view.js +340 -214
  98. data/lib/clacky/web/i18n.js +366 -68
  99. data/lib/clacky/web/index.html +196 -165
  100. data/lib/clacky/web/projects.js +37 -4
  101. data/lib/clacky/web/sessions.js +263 -146
  102. data/lib/clacky/web/settings.js +241 -53
  103. data/lib/clacky/web/skills.js +2 -2
  104. data/lib/clacky/web/theme.js +17 -2
  105. data/lib/clacky/web/utils.js +234 -2
  106. data/lib/clacky/web/weixin-qr.html +2 -1
  107. data/lib/clacky/web/ws-dispatcher.js +14 -31
  108. data/lib/clacky/work/service.rb +542 -0
  109. data/lib/clacky/work/store.rb +57 -0
  110. metadata +31 -1
@@ -369,6 +369,7 @@ input[type="checkbox"] { accent-color: var(--color-accent-primary); }
369
369
  transition: opacity 0.12s ease;
370
370
  }
371
371
  #tooltip.visible { opacity: 1; }
372
+ #tooltip[data-wide] { max-width: 24rem; }
372
373
  #tooltip::after {
373
374
  content: "";
374
375
  position: absolute;
@@ -466,6 +467,18 @@ input[type="checkbox"] { accent-color: var(--color-accent-primary); }
466
467
 
467
468
 
468
469
 
470
+ .theme-switching *,
471
+ .theme-switching *::before,
472
+ .theme-switching *::after {
473
+ transition: none !important;
474
+ }
475
+
476
+ ::view-transition-group(root),
477
+ ::view-transition-old(root),
478
+ ::view-transition-new(root) {
479
+ animation-duration: 600ms;
480
+ }
481
+
469
482
  body {
470
483
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
471
484
  background: var(--color-bg-primary);
@@ -1816,6 +1829,14 @@ body {
1816
1829
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent);
1817
1830
  mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent);
1818
1831
  }
1832
+ /* A sliding title needs a fade on its leading edge too, or the glyphs are
1833
+ guillotined at the viewport once they travel left. The class is added by JS
1834
+ only after the slide's 0.3s delay, so the first glyph is not dimmed while the
1835
+ text is still standing; a CSS-only swap would also linger on the way back. */
1836
+ .session-item.session-name-leading-fade:not(.group-item) .session-name .session-name__text {
1837
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
1838
+ mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
1839
+ }
1819
1840
  .session-name__content {
1820
1841
  display: inline-block;
1821
1842
  min-width: max-content;
@@ -2071,6 +2092,21 @@ body {
2071
2092
  .session-actions-submenu-item.selected {
2072
2093
  background: var(--color-bg-hover);
2073
2094
  }
2095
+ /* Real app icons (served by /api/app-icon) inside any "open with" list. Bigger
2096
+ than the 14px line icons so the app itself reads at a glance. */
2097
+ .menu-app-icon { width: 1.25rem; height: 1.25rem; }
2098
+ .menu-app-icon img {
2099
+ width: 100%;
2100
+ height: 100%;
2101
+ display: block;
2102
+ border-radius: 0.1875rem;
2103
+ }
2104
+ /* The OS default handler is bolded instead of filled, so hovering still shows
2105
+ which row the pointer is on. */
2106
+ .session-actions-submenu-item.is-default,
2107
+ .wv-open-menu .session-actions-menu-item.is-default {
2108
+ font-weight: 600;
2109
+ }
2074
2110
  .session-actions-submenu-divider {
2075
2111
  height: 1px;
2076
2112
  background: var(--color-border-secondary);
@@ -2352,8 +2388,10 @@ body {
2352
2388
  display: flex;
2353
2389
  flex-direction: column;
2354
2390
  padding: 1.75rem 2.25rem;
2355
- gap: 1.25rem;
2356
2391
  }
2392
+ /* Spacing is per block rather than one flex gap: the tabs belong to their list
2393
+ more than to the header above them. */
2394
+ #task-detail-body > .task-page-header { margin-bottom: 1.25rem; }
2357
2395
 
2358
2396
  /* ── Task Page Header ───────────────────────────────────────────────────── */
2359
2397
  .task-page-header {
@@ -2433,6 +2471,113 @@ body {
2433
2471
  background: var(--color-button-primary-hover);
2434
2472
  }
2435
2473
 
2474
+ /* ── Empty state: hero + starter examples ───────────────────────────────── */
2475
+ .task-empty {
2476
+ display: flex;
2477
+ flex-direction: column;
2478
+ gap: 2rem;
2479
+ padding: 2.5rem 0 1.5rem;
2480
+ }
2481
+ .task-empty-hero {
2482
+ display: flex;
2483
+ flex-direction: column;
2484
+ align-items: center;
2485
+ gap: 0.75rem;
2486
+ text-align: center;
2487
+ }
2488
+ .task-empty-icon {
2489
+ color: var(--color-text-tertiary);
2490
+ opacity: 0.55;
2491
+ line-height: 0;
2492
+ }
2493
+ .task-empty-title {
2494
+ margin: 0;
2495
+ font-size: 0.875rem;
2496
+ color: var(--color-text-secondary);
2497
+ }
2498
+ .task-examples {
2499
+ display: flex;
2500
+ flex-direction: column;
2501
+ gap: 0.75rem;
2502
+ }
2503
+ .task-examples-title {
2504
+ margin: 0;
2505
+ font-size: 0.9375rem;
2506
+ font-weight: 600;
2507
+ color: var(--color-text-primary);
2508
+ }
2509
+ .task-examples-grid {
2510
+ display: grid;
2511
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
2512
+ gap: 0.625rem;
2513
+ }
2514
+ .task-example {
2515
+ display: flex;
2516
+ align-items: flex-start;
2517
+ gap: 0.75rem;
2518
+ padding: 0.875rem;
2519
+ text-align: left;
2520
+ font: inherit;
2521
+ color: inherit;
2522
+ background: var(--color-bg-card);
2523
+ border: 1px solid var(--color-border-primary);
2524
+ border-radius: var(--radius-md);
2525
+ cursor: pointer;
2526
+ transition: border-color 0.15s, background 0.15s, transform 0.15s;
2527
+ }
2528
+ .task-example:hover {
2529
+ background: color-mix(in srgb, var(--color-bg-hover) 55%, var(--color-bg-card));
2530
+ border-color: var(--color-border-secondary);
2531
+ }
2532
+ .task-example:active { transform: translateY(1px); }
2533
+ .task-example-icon {
2534
+ --tone: #64748b;
2535
+ flex-shrink: 0;
2536
+ display: inline-flex;
2537
+ align-items: center;
2538
+ justify-content: center;
2539
+ width: 2rem;
2540
+ height: 2rem;
2541
+ border-radius: 0.5rem;
2542
+ color: var(--tone);
2543
+ background: color-mix(in srgb, var(--tone) 12%, transparent);
2544
+ transition: background 0.15s;
2545
+ }
2546
+ .task-example:hover .task-example-icon { background: color-mix(in srgb, var(--tone) 18%, transparent); }
2547
+ .task-example-icon[data-tone="blue"] { --tone: #2563eb; }
2548
+ .task-example-icon[data-tone="violet"] { --tone: #7c3aed; }
2549
+ .task-example-icon[data-tone="green"] { --tone: #059669; }
2550
+ .task-example-icon[data-tone="amber"] { --tone: #d97706; }
2551
+ .task-example-icon[data-tone="cyan"] { --tone: #0891b2; }
2552
+ .task-example-icon[data-tone="slate"] { --tone: #475569; }
2553
+ .task-example-icon[data-tone="rose"] { --tone: #e11d48; }
2554
+ .task-example-icon[data-tone="indigo"] { --tone: #4f46e5; }
2555
+ .task-example-icon[data-tone="orange"] { --tone: #ea580c; }
2556
+ [data-theme="dark"] .task-example-icon { color: color-mix(in srgb, var(--tone) 70%, #fff); background: color-mix(in srgb, var(--tone) 22%, transparent); }
2557
+ .task-example-text {
2558
+ display: flex;
2559
+ flex-direction: column;
2560
+ gap: 0.125rem;
2561
+ min-width: 0;
2562
+ }
2563
+ .task-example-name {
2564
+ font-size: 0.8125rem;
2565
+ font-weight: 500;
2566
+ color: var(--color-text-primary);
2567
+ overflow: hidden;
2568
+ text-overflow: ellipsis;
2569
+ white-space: nowrap;
2570
+ }
2571
+ .task-example-desc {
2572
+ font-size: 0.75rem;
2573
+ line-height: 1.45;
2574
+ color: var(--color-text-tertiary);
2575
+ display: -webkit-box;
2576
+ -webkit-line-clamp: 2;
2577
+ -webkit-box-orient: vertical;
2578
+ overflow: hidden;
2579
+ }
2580
+
2436
2581
  /* ── Page title (shared) ─────────────────────────────────────────────────── */
2437
2582
  .page-title {
2438
2583
  margin: 0;
@@ -2466,8 +2611,8 @@ body {
2466
2611
  transition: color .15s, background .15s;
2467
2612
  }
2468
2613
  .page-tab:hover:not(.active) {
2469
- background: var(--color-bg-hover);
2470
- color: var(--color-text-primary);
2614
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
2615
+ color: var(--color-accent-primary);
2471
2616
  }
2472
2617
  .page-tab.active { color: var(--color-accent-primary); }
2473
2618
  .page-tab.active::after {
@@ -2517,16 +2662,15 @@ body {
2517
2662
  .tasks-search:focus { border-color: var(--color-accent-primary); }
2518
2663
  .tasks-search::placeholder { color: var(--color-text-tertiary); }
2519
2664
 
2520
- /* ── Task rows ───────────────────────────────────────────────────────────── */
2665
+ /* ── Task rows (run history) ─────────────────────────────────────────────── */
2521
2666
  .task-section-label {
2522
2667
  display: flex;
2523
2668
  align-items: center;
2524
2669
  font-size: 0.75rem;
2525
2670
  font-weight: 500;
2526
2671
  color: var(--color-text-tertiary);
2527
- padding: 1.5rem 0.25rem 0.5rem;
2672
+ padding: 1rem 0.25rem 0.5rem;
2528
2673
  }
2529
- .task-section-label:first-child { padding-top: 0.375rem; }
2530
2674
  .cron-row {
2531
2675
  border-radius: 10px;
2532
2676
  background: var(--color-bg-secondary);
@@ -2557,32 +2701,7 @@ body {
2557
2701
  font-weight: 500;
2558
2702
  color: var(--color-text-primary);
2559
2703
  }
2560
- .cron-row-paused .cron-row-name,
2561
- .cron-row-paused .cron-row-cron { color: var(--color-text-tertiary); }
2562
- .cron-row-paused .cron-row-preview { color: var(--color-text-muted); }
2563
- .cron-row-preview {
2564
- flex: 0 1 auto;
2565
- max-width: 28rem;
2566
- min-width: 0;
2567
- overflow: hidden;
2568
- text-overflow: ellipsis;
2569
- white-space: nowrap;
2570
- color: var(--color-text-tertiary);
2571
- }
2572
- .cron-row-cron {
2573
- flex-shrink: 0;
2574
- white-space: nowrap;
2575
- color: var(--color-text-secondary);
2576
- }
2577
- .cron-row-cron-manual { color: var(--color-text-tertiary); }
2578
2704
  .cron-row-spacer { flex: 1; }
2579
- .task-section-empty {
2580
- padding: 0.75rem 0.875rem;
2581
- border: 1px dashed var(--color-border-primary);
2582
- border-radius: 8px;
2583
- font-size: 0.8125rem;
2584
- color: var(--color-text-tertiary);
2585
- }
2586
2705
  .cron-row-end {
2587
2706
  position: relative;
2588
2707
  display: flex;
@@ -2634,21 +2753,167 @@ body {
2634
2753
  background: color-mix(in srgb, var(--color-bg-hover) 92%, var(--color-text-primary));
2635
2754
  color: var(--color-text-secondary);
2636
2755
  }
2637
- .cron-row-detail { padding: 0 0.625rem 0.75rem; }
2638
- .task-card-detail-content {
2639
- padding: 0.75rem 1rem;
2640
- font-size: 0.8125rem;
2756
+
2757
+ /* ── Task filter bar ────────────────────────────────────────────────────── */
2758
+ /* Visuals come from the shared .segmented-control block; only the placement
2759
+ inside the scrolling list is task-specific. */
2760
+ #task-list-table > .segmented-control {
2761
+ align-self: flex-start;
2762
+ flex-shrink: 0;
2763
+ margin: 0.95rem 0 0.75rem;
2764
+ }
2765
+
2766
+ /* ── Task cards ──────────────────────────────────────────────────────────── */
2767
+ .task-card-grid {
2768
+ display: grid;
2769
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
2770
+ align-items: start;
2771
+ gap: 0.75rem;
2772
+ padding-bottom: 0.5rem;
2773
+ }
2774
+ .task-card {
2775
+ position: relative;
2776
+ display: flex;
2777
+ flex-direction: column;
2778
+ gap: 0.5rem;
2779
+ min-height: 8.75rem;
2780
+ padding: 1.125rem 1.25rem;
2781
+ border: 1px solid var(--color-border-primary);
2782
+ border-radius: var(--radius-lg);
2783
+ background: var(--color-bg-card);
2784
+ cursor: pointer;
2785
+ transition: border-color .15s, box-shadow .15s, background .15s;
2786
+ }
2787
+ /* Hover is a nudge, not a state change: full --color-bg-hover reads as pressed.
2788
+ Mix it down toward the card's resting fill. */
2789
+ .task-card:hover {
2790
+ background: color-mix(in srgb, var(--color-bg-hover) 55%, var(--color-bg-card));
2791
+ border-color: var(--color-border-secondary);
2792
+ }
2793
+ /* Paused cards recede: shell-toned fill, muted text. */
2794
+ .task-card.is-paused {
2795
+ background: var(--color-bg-primary);
2796
+ border-color: var(--color-border-secondary);
2797
+ }
2798
+ .task-card.is-paused:hover,
2799
+ .task-card.is-paused.is-menu-open {
2800
+ background: color-mix(in srgb, var(--color-bg-hover) 55%, var(--color-bg-primary));
2801
+ }
2802
+ .task-card-head {
2803
+ display: flex;
2804
+ align-items: center;
2805
+ gap: 0.75rem;
2806
+ min-height: 1.5rem;
2807
+ }
2808
+ .task-card-title {
2809
+ flex: 1;
2810
+ min-width: 0;
2811
+ margin: 0;
2812
+ font-size: 0.95rem;
2813
+ font-weight: 500;
2814
+ line-height: 1.35;
2815
+ color: var(--color-text-primary);
2816
+ overflow: hidden;
2817
+ text-overflow: ellipsis;
2818
+ white-space: nowrap;
2819
+ }
2820
+ .task-card.is-paused .task-card-title { color: var(--color-text-tertiary); }
2821
+ /* Actions sit in the header row, right of the title, and stay visible so the
2822
+ card is operable without a hover state (touch, keyboard, dark screens). */
2823
+ .task-card-actions {
2824
+ display: flex;
2825
+ align-items: center;
2826
+ gap: 0.5rem;
2827
+ flex-shrink: 0;
2828
+ }
2829
+ /* Hover-revealed: the row keeps its space (opacity, not display) so the title
2830
+ never reflows as the pointer enters. Touch devices show it outright. */
2831
+ .task-card-tools {
2832
+ display: flex;
2833
+ align-items: center;
2834
+ gap: 0.125rem;
2835
+ opacity: 0;
2836
+ pointer-events: none;
2837
+ transition: opacity .15s;
2838
+ }
2839
+ .task-card:hover .task-card-tools,
2840
+ .task-card:focus-within .task-card-tools,
2841
+ .task-card.is-menu-open .task-card-tools {
2842
+ opacity: 1;
2843
+ pointer-events: auto;
2844
+ }
2845
+ @media (hover: none) {
2846
+ .task-card-tools { opacity: 1; pointer-events: auto; }
2847
+ }
2848
+ .task-card-toggle { flex-shrink: 0; }
2849
+ .task-card-tool {
2850
+ display: flex;
2851
+ align-items: center;
2852
+ justify-content: center;
2853
+ width: 1.625rem;
2854
+ height: 1.625rem;
2855
+ padding: 0;
2856
+ border: none;
2857
+ border-radius: var(--radius-sm);
2858
+ background: transparent;
2641
2859
  color: var(--color-text-secondary);
2642
- line-height: 1.65;
2860
+ cursor: pointer;
2861
+ transition: background .15s, color .15s;
2862
+ }
2863
+ .task-card.is-paused .task-card-tool { color: var(--color-text-tertiary); }
2864
+ .task-card-tool:hover {
2865
+ background: var(--color-bg-hover);
2866
+ color: var(--color-text-primary);
2867
+ }
2868
+ .task-card-desc {
2869
+ margin: 0;
2870
+ font-size: 0.75rem;
2871
+ line-height: 1.7;
2872
+ color: var(--color-text-tertiary);
2873
+ display: -webkit-box;
2874
+ -webkit-line-clamp: 2;
2875
+ -webkit-box-orient: vertical;
2876
+ overflow: hidden;
2643
2877
  word-break: break-word;
2644
- max-height: 20rem;
2878
+ }
2879
+ .task-card.is-paused .task-card-desc { color: var(--color-text-muted); }
2880
+ .task-card-foot {
2881
+ display: flex;
2882
+ align-items: center;
2883
+ justify-content: space-between;
2884
+ gap: 0.5rem;
2885
+ margin-top: auto;
2886
+ padding-top: 0.75rem;
2887
+ border-top: 1px solid var(--color-border-secondary);
2888
+ font-size: 0.75rem;
2889
+ line-height: 1.4;
2890
+ color: var(--color-text-tertiary);
2891
+ }
2892
+ .task-card-sched {
2893
+ display: inline-flex;
2894
+ align-items: center;
2895
+ gap: 0.3125rem;
2896
+ min-width: 0;
2897
+ }
2898
+ .task-card-clock { flex-shrink: 0; opacity: 0.75; }
2899
+ .task-card-sched-text {
2900
+ overflow: hidden;
2901
+ text-overflow: ellipsis;
2902
+ white-space: nowrap;
2903
+ }
2904
+ .task-card-next { flex-shrink: 0; white-space: nowrap; }
2905
+ .task-card.is-paused .task-card-next { color: var(--color-text-muted); }
2906
+ /* ── Task detail modal (reuses shared .modal-box / .modal-body) ──────────── */
2907
+ .task-detail-modal {
2908
+ display: flex;
2909
+ flex-direction: column;
2910
+ max-height: min(80vh, 46rem);
2911
+ }
2912
+ .task-detail-modal .modal-body {
2913
+ flex: 1;
2914
+ min-height: 0;
2645
2915
  overflow-y: auto;
2646
- background: var(--color-bg-secondary);
2647
- border: 1px solid var(--color-border-primary);
2648
- border-radius: 6px;
2649
2916
  }
2650
- .task-card-detail-content > :first-child { margin-top: 0; }
2651
- .task-card-detail-content > :last-child { margin-bottom: 0; }
2652
2917
 
2653
2918
  /* ── Run history ─────────────────────────────────────────────────────────── */
2654
2919
  .task-run-row .cron-row-main { cursor: default; }
@@ -2969,10 +3234,9 @@ body {
2969
3234
  color: var(--color-accent-primary);
2970
3235
  background: var(--color-accent-soft);
2971
3236
  }
2972
- .new-session-composer-btn > span {
2973
- font-size: 0.875rem;
2974
- font-weight: 400;
2975
- line-height: 1;
3237
+ .new-session-composer-btn svg {
3238
+ width: 1.125rem;
3239
+ height: 1.125rem;
2976
3240
  }
2977
3241
  .new-session-textarea {
2978
3242
  flex: 1;
@@ -3140,89 +3404,284 @@ body {
3140
3404
  overflow: hidden;
3141
3405
  text-overflow: ellipsis;
3142
3406
  }
3407
+ /* `hidden` alone loses to the inline-flex above, and hiding must not leave a gap. */
3408
+ .ns-ctx-chip[hidden] {
3409
+ display: none;
3410
+ }
3143
3411
  .ns-ctx-chip:hover {
3144
3412
  color: var(--color-text-primary);
3145
3413
  background: var(--color-bg-hover);
3146
3414
  }
3147
- .ns-ctx-chip--muted {
3148
- color: var(--color-text-secondary);
3415
+ .ns-ctx-chip--muted {
3416
+ color: var(--color-text-secondary);
3417
+ }
3418
+ .ns-ctx-chip--active,
3419
+ .ns-ctx-chip--active:hover {
3420
+ color: var(--color-accent-primary) !important;
3421
+ background: var(--color-accent-soft) !important;
3422
+ }
3423
+ .ns-ctx-chip-icon {
3424
+ display: flex;
3425
+ align-items: center;
3426
+ flex-shrink: 0;
3427
+ opacity: 0.7;
3428
+ }
3429
+ /* Vendor badges bring their own colors, so they skip the 0.7 icon opacity. */
3430
+ .ns-ctx-chip-icon--badge {
3431
+ opacity: 1;
3432
+ }
3433
+ .ns-ctx-chip-label {
3434
+ overflow: hidden;
3435
+ text-overflow: ellipsis;
3436
+ }
3437
+ /* Chip text is 12px, so the dropdown's 18px tile would loom over it. */
3438
+ .ns-ctx-chip .sib-vendor-badge {
3439
+ width: 0.9375rem;
3440
+ height: 0.9375rem;
3441
+ border-radius: 4px;
3442
+ font-size: 0.4375rem;
3443
+ }
3444
+ .ns-ctx-chip .sib-vendor-badge svg {
3445
+ width: 0.5625rem;
3446
+ height: 0.5625rem;
3447
+ }
3448
+ .ns-ctx-chip .sib-vendor-badge.is-brand svg {
3449
+ width: 0.6875rem;
3450
+ height: 0.6875rem;
3451
+ }
3452
+
3453
+ /* Context bar popover */
3454
+ .ns-ctx-popover {
3455
+ z-index: 9999;
3456
+ background: var(--color-bg-secondary);
3457
+ border: 1px solid var(--color-border-primary);
3458
+ border-radius: 0.5rem;
3459
+ box-shadow: var(--shadow-popover, 0 4px 16px rgba(0,0,0,.12));
3460
+ padding: 0.25rem;
3461
+ min-width: 11rem;
3462
+ max-width: 22rem;
3463
+ max-height: 18rem;
3464
+ overflow-y: auto;
3465
+ display: flex;
3466
+ flex-direction: column;
3467
+ gap: 1px;
3468
+ }
3469
+ .ns-ctx-popover-item {
3470
+ display: block;
3471
+ width: 100%;
3472
+ text-align: left;
3473
+ padding: 0.375rem 0.625rem;
3474
+ border: none;
3475
+ border-radius: 0.3125rem;
3476
+ background: transparent;
3477
+ color: var(--color-text-secondary);
3478
+ font-size: 0.8125rem;
3479
+ font-family: inherit;
3480
+ cursor: pointer;
3481
+ transition: background 0.1s, color 0.1s;
3482
+ white-space: nowrap;
3483
+ overflow: hidden;
3484
+ text-overflow: ellipsis;
3485
+ }
3486
+ .ns-ctx-popover-item:hover {
3487
+ background: var(--color-bg-hover);
3488
+ color: var(--color-text-primary);
3489
+ }
3490
+ .ns-ctx-popover-item.active {
3491
+ color: var(--color-accent-primary);
3492
+ font-weight: 500;
3493
+ }
3494
+ .ns-ctx-popover-empty {
3495
+ padding: 0.5rem 0.625rem;
3496
+ font-size: 0.8125rem;
3497
+ color: var(--color-text-tertiary);
3498
+ }
3499
+
3500
+ /* Branch picker — search pinned on top, list scrolls, footer pinned below.
3501
+ Drops the popover's own padding/scroll so the three zones stay put while
3502
+ the branch list is long. */
3503
+ .ns-ctx-popover.ns-branch-pop {
3504
+ padding: 0;
3505
+ min-width: 15rem;
3506
+ max-width: 19rem;
3507
+ max-height: 20rem;
3508
+ overflow: hidden;
3509
+ }
3510
+ .ns-branch-search {
3511
+ display: flex;
3512
+ align-items: center;
3513
+ gap: 0.375rem;
3514
+ flex-shrink: 0;
3515
+ position: relative;
3516
+ padding: 0.75rem 0.625rem 0.5rem;
3517
+ color: var(--color-text-tertiary);
3518
+ }
3519
+ /* The divider is inset instead of full-bleed so it reads as part of the list
3520
+ rather than as an extra border hugging the popover frame. The search row has
3521
+ none: it sits right under the popover's own top edge. */
3522
+ .ns-branch-foot::before {
3523
+ content: "";
3524
+ position: absolute;
3525
+ left: 0.5rem;
3526
+ right: 0.5rem;
3527
+ height: 1px;
3528
+ background: var(--color-border-primary);
3529
+ }
3530
+ .ns-branch-search-input {
3531
+ flex: 1;
3532
+ min-width: 0;
3533
+ border: none;
3534
+ outline: none;
3535
+ background: transparent;
3536
+ color: var(--color-text-primary);
3537
+ font-size: 0.8125rem;
3538
+ font-family: inherit;
3539
+ }
3540
+ .ns-branch-search-input::placeholder {
3541
+ color: var(--color-text-tertiary);
3542
+ }
3543
+ .ns-branch-list {
3544
+ display: flex;
3545
+ flex-direction: column;
3546
+ gap: 1px;
3547
+ flex: 1;
3548
+ min-height: 0;
3549
+ padding: 0.25rem;
3550
+ overflow-y: auto;
3551
+ }
3552
+ /* Long branch lists must scroll, not squeeze: flex children shrink by default,
3553
+ which flattened every row to a few pixels once the list overflowed. */
3554
+ .ns-branch-list > * {
3555
+ flex-shrink: 0;
3556
+ }
3557
+ .ns-branch-list.is-busy {
3558
+ opacity: 0.55;
3559
+ pointer-events: none;
3560
+ }
3561
+ .ns-branch-group {
3562
+ padding: 0.375rem 0.625rem 0.1875rem;
3563
+ font-size: 0.6875rem;
3564
+ letter-spacing: 0.04em;
3565
+ text-transform: uppercase;
3566
+ color: var(--color-text-tertiary);
3567
+ }
3568
+ .ns-branch-item {
3569
+ display: flex;
3570
+ align-items: center;
3571
+ gap: 0.5rem;
3572
+ padding: 0.4375rem 0.625rem;
3573
+ }
3574
+ .ns-branch-item-icon,
3575
+ .ns-branch-item-check {
3576
+ display: flex;
3577
+ flex-shrink: 0;
3578
+ }
3579
+ .ns-branch-item-icon {
3580
+ opacity: 0.75;
3581
+ }
3582
+ .ns-branch-item-label {
3583
+ flex: 1;
3584
+ overflow: hidden;
3585
+ text-overflow: ellipsis;
3586
+ text-align: left;
3587
+ }
3588
+ .ns-branch-item.is-remote .ns-branch-item-label {
3589
+ opacity: 0.75;
3590
+ }
3591
+ .ns-branch-foot {
3592
+ position: relative;
3593
+ flex-shrink: 0;
3594
+ padding: 0.25rem;
3595
+ }
3596
+ .ns-branch-foot::before {
3597
+ top: 0;
3598
+ }
3599
+ .ns-branch-create {
3600
+ display: flex;
3601
+ align-items: center;
3602
+ gap: 0.5rem;
3603
+ width: 100%;
3604
+ }
3605
+ /* Create-branch modal */
3606
+ .ns-branch-field-head {
3607
+ display: flex;
3608
+ align-items: center;
3609
+ justify-content: space-between;
3610
+ gap: 0.5rem;
3611
+ }
3612
+ .ns-branch-prefix-btn {
3613
+ padding: 0;
3614
+ border: none;
3615
+ background: transparent;
3616
+ color: var(--color-accent-primary);
3617
+ font-size: 0.75rem;
3618
+ font-family: inherit;
3619
+ cursor: pointer;
3620
+ }
3621
+ .ns-branch-prefix-btn:hover {
3622
+ text-decoration: underline;
3149
3623
  }
3150
- .ns-ctx-chip--active,
3151
- .ns-ctx-chip--active:hover {
3152
- color: var(--color-accent-primary) !important;
3153
- background: var(--color-accent-soft) !important;
3624
+ .ns-branch-prefix-btn:disabled {
3625
+ color: var(--color-text-muted);
3626
+ cursor: default;
3627
+ text-decoration: none;
3154
3628
  }
3155
- .ns-ctx-chip-icon {
3629
+ .ns-branch-name-row {
3156
3630
  display: flex;
3157
3631
  align-items: center;
3158
- flex-shrink: 0;
3159
- opacity: 0.7;
3160
- }
3161
- .ns-ctx-chip-label {
3162
- overflow: hidden;
3163
- text-overflow: ellipsis;
3164
- }
3165
- /* Chip text is 12px, so the dropdown's 18px tile would loom over it. */
3166
- .ns-ctx-chip .sib-vendor-badge {
3167
- width: 0.9375rem;
3168
- height: 0.9375rem;
3169
- border-radius: 4px;
3170
- font-size: 0.4375rem;
3632
+ gap: 0.125rem;
3633
+ padding: 0 0.75rem;
3634
+ border: 1px solid var(--color-border-primary);
3635
+ border-radius: var(--radius-sm);
3636
+ background: var(--color-bg-input);
3637
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
3171
3638
  }
3172
- .ns-ctx-chip .sib-vendor-badge svg {
3173
- width: 0.5625rem;
3174
- height: 0.5625rem;
3639
+ .ns-branch-name-row:hover {
3640
+ border-color: var(--color-border-strong);
3175
3641
  }
3176
- .ns-ctx-chip .sib-vendor-badge.is-brand svg {
3177
- width: 0.6875rem;
3178
- height: 0.6875rem;
3642
+ .ns-branch-name-row:focus-within {
3643
+ border-color: var(--color-accent-primary);
3644
+ box-shadow: 0 0 0 3px var(--color-accent-soft);
3179
3645
  }
3180
-
3181
- /* Context bar popover */
3182
- .ns-ctx-popover {
3183
- z-index: 9999;
3184
- background: var(--color-bg-secondary);
3185
- border: 1px solid var(--color-border-primary);
3186
- border-radius: 0.5rem;
3187
- box-shadow: var(--shadow-popover, 0 4px 16px rgba(0,0,0,.12));
3188
- padding: 0.25rem;
3189
- min-width: 11rem;
3190
- max-width: 22rem;
3191
- max-height: 18rem;
3192
- overflow-y: auto;
3193
- display: flex;
3194
- flex-direction: column;
3195
- gap: 1px;
3646
+ .ns-branch-name-row.is-invalid {
3647
+ border-color: var(--color-error);
3196
3648
  }
3197
- .ns-ctx-popover-item {
3198
- display: block;
3199
- width: 100%;
3200
- text-align: left;
3201
- padding: 0.375rem 0.625rem;
3649
+ .ns-branch-name-row .ns-branch-name-input {
3650
+ flex: 1;
3651
+ min-width: 0;
3652
+ padding: 0.5625rem 0;
3202
3653
  border: none;
3203
- border-radius: 0.3125rem;
3204
3654
  background: transparent;
3205
- color: var(--color-text-secondary);
3655
+ color: var(--color-text-primary);
3206
3656
  font-size: 0.8125rem;
3207
3657
  font-family: inherit;
3208
- cursor: pointer;
3209
- transition: background 0.1s, color 0.1s;
3210
- white-space: nowrap;
3211
- overflow: hidden;
3212
- text-overflow: ellipsis;
3658
+ outline: none;
3659
+ box-shadow: none;
3213
3660
  }
3214
- .ns-ctx-popover-item:hover {
3661
+ .ns-branch-name-row .ns-branch-name-input::placeholder {
3662
+ color: var(--color-text-muted);
3663
+ }
3664
+ .ns-branch-prefix-chip {
3665
+ flex-shrink: 0;
3666
+ padding: 0.125rem 0.375rem;
3667
+ border-radius: 0.25rem;
3215
3668
  background: var(--color-bg-hover);
3216
- color: var(--color-text-primary);
3669
+ color: var(--color-text-tertiary);
3670
+ font-size: 0.75rem;
3671
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
3672
+ white-space: nowrap;
3217
3673
  }
3218
- .ns-ctx-popover-item.active {
3219
- color: var(--color-accent-primary);
3220
- font-weight: 500;
3674
+ .ns-branch-prefix-chip[hidden] {
3675
+ display: none;
3221
3676
  }
3222
- .ns-ctx-popover-empty {
3223
- padding: 0.5rem 0.625rem;
3224
- font-size: 0.8125rem;
3225
- color: var(--color-text-tertiary);
3677
+ .ns-branch-modal-error {
3678
+ font-size: 0.75rem;
3679
+ line-height: 1.5;
3680
+ color: var(--color-error);
3681
+ word-break: break-word;
3682
+ }
3683
+ .ns-branch-modal-error[hidden] {
3684
+ display: none;
3226
3685
  }
3227
3686
 
3228
3687
  /* Dir popover layout */
@@ -3339,6 +3798,8 @@ body {
3339
3798
  transition: width var(--transition-base);
3340
3799
  }
3341
3800
  #session-aside.collapsed { width: 0; border-left: none; }
3801
+ .booting #sidebar,
3802
+ .booting #session-aside { transition: none; }
3342
3803
  /* Empty slot (no panels for this agent) → collapse the whole column. */
3343
3804
  #session-aside:has(.session-aside-slot:empty) { width: 0; border-left: none; }
3344
3805
  #session-aside:has(.session-aside-slot:empty) .session-aside-resize,
@@ -3411,6 +3872,16 @@ body {
3411
3872
  }
3412
3873
  #chat-panel.aside-fullscreen .session-aside-resize { display: none; }
3413
3874
 
3875
+ /* Too narrow to split: the aside crossed the chat column's floor, so it takes
3876
+ the workspace and the resize handle moves inside the window edge to drag
3877
+ the split back. */
3878
+ #chat-panel.chat-collapsed #chat-main { display: none; }
3879
+ #chat-panel.chat-collapsed #session-aside {
3880
+ width: 100%;
3881
+ border-left: none;
3882
+ }
3883
+ #chat-panel.chat-collapsed .session-aside-resize { left: 0; }
3884
+
3414
3885
  .session-aside-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
3415
3886
 
3416
3887
  /* Tab bar (rendered by Clacky.ext). Neutral edge fades reveal when more tabs
@@ -3661,6 +4132,41 @@ body {
3661
4132
  }
3662
4133
  .wt-error { color: var(--color-error); }
3663
4134
 
4135
+ /* A working dir can vanish under a session (deleted clone, renamed folder).
4136
+ Spell out the cause and offer the picker instead of a bare "load failed". */
4137
+ .wt-error-card {
4138
+ display: flex;
4139
+ flex-direction: column;
4140
+ gap: 0.375rem;
4141
+ margin: 0.5rem 0.375rem;
4142
+ padding: 0.75rem;
4143
+ border: 1px solid var(--color-border-primary);
4144
+ border-radius: var(--radius-sm);
4145
+ background: var(--color-bg-tertiary);
4146
+ }
4147
+ .wt-error-card-title {
4148
+ font-size: 0.75rem;
4149
+ font-weight: 600;
4150
+ color: var(--color-text-primary);
4151
+ }
4152
+ .wt-error-card-desc {
4153
+ font-size: 0.6875rem;
4154
+ line-height: 1.5;
4155
+ color: var(--color-text-secondary);
4156
+ }
4157
+ .wt-error-card-path {
4158
+ padding: 0.25rem 0.375rem;
4159
+ border-radius: var(--radius-xs);
4160
+ background: var(--color-bg-secondary);
4161
+ font-family: var(--font-mono);
4162
+ font-size: 0.6875rem;
4163
+ color: var(--color-text-muted);
4164
+ overflow: hidden;
4165
+ text-overflow: ellipsis;
4166
+ white-space: nowrap;
4167
+ }
4168
+ .wt-error-card-action { align-self: flex-start; }
4169
+
3664
4170
  /* ── Workspace viewer (file tree + tabbed preview, inside the Files tab) ── */
3665
4171
  .wv-root { flex: 1; min-height: 0; display: flex; }
3666
4172
  .wv-tree-pane {
@@ -3860,6 +4366,21 @@ body {
3860
4366
  font-variant-numeric: tabular-nums;
3861
4367
  color: var(--color-text-tertiary);
3862
4368
  }
4369
+ /* An image that fails to decode (empty / truncated file) keeps the pane but
4370
+ swaps the picture for a named explanation the user can act on. */
4371
+ .wv-image-broken { display: none; }
4372
+ .wv-pane--image.is-broken .wv-zoom,
4373
+ .wv-pane--image.is-broken .wv-zoom-bar { display: none; }
4374
+ .wv-pane--image.is-broken .wv-image-broken {
4375
+ flex: 1;
4376
+ display: flex;
4377
+ flex-direction: column;
4378
+ align-items: center;
4379
+ justify-content: center;
4380
+ gap: 0.375rem;
4381
+ padding: 1.5rem 1.25rem;
4382
+ text-align: center;
4383
+ }
3863
4384
 
3864
4385
  /* PDF: browser-native rendering inside an iframe pointing at /api/local-image */
3865
4386
  .wv-pane--pdf { background: var(--color-bg-primary); }
@@ -3995,14 +4516,8 @@ body {
3995
4516
  }
3996
4517
  .wv-action--open:hover { color: var(--color-text-primary); }
3997
4518
 
3998
- /* Real app icons inside the "open with" dropdown (served by /api/app-icon) */
3999
- .wv-open-app-icon { width: 1rem; height: 1rem; }
4000
- .wv-open-app-icon img {
4001
- width: 100%;
4002
- height: 100%;
4003
- display: block;
4004
- border-radius: 0.1875rem;
4005
- }
4519
+ /* Real app icons inside the "open with" dropdown come from the shared
4520
+ .menu-app-icon rule above. */
4006
4521
 
4007
4522
  /* Default app icon on the main "Open" button */
4008
4523
  .wv-main-app-icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; }
@@ -4014,12 +4529,6 @@ body {
4014
4529
  border-radius: 0.1875rem;
4015
4530
  }
4016
4531
 
4017
- /* Highlight the OS default app in the "open with" dropdown */
4018
- .wv-open-menu .session-actions-menu-item.wv-open-menu-item--default {
4019
- background: var(--color-bg-hover);
4020
- font-weight: 600;
4021
- }
4022
-
4023
4532
  /* Separator inside the "open with" dropdown and the tab context menu */
4024
4533
  .wv-open-menu-separator,
4025
4534
  .wv-menu-separator {
@@ -4723,7 +5232,9 @@ body {
4723
5232
  border-top: 1px solid var(--color-border-primary);
4724
5233
  margin: 0.8em 0;
4725
5234
  }
4726
- .msg-assistant img { max-width: 100%; height: auto; border-radius: 0.25rem; }
5235
+ .msg-assistant img { max-width: 100%; height: auto; border-radius: 0.25rem; cursor: zoom-in; }
5236
+ .msg-assistant video { display: block; max-width: 100%; max-height: 24rem; border-radius: 0.25rem; background: #000; }
5237
+ .msg-assistant audio { display: block; width: min(24rem, 100%); }
4727
5238
  .msg-assistant strong { font-weight: 500; color: var(--color-text-primary); }
4728
5239
  .msg-assistant em { font-style: italic; color: var(--color-text-secondary); }
4729
5240
  .msg-tool { background: var(--color-bg-primary); border: 1px solid var(--color-border-primary); font-family: monospace; font-size: 0.75rem; color: var(--color-text-secondary); align-self: flex-start; }
@@ -5275,6 +5786,12 @@ body {
5275
5786
  transition-delay: 0.3s;
5276
5787
  transition-timing-function: linear;
5277
5788
  }
5789
+ /* Same leading fade as the session rows: without it the sliding text is cut
5790
+ flat at the left edge. Added by JS after the slide's 0.3s delay. */
5791
+ .todo-item.todo-text-leading-fade .todo-text {
5792
+ -webkit-mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
5793
+ mask-image: linear-gradient(to right, transparent, #000 1rem, #000 calc(100% - 1rem), transparent);
5794
+ }
5278
5795
 
5279
5796
  @media (prefers-reduced-motion: reduce) {
5280
5797
  .todo-trigger,
@@ -5321,13 +5838,8 @@ body {
5321
5838
  .tool-item .token-usage-line.tu-attached:hover { opacity: 0.95; }
5322
5839
  .tu-delta-neg { color: #34d399; } /* compression / token reduction — semantic green */
5323
5840
 
5324
- /* Detail fields: hidden by default, revealed on hover */
5325
- .tu-detail {
5326
- display: none;
5327
- align-items: center;
5328
- gap: 0.25rem;
5329
- }
5330
- .token-usage-line:hover .tu-detail { display: contents; }
5841
+ /* Detail fields: always visible — hover-reveal triggered flex-wrap reflow (jitter) */
5842
+ .tu-detail { display: contents; }
5331
5843
 
5332
5844
  /* ── Tool group (collapsible tool call list) ─────────────────────────────── */
5333
5845
  .tool-group {
@@ -5646,6 +6158,8 @@ body {
5646
6158
  display: flex;
5647
6159
  align-items: center;
5648
6160
  justify-content: center;
6161
+ overflow: hidden;
6162
+ touch-action: none;
5649
6163
  cursor: zoom-out;
5650
6164
  animation: lb-fade-in 0.15s ease;
5651
6165
  }
@@ -5654,13 +6168,19 @@ body {
5654
6168
  to { opacity: 1; }
5655
6169
  }
5656
6170
  .img-lightbox img {
5657
- max-width: 90vw;
5658
- max-height: 90vh;
6171
+ flex: none;
6172
+ max-width: none;
6173
+ max-height: none;
5659
6174
  border-radius: 8px;
5660
6175
  object-fit: contain;
6176
+ transform-origin: center center;
6177
+ will-change: transform;
5661
6178
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
5662
- cursor: default;
6179
+ cursor: grab;
6180
+ user-select: none;
6181
+ -webkit-user-drag: none;
5663
6182
  }
6183
+ .img-lightbox.is-panning img { cursor: grabbing; }
5664
6184
  .img-lightbox-close {
5665
6185
  position: absolute;
5666
6186
  top: 1rem;
@@ -5671,8 +6191,86 @@ body {
5671
6191
  cursor: pointer;
5672
6192
  opacity: 0.8;
5673
6193
  user-select: none;
6194
+ z-index: 1;
5674
6195
  }
5675
6196
  .img-lightbox-close:hover { opacity: 1; }
6197
+ .img-lightbox-toolbar {
6198
+ position: absolute;
6199
+ left: 50%;
6200
+ bottom: 1rem;
6201
+ z-index: 1;
6202
+ display: flex;
6203
+ align-items: center;
6204
+ gap: 0.125rem;
6205
+ padding: 0.25rem;
6206
+ border: 1px solid rgba(255,255,255,0.18);
6207
+ border-radius: 9px;
6208
+ background: rgba(24,24,27,0.78);
6209
+ color: #fff;
6210
+ transform: translateX(-50%);
6211
+ backdrop-filter: blur(8px);
6212
+ }
6213
+ .img-lightbox-zoom-btn {
6214
+ width: 1.75rem;
6215
+ height: 1.75rem;
6216
+ padding: 0;
6217
+ border: none;
6218
+ border-radius: 6px;
6219
+ background: transparent;
6220
+ color: inherit;
6221
+ font-size: 1rem;
6222
+ line-height: 1;
6223
+ display: inline-flex;
6224
+ align-items: center;
6225
+ justify-content: center;
6226
+ cursor: pointer;
6227
+ }
6228
+ .img-lightbox-zoom-btn:hover { background: rgba(255,255,255,0.14); }
6229
+ .img-lightbox-zoom-btn:disabled {
6230
+ opacity: 0.35;
6231
+ cursor: default;
6232
+ background: transparent;
6233
+ }
6234
+ .img-lightbox-zoom-level {
6235
+ min-width: 2.75rem;
6236
+ text-align: center;
6237
+ color: rgba(255,255,255,0.82);
6238
+ font-size: 0.75rem;
6239
+ font-variant-numeric: tabular-nums;
6240
+ }
6241
+ .img-lightbox-sep {
6242
+ width: 1px;
6243
+ height: 1rem;
6244
+ margin: 0 0.25rem;
6245
+ background: rgba(255,255,255,0.22);
6246
+ }
6247
+ .img-lightbox-text-btn {
6248
+ height: 1.75rem;
6249
+ padding: 0 0.5rem;
6250
+ border: none;
6251
+ border-radius: 6px;
6252
+ background: transparent;
6253
+ color: inherit;
6254
+ font-size: 0.75rem;
6255
+ line-height: 1;
6256
+ white-space: nowrap;
6257
+ cursor: pointer;
6258
+ }
6259
+ .img-lightbox-text-btn:hover { background: rgba(255,255,255,0.14); }
6260
+ .img-lightbox-text-btn.is-copied { color: var(--color-success); }
6261
+ .img-lightbox-path-btn {
6262
+ flex: none;
6263
+ padding: 0.25rem 0.5rem;
6264
+ border: none;
6265
+ border-radius: 6px;
6266
+ background: transparent;
6267
+ color: inherit;
6268
+ font-size: 0.75rem;
6269
+ line-height: 1.4;
6270
+ white-space: nowrap;
6271
+ cursor: pointer;
6272
+ }
6273
+ .img-lightbox-path-btn:hover { background: rgba(255,255,255,0.14); }
5676
6274
 
5677
6275
  .msg-pdf-badge {
5678
6276
  display: inline-flex;
@@ -5687,12 +6285,27 @@ body {
5687
6285
  min-width: 6.25rem;
5688
6286
  vertical-align: middle;
5689
6287
  }
6288
+ .msg-file-open {
6289
+ color: inherit;
6290
+ font: inherit;
6291
+ text-align: left;
6292
+ cursor: pointer;
6293
+ }
6294
+ .msg-file-open:hover {
6295
+ background: var(--color-bg-hover);
6296
+ border-color: var(--color-border-secondary);
6297
+ }
6298
+ .msg-file-open:focus-visible {
6299
+ outline: 2px solid var(--color-accent-primary);
6300
+ outline-offset: 2px;
6301
+ }
5690
6302
  .msg-pdf-badge-icon {
5691
6303
  display: flex;
5692
6304
  align-items: center;
5693
6305
  color: var(--color-text-secondary);
5694
6306
  flex-shrink: 0;
5695
6307
  }
6308
+ .msg-pdf-badge-icon svg { width: 20px; height: 20px; }
5696
6309
  .msg-pdf-badge-info {
5697
6310
  display: flex;
5698
6311
  flex-direction: column;
@@ -6620,7 +7233,7 @@ body {
6620
7233
  font-weight: 700;
6621
7234
  letter-spacing: 0.02em;
6622
7235
  line-height: 1;
6623
- color: #fff;
7236
+ color: var(--vendor-ink, #fff);
6624
7237
  background: var(--vendor-color, #7A8B99);
6625
7238
  border: 1px solid rgba(127, 127, 127, 0.25);
6626
7239
  user-select: none;
@@ -6794,8 +7407,9 @@ body {
6794
7407
  display: none;
6795
7408
  }
6796
7409
 
6797
- /* Page-level drop target for session references and file attachments. */
6798
- #chat-panel.drag-over,
7410
+ /* Drop target for session references and file attachments. Scoped to the
7411
+ chat column so the session aside never flashes a drop outline. */
7412
+ #chat-main.drag-over,
6799
7413
  #welcome.drag-over {
6800
7414
  outline: 2px dashed var(--color-accent-primary);
6801
7415
  outline-offset: -5px;
@@ -6861,12 +7475,42 @@ body {
6861
7475
  min-width: 7.5rem;
6862
7476
  box-sizing: border-box;
6863
7477
  }
7478
+ .pdf-preview-item--clickable {
7479
+ padding-left: 0;
7480
+ }
7481
+ .pdf-preview-item--clickable:hover {
7482
+ background: var(--color-bg-hover);
7483
+ }
7484
+ .pdf-preview-open {
7485
+ display: flex;
7486
+ align-items: center;
7487
+ gap: 0.5rem;
7488
+ width: 100%;
7489
+ height: 100%;
7490
+ min-width: 0;
7491
+ padding: 0 0 0 0.625rem;
7492
+ border: 0;
7493
+ border-radius: inherit;
7494
+ background: transparent;
7495
+ color: inherit;
7496
+ font: inherit;
7497
+ text-align: left;
7498
+ cursor: pointer;
7499
+ }
7500
+ .pdf-preview-open:hover {
7501
+ background: transparent;
7502
+ }
7503
+ .pdf-preview-open:focus-visible {
7504
+ outline: 2px solid var(--color-accent-primary);
7505
+ outline-offset: -2px;
7506
+ }
6864
7507
  .pdf-preview-icon {
6865
7508
  display: flex;
6866
7509
  align-items: center;
6867
7510
  color: var(--color-text-secondary);
6868
7511
  flex-shrink: 0;
6869
7512
  }
7513
+ .pdf-preview-icon svg { width: 24px; height: 24px; }
6870
7514
  .pdf-preview-info {
6871
7515
  display: flex;
6872
7516
  flex-direction: column;
@@ -6902,6 +7546,7 @@ body {
6902
7546
  text-align: center;
6903
7547
  cursor: pointer;
6904
7548
  padding: 0;
7549
+ z-index: 1;
6905
7550
  }
6906
7551
  .pdf-preview-remove:hover { background: var(--color-error); }
6907
7552
 
@@ -7197,12 +7842,11 @@ body {
7197
7842
  display: grid;
7198
7843
  place-items: center;
7199
7844
  border-radius: 8px;
7200
- font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
7201
7845
  transition: background .12s, color .12s;
7202
7846
  }
7203
- #btn-slash span {
7204
- font-size: 0.875rem;
7205
- font-weight: 400;
7847
+ #btn-slash svg {
7848
+ width: 1.125rem;
7849
+ height: 1.125rem;
7206
7850
  }
7207
7851
  #btn-slash:hover {
7208
7852
  color: var(--color-text-primary);
@@ -7418,6 +8062,8 @@ body {
7418
8062
  font-size: 0.75rem;
7419
8063
  margin: 0 0.25rem 0.25rem 0;
7420
8064
  }
8065
+ a.msg-mention-badge { color: inherit; text-decoration: none; }
8066
+ a.msg-mention-badge:hover { text-decoration: underline; }
7421
8067
  .msg-mention-badge-icon {
7422
8068
  display: inline-flex;
7423
8069
  align-items: center;
@@ -7761,9 +8407,9 @@ body {
7761
8407
  transition: background 0.15s, border-color 0.15s, color 0.15s;
7762
8408
  }
7763
8409
  .btn-backup-action:hover:not(:disabled) {
7764
- background: var(--color-bg-hover);
7765
- border-color: var(--color-text-muted);
7766
- color: var(--color-text-primary);
8410
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
8411
+ border-color: var(--color-accent-primary);
8412
+ color: var(--color-accent-primary);
7767
8413
  }
7768
8414
  .btn-backup-action:disabled {
7769
8415
  opacity: 0.5;
@@ -8145,7 +8791,7 @@ body {
8145
8791
  transition: border-color 0.15s ease;
8146
8792
  }
8147
8793
  .custom-select-trigger:hover {
8148
- border-color: var(--color-text-muted);
8794
+ border-color: var(--color-accent-primary);
8149
8795
  }
8150
8796
  /* Focus: same accent border as `.open` so users see "this is where to start"
8151
8797
  without the dropdown auto-expanding. Used by onboard step 2 and the
@@ -8225,10 +8871,10 @@ body {
8225
8871
  text-overflow: ellipsis;
8226
8872
  }
8227
8873
  .custom-select-option:hover {
8228
- background: var(--color-bg-hover);
8874
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
8229
8875
  }
8230
8876
  .custom-select-option.selected {
8231
- background: var(--color-bg-hover);
8877
+ background: color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
8232
8878
  color: var(--color-accent-primary);
8233
8879
  }
8234
8880
  /* "Custom" entry lives in a fixed footer area outside the panel's own
@@ -8298,39 +8944,72 @@ body {
8298
8944
  line-height: 1.6;
8299
8945
  }
8300
8946
 
8301
- /* Provider promo hint (shown when openclacky is selected) */
8947
+ /* Provider promo hint (shown when openclacky is selected).
8948
+ Visual language matches .media-promo in the Secondary Models section. */
8302
8949
  .provider-promo-hint {
8303
8950
  display: none;
8304
- margin-top: 2px;
8305
- padding: 0.5rem 0.625rem;
8306
- border-radius: 6px;
8307
- background: var(--color-bg-hover, #fafafa);
8951
+ margin-top: 0.375rem;
8952
+ padding: 0.75rem 0.875rem;
8953
+ border-radius: 8px;
8954
+ border: 1px solid color-mix(in srgb, var(--color-accent-primary) 28%, transparent);
8955
+ background: linear-gradient(135deg,
8956
+ color-mix(in srgb, var(--color-accent-primary) 10%, transparent),
8957
+ color-mix(in srgb, #db2777 7%, transparent));
8308
8958
  }
8309
8959
  .provider-promo-hint.visible {
8310
8960
  display: block;
8311
8961
  }
8312
- .provider-promo-hint .promo-inner {
8313
- padding: 0;
8962
+ .provider-promo-hint .promo-head {
8963
+ display: flex;
8964
+ align-items: center;
8965
+ justify-content: space-between;
8966
+ gap: 0.75rem;
8967
+ margin-bottom: 0.25rem;
8968
+ }
8969
+ .provider-promo-hint .promo-link {
8970
+ flex-shrink: 0;
8971
+ display: inline-flex;
8972
+ align-items: center;
8973
+ gap: 0.25rem;
8974
+ font-size: 0.75rem;
8975
+ font-weight: 600;
8976
+ color: var(--color-accent-primary);
8977
+ text-decoration: none;
8978
+ padding: 0.125rem 0.5rem;
8979
+ border-radius: 999px;
8980
+ transition: background 0.15s, color 0.15s;
8981
+ }
8982
+ .provider-promo-hint .promo-link svg { transition: transform 0.15s; }
8983
+ .provider-promo-hint .promo-link:hover {
8984
+ background: color-mix(in srgb, var(--color-accent-primary) 12%, transparent);
8985
+ }
8986
+ .provider-promo-hint .promo-link:hover svg { transform: translateX(2px); }
8987
+ .provider-promo-hint .promo-link:focus-visible {
8988
+ outline: 2px solid var(--color-accent-primary);
8989
+ outline-offset: 2px;
8314
8990
  }
8315
8991
  .provider-promo-hint .promo-title {
8316
- font-size: 0.6875rem;
8317
- font-weight: 500;
8318
- color: var(--color-text-secondary);
8319
- margin-bottom: 0.1875rem;
8992
+ font-size: 0.8125rem;
8993
+ font-weight: 600;
8994
+ color: var(--color-text-primary);
8995
+ line-height: 1.5;
8320
8996
  }
8321
8997
  .provider-promo-hint .promo-item {
8322
8998
  display: flex;
8323
8999
  align-items: baseline;
8324
- gap: 0.25rem;
8325
- font-size: 0.6875rem;
8326
- line-height: 1.6;
8327
- color: var(--color-text-tertiary, #9ca3af);
9000
+ gap: 0.5rem;
9001
+ font-size: 0.75rem;
9002
+ line-height: 1.7;
9003
+ color: var(--color-text-secondary);
8328
9004
  }
8329
- .provider-promo-hint .promo-icon {
9005
+ .provider-promo-hint .promo-dot {
8330
9006
  flex-shrink: 0;
8331
- font-size: 0.375rem;
8332
- opacity: 0.3;
8333
- line-height: 2;
9007
+ width: 4px;
9008
+ height: 4px;
9009
+ border-radius: 50%;
9010
+ background: var(--color-accent-primary);
9011
+ opacity: 0.6;
9012
+ transform: translateY(-0.15em);
8334
9013
  }
8335
9014
 
8336
9015
  /* ── Model Cards Grid Container ─────────────────────────────────────────────── */
@@ -8423,6 +9102,46 @@ body {
8423
9102
  gap: 0.375rem;
8424
9103
  min-height: 80px;
8425
9104
  }
9105
+ .model-card-grid-head {
9106
+ display: flex;
9107
+ align-items: center;
9108
+ gap: 0.75rem;
9109
+ min-width: 0;
9110
+ }
9111
+ .model-card-grid-head-text {
9112
+ flex: 1;
9113
+ min-width: 0;
9114
+ display: flex;
9115
+ flex-direction: column;
9116
+ gap: 0.125rem;
9117
+ }
9118
+ .model-card-grid-head > .btn-card-grid-action {
9119
+ align-self: flex-start;
9120
+ flex-shrink: 0;
9121
+ }
9122
+ /* Neutral tile so brand color lives in the mark, not in a loud swatch. */
9123
+ .model-card-grid-head .sib-vendor-badge {
9124
+ width: 2.5rem;
9125
+ height: 2.5rem;
9126
+ border-radius: 10px;
9127
+ font-size: 0.9375rem;
9128
+ font-weight: 600;
9129
+ background: var(--color-bg-primary);
9130
+ border: 1px solid var(--color-border-primary);
9131
+ color: var(--vendor-tint, var(--color-text-primary));
9132
+ }
9133
+ .model-card-grid-head .sib-vendor-badge:not(.is-brand):not(:has(svg)) {
9134
+ color: var(--color-text-tertiary);
9135
+ }
9136
+ .model-card-grid-head .sib-vendor-badge svg {
9137
+ width: 1.375rem;
9138
+ height: 1.375rem;
9139
+ }
9140
+ /* Some brand artwork (e.g. Kimi) has white shapes drawn for a dark tile. */
9141
+ .model-card-grid-head .sib-vendor-badge.is-brand:not(.is-light) {
9142
+ background: var(--vendor-color);
9143
+ border-color: transparent;
9144
+ }
8426
9145
  .model-card-grid-name-row {
8427
9146
  display: flex;
8428
9147
  align-items: center;
@@ -10802,7 +11521,7 @@ button:focus-visible { outline: 2px solid var(--color-accent-primary); outline-o
10802
11521
  .extension-row-name { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
10803
11522
  .extension-row-desc {
10804
11523
  font-size: 0.75rem;
10805
- color: var(--color-text-secondary);
11524
+ color: var(--color-text-tertiary);
10806
11525
  white-space: nowrap;
10807
11526
  overflow: hidden;
10808
11527
  text-overflow: ellipsis;
@@ -11008,10 +11727,13 @@ button:focus-visible { outline: 2px solid var(--color-accent-primary); outline-o
11008
11727
  }
11009
11728
  .ext-row-menu-item:hover { background: var(--color-bg-hover); }
11010
11729
  /* Same treatment as .session-actions-menu-icon, so row menus match the
11011
- sidebar and workspace menus: neutral grey icon, red for destructive items. */
11730
+ sidebar and workspace menus: neutral grey icon, red text only on hover. */
11012
11731
  .ext-row-menu-item svg { flex-shrink: 0; color: var(--color-text-secondary); }
11013
- .ext-row-menu-danger { color: var(--color-error); }
11014
- .ext-row-menu-danger svg { color: var(--color-error); }
11732
+ .ext-row-menu-item.ext-row-menu-danger:hover {
11733
+ background: var(--color-error-bg);
11734
+ color: var(--color-error);
11735
+ }
11736
+ .ext-row-menu-item.ext-row-menu-danger:hover svg { color: var(--color-error); }
11015
11737
 
11016
11738
  .extension-detail {
11017
11739
  flex: 1;
@@ -11046,6 +11768,15 @@ button:focus-visible { outline: 2px solid var(--color-accent-primary); outline-o
11046
11768
  }
11047
11769
  .extension-detail-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
11048
11770
  .extension-emoji-lg { font-size: 2.5rem; line-height: 1; margin-top: 0.125rem; }
11771
+ .extension-detail-img {
11772
+ width: 3.5rem;
11773
+ height: 3.5rem;
11774
+ border-radius: 12px;
11775
+ object-fit: cover;
11776
+ display: block;
11777
+ flex-shrink: 0;
11778
+ margin-top: 0.125rem;
11779
+ }
11049
11780
  .extension-emoji-lg .extension-default-icon {
11050
11781
  width: 3.5rem;
11051
11782
  height: 3.5rem;
@@ -13987,17 +14718,10 @@ body.setup-mode {
13987
14718
  }
13988
14719
 
13989
14720
  .trash-tab-content {
13990
- flex: 1;
13991
- overflow-y: auto;
13992
- /* The list scrolls on its own so the toolbar above it stays put. Pulling the
13993
- box out into #trash-body's right padding leaves the cards where they are and
13994
- parks the scrollbar in that gutter instead of against the cards — the same
13995
- trick the tasks and skills lists use. */
13996
- margin-right: -2.25rem;
13997
- padding-right: 2.25rem;
13998
- /* #trash-body's section gap is meant for the stacked heading blocks above; the
13999
- toolbar and the list are one block, so halve it and let the strip sit exactly
14000
- one card-gap above the list instead of floating over a band of empty space. */
14721
+ /* #trash-scroll's gap is meant for the stacked heading blocks above; the
14722
+ toolbar and the list are one block, so halve it and let the strip sit
14723
+ exactly one card-gap above the list instead of floating over a band of
14724
+ empty space. */
14001
14725
  margin-top: -0.625rem;
14002
14726
  }
14003
14727
 
@@ -14102,9 +14826,9 @@ body.setup-mode {
14102
14826
  }
14103
14827
  .btn-trash-restore:hover:not(:disabled),
14104
14828
  .btn-trash-session-restore:hover:not(:disabled) {
14105
- background: var(--color-bg-hover, rgba(127,127,127,.08));
14106
- border-color: var(--color-text-muted);
14107
- color: var(--color-text-primary);
14829
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
14830
+ border-color: var(--color-accent-primary);
14831
+ color: var(--color-accent-primary);
14108
14832
  }
14109
14833
  .btn-trash-delete:hover:not(:disabled),
14110
14834
  .btn-trash-session-delete:hover:not(:disabled) {
@@ -14148,7 +14872,10 @@ body.setup-mode {
14148
14872
  border-radius: 6px;
14149
14873
  }
14150
14874
  .trash-session-hint {
14151
- margin: -0.25rem 0;
14875
+ /* Only the bottom gap is tightened — the room under the pills comes from
14876
+ #trash-scroll's padding, which the files tab needs just as much. A negative
14877
+ top margin here would simply be clipped by the scroller. */
14878
+ margin: 0 0 -0.25rem;
14152
14879
  font-size: 0.75rem;
14153
14880
  color: var(--color-text-secondary);
14154
14881
  }
@@ -14181,9 +14908,9 @@ body.setup-mode {
14181
14908
  }
14182
14909
  .trash-filter-project-wrap:hover,
14183
14910
  .btn-trash-action:hover:not(:disabled) {
14184
- background: var(--color-bg-hover);
14185
- border-color: var(--color-text-muted);
14186
- color: var(--color-text-primary);
14911
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
14912
+ border-color: var(--color-accent-primary);
14913
+ color: var(--color-accent-primary);
14187
14914
  }
14188
14915
  /* Project filter dropdown */
14189
14916
  .trash-filter-project-wrap {
@@ -14317,7 +15044,7 @@ body.setup-mode {
14317
15044
  #archive-body {
14318
15045
  flex: 1;
14319
15046
  overflow-y: auto;
14320
- padding: 1.75rem 2.25rem;
15047
+ padding: 1.25rem 2.25rem;
14321
15048
  display: flex;
14322
15049
  flex-direction: column;
14323
15050
  gap: 1.25rem;
@@ -14411,9 +15138,9 @@ body.setup-mode {
14411
15138
  transition: background 0.15s, border-color 0.15s, color 0.15s;
14412
15139
  }
14413
15140
  .btn-archive-unarchive:hover:not(:disabled) {
14414
- background: var(--color-bg-hover);
14415
- border-color: var(--color-text-muted);
14416
- color: var(--color-text-primary);
15141
+ background: color-mix(in srgb, var(--color-accent-primary) 8%, transparent);
15142
+ border-color: var(--color-accent-primary);
15143
+ color: var(--color-accent-primary);
14417
15144
  }
14418
15145
  .btn-archive-delete {
14419
15146
  width: 1.75rem;
@@ -14483,7 +15210,7 @@ body.setup-mode {
14483
15210
  #backup-body {
14484
15211
  flex: 1;
14485
15212
  overflow-y: auto;
14486
- padding: 1.75rem 2.25rem;
15213
+ padding: 1.25rem 2.25rem;
14487
15214
  }
14488
15215
  #backup-content {
14489
15216
  max-width: 920px;
@@ -14501,8 +15228,24 @@ body.setup-mode {
14501
15228
  }
14502
15229
  #trash-body {
14503
15230
  flex: 1;
15231
+ min-height: 0;
15232
+ overflow: hidden;
15233
+ padding: 1.25rem 2.25rem;
15234
+ display: flex;
15235
+ flex-direction: column;
15236
+ }
15237
+ /* The hint, the toolbar and the list share one viewport, so the tab strip above
15238
+ stays put while the rest of the page moves. Pulling the box out into
15239
+ #trash-body's right padding parks the scrollbar in that gutter instead of
15240
+ against the cards — the same trick the tasks and skills lists use. */
15241
+ #trash-scroll {
15242
+ flex: 1;
15243
+ min-height: 0;
14504
15244
  overflow-y: auto;
14505
- padding: 1.75rem 2.25rem;
15245
+ margin-right: -2.25rem;
15246
+ /* The top padding is the breathing room under the pills; it lives here so
15247
+ both tabs get it, including the files tab whose first row is the toolbar. */
15248
+ padding: 0.5rem 2.25rem 0 0;
14506
15249
  display: flex;
14507
15250
  flex-direction: column;
14508
15251
  gap: 1.25rem;
@@ -14570,6 +15313,15 @@ body.setup-mode {
14570
15313
  background: color-mix(in srgb, var(--color-text-primary) 2%, var(--color-bg-hover));
14571
15314
  }
14572
15315
 
15316
+ /* Count badge for filter buttons — sits inside the button so label and count
15317
+ stay one hit area. */
15318
+ .segmented-control__count {
15319
+ margin-left: 0.25rem;
15320
+ font-size: 0.75rem;
15321
+ font-weight: 400;
15322
+ color: var(--color-text-tertiary);
15323
+ }
15324
+
14573
15325
  /* ═════════════════════════════════════════════════════════════════════════
14574
15326
  * BILLING PANEL
14575
15327
  * ═════════════════════════════════════════════════════════════════════════ */
@@ -14643,10 +15395,11 @@ body.setup-mode {
14643
15395
  }
14644
15396
  .billing-controls .segmented-control {
14645
15397
  flex: 0 0 auto;
15398
+ padding: 4px;
14646
15399
  }
14647
15400
  .billing-controls .segmented-control,
14648
15401
  .billing-model-filter {
14649
- height: 2rem;
15402
+ height: 2.25rem;
14650
15403
  }
14651
15404
 
14652
15405
  /* ── Disclaimer notice ──────────────────────────────────────────────── */
@@ -15863,10 +16616,92 @@ body.setup-mode {
15863
16616
  border: 1px solid var(--color-border-primary);
15864
16617
  border-radius: 8px;
15865
16618
  background: var(--color-bg-secondary);
15866
- margin-bottom: 0.5rem;
16619
+ margin-bottom: 1rem;
15867
16620
  overflow: hidden;
15868
16621
  max-width: 48rem;
15869
16622
  }
16623
+ /* OpenClacky AI Keys promo banner above the media rows */
16624
+ .media-promo {
16625
+ display: flex;
16626
+ align-items: center;
16627
+ gap: 0.75rem;
16628
+ max-width: 48rem;
16629
+ margin: 0.25rem 0 1rem;
16630
+ padding: 0.75rem 0.875rem;
16631
+ border-radius: 8px;
16632
+ border: 1px solid color-mix(in srgb, var(--color-accent-primary) 28%, transparent);
16633
+ background: linear-gradient(135deg,
16634
+ color-mix(in srgb, var(--color-accent-primary) 10%, transparent),
16635
+ color-mix(in srgb, #db2777 7%, transparent));
16636
+ }
16637
+ .media-promo-icon {
16638
+ flex-shrink: 0;
16639
+ display: inline-flex;
16640
+ align-items: center;
16641
+ justify-content: center;
16642
+ width: 2rem;
16643
+ height: 2rem;
16644
+ border-radius: 8px;
16645
+ color: #fff;
16646
+ background: linear-gradient(135deg, var(--color-accent-primary), #db2777);
16647
+ }
16648
+ .media-promo-text {
16649
+ flex: 1;
16650
+ min-width: 0;
16651
+ }
16652
+ .media-promo-title {
16653
+ font-size: 0.875rem;
16654
+ font-weight: 600;
16655
+ color: var(--color-text-primary);
16656
+ line-height: 1.4;
16657
+ }
16658
+ .media-promo-desc {
16659
+ font-size: 0.75rem;
16660
+ color: var(--color-text-secondary);
16661
+ line-height: 1.5;
16662
+ margin-top: 0.125rem;
16663
+ }
16664
+ .media-promo-btn {
16665
+ flex-shrink: 0;
16666
+ display: inline-flex;
16667
+ align-items: center;
16668
+ gap: 0.25rem;
16669
+ padding: 0.375rem 0.75rem;
16670
+ border-radius: 6px;
16671
+ font-size: 0.8125rem;
16672
+ font-weight: 500;
16673
+ color: #fff;
16674
+ background: var(--color-accent-primary);
16675
+ text-decoration: none;
16676
+ white-space: nowrap;
16677
+ box-shadow: 0 1px 2px color-mix(in srgb, var(--color-accent-primary) 25%, transparent);
16678
+ transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
16679
+ }
16680
+ .media-promo-btn svg {
16681
+ transition: transform 0.15s;
16682
+ }
16683
+ .media-promo-btn:hover {
16684
+ background: var(--color-accent-hover);
16685
+ color: #fff;
16686
+ text-decoration: none;
16687
+ transform: translateY(-1px);
16688
+ box-shadow: 0 4px 12px color-mix(in srgb, var(--color-accent-primary) 40%, transparent);
16689
+ }
16690
+ .media-promo-btn:hover svg {
16691
+ transform: translateX(3px);
16692
+ }
16693
+ .media-promo-btn:active {
16694
+ transform: translateY(0);
16695
+ box-shadow: 0 1px 2px color-mix(in srgb, var(--color-accent-primary) 25%, transparent);
16696
+ }
16697
+ .media-promo-btn:focus-visible {
16698
+ outline: 2px solid var(--color-accent-primary);
16699
+ outline-offset: 2px;
16700
+ }
16701
+ @media (max-width: 640px) {
16702
+ .media-promo { flex-wrap: wrap; }
16703
+ .media-promo-btn { margin-left: 2.75rem; }
16704
+ }
15870
16705
  .media-row.is-expanded {
15871
16706
  background: var(--color-bg-secondary);
15872
16707
  }
@@ -15882,6 +16717,74 @@ body.setup-mode {
15882
16717
  font-weight: 500;
15883
16718
  color: var(--color-text-primary);
15884
16719
  min-width: 3rem;
16720
+ display: inline-flex;
16721
+ align-items: center;
16722
+ gap: 0.5rem;
16723
+ white-space: nowrap;
16724
+ }
16725
+ /* Capability glyph before each sidecar row title. Each kind gets its own
16726
+ tint so the six rows read as distinct at a glance. */
16727
+ .media-kind-icon {
16728
+ --kind-color: var(--color-accent-primary);
16729
+ flex: 0 0 auto;
16730
+ width: 1.5rem;
16731
+ height: 1.5rem;
16732
+ border-radius: 6px;
16733
+ display: inline-flex;
16734
+ align-items: center;
16735
+ justify-content: center;
16736
+ color: var(--kind-color);
16737
+ background: color-mix(in srgb, var(--kind-color) 12%, transparent);
16738
+ }
16739
+ .media-kind-icon svg {
16740
+ width: 0.9375rem;
16741
+ height: 0.9375rem;
16742
+ display: block;
16743
+ }
16744
+ .media-kind-icon[data-kind="image"] { --kind-color: #db2777; }
16745
+ .media-kind-icon[data-kind="video"] { --kind-color: #7c3aed; }
16746
+ .media-kind-icon[data-kind="audio"] { --kind-color: #ea580c; }
16747
+ .media-kind-icon[data-kind="stt"] { --kind-color: #0891b2; }
16748
+ .media-kind-icon[data-kind="video_understanding"] { --kind-color: #2563eb; }
16749
+ .media-kind-icon[data-kind="ocr"] { --kind-color: #059669; }
16750
+
16751
+ /* "[vendor badge] Model name" — shared by row status, dropdown and read-only. */
16752
+ .media-model-chip {
16753
+ display: inline-flex;
16754
+ align-items: center;
16755
+ gap: 0.4375rem;
16756
+ min-width: 0;
16757
+ max-width: 100%;
16758
+ vertical-align: middle;
16759
+ }
16760
+ .media-model-chip-label {
16761
+ min-width: 0;
16762
+ overflow: hidden;
16763
+ text-overflow: ellipsis;
16764
+ white-space: nowrap;
16765
+ }
16766
+ .media-row-status .media-model-chip {
16767
+ justify-content: flex-end;
16768
+ }
16769
+ .media-model-select .custom-select-trigger {
16770
+ padding-top: 0.5rem;
16771
+ padding-bottom: 0.5rem;
16772
+ }
16773
+ .media-model-select .custom-select-value {
16774
+ display: flex;
16775
+ min-width: 0;
16776
+ flex: 1 1 auto;
16777
+ }
16778
+ .media-model-select.is-disabled {
16779
+ opacity: 0.6;
16780
+ pointer-events: none;
16781
+ }
16782
+ .media-model-dropdown {
16783
+ max-width: 40rem;
16784
+ }
16785
+ .media-model-dropdown .custom-select-option {
16786
+ display: flex;
16787
+ align-items: center;
15885
16788
  }
15886
16789
  .media-row-segmented {
15887
16790
  display: inline-flex;
@@ -16571,7 +17474,7 @@ body.setup-mode {
16571
17474
  }
16572
17475
  /* Hide less-important fields and their separators (element + sib-sep-after-element pattern) */
16573
17476
  #sib-id,
16574
- .sib-sep-after-id,
17477
+ .sib-sep-after-cost,
16575
17478
  #sib-dir,
16576
17479
  .sib-sep-after-dir,
16577
17480
  #sib-reasoning-wrap,
@@ -16588,6 +17491,10 @@ body.setup-mode {
16588
17491
  padding: 0px 12px 12px;
16589
17492
  }
16590
17493
 
17494
+ #input-queue {
17495
+ padding-inline: 12px;
17496
+ }
17497
+
16591
17498
  #skill-autocomplete {
16592
17499
  left: 12px;
16593
17500
  right: 12px;
@@ -16605,7 +17512,6 @@ body.setup-mode {
16605
17512
  }
16606
17513
  #btn-slash {
16607
17514
  padding: 0.25rem 0.375rem;
16608
- font-size: 0.875rem;
16609
17515
  }
16610
17516
 
16611
17517
  /* Textarea: prevent iOS auto-zoom (must be ≥1rem) */
@@ -16637,13 +17543,13 @@ body.setup-mode {
16637
17543
  }
16638
17544
  #task-detail-body {
16639
17545
  padding: 1rem 1rem 5rem;
16640
- gap: 0.75rem;
16641
17546
  overflow-y: auto;
16642
17547
  -webkit-overflow-scrolling: touch;
16643
17548
  overscroll-behavior: contain;
16644
17549
  flex: 1;
16645
17550
  min-height: 0;
16646
17551
  }
17552
+ #task-detail-body > .task-page-header { margin-bottom: 0.75rem; }
16647
17553
  /* btn-create-task: move below title instead of absolute top-right */
16648
17554
  .task-page-header {
16649
17555
  flex-direction: column;
@@ -16654,8 +17560,9 @@ body.setup-mode {
16654
17560
  align-self: flex-start;
16655
17561
  margin-top: 0.25rem;
16656
17562
  }
16657
- /* Task rows: drop the prompt preview and keep actions visible (no hover on touch) */
16658
- .cron-row-preview { display: none; }
17563
+ /* Task cards: the toolbar already lives in the header row, so only the
17564
+ touch target needs enlarging on narrow screens. */
17565
+ .task-card-tool { width: 2rem; height: 2rem; }
16659
17566
  .cron-row-end { gap: 0.5rem; }
16660
17567
  .cron-row-actions { position: static; transform: none; opacity: 1; pointer-events: auto; }
16661
17568
  .cron-row:hover .cron-row-meta { opacity: 1; }
@@ -16821,7 +17728,7 @@ body.setup-mode {
16821
17728
  /* ── Billing / Trash / Archive / Backup pages ── */
16822
17729
  #billing-body { padding: 1rem 1rem 1rem; }
16823
17730
  #trash-body { padding: 1rem 1rem 1rem; }
16824
- .trash-tab-content { margin-right: -1rem; padding-right: 1rem; }
17731
+ #trash-scroll { margin-right: -1rem; padding-right: 1rem; }
16825
17732
  #archive-body { padding: 1rem 1rem 1rem; }
16826
17733
  #backup-body { padding: 1rem 1rem 1rem; }
16827
17734
  #data-management-header { padding: 1rem 1rem 0; }
@@ -17261,8 +18168,9 @@ body.setup-mode {
17261
18168
  padding-left: 2.2rem;
17262
18169
  }
17263
18170
 
18171
+ /* Translucent so the drop-target frame and tint show through, like the session list. */
17264
18172
  .project-session-group .session-item.active {
17265
- background: var(--color-bg-hover);
18173
+ background: color-mix(in srgb, var(--color-text-primary) 5%, transparent);
17266
18174
  }
17267
18175
 
17268
18176
  .project-session-group .session-item.active::before {
@@ -17748,9 +18656,10 @@ body.setup-mode {
17748
18656
  #input-behavior-menu [aria-checked="true"] .input-behavior-check { visibility: visible; }
17749
18657
  @media (max-width: 768px) { #input-behavior-menu button { min-height: 56px; } }
17750
18658
 
17751
- /* Pending guidance: single-line previews and always-visible actions. */
18659
+ /* Pending guidance: single-line previews and always-visible actions.
18660
+ Sits between the message stream and the session info bar. */
17752
18661
  #input-queue[hidden] { display: none; }
17753
- #input-queue { max-height: 220px; overflow-y: auto; padding: 0 0 8px; }
18662
+ #input-queue { flex-shrink: 0; max-height: 220px; overflow-y: auto; padding: 6px 1.5rem 0; }
17754
18663
  .input-queue-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 10px; border: 1px solid var(--color-border-primary); border-radius: 10px; background: var(--color-bg-primary); }
17755
18664
  .input-queue-body { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
17756
18665
  .input-queue-status { flex-shrink: 0; white-space: nowrap; font-size: 11px; line-height: 1.5; color: var(--color-text-tertiary); }