:root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; color-scheme: light dark; color: #e8e8e8; background-color: #16181d; --panel: #1f232b; --border: #343a46; --accent: #7aa2f7; --muted: #9aa3b2; } body { margin: 0; min-width: 320px; min-height: 100vh; } .app { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; } .app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .app-header h1 { margin: 0 0 0.25rem; font-size: 2.2rem; line-height: 1.15; } .tagline { margin: 0; color: var(--muted); } /* --- AuthForms (M4) --- */ .auth { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 0.6rem; /* Roughly align the button with the h1 baseline. */ margin-top: 0.35rem; } .auth-username { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; } .auth-button { border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 8px; padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s; } .auth-button:hover:enabled { border-color: var(--accent); } .auth-button:disabled { opacity: 0.5; cursor: default; } .auth-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(17rem, calc(100vw - 2.5rem)); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); z-index: 10; } .auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; } .auth-tab { flex: 1; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 8px; padding: 0.3rem 0.5rem; font-size: 0.85rem; cursor: pointer; } .auth-tab:hover:enabled { border-color: var(--border); } .auth-tab-selected, .auth-tab-selected:hover:enabled { border-color: var(--accent); background: #232a38; color: inherit; } .auth-panel form { display: flex; flex-direction: column; gap: 0.6rem; } .auth-panel label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); } .auth-panel input { background: #262b34; color: #e8e8e8; border: 1px solid var(--border); border-radius: 8px; padding: 0.35rem 0.5rem; font-size: 0.9rem; } .auth-panel input:focus-visible { border-color: var(--accent); outline: none; } .auth-hint { margin: 0; font-size: 0.8rem; color: var(--muted); } .auth-error { margin: 0; font-size: 0.85rem; color: #f2b8b5; } .auth-submit { background: var(--accent); color: #16181d; border: none; border-radius: 8px; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.9rem; cursor: pointer; } .auth-submit:disabled { opacity: 0.6; cursor: default; } /* --- ModelPicker --- */ .model-picker { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; } .model-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .model-picker-header h2 { margin: 0; font-size: 1rem; } .model-picker-hint { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; } /* Server engine active — no model download needed on this device (D-020). */ .server-engine-hint { color: #9ad6ae; } .device-select, .transcription-options label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); } .model-picker select, .transcription-options select { background: #262b34; color: inherit; border: 1px solid var(--border); border-radius: 8px; padding: 0.3rem 0.5rem; font-size: 0.85rem; } .model-group { border: none; margin: 0.75rem 0 0; padding: 0; } .model-group legend { padding: 0; margin-bottom: 0.35rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .model-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; } .model-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 0.95rem; } .model-group:not(:disabled) .model-option:hover { border-color: var(--border); } .model-option-selected, .model-group:not(:disabled) .model-option-selected:hover { border-color: var(--accent); background: #232a38; } .model-group:disabled .model-option { cursor: default; opacity: 0.6; } .model-option input { accent-color: var(--accent); } .model-option-name { flex: 1; } .model-option-meta { display: flex; align-items: center; gap: 0.6rem; } .model-option-size { color: var(--muted); font-size: 0.85rem; white-space: nowrap; } .model-badge { border: 1px solid #3d6b4f; background: #1d2b23; color: #9ad6ae; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.75rem; white-space: nowrap; } /* Explicit weight download for the selected model (D-020). */ .model-download-button { border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 999px; padding: 0.1rem 0.7rem; font-size: 0.75rem; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, color 0.15s; } .model-download-button:hover:enabled { border-color: #3d6b4f; color: #9ad6ae; } .model-download-button:disabled { opacity: 0.6; cursor: default; } /* --- PWA / offline (M3) --- */ .offline-status { margin: 0.5rem 0 0.75rem; font-size: 0.85rem; color: var(--muted); } .offline-status-ready { color: #9ad6ae; } .update-toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.75rem; background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; padding: 0.6rem 1rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); z-index: 10; } .update-toast button { background: var(--accent); color: #16181d; border: none; border-radius: 6px; padding: 0.3rem 0.8rem; font: inherit; cursor: pointer; } .update-toast button.update-toast-dismiss { background: transparent; color: var(--muted); border: 1px solid var(--border); } /* --- TranscriptionOptions --- */ .transcription-options { display: flex; gap: 1.5rem; flex-wrap: wrap; } /* --- EngineToggle (M5, D-010) --- */ .engine-toggle { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; } .engine-toggle-label { font-weight: 600; } .engine-option { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; } .engine-option:has(input:disabled) { color: var(--muted); cursor: default; } .engine-toggle-hint { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; } /* --- FileDropzone --- */ .dropzone { border: 2px dashed var(--border); border-radius: 14px; background: var(--panel); padding: 2.5rem 1.5rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; } .dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); outline: none; } .dropzone-active { border-color: var(--accent); background: #232a38; } .dropzone-disabled { cursor: default; opacity: 0.6; } .dropzone-title { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 600; } .dropzone-hint { margin: 0; color: var(--muted); font-size: 0.9rem; } /* --- LiveControls (M7, D-016) --- */ .live-controls { display: flex; align-items: center; gap: 0.75rem; } .live-button { border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 8px; padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s; white-space: nowrap; } .live-button:hover:enabled { border-color: var(--accent); } .live-button:disabled { opacity: 0.5; cursor: default; } .live-button-active, .live-button-active:hover:enabled { border-color: #e0605e; } .live-dot { flex-shrink: 0; width: 0.6rem; height: 0.6rem; border-radius: 999px; background: #e0605e; animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: 0.25; } } .live-hint { margin: 0; color: var(--muted); font-size: 0.9rem; } .file-name { margin: 0; color: var(--muted); font-size: 0.95rem; } /* Cancel for the in-flight file run (D-018) — styled like .copy-button, with a warning accent on hover. */ .cancel-button { margin-left: 0.75rem; border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 8px; padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, color 0.15s; } .cancel-button:hover { border-color: #8b3a3a; color: #f2b8b5; } .error { margin: 0; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid #8b3a3a; background: #2a1c1e; color: #f2b8b5; } /* --- ModelLoadProgress --- */ .model-progress { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; } .model-progress h2 { margin: 0 0 0.25rem; font-size: 1rem; } .model-progress-hint { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.85rem; } .model-progress ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; } .model-progress-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; margin-bottom: 0.2rem; } .model-progress-name { font-family: ui-monospace, monospace; overflow-wrap: anywhere; } .model-progress-bytes { color: var(--muted); white-space: nowrap; } .model-progress progress { width: 100%; height: 6px; accent-color: var(--accent); } /* --- TranscriptView --- */ .transcript { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; } .transcript-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .transcript-header h2 { margin: 0; font-size: 1rem; } .copy-button { border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 8px; padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s; } .copy-button:hover:enabled { border-color: var(--accent); } .copy-button:disabled { opacity: 0.5; cursor: default; } .transcript-percent { color: var(--muted); font-weight: normal; font-variant-numeric: tabular-nums; } /* Audio progress of the in-flight file pass (transcribe-progress messages). */ .transcript-progress { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; } .transcript-progress progress { flex: 1; height: 6px; accent-color: var(--accent); } .transcript-progress-time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; } .transcript-text { margin: 0.75rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; } /* Live-mode text that may still change (D-016) — visually distinct from the committed text it follows. */ .transcript-tentative { color: var(--muted); font-style: italic; } .cursor { display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: blink 1s steps(2, start) infinite; } @keyframes blink { to { visibility: hidden; } } .transcript-chunks { margin-top: 1rem; font-size: 0.9rem; } .transcript-chunks summary { cursor: pointer; color: var(--muted); } .transcript-chunks ol { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; } .chunk-time { font-family: ui-monospace, monospace; color: var(--accent); margin-right: 0.75rem; white-space: nowrap; } .app-footer { color: var(--muted); font-size: 0.85rem; } .app-footer p { margin: 0; } code { font-family: ui-monospace, monospace; background: #262b34; padding: 0.1em 0.35em; border-radius: 5px; } @media (prefers-reduced-motion) { *, ::before, ::after { animation: none !important; } } /* -------------------------------------------------------------------------- Storage management panel (M6): cached models, per-model delete. -------------------------------------------------------------------------- */ .storage-manager { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 1rem; } .storage-manager summary { cursor: pointer; font-weight: 600; } .storage-total { color: var(--muted); font-weight: normal; font-variant-numeric: tabular-nums; } .storage-hint { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; } .storage-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; } .storage-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; } .storage-model { flex: 1 1 14rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; } .storage-name { font-size: 0.95rem; } .storage-id { font-size: 0.75rem; color: var(--muted); background: transparent; padding: 0; overflow-wrap: anywhere; } .storage-size { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; } .storage-delete { border: 1px solid var(--border); background: transparent; color: inherit; border-radius: 8px; padding: 0.3rem 0.9rem; font-size: 0.85rem; cursor: pointer; transition: border-color 0.15s, color 0.15s; } .storage-delete:hover:enabled { border-color: #8b3a3a; color: #f2b8b5; } .storage-delete:disabled { opacity: 0.5; cursor: default; } /* --- Transcript export (M6) — .txt/.srt buttons grouped with Copy --- */ .transcript-actions { display: flex; align-items: center; gap: 0.5rem; }