DOM automation for Google Labs Flow — background worker injects trusted input via the DevTools Protocol (Flow's editor ignores synthetic events), polls a local queue, harvests generated asset URLs. Includes the generated game+promo prompt bank. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
370 lines
7.1 KiB
CSS
370 lines
7.1 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Mono&display=swap');
|
|
|
|
:root {
|
|
--bg-main: #0b0c10;
|
|
--bg-card: rgba(22, 24, 33, 0.85);
|
|
--bg-card-hover: rgba(29, 32, 44, 0.9);
|
|
--border-color: rgba(255, 255, 255, 0.08);
|
|
--text-primary: #f3f4f6;
|
|
--text-secondary: #9ca3af;
|
|
--text-muted: #6b7280;
|
|
|
|
--primary-glow: rgba(139, 92, 246, 0.5);
|
|
--primary: #8b5cf6;
|
|
--primary-hover: #a78bfa;
|
|
|
|
--danger: #ef4444;
|
|
--danger-hover: #f87171;
|
|
--danger-glow: rgba(239, 68, 68, 0.4);
|
|
|
|
--success: #10b981;
|
|
--success-glow: rgba(16, 185, 129, 0.4);
|
|
|
|
--warning: #f59e0b;
|
|
|
|
--font-sans: 'Outfit', sans-serif;
|
|
--font-mono: 'Space Mono', monospace;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
width: 360px;
|
|
background-color: var(--bg-main);
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
font-size: 14px;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
background-image: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 60%);
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
.logo-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 24px;
|
|
background: linear-gradient(135deg, #a78bfa, #8b5cf6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
filter: drop-shadow(0 2px 8px var(--primary-glow));
|
|
}
|
|
|
|
.logo-text h1 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.5px;
|
|
background: linear-gradient(to right, #ffffff, #e2e8f0);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.logo-text .subtext {
|
|
font-size: 10px;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* Status Indicator */
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.status-indicator .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: var(--text-muted);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.status-indicator.active .dot {
|
|
background-color: var(--success);
|
|
box-shadow: 0 0 8px var(--success-glow);
|
|
animation: pulse 1.8s infinite;
|
|
}
|
|
|
|
.status-indicator.error .dot {
|
|
background-color: var(--danger);
|
|
box-shadow: 0 0 8px var(--danger-glow);
|
|
}
|
|
|
|
.status-indicator.paused .dot {
|
|
background-color: var(--warning);
|
|
box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
label {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input[type="url"],
|
|
input[type="text"],
|
|
input[type="number"] {
|
|
width: 100%;
|
|
background: rgba(15, 17, 26, 0.8);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
font-size: 13px;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
width: 100%;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
font-weight: 600;
|
|
font-family: var(--font-sans);
|
|
cursor: pointer;
|
|
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn-primary.start-state {
|
|
background: linear-gradient(135deg, #8b5cf6, #6366f1);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.btn-primary.start-state:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
|
|
}
|
|
|
|
.btn-primary.stop-state {
|
|
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.btn-primary.stop-state:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
/* Console Section */
|
|
.console-section {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.console-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.btn-text {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-family: var(--font-sans);
|
|
font-size: 11px;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.btn-text:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.console-body {
|
|
background: rgba(10, 11, 15, 0.7);
|
|
border-radius: 8px;
|
|
height: 120px;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.console-body::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.console-body::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.log-entry {
|
|
word-break: break-all;
|
|
border-left: 2px solid transparent;
|
|
padding-left: 6px;
|
|
}
|
|
|
|
.log-entry.system-log {
|
|
color: var(--text-muted);
|
|
border-left-color: var(--text-muted);
|
|
}
|
|
|
|
.log-entry.info-log {
|
|
color: #60a5fa;
|
|
border-left-color: #3b82f6;
|
|
}
|
|
|
|
.log-entry.success-log {
|
|
color: #34d399;
|
|
border-left-color: var(--success);
|
|
}
|
|
|
|
.log-entry.error-log {
|
|
color: #f87171;
|
|
border-left-color: var(--danger);
|
|
}
|
|
|
|
/* Advanced Settings Dropdown */
|
|
.advanced-settings {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
background: var(--bg-card);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.advanced-settings[open] {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
summary {
|
|
padding: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-size: 12px;
|
|
outline: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
summary:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.settings-content {
|
|
padding: 0 12px 14px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
border-top: 1px solid var(--border-color);
|
|
margin-top: 2px;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.settings-info {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Footer */
|
|
.app-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 10px;
|
|
color: var(--text-muted);
|
|
border-top: 1px solid var(--border-color);
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.version {
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* Keyframes */
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
|
|
}
|
|
70% {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
|
|
}
|
|
}
|