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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root{
|
| 2 |
+
--bg:#0b1020;
|
| 3 |
+
--card:#111a33;
|
| 4 |
+
--card2:#0f1730;
|
| 5 |
+
--text:#e9eefc;
|
| 6 |
+
--muted:#a8b3d6;
|
| 7 |
+
--accent:#7aa2ff;
|
| 8 |
+
--ok:#57d39b;
|
| 9 |
+
--err:#ff6b6b;
|
| 10 |
+
--border:rgba(255,255,255,.08);
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
*{box-sizing:border-box}
|
| 14 |
+
body{
|
| 15 |
+
margin:0;
|
| 16 |
+
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
|
| 17 |
+
background: radial-gradient(1200px 600px at 50% -10%, rgba(122,162,255,.25), transparent 70%),
|
| 18 |
+
var(--bg);
|
| 19 |
+
color:var(--text);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.page{max-width:1100px;margin:0 auto;padding:28px 18px 40px}
|
| 23 |
+
.header h1{margin:0 0 8px;font-size:40px;letter-spacing:.2px}
|
| 24 |
+
.header p{margin:0;color:var(--muted)}
|
| 25 |
+
|
| 26 |
+
.card{
|
| 27 |
+
margin-top:18px;
|
| 28 |
+
background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
|
| 29 |
+
border:1px solid var(--border);
|
| 30 |
+
border-radius:18px;
|
| 31 |
+
padding:18px;
|
| 32 |
+
box-shadow: 0 20px 60px rgba(0,0,0,.35);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.controls{
|
| 36 |
+
display:flex;
|
| 37 |
+
align-items:center;
|
| 38 |
+
gap:12px;
|
| 39 |
+
flex-wrap:wrap;
|
| 40 |
+
margin-bottom:14px;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.file{
|
| 44 |
+
display:inline-flex;
|
| 45 |
+
align-items:center;
|
| 46 |
+
gap:10px;
|
| 47 |
+
background:var(--card2);
|
| 48 |
+
border:1px solid var(--border);
|
| 49 |
+
border-radius:12px;
|
| 50 |
+
padding:10px 12px;
|
| 51 |
+
cursor:pointer;
|
| 52 |
+
}
|
| 53 |
+
.file input{display:none}
|
| 54 |
+
.file span{color:var(--text);font-weight:600}
|
| 55 |
+
|
| 56 |
+
.btn{
|
| 57 |
+
background:var(--accent);
|
| 58 |
+
border:none;
|
| 59 |
+
color:#0b1020;
|
| 60 |
+
font-weight:800;
|
| 61 |
+
padding:10px 14px;
|
| 62 |
+
border-radius:12px;
|
| 63 |
+
cursor:pointer;
|
| 64 |
+
}
|
| 65 |
+
.btn:disabled{opacity:.5;cursor:not-allowed}
|
| 66 |
+
|
| 67 |
+
.btn.secondary{
|
| 68 |
+
background:transparent;
|
| 69 |
+
color:var(--text);
|
| 70 |
+
border:1px solid var(--border);
|
| 71 |
+
font-weight:700;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.status{color:var(--muted);font-weight:600}
|
| 75 |
+
.status.loading{color:var(--accent)}
|
| 76 |
+
.status.ok{color:var(--ok)}
|
| 77 |
+
.status.err{color:var(--err)}
|
| 78 |
+
|
| 79 |
+
.grid{
|
| 80 |
+
display:grid;
|
| 81 |
+
grid-template-columns: 1.1fr .9fr;
|
| 82 |
+
gap:14px;
|
| 83 |
+
}
|
| 84 |
+
@media (max-width: 900px){
|
| 85 |
+
.grid{grid-template-columns:1fr}
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.panel{
|
| 89 |
+
background:rgba(17,26,51,.65);
|
| 90 |
+
border:1px solid var(--border);
|
| 91 |
+
border-radius:16px;
|
| 92 |
+
padding:14px;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.panel h2{margin:0 0 12px;font-size:20px}
|
| 96 |
+
.panel h3{margin:14px 0 8px;font-size:16px;color:var(--muted)}
|
| 97 |
+
|
| 98 |
+
.preview{
|
| 99 |
+
position:relative;
|
| 100 |
+
min-height:280px;
|
| 101 |
+
border-radius:14px;
|
| 102 |
+
overflow:hidden;
|
| 103 |
+
border:1px dashed rgba(255,255,255,.15);
|
| 104 |
+
background:rgba(0,0,0,.12);
|
| 105 |
+
display:flex;
|
| 106 |
+
align-items:center;
|
| 107 |
+
justify-content:center;
|
| 108 |
+
}
|
| 109 |
+
.preview img{
|
| 110 |
+
max-width:100%;
|
| 111 |
+
max-height:420px;
|
| 112 |
+
display:none;
|
| 113 |
+
}
|
| 114 |
+
.placeholder{
|
| 115 |
+
color:var(--muted);
|
| 116 |
+
padding:12px;
|
| 117 |
+
text-align:center;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.result-card{
|
| 121 |
+
background:rgba(15,23,48,.55);
|
| 122 |
+
border:1px solid var(--border);
|
| 123 |
+
border-radius:14px;
|
| 124 |
+
padding:12px;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.result-main{
|
| 128 |
+
display:flex;
|
| 129 |
+
justify-content:space-between;
|
| 130 |
+
gap:12px;
|
| 131 |
+
align-items:flex-end;
|
| 132 |
+
}
|
| 133 |
+
.label{color:var(--muted);font-size:12px;font-weight:700}
|
| 134 |
+
.pred-class{font-size:26px;font-weight:900;letter-spacing:.3px}
|
| 135 |
+
.pred-conf{font-size:20px;font-weight:900}
|
| 136 |
+
|
| 137 |
+
.bar-wrap{display:flex;align-items:center;gap:10px;margin:12px 0}
|
| 138 |
+
.bar{
|
| 139 |
+
flex:1;
|
| 140 |
+
height:10px;
|
| 141 |
+
border-radius:999px;
|
| 142 |
+
background:rgba(255,255,255,.1);
|
| 143 |
+
overflow:hidden;
|
| 144 |
+
}
|
| 145 |
+
.bar-fill{
|
| 146 |
+
height:100%;
|
| 147 |
+
background:linear-gradient(90deg, var(--accent), rgba(122,162,255,.4));
|
| 148 |
+
border-radius:999px;
|
| 149 |
+
width:0%;
|
| 150 |
+
}
|
| 151 |
+
.bar-text{color:var(--muted);font-weight:800}
|
| 152 |
+
|
| 153 |
+
.table{
|
| 154 |
+
width:100%;
|
| 155 |
+
border-collapse:collapse;
|
| 156 |
+
margin-top:6px;
|
| 157 |
+
}
|
| 158 |
+
.table th,.table td{
|
| 159 |
+
text-align:left;
|
| 160 |
+
padding:10px 8px;
|
| 161 |
+
border-bottom:1px solid rgba(255,255,255,.08);
|
| 162 |
+
}
|
| 163 |
+
.table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.8px}
|
| 164 |
+
|
| 165 |
+
.json{
|
| 166 |
+
margin-top:10px;
|
| 167 |
+
max-height:260px;
|
| 168 |
+
overflow:auto;
|
| 169 |
+
background:rgba(0,0,0,.28);
|
| 170 |
+
border:1px solid rgba(255,255,255,.08);
|
| 171 |
+
border-radius:12px;
|
| 172 |
+
padding:10px;
|
| 173 |
+
font-size:12px;
|
| 174 |
+
line-height:1.35;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.empty{color:var(--muted);padding:8px 2px}
|
| 178 |
+
|
| 179 |
+
.links{
|
| 180 |
+
margin-top:12px;
|
| 181 |
+
display:flex;
|
| 182 |
+
gap:12px;
|
| 183 |
+
}
|
| 184 |
+
.links a{
|
| 185 |
+
color:var(--accent);
|
| 186 |
+
text-decoration:none;
|
| 187 |
+
font-weight:700;
|
| 188 |
+
}
|
| 189 |
+
.links a:hover{text-decoration:underline}
|
| 190 |
+
|
| 191 |
+
.footer{margin-top:14px;color:var(--muted)}
|
| 192 |
+
.hidden{display:none !important}
|