TOTEM Studio commited on
Commit
4ede31b
Β·
1 Parent(s): ae80831

Stage 9/10: hide legacy controls, dark score panel, responsive CSS, global dark input overrides

Browse files

- #studio-actions and #path-panel hidden (display:none)
- #score-panel restyled dark: dark bg, gold header, purple buttons
- Global Gradio input/textarea/block dark overrides
- Accordion summary dark styled
- Responsive: sidebar collapses to topbar row at <900px
- Metric cards 2-col on mobile, hero stacks vertically

Files changed (1) hide show
  1. app.py +93 -49
app.py CHANGED
@@ -118,84 +118,128 @@ footer { display: none !important; }
118
  cursor: pointer;
119
  }
120
 
 
121
  #hidden-export, #hidden-status {
122
- max-width: 1180px;
123
- margin: 0 auto 18px auto;
124
  }
125
 
126
  #studio-actions {
 
 
 
 
 
 
 
 
 
127
  max-width: 1180px;
128
- margin: 18px auto 16px auto;
129
- padding-left: 18px;
130
- position: relative;
131
- z-index: 5;
132
  }
133
 
134
- #studio-actions .wrap {
135
- max-width: 430px;
136
- display: grid;
137
- grid-template-columns: 1fr 1fr;
138
- gap: 12px;
 
 
 
 
 
139
  }
140
 
141
- #studio-actions button {
142
- border-radius: 8px !important;
143
- min-height: 48px !important;
144
- font-weight: 800 !important;
 
145
  }
146
 
147
- #path-panel {
148
- max-width: 1180px;
149
- margin: 18px auto;
150
- padding: 0 18px;
 
151
  }
152
 
153
- #path-panel .wrap {
154
- display: grid;
155
- grid-template-columns: minmax(360px, 1fr) 210px;
 
 
 
 
 
 
156
  gap: 12px;
157
- max-width: 760px;
158
  }
159
 
160
- #path-panel textarea,
161
- #path-panel input {
 
 
 
162
  border-radius: 8px !important;
163
- border: 1px solid var(--studio-line) !important;
164
- background: white !important;
165
  }
166
 
167
- #path-panel button {
168
- border-radius: 8px !important;
169
- min-height: 52px !important;
170
- font-weight: 800 !important;
 
 
171
  }
172
 
173
- #score-panel {
174
- max-width: 1180px;
175
- margin: 18px auto 44px auto;
176
- padding: 0 18px;
 
 
 
177
  }
178
 
179
- #score-panel .score-card {
180
- border: 1px solid var(--studio-line);
181
- background: #fffef8;
182
- border-radius: 8px;
183
- padding: 18px;
184
  }
185
 
186
- #score-panel h3 {
187
- margin: 0 0 12px 0;
188
- font-size: 18px;
189
- color: var(--studio-green);
190
  }
191
 
192
- #score-panel button {
193
- border-radius: 8px !important;
194
- font-weight: 800 !important;
 
 
195
  }
196
 
197
- #score-panel .wrap {
198
- gap: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  }
200
 
201
  #codex-panel {
 
118
  cursor: pointer;
119
  }
120
 
121
+ /* ── Hide legacy Gradio controls (Stage 10) ─────────────────────────────── */
122
  #hidden-export, #hidden-status {
123
+ display: none !important;
 
124
  }
125
 
126
  #studio-actions {
127
+ display: none !important;
128
+ }
129
+
130
+ #path-panel {
131
+ display: none !important;
132
+ }
133
+
134
+ /* ── Private scoring controls β€” dark themed (Stage 10) ─────────────────── */
135
+ #score-panel {
136
  max-width: 1180px;
137
+ margin: 8px auto 24px auto;
138
+ padding: 0 18px;
 
 
139
  }
140
 
141
+ #score-panel > .label-wrap,
142
+ #score-panel > details > summary,
143
+ #score-panel summary {
144
+ background: rgba(13, 19, 48, 0.95) !important;
145
+ color: rgba(246, 241, 232, 0.9) !important;
146
+ border: 1px solid rgba(242, 193, 78, 0.25) !important;
147
+ border-radius: 10px !important;
148
+ font-family: var(--font-ui) !important;
149
+ font-size: 13px !important;
150
+ padding: 10px 16px !important;
151
  }
152
 
153
+ #score-panel .score-card {
154
+ border: 1px solid rgba(242, 193, 78, 0.18);
155
+ background: rgba(7, 18, 45, 0.97);
156
+ border-radius: 10px;
157
+ padding: 18px;
158
  }
159
 
160
+ #score-panel h3 {
161
+ margin: 0 0 12px 0;
162
+ font-size: 16px;
163
+ color: var(--totem-gold);
164
+ font-family: var(--font-display);
165
  }
166
 
167
+ #score-panel button {
168
+ border-radius: 8px !important;
169
+ font-weight: 700 !important;
170
+ background: rgba(138, 77, 255, 0.25) !important;
171
+ border: 1px solid rgba(138, 77, 255, 0.5) !important;
172
+ color: #f6f1e8 !important;
173
+ }
174
+
175
+ #score-panel .wrap {
176
  gap: 12px;
 
177
  }
178
 
179
+ #score-panel label,
180
+ #score-panel .block {
181
+ background: rgba(7, 18, 45, 0.8) !important;
182
+ border-color: rgba(246, 241, 232, 0.12) !important;
183
+ color: rgba(246, 241, 232, 0.9) !important;
184
  border-radius: 8px !important;
 
 
185
  }
186
 
187
+ #score-panel input,
188
+ #score-panel textarea {
189
+ background: rgba(4, 8, 26, 0.9) !important;
190
+ color: #f6f1e8 !important;
191
+ border-color: rgba(242, 193, 78, 0.2) !important;
192
+ border-radius: 6px !important;
193
  }
194
 
195
+ /* ── Global Gradio component dark overrides (Stage 9) ──────────────────── */
196
+ .gradio-container input,
197
+ .gradio-container textarea,
198
+ .gradio-container select {
199
+ background: rgba(4, 8, 26, 0.9) !important;
200
+ color: #f6f1e8 !important;
201
+ border-color: rgba(242, 193, 78, 0.2) !important;
202
  }
203
 
204
+ .gradio-container .block,
205
+ .gradio-container .form {
206
+ background: rgba(7, 18, 45, 0.85) !important;
207
+ border-color: rgba(246, 241, 232, 0.1) !important;
 
208
  }
209
 
210
+ .gradio-container label span,
211
+ .gradio-container .label-wrap span {
212
+ color: rgba(174, 183, 204, 0.9) !important;
 
213
  }
214
 
215
+ /* ── Accordion dark styling ─────────────────────────────────────────────── */
216
+ .gradio-container details summary {
217
+ background: rgba(13, 19, 48, 0.95) !important;
218
+ color: rgba(246, 241, 232, 0.9) !important;
219
+ border-color: rgba(242, 193, 78, 0.2) !important;
220
  }
221
 
222
+ /* ── Responsive: tighten at narrower widths (Stage 9) ───────────────────── */
223
+ @media (max-width: 900px) {
224
+ .totem-shell {
225
+ grid-template-columns: 1fr !important;
226
+ }
227
+ .totem-sidebar {
228
+ width: 100% !important;
229
+ flex: none !important;
230
+ flex-direction: row !important;
231
+ align-items: center !important;
232
+ padding: 12px 16px !important;
233
+ border-right: none !important;
234
+ border-bottom: 1px solid rgba(242, 193, 78, 0.22) !important;
235
+ min-height: auto !important;
236
+ }
237
+ .totem-brand { margin-bottom: 0 !important; margin-right: 16px !important; }
238
+ .totem-brand-img { max-width: 80px !important; }
239
+ .totem-quote-card { display: none !important; }
240
+ .totem-metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
241
+ .totem-hero-content { flex-direction: column !important; }
242
+ .totem-hero-right { margin-top: 16px !important; }
243
  }
244
 
245
  #codex-panel {