Spaces:
Paused

File size: 4,955 Bytes
5eb4857
 
7d83036
8798ebe
 
5eb4857
8798ebe
22a1a45
5eb4857
 
8798ebe
c64a33d
5eb4857
907d8c5
8798ebe
 
25c2a24
 
7d83036
c2ee3e3
8798ebe
5eb4857
 
 
8798ebe
c64a33d
8798ebe
 
22a1a45
 
 
 
 
8798ebe
 
c2ee3e3
 
 
 
 
 
5eb4857
8798ebe
 
22a1a45
8798ebe
 
5eb4857
 
22a1a45
8798ebe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c64a33d
8798ebe
 
5eb4857
 
 
8798ebe
c2ee3e3
8798ebe
22a1a45
 
c2ee3e3
5eb4857
 
22a1a45
 
 
c2ee3e3
8798ebe
 
 
 
 
5eb4857
 
 
 
8798ebe
 
 
c64a33d
8798ebe
 
 
22a1a45
8798ebe
c2ee3e3
 
 
 
8798ebe
c2ee3e3
8798ebe
 
5eb4857
 
 
8798ebe
c64a33d
 
5eb4857
 
22a1a45
907d8c5
8798ebe
907d8c5
 
 
 
 
f18057d
c2ee3e3
 
22a1a45
5eb4857
 
c64a33d
8798ebe
 
1fdd745
 
 
 
 
 
c64a33d
 
3e3b4ae
 
22a1a45
c2ee3e3
f18057d
c2ee3e3
 
f18057d
1fdd745
8798ebe
 
1fdd745
 
 
 
 
 
 
 
c2ee3e3
 
 
f18057d
8798ebe
 
 
1fdd745
f18057d
 
5eb4857
 
22a1a45
c64a33d
 
8798ebe
 
c64a33d
8798ebe
5eb4857
 
22a1a45
8798ebe
 
22a1a45
8798ebe
 
c2ee3e3
 
8798ebe
5eb4857
 
22a1a45
8798ebe
 
 
5eb4857
 
c64a33d
c2ee3e3
c64a33d
 
8798ebe
 
c2ee3e3
 
5eb4857
22a1a45
c2ee3e3
c64a33d
8798ebe
5eb4857
8798ebe
3e3b4ae
5eb4857
 
 
8798ebe
5eb4857
22a1a45
8798ebe
 
 
 
22a1a45
 
8798ebe
 
5eb4857
8798ebe
5eb4857
 
8798ebe
 
 
 
 
 
22a1a45
8798ebe
 
22a1a45
 
8798ebe
 
22a1a45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  z-index: 2000;
}

.sidebar {
  background: var(--bg-card);
  width: 100%;
  max-width: 520px;
  height: 100vh;
  box-shadow: -20px 0 50px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border-subtle);
}

.header {
  padding: 40px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.headerBadge {
  font-size: 10px;
  font-weight: 950;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header h3 {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  font-weight: 500;
}

.closeBtn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: var(--bg-hover);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.closeBtn:hover {
  background: var(--error-glow);
  color: var(--error);
  transform: rotate(90deg);
}

.form {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sectionHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.field input, .field select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-hover);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field input:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.segmentGrid {
  display: flex;
  gap: 20px;
  width: 100%;
}

.segmentGrid .section {
  flex: 1;
  min-width: 140px; /* Prevent excessive squeezing */
}

.thresholdWrapper {
  display: flex;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  height: 48px;
  transition: all 0.2s;
}

.thresholdWrapper:focus-within {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.thresholdWrapper input {
  flex: 1;
  width: 100%;
  border: none !important;
  background: transparent !important;
  padding: 0 16px;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.thresholdWrapper input::-webkit-outer-spin-button,
.thresholdWrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.thresholdSuffix {
  padding-right: 16px;
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logicPreview {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  color: var(--text-main);
  margin-top: 8px;
}

.previewLabel {
  font-size: 9px;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.previewContent {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.previewContent span { color: var(--accent); }
.previewContent strong { 
  color: var(--text-main);
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.footer {
  padding: 32px 40px;
  background: var(--bg-hover);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.saveBtn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.cancelBtn {
  background: none;
  border: none;
  font-size: 10px;
  font-weight: 900;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.cancelBtn:hover {
  color: var(--error);
}