File size: 18,126 Bytes
eecf0b0 e0dfb13 bc2054f eecf0b0 fbbf7ba 6dd1ef7 bc2054f 6ded937 bc2054f 6ded937 bc2054f 6ded937 e0dfb13 6dd1ef7 bc2054f 6ded937 e0dfb13 6ded937 6dd1ef7 6ded937 bc2054f 6ded937 fbbf7ba bc2054f fbbf7ba ab826ee e0dfb13 ab826ee fbbf7ba bc2054f 6dd1ef7 bc2054f 6dd1ef7 bc2054f e0dfb13 ab826ee 33f8aeb e0dfb13 ab826ee e0dfb13 eecf0b0 e0dfb13 bc2054f 6ded937 6dd1ef7 6ded937 bc2054f 6ded937 bc2054f 6ded937 bc2054f 6ded937 bc2054f 6ded937 bc2054f 6ded937 bc2054f 6dd1ef7 6ded937 bc2054f eecf0b0 e0dfb13 eecf0b0 fbbf7ba 6dd1ef7 fbbf7ba 6dd1ef7 6ded937 e0dfb13 fbbf7ba e0dfb13 6dd1ef7 6ded937 e0dfb13 6dd1ef7 fbbf7ba ab826ee 6ded937 6dd1ef7 fbbf7ba e0dfb13 fbbf7ba 6dd1ef7 fbbf7ba eecf0b0 6ded937 eecf0b0 6dd1ef7 eecf0b0 fbbf7ba ab826ee 6ded937 ab826ee e0dfb13 fbbf7ba e0dfb13 6ded937 fbbf7ba ab826ee e0dfb13 6ded937 e0dfb13 fbbf7ba e0dfb13 6ded937 fbbf7ba eecf0b0 6dd1ef7 eecf0b0 6dd1ef7 bc2054f e0dfb13 6ded937 e0dfb13 ab826ee 6ded937 e0dfb13 6ded937 e0dfb13 ab826ee fbbf7ba 6ded937 e0dfb13 fbbf7ba eecf0b0 e0dfb13 eecf0b0 6ded937 fbbf7ba e0dfb13 6ded937 ab826ee 6ded937 ab826ee 6ded937 e0dfb13 fbbf7ba 6ded937 e0dfb13 eecf0b0 fbbf7ba eecf0b0 e0dfb13 eecf0b0 fbbf7ba 6ded937 e0dfb13 6ded937 ab826ee e0dfb13 fbbf7ba 6ded937 e0dfb13 6ded937 fbbf7ba eecf0b0 bc2054f 6dd1ef7 bc2054f 6dd1ef7 bc2054f 6dd1ef7 bc2054f 6dd1ef7 bc2054f 6dd1ef7 bc2054f eecf0b0 e0dfb13 eecf0b0 fbbf7ba ab826ee 6ded937 eecf0b0 6ded937 e0dfb13 6ded937 e0dfb13 6ded937 | 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 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | /* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Neighbourhood Guide β Catpuccin Theme
Mocha (dark default) | Latte (light via .light on <html>)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');
/* ββ Mocha (Dark) βββββββββββββββββββββββββββββββββββββββββββββββ */
:root, html:not(.light) {
--peach: #fab387; --peach-dim: #e8935a;
--green: #a6e3a1; --red: #f38ba8;
--text: #cdd6f4; --text-2: #bac2de; --text-3: #7f849c;
--sf2: #585b70; --sf1: #45475a; --sf0: #313244;
--base: #1e1e2e; --mantle: #181825; --crust: #11111b;
--accent: var(--peach); --accent-h: var(--peach-dim); --accent-s: rgba(250,179,135,0.12);
--sage: var(--green); --sage-s: rgba(166,227,161,0.1);
--bdr: var(--sf1); --bdr-l: var(--sf0);
--surf: var(--mantle); --surf-r: var(--sf0);
--shadow: 0 2px 8px rgba(0,0,0,0.25);
--r1: 10px; --r2: 14px; --r3: 18px; --rf: 999px;
}
/* ββ Latte (Light) ββββββββββββββββββββββββββββββββββββββββββββββ */
html.light {
--peach: #fe640b; --peach-dim: #e85d0a;
--green: #40a02b; --red: #d20f39;
--text: #4c4f69; --text-2: #5c5f77; --text-3: #8c8fa1;
--sf2: #acb0be; --sf1: #bcc0cc; --sf0: #ccd0da;
--base: #eff1f5; --mantle: #e6e9ef; --crust: #dce0e8;
--accent-s: rgba(254,100,11,0.08);
--sage-s: rgba(64,160,43,0.06);
--shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
BASE
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
html, body,
.gradio-container,
.gradio-container .contain,
.gradio-container > div,
.gradio-container > div > div {
background: var(--base) !important;
color: var(--text) !important;
}
.gradio-container {
font-family: 'DM Sans', -apple-system, sans-serif !important;
-webkit-font-smoothing: antialiased;
}
.gradio-container .contain {
max-width: 1100px !important;
padding: 8px 20px 60px !important;
margin: 0 auto !important;
}
.gradio-container footer,
.gradio-container .footer { display: none !important; }
/* Typography */
.gradio-container *,
.gradio-container p, .gradio-container span, .gradio-container label,
.gradio-container .prose, .gradio-container .prose * {
font-family: 'DM Sans', sans-serif !important;
color: var(--text) !important;
}
.gradio-container h1, .gradio-container h2, .gradio-container h3,
.gradio-container .prose h1, .gradio-container .prose h2, .gradio-container .prose h3 {
font-family: 'Fraunces', serif !important;
color: var(--text) !important;
}
.gradio-container .prose strong { color: var(--accent) !important; }
.gradio-container .prose hr { border: none !important; border-top: 1px solid var(--bdr-l) !important; margin: 16px 0 !important; }
/* Form controls β uniform */
.gradio-container input[type="text"],
.gradio-container input[type="number"],
.gradio-container textarea,
.gradio-container select,
.gradio-container .wrap .dropdown-container,
.gradio-container .wrap input {
font-family: 'DM Sans', sans-serif !important;
color: var(--text) !important;
background: var(--surf) !important;
border: 1.5px solid var(--bdr) !important;
border-radius: var(--r2) !important;
box-shadow: none !important;
outline: none !important;
}
.gradio-container input:focus,
.gradio-container textarea:focus,
.gradio-container select:focus,
.gradio-container .wrap .dropdown-container:focus-within {
border-color: var(--accent) !important;
box-shadow: 0 0 0 3px var(--accent-s) !important;
outline: none !important;
}
.gradio-container label,
.gradio-container .wrap label,
.gradio-container .label-wrap {
font-family: 'DM Sans', sans-serif !important;
font-weight: 600 !important;
font-size: 0.82em !important;
color: var(--text-2) !important;
}
.gradio-container button,
.gradio-container .wrap button { font-family: 'DM Sans', sans-serif !important; }
.gradio-container button.primary {
background: var(--accent) !important;
border-color: var(--accent) !important;
color: var(--crust) !important;
}
.gradio-container button.secondary {
background: var(--surf-r) !important;
border-color: var(--bdr) !important;
color: var(--text) !important;
}
.gradio-container .wrap .dropdown-container .options,
.gradio-container .wrap .dropdown-container .options > li {
background: var(--surf) !important;
color: var(--text) !important;
border-color: var(--bdr) !important;
}
.gradio-container .wrap .dropdown-container .options > li:hover,
.gradio-container .wrap .dropdown-container .options > li.selected {
background: var(--accent-s) !important;
color: var(--accent) !important;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
HERO
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.hero { text-align: center; padding: 20px 0 16px; position: relative; }
.hero::before {
content: ''; position: absolute;
top: -30px; left: 50%; transform: translateX(-50%);
width: 220px; height: 220px;
background: radial-gradient(circle, var(--accent-s) 0%, transparent 70%);
pointer-events: none; opacity: 0.5;
}
.hero-badge {
display: inline-block;
background: var(--accent-s); color: var(--accent);
font-size: 0.6em; font-weight: 700;
letter-spacing: 0.1em; text-transform: uppercase;
padding: 3px 10px; border-radius: var(--rf);
margin-bottom: 8px; position: relative;
}
.hero h1 {
font-family: 'Fraunces', serif !important;
font-size: 1.7em !important; font-weight: 700 !important;
color: var(--text) !important; line-height: 1.1 !important;
letter-spacing: -0.02em; margin-bottom: 4px !important;
}
.hero h1 em { color: var(--accent) !important; font-style: italic; }
.hero-sub {
font-size: 0.85em; color: var(--text-2) !important;
line-height: 1.5; max-width: 260px; margin: 0 auto;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
LAYOUT
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.main-grid { gap: 20px !important; }
.col-input, .col-output { min-width: 0 !important; }
@media (min-width: 768px) {
.main-grid { display: flex !important; gap: 28px !important; }
.col-input { flex: 1 !important; }
.col-output { flex: 1 !important; position: sticky !important; top: 20px !important; align-self: flex-start !important; }
.hero h1 { font-size: 2.1em !important; }
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SECTION LABELS & DIVIDER
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.section-label {
font-family: 'Fraunces', serif !important;
font-size: 0.95em !important; font-weight: 600 !important;
color: var(--text) !important;
margin: 16px 0 8px !important;
display: flex; align-items: center; gap: 6px;
}
.section-label .icon { font-size: 1.1em; }
.quick-header { margin-top: 18px !important; }
.divider {
display: flex !important; align-items: center !important;
gap: 12px !important; margin: 14px 0 !important;
color: var(--text-3) !important;
font-size: 0.7em !important; font-weight: 600 !important;
letter-spacing: 0.08em !important; text-transform: uppercase !important;
}
.divider::before, .divider::after {
content: '' !important; flex: 1 !important; height: 1px !important;
background: var(--bdr-l) !important;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MICROPHONE COMPONENT (visible, styled)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* Style the whole audio component container */
.mic-component {
background: var(--surf) !important;
border: 1.5px solid var(--bdr) !important;
border-radius: var(--r3) !important;
padding: 12px !important;
margin-bottom: 4px !important;
}
/* Style the record/stop button to be round and prominent */
.mic-component button[aria-label*="ecord"],
.mic-component button[aria-label*="icro"],
.mic-component .record-btn,
.mic-component .audio-container > button,
.mic-component > div > button {
width: 64px !important;
height: 64px !important;
border-radius: 50% !important;
background: linear-gradient(145deg, var(--accent), var(--accent-h)) !important;
border: none !important;
color: var(--crust) !important;
font-size: 1.3em !important;
box-shadow: 0 3px 16px rgba(250,179,135,0.25) !important;
transition: transform 0.2s ease, box-shadow 0.2s ease !important;
margin: 8px auto !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
.mic-component button[aria-label*="ecord"]:hover,
.mic-component button[aria-label*="icro"]:hover,
.mic-component .record-btn:hover {
transform: scale(1.08) !important;
box-shadow: 0 6px 24px rgba(250,179,135,0.4) !important;
}
.mic-component button[aria-label*="ecord"]:active,
.mic-component button[aria-label*="icro"]:active {
transform: scale(0.95) !important;
}
/* Center audio content */
.mic-component .audio-container,
.mic-component > div {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
}
/* Style the waveform/player area */
.mic-component audio,
.mic-component .audio-player {
border-radius: var(--r2) !important;
width: 100% !important;
}
/* Hide upload button (we only want mic) */
.mic-component .upload-btn,
.mic-component button[aria-label*="upload"],
.mic-component button[aria-label*="Upload"] {
display: none !important;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TEXT INPUT
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.text-input-wrap textarea {
font-size: 0.9em !important;
min-height: 50px !important;
padding: 12px 14px !important;
}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
SUBMIT BUTTON
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.submit-btn {
background: var(--accent) !important;
border-color: var(--accent) !important;
color: var(--crust) !important;
border-radius: var(--r2) !important;
font-weight: 700 !important;
font-size: 0.9em !important;
min-height: 42px !important;
margin-top: 4px !important;
transition: background 0.15s ease, transform 0.15s ease !important;
}
.submit-btn:hover { background: var(--accent-h) !important; transform: translateY(-1px) !important; }
.submit-btn:active { transform: translateY(0) !important; }
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
QUICK ACTIONS
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.quick-row { gap: 6px !important; margin-bottom: 6px !important; }
.quick-btn {
flex: 1 !important;
background: var(--surf) !important;
border: 1.5px solid var(--bdr) !important;
border-radius: var(--r1) !important;
color: var(--text) !important;
font-size: 0.76em !important;
font-weight: 500 !important;
padding: 9px 6px !important;
min-height: 40px !important;
text-align: center !important;
justify-content: center !important;
transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease !important;
}
.quick-btn:hover { border-color: var(--sage) !important; background: var(--sage-s) !important; transform: translateY(-1px) !important; }
.quick-btn:active { transform: translateY(0) !important; }
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RESPONSE
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.response-card {
background: var(--surf) !important;
border: 1.5px solid var(--bdr) !important;
border-radius: var(--r3) !important;
padding: 18px !important;
min-height: 120px !important;
font-size: 0.9em !important;
line-height: 1.7 !important;
box-shadow: var(--shadow) !important;
}
.response-card .prose h3 { font-family: 'Fraunces', serif !important; font-size: 1em !important; margin: 16px 0 6px !important; }
.response-card .prose h3:first-child { margin-top: 0 !important; }
.response-card .prose strong { color: var(--accent) !important; }
.response-card .prose hr { border: none; border-top: 1px solid var(--bdr-l); margin: 14px 0; }
.audio-out { margin-top: 10px !important; }
.audio-out audio { border-radius: var(--r2) !important; }
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
THEME TOGGLE (injected by JS)
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.theme-toggle {
position: fixed !important; top: 12px !important; right: 12px !important;
z-index: 9999 !important;
width: 38px !important; height: 38px !important;
border-radius: 50% !important;
background: var(--surf-r) !important;
border: 1.5px solid var(--bdr) !important;
cursor: pointer !important;
font-size: 1.1em !important;
display: flex !important; align-items: center !important; justify-content: center !important;
transition: border-color 0.2s ease !important;
line-height: 1 !important; color: var(--text) !important;
box-shadow: none !important; padding: 0 !important;
min-height: unset !important; min-width: unset !important;
}
.theme-toggle:hover { border-color: var(--accent) !important; background: var(--accent-s) !important; }
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
FOOTER
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.footer {
text-align: center !important;
padding-top: 20px !important;
border-top: 1px solid var(--bdr-l) !important;
margin-top: 20px !important;
}
.footer-text { font-size: 0.7em !important; color: var(--text-3) !important; line-height: 1.6 !important; }
.footer-text.sub { margin-top: 2px !important; }
.footer-text a { color: var(--accent) !important; text-decoration: none !important; font-weight: 500 !important; }
.footer-text a:hover { text-decoration: underline !important; }
.footer-models { display: flex !important; justify-content: center !important; gap: 6px !important; margin-top: 10px !important; flex-wrap: wrap !important; }
.footer-chip { font-size: 0.62em !important; color: var(--text-3) !important; background: var(--surf-r) !important; border: 1px solid var(--bdr) !important; padding: 3px 10px !important; border-radius: var(--rf) !important; }
|