Spaces:
Running on Zero
Running on Zero
File size: 18,038 Bytes
c84d21d 1963c43 c84d21d 6c691e6 c84d21d 1963c43 c84d21d 408abe9 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1cc0618 1963c43 c84d21d 1963c43 c84d21d 1963c43 3dd1a64 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d b997b37 de1ba41 c84d21d b997b37 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d f2ed620 c84d21d 1963c43 6c691e6 e574102 6c691e6 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 4e9d506 c84d21d 1963c43 c84d21d 4e9d506 c84d21d 4e9d506 c84d21d 3dd1a64 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 4e9d506 1963c43 c84d21d 4e9d506 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 1963c43 c84d21d 81b7a29 1963c43 81b7a29 1963c43 81b7a29 1963c43 81b7a29 160bddb 1963c43 160bddb 81fb298 | 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 | @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
body,.gradio-container{
background:#0f0a00!important;font-family:'Inter',system-ui,-apple-system,sans-serif!important;
font-size:14px!important;color:#fffbeb!important;min-height:100vh;
}
footer{display:none!important}
.hidden-input{display:none!important;height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
/* Hide gradio trigger buttons off-screen */
#detect-btn,#run-btn,#process-source-btn{
position:absolute!important;left:-9999px!important;top:-9999px!important;
width:1px!important;height:1px!important;opacity:0.01!important;
pointer-events:none!important;overflow:hidden!important;
}
/* ββ App shell ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.app-shell{
background:#1a1000;border:1px solid #d97706;border-radius:16px;
margin:12px auto;max-width:1300px;overflow:hidden;
box-shadow:0 25px 50px -12px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.04);
--body-text-color:#fffbeb;
}
.app-header{
background:linear-gradient(135deg,#1a1000,#261500);border-bottom:1px solid #d97706;
padding:14px 24px;display:flex;align-items:center;
}
.app-header-left{display:flex;align-items:center;gap:12px}
.app-logo{
width:36px;height:36px;background:linear-gradient(135deg,#fbbf24,#d97706);
border-radius:10px;display:flex;align-items:center;justify-content:center;
box-shadow:0 4px 12px rgba(217,119,6,.4);flex-shrink:0;
}
.app-logo svg{width:22px;height:22px}
.app-title{
font-size:18px;font-weight:700;
background:linear-gradient(135deg,#fffbeb,#fde68a);
-webkit-background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:-.3px;
}
.app-badge{
font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;
background:rgba(251,191,36,.15);color:#fbbf24;border:1px solid rgba(251,191,36,.3);letter-spacing:.3px;
}
/* ββ Notice βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.app-notice{padding:10px 24px;font-size:11px;color:#fffbeb!important;border-bottom:1px solid #d97706;background:rgba(255,255,255,.03)}
.app-notice strong{color:#fffbeb}
.app-notice a{color:#fbbf24;text-decoration:none}
.app-notice a:hover{text-decoration:underline}
.app-notice .notice-list{list-style:none!important;display:flex;flex-direction:column;gap:3px;margin:0;padding:0}
.app-notice .notice-list li{list-style:none!important;padding-left:14px;position:relative;line-height:1.6;color:#fffbeb!important}
.app-notice .notice-list li::before{content:"Β·";position:absolute;left:0;color:#fffbeb!important;font-weight:700}
/* ββ Main layout ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.app-main{display:flex;gap:0}
.app-left{flex:1;display:flex;flex-direction:column;min-width:0;border-right:1px solid #d97706}
.app-right{width:400px;flex-shrink:0;display:flex;flex-direction:column;background:#1a1000}
/* ββ Panel cards ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.panel-card{border-bottom:1px solid #d97706}
.panel-card-title{
padding:10px 20px;font-size:12px;font-weight:600;color:#fde68a;
text-transform:uppercase;letter-spacing:.8px;border-bottom:1px solid rgba(217,119,6,.6);
}
.panel-card-body{padding:16px 20px;display:flex;flex-direction:column;gap:10px}
/* ββ Drop zone (target image) βββββββββββββββββββββββββββββββββββββββββββββββ */
.drop-zone{
position:relative;background:#0f0a00;min-height:220px;border-radius:10px;
border:2px dashed #d97706;overflow:hidden;cursor:pointer;transition:border-color .2s,background .2s;
}
.drop-zone:hover{border-color:#b45309;background:rgba(217,119,6,.08)}
.drop-zone.drag-over{border-color:#fbbf24;background:rgba(251,191,36,.12);outline:2px solid #fbbf24;outline-offset:-2px}
.upload-prompt{
position:absolute;inset:0;pointer-events:none;
}
.upload-prompt svg{
width:56px;height:56px;
position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
}
.upload-main-text{
position:absolute;left:50%;transform:translateX(-50%);
top:calc(50% - 46px);white-space:nowrap;
color:#fde68a;font-size:14px;font-weight:500;
}
.upload-sub-text{
position:absolute;left:50%;transform:translateX(-50%);
top:calc(50% + 36px);white-space:nowrap;
color:#d97706;font-size:12px;
}
.target-preview{position:relative;width:100%;height:100%}
.target-preview img{width:100%;height:100%;object-fit:contain;max-height:340px;display:block}
.img-clear-btn{
position:absolute;top:8px;right:8px;width:28px;height:28px;
background:rgba(0,0,0,.75);color:#fff;border:1px solid rgba(255,255,255,.2);
border-radius:50%;cursor:pointer;font-size:13px;display:flex;align-items:center;
justify-content:center;transition:background .15s;z-index:10;
}
.img-clear-btn:hover{background:#fbbf24}
/* ββ Detect status bar ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.detect-status{
font-size:13px;font-weight:500;padding:8px 12px;border-radius:8px;
font-family:'JetBrains Mono',monospace;
}
.detect-status.detecting{background:rgba(59,130,246,.1);color:#60a5fa;border:1px solid rgba(59,130,246,.2)}
.detect-status.success{background:rgba(34,197,94,.1);color:#4ade80;border:1px solid rgba(34,197,94,.2)}
.detect-status.error{background:rgba(239,68,68,.1);color:#f87171;border:1px solid rgba(239,68,68,.2)}
/* ββ Face thumbnails grid βββββββββββββββββββββββββββββββββββββββββββββββββββ */
.face-thumbs-grid{
display:flex;flex-wrap:wrap;gap:10px;
}
.face-thumb{
position:relative;width:100px;height:100px;border-radius:10px;overflow:hidden;
cursor:pointer;border:2px solid #d97706;transition:all .2s ease;background:#0f0a00;
flex-shrink:0;
}
.face-thumb:hover{border-color:#f59e0b;transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.4)}
.face-thumb.selected{border-color:#fbbf24!important;box-shadow:0 0 0 3px rgba(251,191,36,.3)}
.face-thumb img{width:100%;height:100%;object-fit:cover}
.face-num{
position:absolute;bottom:4px;left:4px;
background:rgba(0,0,0,.7);color:#fff;padding:1px 6px;border-radius:4px;
font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:600;
}
.face-selected-check{
position:absolute;top:4px;right:4px;width:20px;height:20px;
background:#fbbf24;border-radius:50%;display:none;align-items:center;justify-content:center;
font-size:11px;color:#fff;font-weight:700;
}
.face-thumb.selected .face-selected-check{display:flex}
/* ββ Source uploads grid ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.source-uploads-grid{
display:flex;flex-wrap:wrap;gap:12px;
}
.source-upload-box{
display:flex;flex-direction:column;align-items:center;gap:6px;width:130px;
}
.source-upload-label{
font-size:12px;font-weight:600;color:#fde68a;text-transform:uppercase;letter-spacing:.5px;
}
.source-drop-area{
width:120px;height:120px;border-radius:10px;border:2px dashed #d97706;
background:#0f0a00;display:flex;flex-direction:column;align-items:center;
justify-content:center;gap:6px;cursor:pointer;transition:all .2s;
font-size:11px;color:#fde68a;text-align:center;padding:8px;
}
.source-drop-area:hover{border-color:#b45309;background:rgba(217,119,6,.1);color:#fbbf24}
.source-drop-area.drag-over{border-color:#fbbf24;background:rgba(251,191,36,.15)}
.source-drop-area svg{width:32px;height:32px;opacity:.7}
.source-thumb-container{
position:relative;width:120px;height:120px;border-radius:10px;overflow:hidden;
border:2px solid #fbbf24;
}
.source-thumb-img{width:100%;height:100%;object-fit:contain}
.source-clear-btn{
position:absolute;top:4px;right:4px;width:22px;height:22px;
background:rgba(0,0,0,.75);color:#fff;border:1px solid rgba(255,255,255,.2);
border-radius:50%;cursor:pointer;font-size:11px;display:flex;align-items:center;
justify-content:center;transition:background .15s;
}
.source-clear-btn:hover{background:#fbbf24}
.source-processing-box{
width:120px;height:120px;border-radius:10px;border:2px dashed #d97706;
background:#0f0a00;display:flex;flex-direction:column;align-items:center;
justify-content:center;gap:8px;
}
.source-processing-spinner{
width:24px;height:24px;border:2px solid #d97706;border-top-color:#fbbf24;
border-radius:50%;animation:spin .8s linear infinite;
}
.source-processing-text{font-size:11px;color:#fde68a}
.source-no-face-box{
width:120px;height:120px;border-radius:10px;border:2px dashed #ef4444;
background:#0f0a00;display:flex;flex-direction:column;align-items:center;
justify-content:center;gap:4px;cursor:pointer;padding:8px;text-align:center;
transition:all .2s;
}
.source-no-face-box:hover{border-color:#dc2626;background:rgba(239,68,68,.08)}
.source-no-face-box.drag-over{border-color:#fbbf24;background:rgba(251,191,36,.12)}
.source-no-face-icon{font-size:22px;color:#f87171;line-height:1}
.source-no-face-text{font-size:11px;font-weight:600;color:#f87171}
.source-no-face-sub{font-size:10px;color:#fca5a5}
/* ββ Hint text ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.hint-text{font-size:12px;color:#f59e0b;line-height:1.5}
/* ββ Run button βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.btn-run{
display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
background:linear-gradient(135deg,#d97706,#fbbf24);border:none;border-radius:10px;
padding:13px 24px;cursor:pointer;font-size:15px;font-weight:600;font-family:'Inter',sans-serif;
color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;
transition:all .2s ease;letter-spacing:-.2px;
box-shadow:0 4px 16px rgba(217,119,6,.4),inset 0 1px 0 rgba(255,255,255,.1);
-webkit-appearance:none;appearance:none;
}
.btn-run:hover:not(:disabled){
background:linear-gradient(135deg,#b45309,#f59e0b);transform:translateY(-1px);
box-shadow:0 6px 24px rgba(217,119,6,.5),inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-run:active:not(:disabled){transform:translateY(0)}
.btn-run:disabled{
background:rgba(217,119,6,.12)!important;
border:1px solid rgba(217,119,6,.2);
color:#7a5c1e!important;-webkit-text-fill-color:#7a5c1e!important;
cursor:not-allowed;box-shadow:none;
}
.btn-run svg{width:18px;height:18px;flex-shrink:0}
.btn-run:disabled svg polygon{fill:#7a5c1e}
/* ββ Output frame βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.output-frame{flex:1;display:flex;flex-direction:column}
.out-title{
padding:10px 20px;font-size:12px;font-weight:600;color:#fde68a;
text-transform:uppercase;letter-spacing:.8px;border-bottom:1px solid rgba(217,119,6,.6);
display:flex;align-items:center;justify-content:space-between;
}
.out-title span{color:#fde68a}
.out-body{
flex:1;background:#0f0a00;display:flex;align-items:center;justify-content:center;
overflow:hidden;min-height:260px;position:relative;
}
.out-body img{max-width:100%;max-height:500px;object-fit:contain;image-rendering:auto}
.out-placeholder{color:#f59e0b;font-size:13px;text-align:center;padding:20px}
.out-download-btn{
display:none;align-items:center;gap:5px;padding:3px 10px;height:24px;
background:rgba(217,119,6,.15)!important;border:1px solid rgba(217,119,6,.3);border-radius:6px;
color:#fbbf24!important;-webkit-text-fill-color:#fbbf24!important;
font-size:11px;font-weight:500;cursor:pointer;transition:all .15s;
-webkit-appearance:none;appearance:none;
}
.out-download-btn:hover{background:rgba(217,119,6,.3);color:#fff!important;-webkit-text-fill-color:#fff!important}
.out-download-btn.visible{display:inline-flex}
.out-download-btn svg{width:12px;height:12px;stroke:#fbbf24;stroke-width:2;fill:none}
/* ββ Loader βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.modern-loader{
display:none;position:absolute;top:0;left:0;right:0;bottom:0;
background:rgba(15,10,0,.92);z-index:15;
flex-direction:column;align-items:center;justify-content:center;gap:16px;
backdrop-filter:blur(4px);
}
.modern-loader.active{display:flex}
.loader-spinner{
width:36px;height:36px;border:3px solid #d97706;border-top-color:#fbbf24;
border-radius:50%;animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.loader-text{font-size:13px;color:#fde68a;font-weight:500}
.loader-bar-track{width:200px;height:4px;background:#d97706;border-radius:2px;overflow:hidden}
.loader-bar-fill{
height:100%;background:linear-gradient(90deg,#d97706,#fbbf24,#d97706);
background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:2px;
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* ββ Toast notifications ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.toast-notification{
position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-120%);
z-index:9999;padding:10px 24px;border-radius:10px;font-family:'Inter',sans-serif;
font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;
box-shadow:0 8px 24px rgba(0,0,0,.5);
transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .35s ease;
opacity:0;pointer-events:none;
}
.toast-notification.visible{transform:translateX(-50%) translateY(0);opacity:1;pointer-events:auto}
.toast-notification.error{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff;border:1px solid rgba(255,255,255,.15)}
.toast-notification.warning{background:linear-gradient(135deg,#d97706,#b45309);color:#fff;border:1px solid rgba(255,255,255,.15)}
.toast-notification.info{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:1px solid rgba(255,255,255,.15)}
.toast-notification .toast-icon{font-size:16px;line-height:1}
/* ββ Scrollbars βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#0f0a00}
::-webkit-scrollbar-thumb{background:#d97706;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#f59e0b}
/* ββ Responsive βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@media(max-width:860px){
.app-main{flex-direction:column}
.app-right{width:100%;border-top:1px solid #d97706}
.app-left{border-right:none}
}
/* ββ Privacy Policy ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.privacy-details{border-top:1px solid #d97706;font-size:11px;color:#fffbeb}
.privacy-details summary{padding:8px 24px;cursor:pointer;color:#fbbf24;user-select:none;list-style:none}
.privacy-details summary::-webkit-details-marker{display:none}
.privacy-details summary::before{content:"βΈ ";font-size:10px}
.privacy-details[open] summary::before{content:"βΎ "}
.privacy-body{padding:12px 24px 20px;display:flex;flex-direction:column;gap:8px;max-width:800px}
.privacy-body h4{margin:8px 0 2px;color:#fffbeb;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.privacy-body p,.privacy-body li{line-height:1.6;color:#fde68a;margin:0}
.privacy-body ul{padding-left:16px;margin:4px 0;display:flex;flex-direction:column;gap:2px}
.privacy-body a{color:#fbbf24;text-decoration:none}
.privacy-body a:hover{text-decoration:underline}
/* ββ Consent checkbox ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.consent-label{display:flex;align-items:flex-start;gap:8px;cursor:pointer;font-size:11px;color:#fde68a;line-height:1.5;padding:4px 0 10px}
.consent-label input[type="checkbox"]{margin-top:2px;flex-shrink:0;accent-color:#fbbf24;width:14px;height:14px;cursor:pointer}
.consent-label a{color:#fbbf24;text-decoration:none}
.consent-label a:hover{text-decoration:underline}
/* ββ Mode toggle βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.app-badge.flux{background:rgba(139,92,246,.15);color:#a78bfa;border:1px solid rgba(139,92,246,.3)}
|