File size: 8,780 Bytes
597ae3b
 
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631c6b0
4d6460d
631c6b0
 
4d6460d
 
 
 
 
 
 
631c6b0
 
 
 
 
4d6460d
 
 
 
631c6b0
 
 
 
 
 
 
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631c6b0
 
 
 
 
 
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
631c6b0
 
 
 
 
 
 
 
 
2efdd15
 
 
 
 
 
 
 
08fc76d
 
 
 
 
631c6b0
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
653df94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
08fc76d
 
 
 
 
631c6b0
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631c6b0
 
 
 
 
 
 
 
 
08fc76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
def get_css():
    return """
    @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
    /* === 基本設定 === */
    body, .gradio-container, .prose, button, input, textarea, span, div, label {
        font-family: 'JetBrains Mono', monospace !important;
        letter-spacing: -0.03em;
    }
    body, .gradio-container {
        background-color: #020617 !important;
        background-image: radial-gradient(circle at 50% 0%, #0f172a 0%, #020617 80%);
        color: #34d399 !important; 
    }
    /* === タイトル === */
    .title-area {
        margin-bottom: 20px;
        text-align: center;
        padding-top: 20px;
        border-bottom: 1px solid rgba(52, 211, 153, 0.2);
        padding-bottom: 10px;
    }
    .title-area h1 {
        font-size: 2.5rem !important;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: #34d399 !important;
        text-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
        margin-bottom: 0.2rem;
    }
    .subtitle {
        font-size: 0.75rem !important;
        color: #6ee7b7 !important;
        opacity: 0.8;
    }
    .description {
        font-size: 0.75rem !important;
        color: #94a3b8 !important;
        opacity: 0.9;
        margin: 0 auto 20px auto;
        line-height: 1.6;
        text-align: left !important;
        padding: 15px 20px;
        background: rgba(15, 23, 42, 0.5);
        border-radius: 4px;
        border-left: 2px solid #10b981;
    }
    .description a {
        color: #34d399 !important;
        text-decoration: underline;
    }
    .description p {
        text-align: left !important;
        margin: 0 !important;
    }
    /* === Column spacing === */
    .main-row {
        gap: 24px !important;
    }
    .main-row > div {
        min-height: 700px;
    }
    /* === 枠 (Glass Frame) === */
    .step-frame {
        background: rgba(2, 6, 23, 0.7) !important;
        border: 1px solid #10b981 !important;
        border-radius: 4px !important;
        padding: 12px 16px !important;
        margin-bottom: 12px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
        height: 100%; 
        display: flex;
        flex-direction: column;
    }
    #right-panel {
        min-height: 600px;
    }
    .step-active {
        border-color: #34d399 !important;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) !important;
        opacity: 1 !important;
    }
    .step-inactive {
        border-color: #1e293b !important;
        opacity: 0.3 !important;
        pointer-events: none;
    }
    .step-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #34d399 !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        display: block;
        text-shadow: 0 0 5px rgba(52, 211, 153, 0.4);
    }
    .step-hint {
        font-size: 0.7rem !important;
        color: #6ee7b7 !important;
        opacity: 0.7;
        margin-bottom: 8px;
    }
    /* === 入力パーツ === */
    label span {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
        color: #6ee7b7 !important;
    }
    textarea, input {
        background-color: #020617 !important;
        border: 1px solid #10b981 !important;
        color: #34d399 !important;
        border-radius: 2px !important;
        font-size: 0.9rem !important;
        padding: 4px 8px !important;
    }
    /* Editable inputs should be white */
    input:not([readonly]):not(:disabled),
    textarea:not([readonly]):not(:disabled) {
        color: #ffffff !important;
    }
    /* Dropdown inputs white when editable */
    .svelte-1gfkn6j input {
        color: #ffffff !important;
    }
    /* Disabled dropdown styling */
    .svelte-1gfkn6j[disabled],
    .svelte-1gfkn6j:disabled,
    input:disabled,
    textarea:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
    }
    ::placeholder { color: #059669 !important; opacity: 0.7; }
    textarea:focus, input:focus {
        border-color: #34d399 !important;
        box-shadow: 0 0 10px rgba(52, 211, 153, 0.2) !important;
    }
    input[type=number] { color: #ffffff !important; }
    /* === タスクカード & ボタン === */
    button {
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        font-weight: 700 !important;
        border-radius: 2px !important;
    }
    .task-card {
        height: 45px !important;
        min-height: 45px !important;
        background: #0f172a !important;
        border: 1px solid #10b981 !important;
        color: #34d399 !important;
        font-size: 0.75rem !important;
    }
    .task-card:hover {
        background: #10b981 !important;
        color: #020617 !important;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }
    /* Active/selected task card - Gradio primary variant */
    .task-card.primary,
    .task-card[data-variant="primary"],
    button.primary.task-card,
    .task-card.svelte-cmf5ev.primary {
        background: #10b981 !important;
        color: #020617 !important;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
        border-color: #34d399 !important;
    }
    /* === Dropdown options styling === */
    ul[role="listbox"],
    .options,
    [data-testid="dropdown-options"],
    .dropdown-options,
    div[class*="dropdown"] ul {
        background-color: #1e293b !important;
        border: 1px solid #10b981 !important;
        max-height: 300px;
        overflow-y: auto;
    }
    ul[role="listbox"] li,
    .options li,
    [data-testid="dropdown-options"] li,
    .dropdown-options li,
    div[class*="dropdown"] ul li {
        background-color: #1e293b !important;
        color: #34d399 !important;
        padding: 8px 12px !important;
    }
    ul[role="listbox"] li:hover,
    .options li:hover,
    [data-testid="dropdown-options"] li:hover,
    .dropdown-options li:hover,
    div[class*="dropdown"] ul li:hover,
    ul[role="listbox"] li.selected,
    ul[role="listbox"] li[aria-selected="true"],
    .options li.selected {
        background-color: #334155 !important;
        color: #ffffff !important;
    }
    /* === チャット入力エリア (Step 3) === */
    .input-area {
        display: flex;
        align-items: flex-end;
        gap: 10px;
        margin-top: auto;
        padding-top: 10px;
    }
    
    #prompt-preview textarea {
        background-color: #1e293b !important;
        border: 1px solid #34d399 !important;
        color: #34d399 !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    #send-btn {
        background: #34d399 !important;
        color: #020617 !important;
        border: none !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        border-radius: 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 4px !important;
        transition: all 0.2s ease;
    }
    #send-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
    }
    /* Stop button style */
    .stop-btn {
        background: #ef4444 !important;
        color: white !important;
    }
    .stop-btn:hover {
        background: #dc2626 !important;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.6) !important;
    }
    /* === チャットボット (バブルデザイン) === */
    .bubble-wrap { background: transparent !important; }
    
    .user {
        background-color: #1e293b !important;
        color: #34d399 !important;
        border: 1px solid #10b981 !important;
        border-radius: 12px 12px 0 12px !important;
        padding: 12px !important;
        margin-bottom: 8px !important;
        text-align: right;
        margin-left: auto;
        max-width: 80%;
    }
    
    .bot {
        background-color: #020617 !important;
        color: #34d399 !important;
        border: 1px solid #34d399 !important;
        border-radius: 12px 12px 12px 0 !important;
        padding: 12px !important;
        margin-bottom: 16px !important;
        text-align: left;
        margin-right: auto;
        max-width: 80%;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    }
    
    /* アバター隠し */
    .avatar-container { display: none !important; }
    /* === 実行秒数・タイマー・API表示を非表示にする設定 === */
    .generating, 
    .progress-text, 
    .meta-text, 
    .meta-text-center,
    .eta-bar,
    footer { 
        display: none !important; 
    }
    .loading-wrap {
        display: none !important;
    }
    """