AutoShorts is a local-first desktop application for turning long-form video or audio recordings into high-impact, vertical short-form clip candidates (9:16 portrait) with AI-powered viral moment ranking.
Rust
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
:root {
/* Color system - Solid Flat Dark Theme */
--bg-base: #0c0d12;
--bg-sidebar: #13161c;
--bg-panel: #1a1d24;
--bg-panel-header: #21252e;
--bg-input: #08090d;
--border-color: rgba(255, 255, 255, 0.08);
--border-color-focus: #8ee6c7;
--accent-primary: #8ee6c7;
--accent-primary-hover: #a5f0d5;
--accent-text: #0b0c10;
--text-primary: #f3f4f6;
--text-secondary: #a0aec0;
--text-muted: #6b7280;
--color-success-bg: #11281e;
--color-success-border: #225c42;
--color-success-text: #8eedbf;
--color-error-bg: #2d161a;
--color-error-border: #5f242d;
--color-error-text: #fca5a5;
color: var(--text-primary);
background: var(--bg-base);
font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-width: 980px;
min-height: 100vh;
background-color: var(--bg-base);
color: var(--text-primary);
overflow: hidden;
}
/* Custom Scrollbars for a Native Feel */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.12);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.24);
}
button,
input {
font: inherit;
}
button {
border: 0;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
button:active {
transform: scale(0.97);
}
button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
/* App Shell Layout */
.app-shell-container {
display: flex;
flex-direction: column;
height: 100vh;
min-height: 100vh;
overflow: hidden;
}
.app-shell {
display: grid;
grid-template-columns: 280px 1fr;
flex: 1;
min-height: 0;
height: calc(100vh - 32px);
}
.sidebar {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
color: var(--text-primary);
background: var(--bg-sidebar);
border-right: 1px solid var(--border-color);
min-height: 0;
height: 100%;
}
.brand-row {
display: grid;
grid-template-columns: 36px 1fr;
gap: 12px;
align-items: center;
transition: opacity 0.2s ease;
}
.brand-row:hover {
opacity: 0.85;
}
.brand-mark {
display: grid;
place-items: center;
width: 36px;
height: 36px;
color: var(--accent-text);
background: var(--accent-primary);
border-radius: 8px;
box-shadow: 0 4px 12px rgba(142, 230, 199, 0.15);
}
.brand-row h1,
.brand-row p,
.topbar h2,
.panel-heading h3,
.candidate-card h4,
.empty-workspace h2 {
margin: 0;
}
.brand-row h1 {
font-size: 18px;
font-weight: 800;
letter-spacing: -0.5px;
color: var(--text-primary);
}
.brand-row p {
margin-top: 2px;
color: var(--text-muted);
font-size: 11px;
font-weight: 500;
}
.primary-action,
.button-pair button,
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 38px;
border-radius: 8px;
font-weight: 700;
font-size: 13px;
}
.primary-action {
width: 100%;
padding: 0 16px;
color: var(--accent-text);
background: var(--accent-primary);
}
.primary-action:hover:not(:disabled) {
background: var(--accent-primary-hover);
}
.primary-action.compact {
width: auto;
min-width: 190px;
}
.project-list {
display: grid;
align-content: start;
gap: 6px;
min-height: 0;
overflow-y: auto;
margin-top: 10px;
flex: 1;
}
.project-row {
display: grid;
grid-template-columns: 16px 1fr 14px;
gap: 10px;
align-items: center;
min-height: 38px;
padding: 0 10px;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-color);
border-radius: 8px;
text-align: left;
}
.project-row span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12.5px;
}
.project-row:hover:not(.active) {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.12);
}
.project-row.active {
color: var(--accent-primary);
background: rgba(142, 230, 199, 0.05);
border-color: var(--accent-primary);
}
/* Workspace Panels */
.workspace {
display: flex;
flex-direction: column;
gap: 16px;
min-width: 0;
padding: 20px 24px;
background: var(--bg-base);
height: 100%;
overflow-y: auto;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.eyebrow {
margin-bottom: 4px;
color: var(--accent-primary);
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
}
.topbar h2 {
color: var(--text-primary);
font-size: 22px;
font-weight: 800;
letter-spacing: -0.5px;
line-height: 1.2;
overflow-wrap: anywhere;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 8px;
}
.icon-button {
height: 38px;
min-height: 38px;
padding: 0 12px;
color: var(--text-primary);
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-color);
border-radius: 8px;
font-weight: 600;
font-size: 12.5px;
display: inline-flex;
align-items: center;
gap: 6px;
}
.icon-button:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
}
/* Horizontal Collapsible Settings Panel */
.settings-panel {
padding: 16px;
background: var(--bg-sidebar);
border: 1px solid var(--border-color);
border-radius: 12px;
animation: slideInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.key-stack-horizontal {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
.key-stack-horizontal label {
display: grid;
gap: 6px;
}
.key-stack-horizontal span {
color: var(--text-secondary);
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.key-stack-horizontal input {
width: 100%;
min-height: 36px;
padding: 0 12px;
color: var(--text-primary);
background: var(--bg-input);
border: 1px solid var(--border-color);
border-radius: 8px;
outline: none;
font-size: 13px;
transition: all 0.2s ease;
}
.key-stack-horizontal input:focus {
border-color: var(--border-color-focus);
}
.icon-button.settings-toggle.active {
background: rgba(142, 230, 199, 0.06);
border-color: var(--accent-primary);
color: var(--accent-primary);
}
.error-banner {
padding: 10px 14px;
color: var(--color-error-text);
background: var(--color-error-bg);
border: 1px solid var(--color-error-border);
border-radius: 8px;
font-weight: 600;
font-size: 12.5px;
}
.pipeline-strip {
display: grid;
grid-template-columns: repeat(5, minmax(100px, 1fr));
gap: 8px;
}
.pipeline-step {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 38px;
color: var(--text-muted);
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 11.5px;
font-weight: 700;
transition: all 0.2s ease;
}
.pipeline-step.done {
color: var(--color-success-text);
background: var(--color-success-bg);
border-color: var(--color-success-border);
}
/* Two-column workspace layout */
.work-grid {
display: grid;
grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1.05fr);
gap: 16px;
min-height: 0;
flex: 1;
}
.panel {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 520px;
background: var(--bg-sidebar);
border: 1px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
}
.panel-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 18px;
border-bottom: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.01);
}
.panel-heading h3 {
font-size: 14px;
font-weight: 700;
color: var(--text-primary);
}
.panel-heading p {
margin: 2px 0 0;
color: var(--text-muted);
font-size: 11.5px;
}
.button-pair {
display: flex;
gap: 6px;
}
.button-pair button {
min-width: 80px;
min-height: 32px;
padding: 0 10px;
color: var(--text-primary);
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
font-size: 11.5px;
font-weight: 600;
border-radius: 6px;
}
.button-pair button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
.button-pair button:disabled {
opacity: 0.35;
}
.transcript-list,
.candidate-list {
display: grid;
align-content: start;
gap: 12px;
min-height: 0;
padding: 16px;
overflow-y: auto;
flex: 1;
}
/* Transcript segment rows */
.segment-row {
display: grid;
grid-template-columns: 54px 1fr;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
transition: background 0.15s ease;
}
.segment-row:hover {
background: rgba(255, 255, 255, 0.01);
}
.segment-row span {
color: var(--accent-primary);
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
font-weight: 600;
margin-top: 2px;
}
.segment-row p {
margin: 0;
color: var(--text-secondary);
font-size: 13px;
line-height: 1.45;
}
.clip-control {
display: grid;
grid-template-columns: 20px 1fr 30px;
gap: 10px;
align-items: center;
min-height: 48px;
padding: 0 18px;
border-bottom: 1px solid var(--border-color);
background: rgba(255, 255, 255, 0.005);
}
.clip-control input {
accent-color: var(--accent-primary);
}
/* Candidate cards with portrait preview */
.candidate-card {
display: grid;
grid-template-columns: 48px 1fr;
gap: 16px;
padding: 16px;
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 12px;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
animation: slideInUp 0.3s ease-out forwards;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.candidate-card:hover {
border-color: rgba(255, 255, 255, 0.14);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.candidate-card.selected {
background: rgba(142, 230, 199, 0.02);
border-color: var(--accent-primary);
}
/* Portrait Mockup Container */
.portrait-preview-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.portrait-preview-mock {
width: 48px;
height: 85px;
border-radius: 6px;
background: var(--bg-input);
border: 1px solid var(--border-color);
overflow: hidden;
position: relative;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.candidate-card:hover .portrait-preview-mock {
border-color: rgba(255, 255, 255, 0.25);
}
.candidate-card.selected .portrait-preview-mock {
border-color: var(--accent-primary);
}
.mock-video-inactive {
color: var(--text-muted);
font-size: 10px;
font-weight: 700;
}
.mock-video-active {
width: 100%;
height: 100%;
background: rgba(142, 230, 199, 0.1);
display: flex;
align-items: center;
justify-content: center;
}
.play-icon-mock {
color: var(--accent-primary);
animation: pulsePlay 2s infinite ease-in-out;
}
@keyframes pulsePlay {
0%, 100% { transform: scale(1); opacity: 0.8; }
50% { transform: scale(1.15); opacity: 1; }
}
.candidate-rank {
display: grid;
align-content: start;
justify-items: center;
gap: 4px;
color: var(--accent-primary);
font-weight: 800;
font-size: 12.5px;
}
.candidate-body {
display: flex;
flex-direction: column;
}
.candidate-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--text-muted);
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
font-weight: 600;
}
.candidate-score {
color: var(--accent-primary);
background: rgba(142, 230, 199, 0.08);
padding: 2px 6px;
border-radius: 4px;
font-size: 10px;
}
.candidate-card h4 {
margin-top: 6px;
color: var(--text-primary);
font-size: 14.5px;
font-weight: 700;
line-height: 1.35;
}
.candidate-rationale {
margin: 6px 0 0;
color: var(--text-secondary);
font-size: 12.5px;
line-height: 1.45;
}
.candidate-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 12px;
}
.clip-status {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 8px;
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-color);
border-radius: 6px;
font-size: 10.5px;
font-weight: 700;
text-transform: capitalize;
}
.clip-status.ready {
color: var(--color-success-text);
background: var(--color-success-bg);
border-color: var(--color-success-border);
}
.clip-status.error {
color: var(--color-error-text);
background: var(--color-error-bg);
border-color: var(--color-error-border);
}
.cut-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 76px;
min-height: 28px;
padding: 0 10px;
color: var(--accent-text);
background: var(--accent-primary);
border-radius: 6px;
font-size: 11.5px;
font-weight: 800;
}
.cut-button:hover:not(:disabled) {
background: var(--accent-primary-hover);
}
.output-path,
.render-log {
margin-top: 10px;
padding: 8px 10px;
overflow-wrap: anywhere;
border-radius: 6px;
font-size: 11px;
line-height: 1.35;
font-family: 'JetBrains Mono', monospace;
}
.output-path {
color: var(--color-success-text);
background: var(--color-success-bg);
border: 1px solid var(--color-success-border);
}
.render-log {
color: var(--color-error-text);
background: var(--color-error-bg);
border: 1px solid var(--color-error-border);
}
.empty-state,
.empty-workspace {
display: grid;
place-items: center;
align-content: center;
gap: 16px;
min-height: 280px;
color: var(--text-muted);
}
.empty-workspace {
flex: 1;
min-height: 70vh;
}
.empty-workspace h2 {
color: var(--text-primary);
font-size: 28px;
font-weight: 800;
letter-spacing: -0.5px;
}
.spin {
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* VS Code-style Status Bar */
.status-bar {
height: 32px;
min-height: 32px;
background: var(--bg-sidebar);
border-top: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 11px;
color: var(--text-muted);
font-weight: 500;
user-select: none;
}
.status-bar-left,
.status-bar-right {
display: flex;
align-items: center;
gap: 16px;
}
.app-status-indicator {
display: flex;
align-items: center;
gap: 6px;
color: var(--text-secondary);
}
.app-status-indicator::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent-primary);
}
.status-indicators {
display: flex;
align-items: center;
gap: 14px;
}
.status-indicators .indicator {
display: flex;
align-items: center;
gap: 5px;
opacity: 0.55;
transition: all 0.2s ease;
}
.status-indicators .indicator.active {
opacity: 1;
color: var(--accent-primary);
}
.status-indicators .indicator::before {
content: "";
display: inline-block;
width: 5px;
height: 5px;
border-radius: 50%;
background: currentColor;
}
@media (max-width: 1120px) {
body {
min-width: 0;
overflow-y: auto;
}
.app-shell-container {
height: auto;
min-height: auto;
overflow: auto;
}
.app-shell {
grid-template-columns: 1fr;
height: auto;
}
.sidebar {
min-height: auto;
height: auto;
border-right: none;
border-bottom: 1px solid var(--border-color);
}
.workspace {
height: auto;
}
.work-grid,
.pipeline-strip {
grid-template-columns: 1fr;
}
}
/* Home Dashboard Styling */
.home-dashboard {
display: flex;
flex-direction: column;
gap: 20px;
padding: 10px 0;
animation: slideInUp 0.3s ease-out forwards;
}
.home-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-color);
padding-bottom: 16px;
}
.home-header h2 {
font-size: 24px;
font-weight: 800;
margin: 0;
}
.home-header p {
font-size: 13px;
color: var(--text-secondary);
margin: 4px 0 0 0;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
margin-top: 10px;
}
.project-card {
background: var(--bg-sidebar);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
border-color: rgba(255, 255, 255, 0.15);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-2px);
}
.project-card-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.project-card-icon {
color: var(--accent-primary);
}
.project-card-status {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
background: rgba(142, 230, 199, 0.08);
color: var(--accent-primary);
padding: 2px 6px;
border-radius: 4px;
letter-spacing: 0.5px;
}
.project-card-title {
font-size: 15px;
font-weight: 700;
margin: 0;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.project-card-meta {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--text-muted);
}
.project-card-actions {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 8px;
margin-top: 4px;
}
.action-btn {
height: 30px;
font-size: 11.5px;
font-weight: 700;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.open-btn {
background: var(--accent-primary);
color: var(--accent-text);
}
.open-btn:hover {
background: var(--accent-primary-hover);
}
.rename-btn, .delete-btn {
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-color);
color: var(--text-secondary);
}
.rename-btn:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
color: var(--text-primary);
}
.delete-btn:hover {
background: var(--color-error-bg);
border-color: var(--color-error-border);
color: var(--color-error-text);
}
.empty-dashboard-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 250px;
color: var(--text-muted);
text-align: center;
}
.empty-dashboard-state h3 {
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
margin: 0;
}
.empty-dashboard-state p {
font-size: 13px;
margin: 0;
}
.empty-state-icon {
color: var(--text-muted);
opacity: 0.6;
}
/* Inline Warning Banner */
.api-warning {
margin: 10px 16px;
padding: 10px 14px;
background: rgba(239, 68, 68, 0.08);
border: 1px solid rgba(239, 68, 68, 0.2);
border-radius: 8px;
font-size: 12px;
color: #ff9999;
line-height: 1.4;
}
.api-warning strong {
color: #ffffff;
}
/* Caption Style Selection Modal */
.style-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(6, 8, 12, 0.85);
backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.2s ease-out;
}
.style-modal {
width: 580px;
background: var(--bg-sidebar);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 24px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
gap: 18px;
}
.style-modal-header h3 {
margin: 0;
font-size: 18px;
font-weight: 800;
letter-spacing: -0.3px;
color: var(--text-primary);
}
.style-modal-header p {
margin: 6px 0 0 0;
font-size: 13px;
color: var(--text-secondary);
}
.style-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
max-height: 380px;
overflow-y: auto;
padding-right: 4px;
}
.style-card {
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 10px;
padding: 12px;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 8px;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.style-card:hover {
border-color: rgba(255, 255, 255, 0.16);
background: rgba(255, 255, 255, 0.01);
}
.style-card.selected {
border-color: var(--accent-primary);
background: rgba(142, 230, 199, 0.02);
}
.style-card-title {
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
}
.style-card-desc {
font-size: 11px;
color: var(--text-muted);
line-height: 1.35;
flex: 1;
}
/* Simulated caption video previews */
.style-preview-box {
height: 60px;
background: #0f1015;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
}
/* Style 1 Preview: Modern Box */
.preview-text-box {
font-family: 'Impact', 'Avenir Next', 'Arial Black', sans-serif;
font-size: 12px;
font-weight: bold;
color: #ffffff;
background: rgba(0, 0, 0, 0.7);
padding: 3px 6px;
border-radius: 2px;
letter-spacing: 0.5px;
}
/* Style 2 Preview: Classic Outline */
.preview-text-outline {
font-family: 'Impact', 'Avenir Next', 'Arial Black', sans-serif;
font-size: 13px;
font-weight: bold;
color: #ffff00;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
letter-spacing: 0.5px;
}
/* Style 3 Preview: Minimal Shadow */
.preview-text-shadow {
font-family: 'Avenir Next', 'Helvetica Neue', sans-serif;
font-size: 13px;
font-weight: 800;
color: #ffffff;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}
/* Style 4 Preview: Vibrant Cyan */
.preview-text-cyan {
font-family: 'Avenir Next', 'Helvetica Neue', sans-serif;
font-size: 13px;
font-weight: 800;
color: #00ffff;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}
/* Style 5 Preview: Vibrant Yellow Box */
.preview-text-yellow-box {
font-family: 'Impact', 'Avenir Next', 'Arial Black', sans-serif;
font-size: 12px;
font-weight: bold;
color: #000000;
background: #ffff00;
padding: 3px 6px;
border-radius: 2px;
letter-spacing: 0.5px;
}
/* Style 6 Preview: Vibrant Green */
.preview-text-green {
font-family: 'Impact', 'Avenir Next', 'Arial Black', sans-serif;
font-size: 13px;
font-weight: bold;
color: #39FF14;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000,
2px 2px 3px rgba(0,0,0,0.6);
letter-spacing: 0.5px;
}
/* Style 7 Preview: Vibrant Red */
.preview-text-red {
font-family: 'Impact', 'Avenir Next', 'Arial Black', sans-serif;
font-size: 13px;
font-weight: bold;
color: #FF3B30;
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000,
2px 2px 3px rgba(0,0,0,0.6);
letter-spacing: 0.5px;
}
.style-modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 8px;
}
.style-modal-actions button {
min-height: 36px;
padding: 0 16px;
font-weight: 700;
font-size: 13px;
border-radius: 8px;
}
.style-modal-actions .btn-cancel {
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
color: var(--text-secondary);
}
.style-modal-actions .btn-cancel:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.style-modal-actions .btn-confirm {
background: var(--accent-primary);
color: var(--accent-text);
}
.style-modal-actions .btn-confirm:hover {
background: var(--accent-primary-hover);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes scaleIn {
from { transform: scale(0.96); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.key-stack-horizontal select {
width: 100%;
min-height: 36px;
padding: 0 12px;
color: var(--text-primary);
background: var(--bg-input);
border: 1px solid var(--border-color);
border-radius: 8px;
outline: none;
font-size: 13px;
transition: all 0.2s ease;
cursor: pointer;
}
.key-stack-horizontal select:focus {
border-color: var(--border-color-focus);
}
.key-stack-horizontal select option {
background: var(--bg-sidebar);
color: var(--text-primary);
}
/* Onboarding styles */
.onboarding-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: radial-gradient(circle at center, rgba(19, 22, 28, 0.96) 0%, var(--bg-base) 100%);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 24px;
overflow-y: auto;
}
.onboarding-card {
width: 100%;
max-width: 720px;
background: var(--bg-panel);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 40px;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.onboarding-header {
text-align: center;
margin-bottom: 36px;
}
.onboarding-header.compact {
text-align: left;
margin-bottom: 24px;
}
.onboarding-header h2 {
font-size: 28px;
font-weight: 800;
letter-spacing: -0.75px;
margin: 16px 0 8px;
color: var(--text-primary);
}
.onboarding-header p {
color: var(--text-secondary);
font-size: 14.5px;
margin: 0;
line-height: 1.5;
}
.brand-mark.large {
width: 72px;
height: 72px;
margin: 0 auto;
border-radius: 16px;
background: var(--accent-primary);
color: var(--accent-text);
display: grid;
place-items: center;
box-shadow: 0 8px 24px rgba(142, 230, 199, 0.25);
}
.onboarding-choices {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 12px;
}
.choice-card {
padding: 32px 24px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border-color);
border-radius: 12px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
cursor: pointer;
}
.choice-card:hover {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.15);
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.choice-icon {
width: 56px;
height: 56px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.03);
display: grid;
place-items: center;
color: var(--text-secondary);
transition: all 0.2s ease;
}
.choice-card:hover .choice-icon {
background: rgba(142, 230, 199, 0.1);
color: var(--accent-primary);
}
.choice-card h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
}
.choice-card p {
margin: 0;
font-size: 13px;
line-height: 1.5;
color: var(--text-muted);
}
.choice-badge {
margin-top: auto;
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
padding: 4px 10px;
border-radius: 100px;
letter-spacing: 0.5px;
}
.choice-badge.local {
background: rgba(142, 230, 199, 0.08);
color: var(--accent-primary);
}
.choice-badge.cloud {
background: rgba(255, 255, 255, 0.05);
color: var(--text-secondary);
}
/* Local Setup Steps */
.local-setup-flow,
.cloud-setup-flow {
display: flex;
flex-direction: column;
}
.setup-steps {
display: flex;
flex-direction: column;
gap: 24px;
margin-bottom: 24px;
}
.setup-step {
display: grid;
grid-template-columns: 32px 1fr;
gap: 16px;
}
.step-num {
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
color: var(--text-secondary);
font-weight: 700;
font-size: 14px;
display: grid;
place-items: center;
}
.step-body {
display: flex;
flex-direction: column;
gap: 8px;
}
.step-body h4 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: var(--text-primary);
}
.step-body p {
margin: 0;
font-size: 13px;
line-height: 1.45;
color: var(--text-muted);
}
.code-block-container {
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-input);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 8px 12px;
font-family: 'JetBrains Mono', monospace;
font-size: 12.5px;
color: var(--accent-primary);
}
.copy-btn {
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
border-radius: 4px;
padding: 4px 8px;
font-size: 11px;
font-weight: 600;
color: var(--text-secondary);
display: inline-flex;
align-items: center;
gap: 4px;
}
.copy-btn:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.step-check {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11.5px;
font-weight: 700;
}
.step-check.success {
color: var(--color-success-text);
}
.step-check.warning {
color: var(--text-muted);
}
/* Local Model Cards */
.model-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-top: 8px;
}
.model-card {
background: rgba(255, 255, 255, 0.01);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 16px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
gap: 6px;
}
.model-card:hover {
background: rgba(255, 255, 255, 0.03);
border-color: rgba(255, 255, 255, 0.15);
}
.model-card.active {
background: rgba(142, 230, 199, 0.03);
border-color: var(--accent-primary);
}
.model-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.model-card h5 {
margin: 0;
font-size: 13.5px;
font-weight: 700;
color: var(--text-primary);
}
.model-card.active h5 {
color: var(--accent-primary);
}
.model-size {
font-size: 10px;
font-weight: 800;
color: var(--text-muted);
background: rgba(255, 255, 255, 0.05);
padding: 2px 6px;
border-radius: 4px;
}
.model-card p {
margin: 0;
font-size: 11.5px;
line-height: 1.4;
color: var(--text-muted);
}
/* Cloud Form Styling */
.form-stack {
display: flex;
flex-direction: column;
gap: 16px;
margin-bottom: 24px;
}
.input-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.input-group label {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
color: var(--text-secondary);
letter-spacing: 0.5px;
}
.input-group input {
min-height: 40px;
padding: 0 14px;
color: var(--text-primary);
background: var(--bg-input);
border: 1px solid var(--border-color);
border-radius: 8px;
outline: none;
font-size: 13.5px;
transition: all 0.2s ease;
}
.input-group input:focus {
border-color: var(--border-color-focus);
}
.form-help {
margin: 0;
font-size: 11.5px;
color: var(--text-muted);
}
/* Onboarding actions footer */
.onboarding-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border-color);
}
/* Download Screen styling */
.downloading-flow {
text-align: center;
}
.download-progress-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin: 24px 0;
}
.download-loader {
color: var(--accent-primary);
animation: pulsePlay 2s infinite ease-in-out;
}
.progress-bar-container {
width: 100%;
height: 8px;
background: rgba(255, 255, 255, 0.05);
border-radius: 100px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #51cfb3 0%, var(--accent-primary) 100%);
border-radius: 100px;
transition: width 0.3s ease;
}
.download-stats {
width: 100%;
display: flex;
justify-content: space-between;
font-size: 12.5px;
color: var(--text-muted);
}
.download-status {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 80%;
color: var(--text-secondary);
}
.download-percentage {
font-weight: 700;
color: var(--accent-primary);
}