File size: 13,294 Bytes
4a2ab6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
:root {
  --bg: #f2f6f4;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --ink: #14231e;
  --muted: #65736d;
  --border: #d7e1dc;
  --accent: #0d7a62;
  --accent-dark: #075c49;
  --accent-soft: #e3f3ed;
  --blue: #2874b8;
  --warning: #8b5a00;
  --danger: #a33131;
  --shadow: 0 18px 50px rgba(24, 56, 44, 0.09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 2%, rgba(13, 122, 98, 0.09), transparent 28rem),
    radial-gradient(circle at 95% 5%, rgba(40, 116, 184, 0.08), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(1240px, calc(100% - 32px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #15a379);
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(13, 122, 98, 0.22);
}
.eyebrow, .kicker, .step-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand h1 { margin: 1px 0 0; font-size: 1.18rem; letter-spacing: -0.02em; }

.runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d19719;
  box-shadow: 0 0 0 4px rgba(209, 151, 25, 0.13);
}
.runtime-pill.ready .status-dot { background: #15936f; box-shadow: 0 0 0 4px rgba(21,147,111,.13); }
.runtime-pill.error .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(163,49,49,.13); }

.page-shell { width: min(1240px, calc(100% - 32px)); margin: 24px auto 46px; }

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
  gap: 38px;
  padding: 38px;
  border: 1px solid rgba(13, 122, 98, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 55%, #edf6fb 100%);
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -140px;
  top: -170px;
  border: 48px solid rgba(13, 122, 98, 0.055);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero-copy > p:not(.kicker) { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: .88rem;
  font-weight: 700;
}
.model-facts {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.model-facts div {
  padding: 18px;
  border: 1px solid rgba(13,122,98,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
}
.model-facts dt { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.model-facts dd { margin: 5px 0 0; font-size: 1.08rem; font-weight: 800; }

.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.panel, .status-card, .info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(28, 55, 45, .055);
}
.panel { min-height: 590px; padding: 24px; }
.panel-heading, .status-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading h2, .status-title-row h2, .info-card h2 { margin: 3px 0 0; font-size: 1.15rem; letter-spacing: -.02em; }
.text-button {
  border: 0;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--accent);
  background: transparent;
  font-weight: 750;
}
.text-button:hover:not(:disabled) { background: var(--accent-soft); }
button:disabled { cursor: not-allowed; opacity: .52; }

.drop-zone {
  min-height: 300px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px dashed #a9bdb4;
  border-radius: 17px;
  background: var(--surface-soft);
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging {
  border-color: var(--accent);
  background: #eef8f3;
  transform: translateY(-1px);
  outline: none;
}
.drop-zone strong { font-size: 1.08rem; }
.drop-zone span { color: var(--muted); }
.drop-zone small { margin-top: 8px; color: #87958f; }
.upload-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  border-radius: 19px;
  color: var(--accent);
  background: var(--accent-soft);
}
.upload-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.preview-wrap {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #eef2f0;
}
.preview-wrap img { display: block; width: 100%; height: 330px; object-fit: contain; background: #eef2f0; }
.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #fff; }
.image-meta strong { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-meta span { color: var(--muted); font-size: .82rem; }

.primary-button {
  width: 100%;
  min-height: 49px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #0d906f);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(13,122,98,.18);
  transition: transform .16s, box-shadow .16s;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 27px rgba(13,122,98,.23); }
.button-spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-message { min-height: 21px; margin: 9px 2px 0; color: var(--muted); font-size: .84rem; }
.inline-message.error { color: var(--danger); }

.provider-badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #e7f1fb;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
}
.empty-result { min-height: 470px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-result-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; color: var(--accent); background: var(--accent-soft); font-size: 2rem; }
.empty-result h3 { margin: 17px 0 5px; color: var(--ink); }
.empty-result p { max-width: 330px; margin: 0; }

.results { margin-top: 20px; }
.primary-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 17px;
  background: linear-gradient(135deg, #effaf5, #eef6fc);
}
.result-label { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.primary-result h3 { margin: 5px 0 0; font-size: clamp(1.55rem, 4vw, 2.2rem); text-transform: capitalize; letter-spacing: -.035em; }
.confidence-ring {
  --confidence: 0deg;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--confidence), #dbe8e2 0);
  position: relative;
}
.confidence-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.confidence-ring span { position: relative; z-index: 1; font-size: 1.03rem; font-weight: 850; }
.top-three-wrap { margin-top: 20px; }
.top-three-wrap h4, .all-probabilities summary { margin: 0 0 10px; font-size: .9rem; }
.top-three { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.top-three li { counter-increment: rank; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; }
.top-three li::before { content: counter(rank); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 850; font-size: .78rem; }
.top-three .class-name { font-weight: 750; text-transform: capitalize; }
.top-three .class-prob { color: var(--muted); font-variant-numeric: tabular-nums; }
.all-probabilities { margin-top: 18px; }
.all-probabilities summary { cursor: pointer; font-weight: 800; }
.probability-list { display: grid; gap: 8px; margin-top: 11px; }
.probability-row { display: grid; grid-template-columns: 82px 1fr 54px; align-items: center; gap: 9px; font-size: .78rem; }
.probability-row .name { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e4ece8; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #34a8a0); transition: width .45s ease; }
.probability-row .value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.timing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 19px; }
.timing-grid div { padding: 11px; border-radius: 11px; background: var(--surface-soft); }
.timing-grid span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.timing-grid strong { display: block; margin-top: 3px; font-size: .9rem; font-variant-numeric: tabular-nums; }

.status-card { margin-top: 22px; padding: 20px 23px; }
.status-title-row strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.progress-track { height: 9px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: #e2eae6; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #31a691); transition: width .25s ease; }
.status-card > p { margin: 10px 0 0; color: var(--muted); font-size: .87rem; }
.status-card.error { border-color: rgba(163,49,49,.3); }
.status-card.error .progress-bar { background: var(--danger); }

.information-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: 22px; }
.info-card { padding: 21px; }
.info-card p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.class-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.class-chip { padding: 6px 9px; border: 1px solid #cfe0d8; border-radius: 999px; color: var(--accent-dark); background: #f0f8f4; font-size: .76rem; font-weight: 750; text-transform: capitalize; }
.caution-card { background: #fffdf7; border-color: #eadfbd; }
.caution-card h2 { color: var(--warning); }

footer { padding: 22px 16px 34px; text-align: center; color: var(--muted); font-size: .82rem; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 28px; }
  .model-facts { grid-template-columns: repeat(4, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .panel { min-height: unset; }
  .information-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { align-items: flex-start; }
  .runtime-pill { max-width: 150px; }
  .runtime-pill span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-shell, .site-header { width: min(100% - 20px, 1240px); }
  .hero-card { padding: 23px 20px; }
  .hero-copy h2 { font-size: 2.05rem; }
  .model-facts { grid-template-columns: 1fr 1fr; }
  .panel { padding: 19px; }
  .drop-zone { min-height: 245px; }
  .preview-wrap img { height: 270px; }
  .primary-result { align-items: flex-start; }
  .confidence-ring { width: 75px; height: 75px; }
  .probability-row { grid-template-columns: 70px 1fr 48px; }
  .timing-grid { grid-template-columns: 1fr; }
}