Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: add mobile responsive design to Soul documents page
Adam Eivybb7ceb5b51ac
diff --git a/.changelog/v0.10.x.md b/.changelog/v0.10.x.mdindex 816541dba5..36d404e3ce 100644--- a/.changelog/v0.10.x.md+++ b/.changelog/v0.10.x.md@@ -59,6 +59,14 @@ This release introduces a structured changelog documentation system for creating- **New Enrichment Categories**: Added non_negotiables, decision_heuristics, and error_intolerance categories with 3 preset questions each- **Best Practices Documentation**: Added SOUL_GUIDE.md with comprehensive guidance on creating effective soul documents+### Soul - Mobile Responsive Design+- **Mobile-First Layout**: Complete responsive redesign of the Soul page and all tabs for mobile devices+- **Adaptive Document Editor**: Documents list and editor use stacked layout on mobile with back navigation+- **Touch-Friendly Controls**: All buttons and interactive elements have 40px+ minimum touch targets for accessibility+- **Responsive Grids**: Category grids, test provider selections, and export options adapt from multi-column to single-column on small screens+- **Horizontal Tab Scrolling**: Tab navigation scrolls horizontally on narrow screens with hidden scrollbar+- **Mobile-Optimized Forms**: Enrichment questionnaire, wizard, and all modals display properly on mobile with appropriate spacing+## 🔧 Improvements### Release Processdiff --git a/client/src/components/soul/SoulWizard.jsx b/client/src/components/soul/SoulWizard.jsxindex b44def8312..33a5d9f39d 100644--- a/client/src/components/soul/SoulWizard.jsx+++ b/client/src/components/soul/SoulWizard.jsx@@ -154,16 +154,16 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}};return (- <div className="bg-port-card rounded-lg border border-port-accent/30 p-6">+ <div className="bg-port-card rounded-lg border border-port-accent/30 p-4 sm:p-6">{/* Header */}- <div className="flex items-center justify-between mb-6">+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 mb-6"><div className="flex items-center gap-3">- <Sparkles className="w-6 h-6 text-port-accent" />- <h2 className="text-xl font-bold text-white">Create Your Soul</h2>+ <Sparkles className="w-6 h-6 text-port-accent flex-shrink-0" />+ <h2 className="text-lg sm:text-xl font-bold text-white">Create Your Soul</h2></div><buttononClick={onCancel}- className="text-gray-400 hover:text-white"+ className="text-gray-400 hover:text-white py-2 min-h-[40px]">Skip for now</button>@@ -184,13 +184,13 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}</div>{/* Step Header */}- <div className="flex items-center gap-4 mb-6">- <div className="p-3 rounded-lg bg-port-accent/20">- <StepIcon className="w-6 h-6 text-port-accent" />+ <div className="flex items-center gap-3 sm:gap-4 mb-6">+ <div className="p-2.5 sm:p-3 rounded-lg bg-port-accent/20 flex-shrink-0">+ <StepIcon className="w-5 h-5 sm:w-6 sm:h-6 text-port-accent" /></div>- <div>- <h3 className="text-lg font-semibold text-white">{step.title}</h3>- <p className="text-gray-400">{step.description}</p>+ <div className="min-w-0">+ <h3 className="text-base sm:text-lg font-semibold text-white">{step.title}</h3>+ <p className="text-sm text-gray-400">{step.description}</p></div></div>@@ -204,18 +204,18 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}value={formData[step.id]?.[field.id] || ''}onChange={(e) => updateField(field.id, e.target.value)}placeholder={field.placeholder}- className="w-full px-4 py-2 bg-port-bg border border-port-border rounded-lg text-white placeholder-gray-500 focus:outline-none focus:border-port-accent"+ className="w-full px-4 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white placeholder-gray-500 focus:outline-none focus:border-port-accent"/></div>))}</div>{/* Navigation */}- <div className="flex items-center justify-between">+ <div className="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-between gap-3"><buttononClick={() => setCurrentStep(Math.max(0, currentStep - 1))}disabled={currentStep === 0}- className="flex items-center gap-2 px-4 py-2 text-gray-400 hover:text-white disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] text-gray-400 hover:text-white disabled:opacity-50 disabled:cursor-not-allowed"><ChevronLeft size={18} />Back@@ -225,7 +225,7 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}<buttononClick={handleComplete}disabled={saving || !canProceed()}- className="flex items-center gap-2 px-6 py-2 bg-green-600 text-white rounded-lg hover:bg-green-500 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-green-600 text-white rounded-lg hover:bg-green-500 disabled:opacity-50 disabled:cursor-not-allowed">{saving ? (<>@@ -243,7 +243,7 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}<buttononClick={() => setCurrentStep(Math.min(WIZARD_STEPS.length - 1, currentStep + 1))}disabled={!canProceed()}- className="flex items-center gap-2 px-6 py-2 bg-port-accent text-white rounded-lg hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-port-accent text-white rounded-lg hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed">Next<ChevronRight size={18} />@@ -252,12 +252,12 @@ ${boundaries.irritant ? `- **Pet Peeve**: ${boundaries.irritant}` : ''}</div>{/* Step Indicators */}- <div className="flex items-center justify-center gap-2 mt-6">+ <div className="flex items-center justify-center gap-3 mt-6">{WIZARD_STEPS.map((s, index) => (<buttonkey={s.id}onClick={() => setCurrentStep(index)}- className={`w-2 h-2 rounded-full transition-colors ${+ className={`w-3 h-3 min-w-[12px] min-h-[12px] rounded-full transition-colors ${index === currentStep? 'bg-port-accent': index < currentStepdiff --git a/client/src/components/soul/tabs/DocumentsTab.jsx b/client/src/components/soul/tabs/DocumentsTab.jsxindex 1ff7a664f6..672c55252b 100644--- a/client/src/components/soul/tabs/DocumentsTab.jsx+++ b/client/src/components/soul/tabs/DocumentsTab.jsx@@ -10,7 +10,8 @@ import {Check,ToggleLeft,ToggleRight,- Scale+ Scale,+ ArrowLeft} from 'lucide-react';import * as api from '../../../services/api';import toast from 'react-hot-toast';@@ -119,21 +120,21 @@ export default function DocumentsTab({ onRefresh }) {}return (- <div className="flex h-full gap-4">+ <div className="flex flex-col lg:flex-row h-full gap-4">{/* Document List Sidebar */}- <div className="w-72 flex-shrink-0 bg-port-card rounded-lg border border-port-border overflow-hidden flex flex-col">+ <div className={`${selectedDoc ? 'hidden lg:flex' : 'flex'} w-full lg:w-72 flex-shrink-0 bg-port-card rounded-lg border border-port-border overflow-hidden flex-col`}><div className="p-3 border-b border-port-border flex items-center justify-between"><h3 className="font-medium text-white">Documents</h3><buttononClick={() => setShowCreate(true)}- className="p-1.5 text-gray-400 hover:text-white transition-colors"+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"title="Create document"><Plus size={18} /></button></div>- <div className="flex-1 overflow-y-auto">+ <div className="flex-1 overflow-y-auto max-h-[50vh] lg:max-h-none">{documents.length === 0 ? (<div className="p-4 text-center text-gray-500">No documents yet@@ -152,7 +153,7 @@ export default function DocumentsTab({ onRefresh }) {<buttonkey={doc.id}onClick={() => loadDocument(doc.id)}- className={`w-full px-3 py-2 text-left hover:bg-port-border transition-colors ${+ className={`w-full px-3 py-3 min-h-[44px] text-left hover:bg-port-border transition-colors ${selectedDoc?.id === doc.id ? 'bg-port-accent/10 border-l-2 border-port-accent' : ''}`}>@@ -175,82 +176,107 @@ export default function DocumentsTab({ onRefresh }) {</div>{/* Document Editor */}- <div className="flex-1 bg-port-card rounded-lg border border-port-border overflow-hidden flex flex-col">+ <div className={`${selectedDoc ? 'flex' : 'hidden lg:flex'} flex-1 bg-port-card rounded-lg border border-port-border overflow-hidden flex-col`}>{selectedDoc ? (<>{/* Editor Header */}- <div className="p-3 border-b border-port-border flex items-center justify-between">- <div className="flex items-center gap-3">- <h3 className="font-medium text-white">{selectedDoc.title}</h3>- <span className={`text-xs px-2 py-0.5 rounded ${DOCUMENT_CATEGORIES[selectedDoc.category]?.color}`}>- {DOCUMENT_CATEGORIES[selectedDoc.category]?.label}- </span>- {selectedDoc.version && (- <span className="text-xs text-gray-500">v{selectedDoc.version}</span>- )}- </div>- <div className="flex items-center gap-2">- {/* Weight Control */}- <div className="flex items-center gap-2 px-2 py-1 bg-port-bg rounded border border-port-border" title="Document weight (1-10): Higher weight = included first when truncating">- <Scale size={14} className="text-gray-500" />- <input- type="range"- min="1"- max="10"- value={selectedDoc.weight || 5}- onChange={(e) => handleWeightChange(selectedDoc, parseInt(e.target.value))}- className="w-16 h-1 accent-port-accent"- />- <span className="text-xs text-gray-400 w-4">{selectedDoc.weight || 5}</span>+ <div className="p-3 border-b border-port-border">+ {/* Top row with back button and actions */}+ <div className="flex items-center justify-between gap-2 mb-2 lg:mb-0">+ <div className="flex items-center gap-2 min-w-0 flex-1">+ {/* Back button for mobile */}+ <button+ onClick={() => setSelectedDoc(null)}+ className="lg:hidden p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"+ title="Back to list"+ >+ <ArrowLeft size={18} />+ </button>+ <h3 className="font-medium text-white truncate">{selectedDoc.title}</h3>+ <span className={`hidden sm:inline text-xs px-2 py-0.5 rounded flex-shrink-0 ${DOCUMENT_CATEGORIES[selectedDoc.category]?.color}`}>+ {DOCUMENT_CATEGORIES[selectedDoc.category]?.label}+ </span>+ {selectedDoc.version && (+ <span className="hidden sm:inline text-xs text-gray-500 flex-shrink-0">v{selectedDoc.version}</span>+ )}</div>- <button- onClick={() => handleToggleEnabled(selectedDoc, !selectedDoc.enabled)}- className={`p-1.5 transition-colors ${- selectedDoc.enabled ? 'text-green-400' : 'text-gray-500'- }`}- title={selectedDoc.enabled ? 'Disable for CoS injection' : 'Enable for CoS injection'}- >- {selectedDoc.enabled ? <ToggleRight size={20} /> : <ToggleLeft size={20} />}- </button>- {editMode ? (- <>- <button- onClick={handleSave}- disabled={saving}- className="p-1.5 text-green-400 hover:text-green-300 transition-colors disabled:opacity-50"- title="Save"- >- <Save size={18} />- </button>- <button- onClick={() => {- setEditContent(selectedDoc.content);- setEditMode(false);- }}- className="p-1.5 text-gray-400 hover:text-white transition-colors"- title="Cancel"- >- <X size={18} />- </button>- </>- ) : (- <>- <button- onClick={() => setEditMode(true)}- className="p-1.5 text-gray-400 hover:text-white transition-colors"- title="Edit"- >- <Edit2 size={18} />- </button>- <button- onClick={() => setDeleteConfirm(selectedDoc.id)}- className="p-1.5 text-gray-400 hover:text-red-400 transition-colors"- title="Delete"- >- <Trash2 size={18} />- </button>- </>- )}+ <div className="flex items-center gap-1 sm:gap-2 flex-shrink-0">+ {/* Weight Control - hidden on mobile */}+ <div className="hidden md:flex items-center gap-2 px-2 py-1 bg-port-bg rounded border border-port-border" title="Document weight (1-10): Higher weight = included first when truncating">+ <Scale size={14} className="text-gray-500" />+ <input+ type="range"+ min="1"+ max="10"+ value={selectedDoc.weight || 5}+ onChange={(e) => handleWeightChange(selectedDoc, parseInt(e.target.value))}+ className="w-16 h-1 accent-port-accent"+ />+ <span className="text-xs text-gray-400 w-4">{selectedDoc.weight || 5}</span>+ </div>+ <button+ onClick={() => handleToggleEnabled(selectedDoc, !selectedDoc.enabled)}+ className={`p-2 min-h-[40px] min-w-[40px] flex items-center justify-center transition-colors ${+ selectedDoc.enabled ? 'text-green-400' : 'text-gray-500'+ }`}+ title={selectedDoc.enabled ? 'Disable for CoS injection' : 'Enable for CoS injection'}+ >+ {selectedDoc.enabled ? <ToggleRight size={20} /> : <ToggleLeft size={20} />}+ </button>+ {editMode ? (+ <>+ <button+ onClick={handleSave}+ disabled={saving}+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-green-400 hover:text-green-300 transition-colors disabled:opacity-50"+ title="Save"+ >+ <Save size={18} />+ </button>+ <button+ onClick={() => {+ setEditContent(selectedDoc.content);+ setEditMode(false);+ }}+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"+ title="Cancel"+ >+ <X size={18} />+ </button>+ </>+ ) : (+ <>+ <button+ onClick={() => setEditMode(true)}+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"+ title="Edit"+ >+ <Edit2 size={18} />+ </button>+ <button+ onClick={() => setDeleteConfirm(selectedDoc.id)}+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-red-400 transition-colors"+ title="Delete"+ >+ <Trash2 size={18} />+ </button>+ </>+ )}+ </div>+ </div>+ {/* Mobile weight control row */}+ <div className="flex md:hidden items-center gap-2 mt-2 pt-2 border-t border-port-border">+ <Scale size={14} className="text-gray-500" />+ <span className="text-xs text-gray-400">Weight:</span>+ <input+ type="range"+ min="1"+ max="10"+ value={selectedDoc.weight || 5}+ onChange={(e) => handleWeightChange(selectedDoc, parseInt(e.target.value))}+ className="flex-1 h-1 accent-port-accent"+ />+ <span className="text-xs text-gray-400 w-4">{selectedDoc.weight || 5}</span></div></div>@@ -282,8 +308,8 @@ export default function DocumentsTab({ onRefresh }) {{/* Create Document Modal */}{showCreate && (- <div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50">- <div className="bg-port-card rounded-lg border border-port-border w-full max-w-lg p-6">+ <div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4">+ <div className="bg-port-card rounded-lg border border-port-border w-full max-w-lg p-4 sm:p-6 max-h-[90vh] overflow-y-auto"><h2 className="text-lg font-semibold text-white mb-4">Create Soul Document</h2><div className="space-y-4">@@ -294,7 +320,7 @@ export default function DocumentsTab({ onRefresh }) {value={newDoc.filename}onChange={(e) => setNewDoc({ ...newDoc, filename: e.target.value })}placeholder="DOCUMENT_NAME.md"- className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white"+ className="w-full px-3 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white"/></div>@@ -305,7 +331,7 @@ export default function DocumentsTab({ onRefresh }) {value={newDoc.title}onChange={(e) => setNewDoc({ ...newDoc, title: e.target.value })}placeholder="Document title"- className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white"+ className="w-full px-3 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white"/></div>@@ -314,7 +340,7 @@ export default function DocumentsTab({ onRefresh }) {<selectvalue={newDoc.category}onChange={(e) => setNewDoc({ ...newDoc, category: e.target.value })}- className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white"+ className="w-full px-3 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white">{Object.entries(DOCUMENT_CATEGORIES).map(([key, config]) => (<option key={key} value={key}>{config.label}</option>@@ -328,26 +354,26 @@ export default function DocumentsTab({ onRefresh }) {value={newDoc.content}onChange={(e) => setNewDoc({ ...newDoc, content: e.target.value })}placeholder="# Document Title Content here..."- rows={10}- className="w-full px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white font-mono text-sm"+ rows={8}+ className="w-full px-3 py-3 bg-port-bg border border-port-border rounded-lg text-white font-mono text-sm"/></div></div>- <div className="flex justify-end gap-3 mt-6">+ <div className="flex flex-col-reverse sm:flex-row justify-end gap-3 mt-6"><buttononClick={() => {setShowCreate(false);setNewDoc({ filename: '', title: '', category: 'core', content: '' });}}- className="px-4 py-2 text-gray-400 hover:text-white transition-colors"+ className="px-4 py-3 min-h-[44px] text-gray-400 hover:text-white transition-colors">Cancel</button><buttononClick={handleCreate}disabled={saving}- className="px-4 py-2 bg-port-accent text-white rounded-lg hover:bg-port-accent/80 disabled:opacity-50"+ className="px-4 py-3 min-h-[44px] bg-port-accent text-white rounded-lg hover:bg-port-accent/80 disabled:opacity-50">{saving ? 'Creating...' : 'Create'}</button>@@ -358,22 +384,22 @@ export default function DocumentsTab({ onRefresh }) {{/* Delete Confirmation Modal */}{deleteConfirm && (- <div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50">- <div className="bg-port-card rounded-lg border border-port-border p-6 max-w-md">+ <div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4">+ <div className="bg-port-card rounded-lg border border-port-border p-4 sm:p-6 w-full max-w-md"><h2 className="text-lg font-semibold text-white mb-2">Delete Document?</h2><p className="text-gray-400 mb-6">This action cannot be undone. The document will be permanently deleted.</p>- <div className="flex justify-end gap-3">+ <div className="flex flex-col-reverse sm:flex-row justify-end gap-3"><buttononClick={() => setDeleteConfirm(null)}- className="px-4 py-2 text-gray-400 hover:text-white transition-colors"+ className="px-4 py-3 min-h-[44px] text-gray-400 hover:text-white transition-colors">Cancel</button><buttononClick={() => handleDelete(deleteConfirm)}- className="px-4 py-2 bg-red-500 text-white rounded-lg hover:bg-red-600"+ className="px-4 py-3 min-h-[44px] bg-red-500 text-white rounded-lg hover:bg-red-600">Delete</button>diff --git a/client/src/components/soul/tabs/EnrichTab.jsx b/client/src/components/soul/tabs/EnrichTab.jsxindex 93ad092341..f577123019 100644--- a/client/src/components/soul/tabs/EnrichTab.jsx+++ b/client/src/components/soul/tabs/EnrichTab.jsx@@ -194,24 +194,24 @@ export default function EnrichTab({ onRefresh }) {const Icon = categoryConfig?.icon || Sparkles;return (- <div className="max-w-2xl mx-auto">+ <div className="max-w-2xl mx-auto px-1">{/* Header */}- <div className="mb-8">+ <div className="mb-6 sm:mb-8"><buttononClick={exitCategory}- className="flex items-center gap-2 text-gray-400 hover:text-white mb-4"+ className="flex items-center gap-2 text-gray-400 hover:text-white mb-4 py-2 min-h-[44px]"><ArrowLeft size={18} />Back to categories</button>- <div className="flex items-center gap-4">- <div className={`p-3 rounded-lg bg-${categoryConfig?.color || 'blue'}-500/20`}>- <Icon className={`w-6 h-6 text-${categoryConfig?.color || 'blue'}-400`} />+ <div className="flex items-center gap-3 sm:gap-4">+ <div className={`p-2.5 sm:p-3 rounded-lg bg-${categoryConfig?.color || 'blue'}-500/20 flex-shrink-0`}>+ <Icon className={`w-5 h-5 sm:w-6 sm:h-6 text-${categoryConfig?.color || 'blue'}-400`} /></div>- <div>- <h2 className="text-xl font-bold text-white">{categoryConfig?.label}</h2>- <p className="text-gray-400">{categoryConfig?.description}</p>+ <div className="min-w-0">+ <h2 className="text-lg sm:text-xl font-bold text-white">{categoryConfig?.label}</h2>+ <p className="text-sm sm:text-base text-gray-400 truncate">{categoryConfig?.description}</p></div></div>@@ -261,10 +261,10 @@ export default function EnrichTab({ onRefresh }) {</div></div>- <div className="flex items-center justify-between">+ <div className="flex flex-col-reverse sm:flex-row items-stretch sm:items-center justify-between gap-3"><buttononClick={skipQuestion}- className="flex items-center gap-2 px-4 py-2 text-gray-400 hover:text-white transition-colors"+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[44px] text-gray-400 hover:text-white transition-colors"><SkipForward size={18} />Skip@@ -273,7 +273,7 @@ export default function EnrichTab({ onRefresh }) {<buttononClick={submitAnswer}disabled={submitting || !answer.trim()}- className="flex items-center gap-2 px-6 py-3 bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed">{submitting ? (<>@@ -333,7 +333,7 @@ export default function EnrichTab({ onRefresh }) {</div>{/* Category Grid */}- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4">{Object.entries(ENRICHMENT_CATEGORIES).map(([key, config]) => {const catProgress = progress?.categories?.[key];const isComplete = catProgress?.completed;@@ -343,7 +343,7 @@ export default function EnrichTab({ onRefresh }) {<buttonkey={key}onClick={() => startCategory(key)}- className={`p-4 bg-port-card rounded-lg border transition-all text-left hover:border-port-accent ${+ className={`p-4 min-h-[120px] bg-port-card rounded-lg border transition-all text-left hover:border-port-accent ${isComplete ? 'border-green-500/30' : 'border-port-border'}`}>@@ -359,7 +359,7 @@ export default function EnrichTab({ onRefresh }) {</div><h3 className="font-semibold text-white mb-1">{config.label}</h3>- <p className="text-sm text-gray-400 mb-3">{config.description}</p>+ <p className="text-sm text-gray-400 mb-3 line-clamp-2">{config.description}</p><div className="flex items-center justify-between text-xs"><span className="text-gray-500">@@ -421,7 +421,7 @@ export default function EnrichTab({ onRefresh }) {</p>{/* Provider Selection */}- <div className="flex items-center gap-4">+ <div className="flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-4"><label className="text-sm text-gray-400">Analyze with:</label><selectvalue={selectedProvider ? `${selectedProvider.providerId}:${selectedProvider.model}` : ''}@@ -429,7 +429,7 @@ export default function EnrichTab({ onRefresh }) {const [providerId, model] = e.target.value.split(':');setSelectedProvider({ providerId, model });}}- className="px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white text-sm"+ className="px-3 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white text-sm">{providers.map(p => ((p.models || [p.defaultModel]).filter(Boolean).map(model => (@@ -467,10 +467,10 @@ export default function EnrichTab({ onRefresh }) {))}</div>- <div className="flex items-center gap-4">+ <div className="flex flex-col sm:flex-row items-stretch sm:items-center gap-3 sm:gap-4"><buttononClick={addWritingSample}- className="px-4 py-2 text-sm text-port-accent hover:text-white border border-port-accent/30 rounded-lg hover:border-port-accent"+ className="px-4 py-3 min-h-[44px] text-sm text-port-accent hover:text-white border border-port-accent/30 rounded-lg hover:border-port-accent">+ Add Another Sample</button>@@ -478,7 +478,7 @@ export default function EnrichTab({ onRefresh }) {<buttononClick={analyzeWriting}disabled={analyzingWriting}- className="px-4 py-2 bg-cyan-600 text-white rounded-lg text-sm hover:bg-cyan-500 disabled:opacity-50 flex items-center gap-2"+ className="px-4 py-3 min-h-[44px] bg-cyan-600 text-white rounded-lg text-sm hover:bg-cyan-500 disabled:opacity-50 flex items-center justify-center gap-2">{analyzingWriting ? (<>@@ -503,7 +503,7 @@ export default function EnrichTab({ onRefresh }) {</h4>{writingAnalysis.analysis && (- <div className="grid grid-cols-2 md:grid-cols-4 gap-3">+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3">{writingAnalysis.analysis.formality && (<div className="p-3 bg-port-bg rounded-lg"><div className="text-xs text-gray-500">Formality</div>@@ -540,12 +540,12 @@ export default function EnrichTab({ onRefresh }) {{writingAnalysis.suggestedContent && (<div className="space-y-2">- <div className="flex items-center justify-between">+ <div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2"><div className="text-sm text-gray-400">Suggested WRITING_STYLE.md content:</div><buttononClick={saveWritingStyle}disabled={savingWritingStyle}- className="px-3 py-1 bg-green-600 text-white rounded text-sm hover:bg-green-500 disabled:opacity-50 flex items-center gap-1"+ className="px-3 py-2 min-h-[40px] bg-green-600 text-white rounded text-sm hover:bg-green-500 disabled:opacity-50 flex items-center justify-center gap-1">{savingWritingStyle ? (<RefreshCw className="w-3 h-3 animate-spin" />diff --git a/client/src/components/soul/tabs/ExportTab.jsx b/client/src/components/soul/tabs/ExportTab.jsxindex 4078050a1e..60eadc6d04 100644--- a/client/src/components/soul/tabs/ExportTab.jsx+++ b/client/src/components/soul/tabs/ExportTab.jsx@@ -126,9 +126,9 @@ export default function ExportTab({ onRefresh }) {}return (- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6">{/* Configuration */}- <div className="space-y-6">+ <div className="space-y-4 sm:space-y-6">{/* Format Selection */}<div className="bg-port-card rounded-lg border border-port-border p-4"><h3 className="font-semibold text-white mb-4">Export Format</h3>@@ -142,16 +142,16 @@ export default function ExportTab({ onRefresh }) {setSelectedFormat(format.id);setExportResult(null);}}- className={`w-full flex items-start gap-3 p-3 rounded-lg border transition-colors text-left ${+ className={`w-full flex items-start gap-3 p-3 min-h-[60px] rounded-lg border transition-colors text-left ${selectedFormat === format.id? 'border-port-accent bg-port-accent/10': 'border-port-border hover:border-gray-500'}`}>- <Icon className={`w-5 h-5 mt-0.5 ${+ <Icon className={`w-5 h-5 mt-0.5 flex-shrink-0 ${selectedFormat === format.id ? 'text-port-accent' : 'text-gray-400'}`} />- <div>+ <div className="min-w-0"><div className={`font-medium ${selectedFormat === format.id ? 'text-port-accent' : 'text-white'}`}>@@ -169,39 +169,39 @@ export default function ExportTab({ onRefresh }) {<div className="bg-port-card rounded-lg border border-port-border p-4"><div className="flex items-center justify-between mb-4"><h3 className="font-semibold text-white">Documents ({selectedDocs.length})</h3>- <div className="flex gap-2">+ <div className="flex gap-3"><buttononClick={() => setSelectedDocs(documents.map(d => d.id))}- className="text-xs text-port-accent hover:text-white"+ className="text-xs py-1 px-2 min-h-[32px] text-port-accent hover:text-white">All</button><buttononClick={() => setSelectedDocs(documents.filter(d => d.enabled).map(d => d.id))}- className="text-xs text-gray-500 hover:text-white"+ className="text-xs py-1 px-2 min-h-[32px] text-gray-500 hover:text-white">Enabled</button><buttononClick={() => setSelectedDocs([])}- className="text-xs text-gray-500 hover:text-white"+ className="text-xs py-1 px-2 min-h-[32px] text-gray-500 hover:text-white">None</button></div></div>- <div className="space-y-2 max-h-64 overflow-y-auto">+ <div className="space-y-1 max-h-64 overflow-y-auto">{documents.map(doc => (<labelkey={doc.id}- className="flex items-center gap-3 p-2 rounded hover:bg-port-border cursor-pointer"+ className="flex items-center gap-3 p-2 min-h-[44px] rounded hover:bg-port-border cursor-pointer"><inputtype="checkbox"checked={selectedDocs.includes(doc.id)}onChange={() => toggleDocument(doc.id)}- className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"+ className="w-5 h-5 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"/><div className="flex-1 min-w-0"><div className={`text-sm truncate ${doc.enabled ? 'text-white' : 'text-gray-500'}`}>@@ -216,12 +216,12 @@ export default function ExportTab({ onRefresh }) {))}</div>- <label className="flex items-center gap-2 mt-4 pt-4 border-t border-port-border">+ <label className="flex items-center gap-3 mt-4 pt-4 border-t border-port-border min-h-[44px]"><inputtype="checkbox"checked={includeDisabled}onChange={(e) => setIncludeDisabled(e.target.checked)}- className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"+ className="w-5 h-5 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"/><span className="text-sm text-gray-400">Include disabled documents</span></label>@@ -231,7 +231,7 @@ export default function ExportTab({ onRefresh }) {<buttononClick={handleExport}disabled={exporting || selectedDocs.length === 0}- className="w-full flex items-center justify-center gap-2 px-6 py-3 bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"+ className="w-full flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed">{exporting ? (<>@@ -248,8 +248,8 @@ export default function ExportTab({ onRefresh }) {</div>{/* Preview / Result */}- <div className="bg-port-card rounded-lg border border-port-border overflow-hidden flex flex-col">- <div className="p-4 border-b border-port-border flex items-center justify-between">+ <div className="bg-port-card rounded-lg border border-port-border overflow-hidden flex flex-col min-h-[300px] lg:min-h-0">+ <div className="p-4 border-b border-port-border flex flex-wrap items-center justify-between gap-2"><h3 className="font-semibold text-white flex items-center gap-2"><Eye size={18} />Preview@@ -257,19 +257,19 @@ export default function ExportTab({ onRefresh }) {{exportResult && (<div className="flex items-center gap-2">- <span className="text-sm text-gray-500">+ <span className="text-sm text-gray-500 hidden sm:inline">~{exportResult.tokenEstimate?.toLocaleString()} tokens</span><buttononClick={copyToClipboard}- className="p-1.5 text-gray-400 hover:text-white transition-colors"+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"title="Copy to clipboard">{copied ? <Check size={18} className="text-green-400" /> : <Copy size={18} />}</button><buttononClick={downloadFile}- className="p-1.5 text-gray-400 hover:text-white transition-colors"+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"title="Download"><Download size={18} />diff --git a/client/src/components/soul/tabs/OverviewTab.jsx b/client/src/components/soul/tabs/OverviewTab.jsxindex 005e51d81e..e228ec2431 100644--- a/client/src/components/soul/tabs/OverviewTab.jsx+++ b/client/src/components/soul/tabs/OverviewTab.jsx@@ -110,7 +110,7 @@ export default function OverviewTab({ status, settings, onRefresh }) {When loaded into an LLM, it creates a digital twin that thinks and responds like you.</p>- <div className="grid grid-cols-1 md:grid-cols-3 gap-4 w-full mb-8">+ <div className="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full mb-8"><div className="p-4 bg-port-card rounded-lg border border-port-border"><FileText className="w-8 h-8 text-purple-400 mb-3" /><h3 className="font-semibold text-white mb-2">Core Identity</h3>@@ -128,22 +128,22 @@ export default function OverviewTab({ status, settings, onRefresh }) {</div></div>- <div className="flex gap-4">+ <div className="flex flex-col sm:flex-row gap-3 sm:gap-4"><buttononClick={() => setShowWizard(true)}- className="px-6 py-3 bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 transition-colors"+ className="px-6 py-3 min-h-[44px] bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 transition-colors">Start Wizard</button><buttononClick={() => navigate('/soul/enrich')}- className="px-6 py-3 bg-port-card text-white rounded-lg font-medium border border-port-border hover:bg-port-border transition-colors"+ className="px-6 py-3 min-h-[44px] bg-port-card text-white rounded-lg font-medium border border-port-border hover:bg-port-border transition-colors">Start Enrichment</button><buttononClick={() => navigate('/soul/documents')}- className="px-6 py-3 bg-port-card text-white rounded-lg font-medium border border-port-border hover:bg-port-border transition-colors"+ className="px-6 py-3 min-h-[44px] bg-port-card text-white rounded-lg font-medium border border-port-border hover:bg-port-border transition-colors">Create Document</button>@@ -160,16 +160,16 @@ export default function OverviewTab({ status, settings, onRefresh }) {<h2 className="text-lg font-semibold text-white">Soul Health</h2><buttononClick={() => setShowSettings(!showSettings)}- className="p-2 text-gray-400 hover:text-white transition-colors"+ className="p-2 min-h-[40px] min-w-[40px] flex items-center justify-center text-gray-400 hover:text-white transition-colors"title="Settings"><Settings size={20} /></button></div>- <div className="flex items-center gap-6">- <div className="relative w-32 h-32">- <svg className="w-full h-full transform -rotate-90">+ <div className="flex flex-col sm:flex-row items-center gap-6">+ <div className="relative w-28 h-28 sm:w-32 sm:h-32 flex-shrink-0">+ <svg className="w-full h-full transform -rotate-90" viewBox="0 0 128 128"><circlecx="64"cy="64"@@ -192,7 +192,7 @@ export default function OverviewTab({ status, settings, onRefresh }) {/></svg><div className="absolute inset-0 flex flex-col items-center justify-center">- <span className={`text-3xl font-bold ${getHealthColor(status.healthScore)}`}>+ <span className={`text-2xl sm:text-3xl font-bold ${getHealthColor(status.healthScore)}`}>{status.healthScore}%</span><span className="text-xs text-gray-500">@@ -201,22 +201,22 @@ export default function OverviewTab({ status, settings, onRefresh }) {</div></div>- <div className="flex-1 grid grid-cols-3 gap-4">- <div>- <div className="text-2xl font-bold text-white">{status.enabledDocuments}</div>- <div className="text-sm text-gray-500">Active Documents</div>+ <div className="flex-1 grid grid-cols-3 gap-2 sm:gap-4 w-full">+ <div className="text-center sm:text-left">+ <div className="text-xl sm:text-2xl font-bold text-white">{status.enabledDocuments}</div>+ <div className="text-xs sm:text-sm text-gray-500">Active Docs</div></div>- <div>- <div className="text-2xl font-bold text-white">+ <div className="text-center sm:text-left">+ <div className="text-xl sm:text-2xl font-bold text-white">{status.enrichmentProgress?.completedCategories || 0}/{status.enrichmentProgress?.totalCategories || 10}</div>- <div className="text-sm text-gray-500">Enriched Categories</div>+ <div className="text-xs sm:text-sm text-gray-500">Enriched</div></div>- <div>- <div className="text-2xl font-bold text-white">+ <div className="text-center sm:text-left">+ <div className="text-xl sm:text-2xl font-bold text-white">{status.lastTestRun ? `${Math.round(status.lastTestRun.score * 100)}%` : '—'}</div>- <div className="text-sm text-gray-500">Last Test Score</div>+ <div className="text-xs sm:text-sm text-gray-500">Test Score</div></div></div></div>@@ -350,14 +350,14 @@ export default function OverviewTab({ status, settings, onRefresh }) {Use AI to detect contradictions or inconsistencies between your soul documents.</p>- <div className="flex items-center gap-4 mb-4">+ <div className="flex flex-col sm:flex-row items-stretch sm:items-center gap-3 sm:gap-4 mb-4"><selectvalue={selectedProvider ? `${selectedProvider.providerId}:${selectedProvider.model}` : ''}onChange={(e) => {const [providerId, model] = e.target.value.split(':');setSelectedProvider({ providerId, model });}}- className="px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white text-sm"+ className="px-3 py-3 min-h-[44px] bg-port-bg border border-port-border rounded-lg text-white text-sm">{providers.map(p => ((p.models || [p.defaultModel]).filter(Boolean).map(model => (@@ -371,7 +371,7 @@ export default function OverviewTab({ status, settings, onRefresh }) {<buttononClick={checkContradictions}disabled={checkingContradictions}- className="px-4 py-2 bg-port-accent text-white rounded-lg text-sm hover:bg-port-accent/80 disabled:opacity-50 flex items-center gap-2"+ className="px-4 py-3 min-h-[44px] bg-port-accent text-white rounded-lg text-sm hover:bg-port-accent/80 disabled:opacity-50 flex items-center justify-center gap-2">{checkingContradictions ? (<>@@ -423,9 +423,9 @@ export default function OverviewTab({ status, settings, onRefresh }) {</div>{/* Document Categories */}- <div className="bg-port-card rounded-lg border border-port-border p-6">+ <div className="bg-port-card rounded-lg border border-port-border p-4 sm:p-6"><h2 className="text-lg font-semibold text-white mb-4">Documents by Category</h2>- <div className="grid grid-cols-2 md:grid-cols-4 gap-4">+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4">{Object.entries(DOCUMENT_CATEGORIES).map(([key, config]) => {const count = status.documentsByCategory?.[key] || 0;const Icon = config.icon;@@ -447,17 +447,17 @@ export default function OverviewTab({ status, settings, onRefresh }) {</div>{/* Quick Actions */}- <div className="grid grid-cols-1 md:grid-cols-3 gap-4">+ <div className="grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-4"><buttononClick={() => navigate('/soul/test')}- className="flex items-center gap-4 p-4 bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"+ className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors">- <div className="p-3 rounded-lg bg-green-500/20">- <Play className="w-6 h-6 text-green-400" />+ <div className="p-2.5 sm:p-3 rounded-lg bg-green-500/20 flex-shrink-0">+ <Play className="w-5 h-5 sm:w-6 sm:h-6 text-green-400" /></div>- <div className="text-left">+ <div className="text-left min-w-0"><div className="font-medium text-white">Run Tests</div>- <div className="text-sm text-gray-500">+ <div className="text-sm text-gray-500 truncate">{status.lastTestRun? `Last: ${formatRelativeTime(status.lastTestRun.timestamp)}`: 'Test behavioral alignment'}@@ -467,14 +467,14 @@ export default function OverviewTab({ status, settings, onRefresh }) {<buttononClick={() => navigate('/soul/enrich')}- className="flex items-center gap-4 p-4 bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"+ className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors">- <div className="p-3 rounded-lg bg-yellow-500/20">- <Sparkles className="w-6 h-6 text-yellow-400" />+ <div className="p-2.5 sm:p-3 rounded-lg bg-yellow-500/20 flex-shrink-0">+ <Sparkles className="w-5 h-5 sm:w-6 sm:h-6 text-yellow-400" /></div>- <div className="text-left">+ <div className="text-left min-w-0"><div className="font-medium text-white">Enrich Soul</div>- <div className="text-sm text-gray-500">+ <div className="text-sm text-gray-500 truncate">{status.enrichmentProgress?.completedCategories || 0} categories complete</div></div>@@ -482,25 +482,25 @@ export default function OverviewTab({ status, settings, onRefresh }) {<buttononClick={() => navigate('/soul/export')}- className="flex items-center gap-4 p-4 bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors"+ className="flex items-center gap-3 sm:gap-4 p-4 min-h-[72px] bg-port-card rounded-lg border border-port-border hover:border-port-accent transition-colors">- <div className="p-3 rounded-lg bg-blue-500/20">- <Download className="w-6 h-6 text-blue-400" />+ <div className="p-2.5 sm:p-3 rounded-lg bg-blue-500/20 flex-shrink-0">+ <Download className="w-5 h-5 sm:w-6 sm:h-6 text-blue-400" /></div>- <div className="text-left">+ <div className="text-left min-w-0"><div className="font-medium text-white">Export Soul</div>- <div className="text-sm text-gray-500">Download for external LLMs</div>+ <div className="text-sm text-gray-500 truncate">Download for external LLMs</div></div></button></div>{/* Last Test Result */}{status.lastTestRun && (- <div className="bg-port-card rounded-lg border border-port-border p-6">+ <div className="bg-port-card rounded-lg border border-port-border p-4 sm:p-6"><h2 className="text-lg font-semibold text-white mb-4">Latest Test Run</h2>- <div className="flex items-center justify-between">+ <div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4"><div className="flex items-center gap-4">- <div className={`text-3xl font-bold ${+ <div className={`text-2xl sm:text-3xl font-bold ${status.lastTestRun.score >= 0.8 ? 'text-green-400' :status.lastTestRun.score >= 0.5 ? 'text-yellow-400' : 'text-red-400'}`}>@@ -510,14 +510,14 @@ export default function OverviewTab({ status, settings, onRefresh }) {<div className="text-white font-medium">{status.lastTestRun.passed}/{status.lastTestRun.total} tests passed</div>- <div className="text-sm text-gray-500">+ <div className="text-xs sm:text-sm text-gray-500">Model: {status.lastTestRun.model} • {formatRelativeTime(status.lastTestRun.timestamp)}</div></div></div><buttononClick={() => navigate('/soul/test')}- className="px-4 py-2 text-sm text-port-accent hover:text-white transition-colors"+ className="px-4 py-2 min-h-[40px] text-sm text-port-accent hover:text-white transition-colors">View Details</button>diff --git a/client/src/components/soul/tabs/TestTab.jsx b/client/src/components/soul/tabs/TestTab.jsxindex 4cbdfef482..738d345057 100644--- a/client/src/components/soul/tabs/TestTab.jsx+++ b/client/src/components/soul/tabs/TestTab.jsx@@ -163,7 +163,7 @@ export default function TestTab({ onRefresh }) {return (<div className="space-y-6">{/* Configuration */}- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-4 sm:gap-6">{/* Provider Selection */}<div className="bg-port-card rounded-lg border border-port-border p-4"><h3 className="font-semibold text-white mb-4">Select Providers & Models</h3>@@ -180,7 +180,7 @@ export default function TestTab({ onRefresh }) {<buttonkey={model}onClick={() => toggleProvider(provider.id, model)}- className={`px-3 py-1.5 text-sm rounded-lg border transition-colors ${+ className={`px-3 py-2 min-h-[40px] text-sm rounded-lg border transition-colors ${isSelected? 'bg-port-accent/20 border-port-accent text-port-accent': 'border-port-border text-gray-400 hover:text-white hover:border-gray-500'@@ -200,32 +200,32 @@ export default function TestTab({ onRefresh }) {<div className="bg-port-card rounded-lg border border-port-border p-4"><div className="flex items-center justify-between mb-4"><h3 className="font-semibold text-white">Select Tests ({selectedTests.length}/{tests.length})</h3>- <div className="flex gap-2">+ <div className="flex gap-3"><buttononClick={() => setSelectedTests(tests.map(t => t.testId))}- className="text-xs text-port-accent hover:text-white"+ className="text-xs py-1 px-2 min-h-[32px] text-port-accent hover:text-white">All</button><buttononClick={() => setSelectedTests([])}- className="text-xs text-gray-500 hover:text-white"+ className="text-xs py-1 px-2 min-h-[32px] text-gray-500 hover:text-white">None</button></div></div>- <div className="space-y-2 max-h-64 overflow-y-auto">+ <div className="space-y-1 max-h-64 overflow-y-auto">{tests.map(test => (<labelkey={test.testId}- className="flex items-center gap-3 p-2 rounded hover:bg-port-border cursor-pointer"+ className="flex items-center gap-3 p-2 min-h-[44px] rounded hover:bg-port-border cursor-pointer"><inputtype="checkbox"checked={selectedTests.includes(test.testId)}onChange={() => toggleTest(test.testId)}- className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"+ className="w-5 h-5 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent"/><span className="text-sm text-white">{test.testId}. {test.testName}@@ -237,11 +237,11 @@ export default function TestTab({ onRefresh }) {</div>{/* Run Button */}- <div className="flex items-center gap-4">+ <div className="flex flex-col sm:flex-row items-stretch sm:items-center gap-3 sm:gap-4"><buttononClick={runTests}disabled={running || selectedProviders.length === 0}- className="flex items-center gap-2 px-6 py-3 bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-6 py-3 min-h-[48px] bg-port-accent text-white rounded-lg font-medium hover:bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed">{running ? (<>@@ -259,7 +259,7 @@ export default function TestTab({ onRefresh }) {<buttononClick={generateTests}disabled={generating || selectedProviders.length === 0}- className="flex items-center gap-2 px-4 py-3 bg-purple-600 text-white rounded-lg font-medium hover:bg-purple-500 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex items-center justify-center gap-2 px-4 py-3 min-h-[48px] bg-purple-600 text-white rounded-lg font-medium hover:bg-purple-500 disabled:opacity-50 disabled:cursor-not-allowed">{generating ? (<>@@ -275,7 +275,7 @@ export default function TestTab({ onRefresh }) {</button>{selectedProviders.length > 0 && (- <span className="text-sm text-gray-500">+ <span className="text-sm text-gray-500 text-center sm:text-left">Testing against {selectedProviders.length} model{selectedProviders.length > 1 ? 's' : ''}</span>)}@@ -317,7 +317,7 @@ export default function TestTab({ onRefresh }) {<div className="text-sm text-gray-300 mb-3"><span className="text-gray-500">Prompt:</span> "{test.prompt}"</div>- <div className="grid grid-cols-2 gap-4 text-sm">+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 text-sm"><div><div className="text-green-400 text-xs mb-1">Expected Behavior</div><div className="text-gray-400">{test.expectedBehavior}</div>@@ -346,8 +346,8 @@ export default function TestTab({ onRefresh }) {</div>{/* Results Table */}- <div className="overflow-x-auto">- <table className="w-full">+ <div className="overflow-x-auto -mx-4 sm:mx-0">+ <table className="w-full min-w-[500px]"><thead><tr className="border-b border-port-border"><th className="px-4 py-3 text-left text-sm font-medium text-gray-400">Test</th>diff --git a/client/src/pages/Soul.jsx b/client/src/pages/Soul.jsxindex 72a76a2f12..d75e61aa7e 100644--- a/client/src/pages/Soul.jsx+++ b/client/src/pages/Soul.jsx@@ -68,9 +68,9 @@ export default function Soul() {return (<div className="flex flex-col h-full">{/* Header */}- <div className="flex items-center justify-between p-4 border-b border-port-border">+ <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between p-4 gap-3 border-b border-port-border"><div className="flex items-center gap-3">- <Heart className="w-8 h-8 text-pink-500" />+ <Heart className="w-8 h-8 text-pink-500 flex-shrink-0" /><div><h1 className="text-xl font-bold text-white">Soul</h1><p className="text-sm text-gray-500">Digital twin identity scaffold</p>@@ -79,7 +79,7 @@ export default function Soul() {{/* Quick stats */}{status && (- <div className="flex items-center gap-4 text-sm">+ <div className="flex flex-wrap items-center gap-x-4 gap-y-1 text-sm"><div className="flex items-center gap-2"><span className="text-gray-500">Health:</span><span className={`font-medium ${getHealthColor(status.healthScore)}`}>@@ -99,7 +99,7 @@ export default function Soul() {</div>{/* Tab navigation */}- <div className="flex border-b border-port-border">+ <div className="flex overflow-x-auto border-b border-port-border scrollbar-hide">{TABS.map((tabItem) => {const Icon = tabItem.icon;const isActive = activeTab === tabItem.id;@@ -107,7 +107,7 @@ export default function Soul() {<buttonkey={tabItem.id}onClick={() => handleTabChange(tabItem.id)}- className={`flex items-center gap-2 px-4 py-3 text-sm font-medium transition-colors ${+ className={`flex items-center gap-2 px-3 sm:px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap min-h-[44px] ${isActive? 'text-port-accent border-b-2 border-port-accent bg-port-accent/5': 'text-gray-400 hover:text-white hover:bg-port-card'@@ -116,7 +116,7 @@ export default function Soul() {aria-selected={isActive}><Icon size={16} aria-hidden="true" />- {tabItem.label}+ <span className="hidden xs:inline sm:inline">{tabItem.label}</span></button>);})}