dsh-spec-collab 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +106 -0
  3. package/cordis.patch.yml +3 -0
  4. package/lib/client.js +41298 -0
  5. package/lib/index.js +1986 -0
  6. package/lib/types/client/SpecWorkbench.d.ts +6 -0
  7. package/lib/types/client/SpecWorkbench.d.ts.map +1 -0
  8. package/lib/types/client/api.d.ts +20 -0
  9. package/lib/types/client/api.d.ts.map +1 -0
  10. package/lib/types/client/index.d.ts +4 -0
  11. package/lib/types/client/index.d.ts.map +1 -0
  12. package/lib/types/client/mount.d.ts +4 -0
  13. package/lib/types/client/mount.d.ts.map +1 -0
  14. package/lib/types/engine.d.ts +67 -0
  15. package/lib/types/engine.d.ts.map +1 -0
  16. package/lib/types/git-store.d.ts +40 -0
  17. package/lib/types/git-store.d.ts.map +1 -0
  18. package/lib/types/index.d.ts +12 -0
  19. package/lib/types/index.d.ts.map +1 -0
  20. package/lib/types/protocol.d.ts +358 -0
  21. package/lib/types/protocol.d.ts.map +1 -0
  22. package/lib/types/review-context.d.ts +32 -0
  23. package/lib/types/review-context.d.ts.map +1 -0
  24. package/lib/types/review-runtime.d.ts +26 -0
  25. package/lib/types/review-runtime.d.ts.map +1 -0
  26. package/lib/types/routes.d.ts +5 -0
  27. package/lib/types/routes.d.ts.map +1 -0
  28. package/lib/types/tools.d.ts +8 -0
  29. package/lib/types/tools.d.ts.map +1 -0
  30. package/package.json +96 -0
  31. package/src/client/SpecWorkbench.tsx +293 -0
  32. package/src/client/api.ts +12 -0
  33. package/src/client/css-modules.d.ts +1 -0
  34. package/src/client/index.ts +16 -0
  35. package/src/client/mount.tsx +73 -0
  36. package/src/client/toast-ui.d.ts +25 -0
  37. package/src/client/workbench.module.css +275 -0
  38. package/src/engine.ts +358 -0
  39. package/src/git-store.ts +133 -0
  40. package/src/index.ts +49 -0
  41. package/src/protocol.ts +108 -0
  42. package/src/review-context.ts +87 -0
  43. package/src/review-runtime.ts +106 -0
  44. package/src/routes.ts +52 -0
  45. package/src/tools.ts +80 -0
@@ -0,0 +1,275 @@
1
+ :global(html[data-dsh-spec-collab-active]) [class*="centerCol"] > *:not([data-dsh-spec-collab-view]),
2
+ :global(html[data-dsh-spec-collab-active]) [data-pane="conversation"] > *:not([data-dsh-spec-collab-view]) { display: none !important; }
3
+ :global(html[data-dsh-spec-collab-active]) [data-dsh-spec-collab-view] { display: block !important; }
4
+
5
+ .view { display: none; position: absolute; inset: 0; z-index: 4; overflow: hidden; background: #f5f7f7; color: #18242a; }
6
+ .workbench { height: 100%; min-width: 0; display: grid; grid-template-rows: minmax(64px, auto) auto auto minmax(0, 1fr) 30px; font: 14px/1.5 ui-sans-serif, system-ui, sans-serif; }
7
+ .header, .footer, .paneHead, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #d7dde1; background: #fff; }
8
+ .header { min-width: 0; grid-row: 1; padding: 10px 16px; box-shadow: 0 1px 0 rgba(24,36,42,.04); }
9
+ .titleBlock { min-width: 0; display: grid; gap: 2px; }
10
+ .titleBlock strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; }
11
+ .titleBlock span, .footer, small, time { color: #66727c; font-size: 12px; }
12
+ .headerActions, .toolbar > div, .newThread > div, .threadList section > div:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
13
+ .headerActions { justify-content: flex-end; }
14
+ button, input, select, textarea { font: inherit; letter-spacing: 0; }
15
+ button { min-height: 32px; border: 1px solid #cbd3d6; border-radius: 6px; padding: 5px 10px; background: #fff; color: #18242a; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
16
+ button:hover { border-color: #147168; background: #f2f8f7; }
17
+ button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #147168; outline-offset: 2px; }
18
+ button:disabled { cursor: default; opacity: .45; }
19
+ .execute { border-color: #176f58; background: #176f58; color: #fff; font-weight: 650; }
20
+ .execute:hover { border-color: #0f5946; background: #0f5946; }
21
+ .identity { border: 0; background: #eef5f3; color: #176f58; white-space: nowrap; }
22
+ .notice { grid-row: 2; display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #e0b477; background: #fff3dc; color: #7d430d; }
23
+ .notice button { min-height: 0; border: 0; padding: 0; background: transparent; }
24
+ .noticeHidden { display: none; grid-row: 2; }
25
+ .mobileViewSwitch { display: none; grid-row: 3; align-items: center; justify-content: center; gap: 4px; padding: 5px; border-bottom: 1px solid #d7dde1; background: #fff; }
26
+
27
+ .grid { min-width: 0; min-height: 0; grid-row: 4; display: grid; grid-template-columns: var(--documents-width, 220px) var(--documents-handle, 6px) minmax(360px, 1fr) var(--review-handle, 6px) var(--review-width, 430px); overflow: hidden; background: #dce2e3; }
28
+ .documents, .review, .editorPane { min-width: 0; min-height: 0; background: #fff; }
29
+ .documents { grid-column: 1; overflow: auto; }
30
+ .documents + .resizer { grid-column: 2; }
31
+ .editorPane { grid-column: 3; }
32
+ .editorPane + .resizer { grid-column: 4; }
33
+ .review { grid-column: 5; display: flex; flex-direction: column; overflow: hidden; }
34
+ .paneClosed { display: none !important; }
35
+ .paneHead { position: sticky; top: 0; z-index: 3; height: 40px; padding: 0 10px; }
36
+ .paneHead button { border: 0; padding: 3px 6px; }
37
+ .paneActions { display: flex; align-items: center; gap: 2px; }
38
+ .paneActions button { min-height: 27px; font-size: 12px; white-space: nowrap; }
39
+ .requirementMenu { position: absolute; top: 34px; right: 2px; z-index: 5; width: 132px; display: grid; gap: 2px; border: 1px solid #cbd3d6; border-radius: 6px; padding: 5px; background: #fff; box-shadow: 0 8px 20px rgba(23,32,39,.15); }
40
+ .requirementMenu button { width: 100%; justify-content: flex-start; padding: 6px 8px; text-align: left; }
41
+ .dangerText { color: #a3352d !important; }
42
+ .dangerButton { border-color: #a3352d !important; background: #a3352d !important; color: #fff !important; }
43
+ .resizer { position: relative; z-index: 2; cursor: col-resize; background: #eef1f2; touch-action: none; }
44
+ .resizer::after { content: ''; position: absolute; inset: 0 2px; background: transparent; transition: background .15s ease; }
45
+ .resizer:hover::after { background: #79aa9e; }
46
+ .resizerHidden { visibility: hidden; }
47
+ .documents nav { display: grid; gap: 4px; padding: 8px; }
48
+ .requirementRow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; }
49
+ .documentButton { min-width: 0; display: grid; gap: 3px; border-color: transparent; padding: 9px 10px; text-align: left; }
50
+ .documentButton span, .documentButton small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
51
+ .rowMenuButton { width: 28px; min-height: 28px; border: 0; padding: 0; color: #66727c; font-size: 18px; }
52
+ .selectedDoc { border-color: #a9ccc5 !important; background: #eaf4f1 !important; color: #0f5946 !important; }
53
+ .empty { padding: 16px 10px; color: #66727c; font-size: 12px; }
54
+ .emptyMain { height: 100%; display: grid; place-items: center; }
55
+
56
+ .editorPane { display: flex; flex-direction: column; overflow: hidden; }
57
+ .toolbar { min-width: 0; padding: 8px 12px; }
58
+ .toolbar > strong { flex: none; white-space: nowrap; }
59
+ .editorTitle { display: flex; align-items: center; gap: 7px; }
60
+ .editorTitle strong { white-space: nowrap; }
61
+ .editorTitle button { min-height: 28px; padding: 3px 7px; color: #176f58; font-size: 12px; }
62
+ .iconButton { width: 30px; min-height: 30px !important; padding: 0 !important; border-color: transparent !important; color: #176f58 !important; font-size: 21px !important; line-height: 1; }
63
+ .tabbar button { border-color: transparent; white-space: nowrap; }
64
+ .activeMode { border-color: #a9ccc5 !important; background: #eaf4f1 !important; color: #0f5946 !important; font-weight: 650; }
65
+ .summaryInput { width: clamp(100px, 15vw, 180px); min-width: 0; padding: 5px 7px; border: 1px solid #c8d0d5; border-radius: 5px; }
66
+ .editorMeta, .unsaved { white-space: nowrap; color: #66727c; font-size: 12px; }
67
+ .unsaved { color: #9a5a18; font-weight: 650; }
68
+ .saveButton:not(:disabled) { border-color: #176f58; color: #176f58; font-weight: 650; }
69
+ .editorContext { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 5px 12px; border-bottom: 1px solid #d7dde1; background: #f0f7f5; }
70
+ .selectionPrompt { min-width: 0; display: flex; align-items: center; gap: 6px; }
71
+ .selectionPrompt span { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #45616c; font-size: 12px; }
72
+ .selectionPrompt button { min-height: 28px; padding: 3px 8px; }
73
+ .selectionPrompt button:last-child { width: 28px; border: 0; padding: 0; background: transparent; }
74
+ .commentAction { border-color: #176f58 !important; background: #eaf4f1 !important; color: #0f5946 !important; font-weight: 650; }
75
+ .editorBody { min-width: 0; min-height: 0; flex: 1; overflow: auto; background: #fff; }
76
+ .richEditor { height: 100%; background: #fff; }
77
+ .richEditor :global(.toastui-editor-defaultUI) { height: 100% !important; border: 0; font-family: ui-sans-serif, system-ui, sans-serif; }
78
+ .richEditor :global(.toastui-editor-toolbar), .richEditor :global(.toastui-editor-mode-switch) { display: none !important; }
79
+ .richEditor :global(.toastui-editor-main), .richEditor :global(.toastui-editor-ww-container) { height: 100% !important; background: #fff; }
80
+ .richEditor :global(.toastui-editor-ww-container) { overflow: auto; }
81
+ .richEditor :global(.toastui-editor-contents) { box-sizing: border-box; max-width: 820px; min-height: 100%; margin: 0 auto; padding: 34px clamp(30px, 7vw, 84px) 120px; color: #26343b; font: 15px/1.78 ui-sans-serif, system-ui, sans-serif; }
82
+ .richEditor :global(.toastui-editor-contents h1) { margin: 0 0 28px; font-size: 30px; line-height: 1.25; }
83
+ .richEditor :global(.toastui-editor-contents h2) { margin: 34px 0 14px; padding-bottom: 7px; border-bottom: 1px solid #e1e6e7; font-size: 21px; line-height: 1.35; }
84
+ .richEditor :global(.toastui-editor-contents h3) { margin: 26px 0 10px; font-size: 17px; line-height: 1.4; }
85
+ .richEditor :global(.toastui-editor-contents p) { margin: 10px 0; }
86
+
87
+ .tabbar { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; padding: 5px 7px; border-bottom: 1px solid #d7dde1; background: #fff; }
88
+ .tabScroller { min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
89
+ .tabScroller button { flex: 0 0 auto; min-height: 29px; padding: 3px 7px; }
90
+ .collapseRight { flex: 0 0 30px; margin-left: auto; }
91
+ .tabBadge { display: inline-grid; min-width: 17px; height: 17px; place-items: center; margin-left: 4px; border-radius: 9px; padding: 0 4px; background: #c56b24; color: #fff; font-size: 10px; line-height: 1; }
92
+ .activeMode .tabBadge { background: #176f58; }
93
+ .threadList { min-height: 0; overflow: auto; padding-bottom: 72px; }
94
+ .threadList > section, .threadList > .run, .threadList > .reviewCard { padding: 14px 16px; border-bottom: 1px solid #e1e5e7; }
95
+ .reviewCard { display: grid; gap: 11px; background: #fff; }
96
+ .reviewCardBody { display: grid; gap: 11px; }
97
+ .reviewDetails { border-bottom: 1px solid #e1e5e7; background: #fff; }
98
+ .endedReview { background: #fafbfb; }
99
+ .pendingReview { border-left: 3px solid #c98229; }
100
+ .reviewDetails > summary { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 6px 14px; cursor: pointer; list-style: none; }
101
+ .reviewDetails > summary::-webkit-details-marker { display: none; }
102
+ .reviewDetails > summary::before { content: '›'; flex: none; color: #66727c; font-size: 17px; transition: transform .15s ease; }
103
+ .reviewDetails[open] > summary::before { transform: rotate(90deg); }
104
+ .reviewDetails > summary span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
105
+ .reviewDetails > summary b { flex: none; color: #66727c; font-size: 11px; font-weight: 600; }
106
+ .reviewDetails > .reviewCardBody { padding: 12px 16px 16px; border-top: 1px solid #e8ecee; background: #fff; }
107
+ .panelSummary { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #d7dde1; background: #f8faf9; }
108
+ .panelSummary > div { display: grid; gap: 1px; }
109
+ .panelSummary span { color: #9a5a18; font-size: 12px; }
110
+ .panelSummary button { min-height: 28px; border: 0; background: transparent; color: #176f58; font-size: 12px; }
111
+ .runHistory { border-bottom: 1px solid #d7dde1; background: #f8faf9; }
112
+ .runHistory > summary { cursor: pointer; padding: 10px 14px; color: #45616c; font-size: 12px; font-weight: 650; }
113
+ .runHistory > .run { padding: 12px 16px; border-top: 1px solid #e1e5e7; background: #fff; }
114
+ .reviewTitle { color: #172027; font-weight: 650; }
115
+ .reviewTitle > :first-child { margin-top: 0; }
116
+ .reviewTitle > :last-child { margin-bottom: 0; }
117
+ .reviewField { display: grid; gap: 4px; }
118
+ .reviewField > span { color: #66727c; font-size: 11px; font-weight: 700; }
119
+ .questionField { border-left: 3px solid #c98229; padding: 9px 11px; background: #fff8eb; }
120
+ .evidence, .patchDetails { border: 1px solid #d7dde1; border-radius: 5px; padding: 7px 9px; }
121
+ .evidence summary, .patchDetails summary { cursor: pointer; color: #45616c; font-size: 12px; font-weight: 650; }
122
+ .evidence > div { margin-top: 8px; border-top: 1px solid #e1e5e7; padding-top: 8px; }
123
+ .evidence code { overflow-wrap: anywhere; font-size: 11px; }
124
+ .cardActions { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid #e1e5e7; padding-top: 9px; }
125
+ .humanResponse { padding: 9px; background: #eef5f1; }
126
+ .responseForm { display: grid; gap: 8px; border-top: 1px solid #e1e5e7; padding-top: 9px; }
127
+ .responseForm label { display: grid; gap: 4px; color: #66727c; font-size: 12px; }
128
+ .responseForm select, .responseForm textarea { box-sizing: border-box; width: 100%; border: 1px solid #c8d0d5; border-radius: 5px; padding: 7px; color: #172027; background: #fff; }
129
+ .responseForm textarea { min-height: 88px; resize: vertical; }
130
+ .quickOptions { display: grid; gap: 5px; }
131
+ .quickOptions > span { color: #66727c; font-size: 11px; font-weight: 700; }
132
+ .quickOptions button { height: auto; min-height: 32px; justify-content: flex-start; border-color: #d7e3e0; padding: 6px 9px; background: #f7faf9; text-align: left; white-space: normal; }
133
+ .missingOptions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed #d7dde1; padding: 8px; color: #66727c; font-size: 12px; }
134
+ .missingOptions button { flex: none; min-height: 28px; padding: 3px 7px; color: #176f58; }
135
+ .decisionForm { display: grid; gap: 10px; padding: 14px 16px; }
136
+ .decisionForm label { display: grid; gap: 4px; color: #66727c; font-size: 12px; }
137
+ .decisionForm textarea { box-sizing: border-box; width: 100%; min-height: 72px; resize: vertical; border: 1px solid #c8d0d5; border-radius: 5px; padding: 7px; }
138
+ .panelAction { margin: 14px 16px; }
139
+ .markdownBody { min-width: 0; overflow-wrap: anywhere; color: #26343b; }
140
+ .markdownBody p { margin: 5px 0; }
141
+ .markdownBody h1, .markdownBody h2, .markdownBody h3 { margin: 12px 0 6px; line-height: 1.3; }
142
+ .markdownBody h1 { font-size: 19px; }
143
+ .markdownBody h2 { font-size: 16px; }
144
+ .markdownBody h3 { font-size: 14px; }
145
+ .markdownBody ul, .markdownBody ol { margin: 6px 0; padding-left: 20px; }
146
+ .markdownBody li + li { margin-top: 3px; }
147
+ .markdownBody blockquote { margin: 7px 0; border-left: 3px solid #9bc2cf; padding: 5px 8px; background: #f3f7f8; }
148
+ .markdownBody pre { overflow: auto; padding: 8px; background: #172027; color: #e8eef1; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
149
+ .markdownBody code { overflow-wrap: anywhere; padding: 1px 3px; background: #eef1f2; font-size: .9em; }
150
+ .markdownBody table { width: 100%; border-collapse: collapse; font-size: 12px; }
151
+ .markdownBody th, .markdownBody td { border: 1px solid #d7dde1; padding: 5px; text-align: left; vertical-align: top; }
152
+ .threadList h3 { margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
153
+ .threadList p, .threadList blockquote, .threadList strong { overflow-wrap: anywhere; }
154
+ .threadList section > small { display: block; margin: 6px 0; }
155
+ .threadList blockquote { margin: 7px 0; padding: 6px 8px; border-left: 3px solid #9bc2cf; background: #f3f7f8; }
156
+ .badges { display: flex !important; justify-content: flex-start !important; flex-wrap: wrap; gap: 4px !important; }
157
+ .badges > * { border: 1px solid #c8d0d5; border-radius: 999px; padding: 2px 7px; font-size: 11px; }
158
+ .badges > b:first-child { border-color: #e3bd8b; background: #fff5e7; color: #8a4b11; }
159
+ .run { display: grid; gap: 7px; }
160
+ .run > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
161
+ .run > div:first-child span { color: #66727c; font-size: 12px; }
162
+ .reply { margin-top: 8px; padding: 8px; background: #f3f7f8; }
163
+ .newThread textarea { box-sizing: border-box; width: 100%; min-height: 86px; resize: vertical; }
164
+ .patchPreview { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #d7dde1; padding: 8px; background: #f0f3f4; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
165
+
166
+ .patchAccept { display: grid; gap: 8px; }
167
+ .patchAccept label { display: grid; gap: 4px; color: #66727c; font-size: 12px; }
168
+ .patchAccept input { box-sizing: border-box; width: 100%; border: 1px solid #c8d0d5; border-radius: 5px; padding: 7px; color: #172027; }
169
+ .legacyWarning { border-left: 3px solid #b75438; padding: 8px 10px; background: #fff0ec; color: #76311f; }
170
+ .legacyWarning p { margin: 4px 0 0; }
171
+ .aiConversation { margin-top: 4px; border-top: 1px solid #e1e5e7; padding-top: 7px; }
172
+ .chatToggle { width: 100%; border-color: #9bc2cf; color: #12566d; }
173
+ .collapseChat { width: 30px; min-height: 26px; justify-self: end; padding: 0; font-size: 16px; }
174
+ .chatMessages { max-height: 280px; display: grid; gap: 7px; overflow: auto; margin-top: 7px; padding: 7px; background: #f4f6f7; }
175
+ .aiMessage, .userMessage { max-width: 92%; padding: 7px 8px; border-radius: 5px; background: #fff; }
176
+ .userMessage { justify-self: end; background: #eaf3f5; }
177
+ .aiMessage div > :first-child, .userMessage div > :first-child { margin-top: 3px; }
178
+ .aiMessage div > :last-child, .userMessage div > :last-child { margin-bottom: 0; }
179
+ .chatComposer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 7px; }
180
+ .chatComposer textarea { box-sizing: border-box; width: 100%; min-height: 58px; resize: vertical; border: 1px solid #c8d0d5; border-radius: 5px; padding: 7px; }
181
+ .chatError { color: #a3352d; font-size: 12px; }
182
+
183
+ .footer { grid-row: 5; overflow: hidden; border-top: 1px solid #d7dde1; border-bottom: 0; padding: 0 10px; white-space: nowrap; }
184
+ .footer span { overflow: hidden; text-overflow: ellipsis; }
185
+ .readyHead { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e1e5e7; }
186
+ .readyHead h3 { margin: 0; }
187
+ .readyHead span { color: #66727c; font-size: 12px; }
188
+ .checklist { display: grid; }
189
+ .checkItem { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; padding: 12px 14px; border-bottom: 1px solid #e1e5e7; }
190
+ .checkIcon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; }
191
+ .checkItem > div { min-width: 0; display: grid; gap: 3px; }
192
+ .checkItem small { font-weight: 650; }
193
+ .checkPassed .checkIcon { background: #237a4b; }
194
+ .checkPassed small { color: #237a4b; }
195
+ .checkBlocked { background: #fff8f5; }
196
+ .checkBlocked .checkIcon { background: #b75438; }
197
+ .checkBlocked small { color: #a3352d; }
198
+ .downstreamReturn > div { display: grid; gap: 8px; margin-top: 8px; }
199
+ .downstreamReturn label { display: grid; gap: 4px; color: #66727c; font-size: 12px; }
200
+ .downstreamReturn input, .downstreamReturn textarea { box-sizing: border-box; width: 100%; border: 1px solid #c8d0d5; border-radius: 5px; padding: 7px; color: #172027; }
201
+ .downstreamReturn textarea { min-height: 70px; resize: vertical; }
202
+ .itemsPanel > section { padding: 10px; border-bottom: 1px solid #e1e5e7; }
203
+ .itemsPanel h3 { margin: 0 0 7px; font-size: 13px; }
204
+ .itemRow { width: 100%; display: grid; gap: 3px; margin-top: 4px; text-align: left; }
205
+ .itemRow span, .itemRow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
206
+ .versionRow { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; border: 0; border-bottom: 1px solid #e1e5e7; border-radius: 0; padding: 10px 12px; text-align: left; }
207
+ .versionRow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
208
+ .versionRow small { grid-column: 1 / -1; }
209
+ .versionCompare { border-bottom: 1px solid #d7dde1; }
210
+ .compareHead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #f8faf9; }
211
+ .compareHead button { width: 28px; min-height: 28px; border: 0; padding: 0; }
212
+ .compareColumns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #d7dde1; }
213
+ .compareColumns section { min-width: 0; max-height: 520px; overflow: auto; padding: 12px; background: #fff; }
214
+ .compareColumns section > b { position: sticky; top: -12px; display: block; margin: -12px -12px 10px; padding: 8px 12px; background: #f4f7f7; font-size: 12px; }
215
+ .conflictModal { padding: 12px; }
216
+ .conflictDialog { box-sizing: border-box; width: min(1280px, 100%); height: min(820px, 100%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; border: 1px solid #c8d0d5; background: #fff; box-shadow: 0 10px 28px rgba(23,32,39,.18); }
217
+ .conflictHeader, .conflictActions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #d7dde1; }
218
+ .conflictHeader h2, .conflictHeader p { margin: 0; }
219
+ .conflictHeader p { color: #66727c; font-size: 12px; }
220
+ .conflictColumns { min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #d7dde1; }
221
+ .conflictColumns label { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 5px; padding: 9px; background: #fff; color: #45616c; font-size: 12px; font-weight: 650; }
222
+ .conflictColumns textarea { box-sizing: border-box; width: 100%; height: 100%; min-height: 180px; resize: none; border: 1px solid #c8d0d5; padding: 9px; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
223
+ .conflictDiffs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; }
224
+ .conflictDiffs pre { max-height: 130px; overflow: auto; margin: 6px 0 0; padding: 7px; background: #172027; color: #e8eef1; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
225
+ .conflictActions { justify-content: flex-end; border-top: 1px solid #d7dde1; border-bottom: 0; }
226
+ .modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(23,32,39,.35); }
227
+ .modal form { box-sizing: border-box; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #c8d0d5; padding: 20px; background: #fff; box-shadow: 0 10px 28px rgba(23,32,39,.18); }
228
+ .modal h2 { margin: 0 0 8px; font-size: 20px; }
229
+ .modal p { color: #66727c; }
230
+ .modal label { display: grid; gap: 5px; margin: 12px 0; }
231
+ .modal input, .modal select, .modal textarea { box-sizing: border-box; width: 100%; border: 1px solid #c8d0d5; border-radius: 5px; padding: 8px; }
232
+ .modal textarea { min-height: 120px; resize: vertical; }
233
+ .modal form > div:last-child { display: flex; justify-content: flex-end; gap: 8px; }
234
+
235
+ .entry { box-sizing: border-box; width: 100%; overflow: hidden; }
236
+ .entryActive { background: rgba(23,107,135,.1) !important; color: #176b87 !important; }
237
+ .entry span:first-child { flex: 0 0 20px; text-align: center; }
238
+ .entry span:last-child { flex: none; white-space: nowrap; }
239
+ :global([data-sidebar-collapsed="true"]) .entry { justify-content: center; gap: 0; padding-inline: 0; }
240
+ :global([data-sidebar-collapsed="true"]) .entry span:last-child { display: none !important; }
241
+
242
+ @media (max-width: 900px) {
243
+ .workbench { grid-template-rows: auto auto auto minmax(0, 1fr) 28px; }
244
+ .header { align-items: flex-start; flex-direction: column; }
245
+ .headerActions { width: 100%; justify-content: flex-start; }
246
+ .toolbar { align-items: flex-start; flex-direction: column; }
247
+ .toolbar > div:last-child { width: 100%; }
248
+ .summaryInput { flex: 1 1 100px; width: auto; }
249
+ .selectionPrompt { width: 100%; }
250
+ .selectionPrompt span { flex: 1; max-width: none; }
251
+ .preview { padding: 14px; }
252
+ }
253
+
254
+ @media (max-width: 680px) {
255
+ .mobileViewSwitch { display: flex; }
256
+ .grid { grid-template-columns: 1fr !important; }
257
+ .resizer { display: none; }
258
+ .editorPane, .review { grid-column: 1; }
259
+ .documents { display: none; }
260
+ .mobileSpec .review { display: none; }
261
+ .mobileCollab .editorPane { display: none; }
262
+ .review { border-left: 0; }
263
+ .richEditor :global(.toastui-editor-contents) { padding: 24px 20px 90px; }
264
+ .headerActions { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
265
+ .headerActions button { flex: 0 0 auto; padding-inline: 6px; font-size: 12px; }
266
+ .footer span:first-child { display: none; }
267
+ .conflictDialog { height: 100%; overflow: auto; grid-template-rows: auto auto auto auto; }
268
+ .conflictColumns, .conflictDiffs { grid-template-columns: 1fr; }
269
+ .conflictColumns textarea { min-height: 220px; }
270
+ }
271
+
272
+ @media (max-width: 520px) {
273
+ .headerActions { max-height: none; overflow-x: auto; overflow-y: hidden; }
274
+ .tabbar { position: sticky; top: 0; z-index: 2; background: #fff; }
275
+ }