/* Former — Dark Theme (Google AI Studio Match) */ :root { --bg-base: #131314; --bg-surface: #1e1f20; --bg-overlay: #282a2c; --bg-input: #1e1f20; --text-primary: #e3e3e3; --text-secondary: #c4c7c5; --text-subtle: #8e918f; --accent: #e3e3e3; --accent-hover: #ffffff; --accent-dim: rgba(227, 227, 227, 0.1); --success: #81c995; --error: #f28b82; --warning: #fdd663; --border: #444746; --border-light: #333638; --radius: 12px; --radius-sm: 8px; --transition: 150ms ease; --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font); background: var(--bg-base); color: var(--text-primary); overflow: hidden; height: 100vh; -webkit-font-smoothing: antialiased; } #app { display: flex; flex-direction: column; height: 100vh; } /* Navigation (includes macOS titlebar drag region) */ #nav { display: flex; align-items: center; padding: 0 16px 0 76px; /* left padding for macOS traffic lights */ height: 44px; flex-shrink: 0; background: var(--bg-base); border-bottom: 1px solid var(--border-light); gap: 4px; -webkit-app-region: drag; -webkit-user-select: none; user-select: none; } .nav-btn { background: none; border: none; color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); } .nav-btn:hover { background: var(--bg-overlay); color: var(--text-primary); } .nav-brand { font-weight: 500; color: var(--text-primary); font-size: 14px; cursor: pointer; -webkit-app-region: no-drag; -webkit-user-select: none; user-select: none; } .nav-project-name { font-size: 13px; color: var(--text-subtle); padding-left: 8px; -webkit-app-region: no-drag; } .nav-btn { -webkit-app-region: no-drag; } .nav-spacer { flex: 1; } /* Main content */ #main { flex: 1; overflow-y: auto; position: relative; } .page { display: none; padding: 32px 24px; max-width: 720px; margin: 0 auto; animation: fadeIn 200ms ease; } .page.active { display: block; } .page-former.active { display: flex; max-width: none; padding: 0; height: 100%; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* Landing page */ #page-landing { position: relative; overflow: hidden; } .landing-bg-art { position: relative; width: 100%; display: flex; justify-content: center; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0.5) 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0.2) 100%); } .landing-bg-logo { width: 50%; height: auto; opacity: 0.8; filter: brightness(1.4); } .landing-hero { text-align: center; padding: 0 0 32px; position: relative; z-index: 1; } .landing-hero h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 8px; } .landing-hero p { color: var(--text-secondary); font-size: 15px; } .landing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; position: relative; z-index: 1; } .action-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all var(--transition); text-align: left; } .action-card:hover { border-color: var(--border); background: var(--bg-overlay); } .action-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); } .action-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; } /* Section titles */ .section-title { font-size: 12px; font-weight: 500; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; } /* Recent projects */ .project-list { display: flex; flex-direction: column; gap: 8px; } .project-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); } .project-item:hover { border-color: var(--border); background: var(--bg-overlay); } .project-name { flex: 1; font-size: 14px; font-weight: 500; } .project-meta { font-size: 12px; color: var(--text-subtle); } .badge { font-size: 10px; padding: 4px 8px; border-radius: 6px; background: var(--bg-base); border: 1px solid var(--border-light); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; } /* Dashboard grid */ .dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; } @media (max-width: 640px) { .dashboard-grid { grid-template-columns: 1fr 1fr; } } /* Cards */ .card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; } .card-title { font-size: 14px; font-weight: 500; margin-bottom: 16px; } /* Form elements */ .form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .form-row:last-child { margin-bottom: 0; } .form-label { font-size: 13px; color: var(--text-secondary); min-width: 140px; } .form-input { flex: 1; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font: inherit; font-size: 13px; padding: 8px 12px; outline: none; transition: all var(--transition); } .form-input:focus { border-color: var(--text-secondary); outline: 1px solid var(--text-secondary); } .form-input::placeholder { color: var(--text-subtle); } select.form-input { cursor: pointer; } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition); white-space: nowrap; } .btn:hover { background: var(--bg-overlay); border-color: var(--text-secondary); } .btn-primary { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-base); } .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-danger { color: var(--error); border-color: var(--border); } .btn-danger:hover { background: rgba(242, 139, 130, 0.1); border-color: var(--error); } /* File picker row */ .file-row { display: flex; align-items: center; gap: 12px; } .file-name { flex: 1; font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-name.has-file { color: var(--text-primary); } /* Checkbox row */ .check-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .check-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; } .check-label input[type="checkbox"] { accent-color: var(--text-primary); } /* Action bar */ .action-bar { display: flex; align-items: center; gap: 8px; margin-top: 20px; } .action-bar .spacer { flex: 1; } /* Page header */ .page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } .page-header h2 { font-size: 18px; font-weight: 500; } /* Board preview canvas */ .board-canvas-wrap { background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0; text-align: center; } .board-canvas-wrap canvas { max-width: 100%; border-radius: var(--radius); } /* Side buttons */ .side-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; } .side-tab { padding: 6px 12px; font-size: 12px; font-weight: 500; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; transition: all var(--transition); } .side-tab.active { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-base); } /* Cutout list */ .cutout-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .cutout-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-base); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 12px; font-family: var(--font-mono); } .cutout-item .cutout-text { flex: 1; color: var(--text-secondary); } /* Result page */ .result-files { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-secondary); background: var(--bg-base); border: 1px solid var(--border-light); padding: 16px; border-radius: var(--radius-sm); margin-bottom: 20px; } /* Loading spinner */ .spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(19, 19, 20, 0.8); z-index: 100; flex-direction: column; gap: 16px; } .loading-overlay .spinner { width: 32px; height: 32px; border-width: 3px; } .loading-text { font-size: 14px; font-weight: 500; color: var(--text-primary); } /* ===== THE FORMER ===== */ .former-container { display: flex; width: 100%; height: 100%; } .former-canvas-wrap { flex: 1; background: #000000; position: relative; overflow: hidden; } .former-canvas-wrap canvas { position: absolute; top: 0; left: 0; } .former-sidebar { width: 280px; background: var(--bg-base); border-left: 1px solid var(--border-light); display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; } .former-sidebar-header { padding: 16px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 8px; } .former-sidebar-header h3 { flex: 1; font-size: 14px; font-weight: 500; } .former-layers { flex: 1; overflow-y: auto; padding: 8px; } .former-layer-row { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition); } .former-layer-row:hover { background: var(--bg-surface); } .former-layer-row.highlighted { background: var(--bg-overlay); } .former-layer-row.selected { background: var(--bg-surface); border-left: 2px solid var(--text-primary); padding-left: 8px; } .layer-vis-btn, .layer-hl-btn { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: none; border-radius: var(--radius-sm); background: none; color: var(--text-subtle); cursor: pointer; font-size: 14px; transition: all var(--transition); } .layer-vis-btn:hover, .layer-hl-btn:hover { background: var(--bg-overlay); color: var(--text-primary); } .layer-vis-btn.active { color: var(--text-primary); } .layer-hl-btn.active { color: var(--warning); } .layer-swatch { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; } .layer-name { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .layer-name.dimmed { color: var(--text-subtle); } .former-actions { padding: 16px; border-top: 1px solid var(--border-light); } /* Settings panel */ .nav-settings-wrap { position: relative; -webkit-app-region: no-drag; } .nav-settings-btn { font-size: 16px; } .settings-panel { position: absolute; top: 100%; right: 0; margin-top: 4px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; min-width: 220px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.4); } .settings-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--text-secondary); } .settings-toggle-row input[type="checkbox"] { accent-color: var(--text-primary); } /* Floating action bar */ .former-floating-actions { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; backdrop-filter: blur(8px); background: rgba(30,31,32,0.8); padding: 8px 16px; border-radius: var(--radius); z-index: 10; } /* Z-axis joystick control */ .z-joystick { position: relative; width: 100%; height: 28px; background: var(--bg-base); border: 1px solid var(--border); border-radius: 14px; cursor: grab; touch-action: none; user-select: none; overflow: hidden; } .z-joystick:active { cursor: grabbing; } .z-joystick-track { position: absolute; top: 50%; left: 16px; right: 16px; height: 2px; background: var(--border); transform: translateY(-50%); } .z-joystick-label-l, .z-joystick-label-r { position: absolute; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 600; color: var(--text-subtle); pointer-events: none; } .z-joystick-label-l { left: 6px; } .z-joystick-label-r { right: 4px; } .z-joystick-knob { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; background: var(--text-secondary); border-radius: 50%; transform: translate(-50%, -50%); transition: left 80ms ease-out, background 100ms; pointer-events: none; } .z-joystick.active .z-joystick-knob { background: var(--text-primary); transition: none; } /* Scrollbar styling */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--border); } /* Empty state */ .empty-state { text-align: center; padding: 40px 0; color: var(--text-subtle); font-size: 14px; } /* Preset buttons */ .preset-row { display: flex; gap: 8px; flex-wrap: wrap; } /* Unwrap page */ .unwrap-layout { display: flex; gap: 16px; height: calc(100vh - 140px); } .unwrap-preview { flex: 1; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: auto; display: flex; align-items: center; justify-content: center; padding: 16px; } .unwrap-preview svg { max-width: 100%; max-height: 100%; background: #fff; border-radius: var(--radius-sm); } .unwrap-controls { width: 220px; flex-shrink: 0; } .unwrap-sidebar { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px; } /* VW camera lock button */ .sidebar-icon-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; } .sidebar-icon-btn.locked { background: var(--accent-dim); border-color: var(--text-secondary); color: var(--text-primary); }