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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ===== TwoQuarks skin for Gradio (ported from index.html) ===== */
|
| 2 |
+
*{margin:0;padding:0;box-sizing:border-box}
|
| 3 |
+
|
| 4 |
+
:root{
|
| 5 |
+
--bg:#000; --fg:#fff; --muted:rgba(255,255,255,.55);
|
| 6 |
+
--card:rgba(255,255,255,.04); --card2:rgba(255,255,255,.08);
|
| 7 |
+
--stroke:rgba(255,255,255,.10); --glass:rgba(0,0,0,.38);
|
| 8 |
+
--accent:#8cb4ff;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
html,body{height:100%}
|
| 12 |
+
body, .gradio-container{
|
| 13 |
+
font-family: Inter, ui-sans-serif, system-ui, Arial;
|
| 14 |
+
background:var(--bg) !important;
|
| 15 |
+
color:var(--fg) !important;
|
| 16 |
+
overflow-x:hidden;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* Starfield canvas like your site */
|
| 20 |
+
#quantumField{
|
| 21 |
+
position:fixed; inset:0;
|
| 22 |
+
width:100vw; height:100vh;
|
| 23 |
+
z-index:0;
|
| 24 |
+
background:#000;
|
| 25 |
+
pointer-events:none;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* Fixed Nav (TwoQuarks style) */
|
| 29 |
+
#tqNav{
|
| 30 |
+
position: fixed;
|
| 31 |
+
top: 0; left: 0; right: 0;
|
| 32 |
+
z-index: 1000;
|
| 33 |
+
padding: 14px 24px;
|
| 34 |
+
background: var(--glass);
|
| 35 |
+
backdrop-filter: blur(12px);
|
| 36 |
+
border-bottom: 1px solid rgba(255,255,255,.06);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
#tqNav .nav-inner{
|
| 40 |
+
max-width: 1200px;
|
| 41 |
+
margin: 0 auto;
|
| 42 |
+
display:flex;
|
| 43 |
+
align-items:center;
|
| 44 |
+
gap: 16px;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
#tqNav .brand{
|
| 48 |
+
font-weight: 700;
|
| 49 |
+
font-size: 1.1rem;
|
| 50 |
+
letter-spacing: .2px;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
#tqNav .nav-links{
|
| 54 |
+
display:flex;
|
| 55 |
+
gap:10px;
|
| 56 |
+
margin-left: 18px;
|
| 57 |
+
flex-wrap: wrap;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
#tqNav .nav-links a{
|
| 61 |
+
text-decoration:none;
|
| 62 |
+
color: var(--fg);
|
| 63 |
+
padding: 8px 12px;
|
| 64 |
+
border: 1px solid rgba(255,255,255,.12);
|
| 65 |
+
border-radius: 999px;
|
| 66 |
+
font-size: .9rem;
|
| 67 |
+
opacity: .86;
|
| 68 |
+
transition: .15s ease;
|
| 69 |
+
white-space: nowrap;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
#tqNav .nav-links a:hover{
|
| 73 |
+
opacity: 1;
|
| 74 |
+
background: rgba(255,255,255,.06);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
#tqNav .spacer{ flex:1; }
|
| 78 |
+
|
| 79 |
+
#tqNav .menu-btn{
|
| 80 |
+
width: 40px;
|
| 81 |
+
height: 40px;
|
| 82 |
+
display:flex;
|
| 83 |
+
align-items:center;
|
| 84 |
+
justify-content:center;
|
| 85 |
+
border: 1px solid rgba(255,255,255,.18);
|
| 86 |
+
border-radius: 12px;
|
| 87 |
+
cursor: pointer;
|
| 88 |
+
background: rgba(255,255,255,.02);
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
#tqNav .menu-btn span{
|
| 92 |
+
display:block;
|
| 93 |
+
width:18px;
|
| 94 |
+
height:2px;
|
| 95 |
+
background:#fff;
|
| 96 |
+
position:relative;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
#tqNav .menu-btn span::before,
|
| 100 |
+
#tqNav .menu-btn span::after{
|
| 101 |
+
content:"";
|
| 102 |
+
position:absolute;
|
| 103 |
+
left:0;
|
| 104 |
+
width:18px;
|
| 105 |
+
height:2px;
|
| 106 |
+
background:#fff;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
#tqNav .menu-btn span::before{ top:-6px; }
|
| 110 |
+
#tqNav .menu-btn span::after{ top: 6px; }
|
| 111 |
+
|
| 112 |
+
#tqNav .menu{
|
| 113 |
+
position:absolute;
|
| 114 |
+
top: 60px;
|
| 115 |
+
right: 24px;
|
| 116 |
+
min-width: 220px;
|
| 117 |
+
padding: 10px;
|
| 118 |
+
border-radius: 14px;
|
| 119 |
+
background: var(--glass);
|
| 120 |
+
backdrop-filter: blur(14px);
|
| 121 |
+
border: 1px solid rgba(255,255,255,.10);
|
| 122 |
+
box-shadow: 0 0 30px rgba(0,0,0,.6);
|
| 123 |
+
display:none;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
#tqNav .menu.open{ display:block; }
|
| 127 |
+
|
| 128 |
+
#tqNav .menu a{
|
| 129 |
+
display:block;
|
| 130 |
+
padding: 10px 10px;
|
| 131 |
+
border-radius: 10px;
|
| 132 |
+
text-decoration:none;
|
| 133 |
+
color: var(--fg);
|
| 134 |
+
opacity: .9;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
#tqNav .menu a:hover{
|
| 138 |
+
background: rgba(255,255,255,.06);
|
| 139 |
+
opacity: 1;
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
#tqNav .menu .sep{
|
| 143 |
+
height:1px;
|
| 144 |
+
background: rgba(255,255,255,.10);
|
| 145 |
+
margin: 8px 2px;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
/* Make app sit above canvas and below fixed nav */
|
| 149 |
+
#tqApp{
|
| 150 |
+
position:relative;
|
| 151 |
+
z-index:1;
|
| 152 |
+
padding-top: 84px;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
/* Hero / header panel (glass) */
|
| 156 |
+
.tq-hero{
|
| 157 |
+
margin: 10px 0 14px 0;
|
| 158 |
+
padding: 14px 18px;
|
| 159 |
+
background: var(--glass);
|
| 160 |
+
backdrop-filter: blur(12px);
|
| 161 |
+
border: 1px solid rgba(255,255,255,.06);
|
| 162 |
+
border-radius: 14px;
|
| 163 |
+
}
|
| 164 |
+
.tq-hero .brand{
|
| 165 |
+
font-weight:700; letter-spacing:.2px; font-size:1.1rem;
|
| 166 |
+
}
|
| 167 |
+
.tq-hero .desc{
|
| 168 |
+
margin-top:8px;
|
| 169 |
+
color: var(--muted);
|
| 170 |
+
font-size: .98rem;
|
| 171 |
+
line-height: 1.55;
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
/* Cards / panels */
|
| 175 |
+
.gradio-container .gr-panel,
|
| 176 |
+
.gradio-container .block,
|
| 177 |
+
.gradio-container .wrap{
|
| 178 |
+
border:1px solid var(--stroke) !important;
|
| 179 |
+
background: var(--card) !important;
|
| 180 |
+
backdrop-filter: blur(8px) !important;
|
| 181 |
+
border-radius: 12px !important;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/* Hover effect on panels that look like cards */
|
| 185 |
+
.gradio-container .gr-panel:hover{
|
| 186 |
+
background: var(--card2) !important;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
/* Tabs (match pill vibe) */
|
| 190 |
+
.gradio-container .gr-tab-nav{
|
| 191 |
+
background: transparent !important;
|
| 192 |
+
border: none !important;
|
| 193 |
+
gap: 10px !important;
|
| 194 |
+
}
|
| 195 |
+
.gradio-container .gr-tab-nav button{
|
| 196 |
+
border:1px solid rgba(255,255,255,.12) !important;
|
| 197 |
+
border-radius:999px !important;
|
| 198 |
+
padding:8px 12px !important;
|
| 199 |
+
color: var(--fg) !important;
|
| 200 |
+
opacity:.86 !important;
|
| 201 |
+
background: rgba(255,255,255,.00) !important;
|
| 202 |
+
transition:.18s ease !important;
|
| 203 |
+
}
|
| 204 |
+
.gradio-container .gr-tab-nav button:hover{
|
| 205 |
+
opacity:1 !important;
|
| 206 |
+
background: rgba(255,255,255,.06) !important;
|
| 207 |
+
}
|
| 208 |
+
.gradio-container .gr-tab-nav button.selected{
|
| 209 |
+
opacity: 1 !important;
|
| 210 |
+
border-color: rgba(140,180,255,.55) !important;
|
| 211 |
+
box-shadow: 0 0 0 1px rgba(140,180,255,.20) inset !important;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
/* Inputs */
|
| 215 |
+
.gradio-container input,
|
| 216 |
+
.gradio-container textarea{
|
| 217 |
+
background: rgba(255,255,255,.03) !important;
|
| 218 |
+
border:1px solid rgba(255,255,255,.14) !important;
|
| 219 |
+
color: var(--fg) !important;
|
| 220 |
+
border-radius: 12px !important;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/* Buttons like your .btn */
|
| 224 |
+
.gradio-container button,
|
| 225 |
+
.gradio-container .gr-button{
|
| 226 |
+
color: var(--fg) !important;
|
| 227 |
+
border:1px solid rgba(255,255,255,.14) !important;
|
| 228 |
+
background: rgba(255,255,255,.03) !important;
|
| 229 |
+
border-radius:999px !important;
|
| 230 |
+
padding:10px 14px !important;
|
| 231 |
+
opacity:.92 !important;
|
| 232 |
+
transition:.15s ease !important;
|
| 233 |
+
}
|
| 234 |
+
.gradio-container button:hover,
|
| 235 |
+
.gradio-container .gr-button:hover{
|
| 236 |
+
opacity:1 !important;
|
| 237 |
+
background: rgba(255,255,255,.07) !important;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
/* Gallery tweaks */
|
| 241 |
+
.gradio-container .gallery{
|
| 242 |
+
border-radius: 14px !important;
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
/* Range accent */
|
| 246 |
+
input[type="range"]{ accent-color: var(--accent); }
|
| 247 |
+
|
| 248 |
+
/* Optional: hide Gradio footer */
|
| 249 |
+
footer{ display:none !important; }
|