/* ========================================================================== FirstRunDialog — the setup popup shown on the very first launch (the SPA lands on the Settings tab and walks the user through the first setup steps: GPU PyTorch, llama-server / llama-cpp-python, HF token). A centered card over a dimmed backdrop, riding the app's tokens so it themes with light/dark automatically — same language as the app's other themed dialogs (.lal-confirm-*). ========================================================================== */ .firstrun-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; } .firstrun-box { background: var(--bg-elev, #ffffff); border: 1px solid var(--card-border, #e7e0d3); border-left: 5px solid var(--primary-600, #d97757); border-radius: var(--radius, 14px); padding: 22px 24px; max-width: 480px; width: 100%; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3); animation: firstrun-pop 0.22s ease-out; } /* Match the toast popup's entrance — scale in from the center so the onboarding reads as a confirmation popup, not a slide. */ @keyframes firstrun-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } } .firstrun-title { font-family: var(--font-display, Georgia, "Times New Roman", serif); font-size: 1.15rem; font-weight: 700; color: var(--text-strong, #000000); margin-bottom: 14px; } .firstrun-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .firstrun-line { color: var(--text-strong, #000000); font-size: 0.9rem; line-height: 1.55; } /* The GGUF recommendation — visually set apart as a tip card (the amber thinking/plan surface), so the "prefer llama-server / llama.cpp python" guidance stands out from the plain checklist lines. */ .firstrun-tip { color: var(--text-dim, #4a4a4a); padding: 10px 12px; background: var(--amber-bg, #fbf0dc); border: 1px solid var(--amber-line, #eed9b0); border-radius: var(--radius-sm, 8px); } .firstrun-actions { display: flex; justify-content: flex-end; } .firstrun-ok { border: 1px solid var(--primary-600, #d97757); background: var(--primary-600, #d97757); color: #ffffff; border-radius: 10px; padding: 9px 18px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: filter 0.15s ease; user-select: auto; } .firstrun-ok:hover { filter: brightness(1.05); } /* Draggable title bar */ .firstrun-drag-handle { cursor: grab; user-select: none; } .firstrun-drag-handle:active { cursor: grabbing; } .firstrun-box.dragging .firstrun-drag-handle { cursor: grabbing; }