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
fix(settings): reflow Settings tabs cleanly on mobile
Adam Eivy8a448037b8d0
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex ab79286a89..5213efe7e1 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -46,6 +46,8 @@## Fixed+- **Settings tabs reflow cleanly on mobile.** The Timezone row in `Settings → General` (input + Save + "Use detected: <long-tz>") used to overflow a 375 px viewport because everything was forced into a single `flex` row with a `max-w-xs` input that filled the screen and pushed the buttons off the right edge. The row now stacks vertically below `sm` and the detected-tz button truncates instead of breaking layout. Same family of fix applied across the rest of the Settings panes — `Voice`, `MortalLoom`, `Telegram`, `Backup`, `Database` — where action-button rows now wrap (`flex-wrap`) and inherit a 40 px `min-h` so buttons stay tappable when they reflow onto a second line. Card padding uniformly drops from `p-6` to `p-4 sm:p-6` so 16 px is reclaimed on each side at mobile widths. VoiceTab's checkbox-with-helper rows (Enable voice mode, Show floating widget, Use personality, Enable tools, CoreML encoder) used to squish the gray hint inline next to the main label and produced a wall of vertically-misaligned text on a phone — they now stack the hint below the main label on mobile and inline it on `sm+`. The MortalLoom Enabled toggle's hint similarly drops to a second row on phone widths instead of pushing the toggle off-screen. The Telegram bot-token reveal/hide button gains a 40 px tap target, and the BackupTab "+" exclude-path button matches.+- **CoS Schedule tab — agent-option toggles now respond to taps on iPhone.** The per-task "Agent Options" rows in `/cos/schedule` rendered a `<ToggleSwitch>` (which is a `<button>`) inside another `<button>`, producing invalid nested-button HTML. iOS Safari refuses to dispatch tap events reliably for nested interactive controls, so tapping the toggle (or the row) sometimes did nothing. `ToggleSwitch` now supports a `decorative` prop that renders as a `<span>` (with `aria-hidden`) so it can be used purely visually inside another button without breaking the click target. The Schedule tab's Agent Options use it; the outer button's existing `aria-pressed` continues to communicate state to assistive tech.- **Day/night theme toggles now have real mobile tap targets.** The per-card Sun/Moon switch in `Settings → General` and the global Sun/Moon button in the sidebar/mobile-header rendered ~26–30px buttons (`p-1.5` around a 14–18px icon), which sat below the 40px minimum touch target rule and were especially error-prone in the per-card pill where the two adjacent buttons share a 2px-padded seam. Both now expand to a `min-w-[40px] min-h-[40px]` touch target on mobile and collapse back to the original compact pill at `sm+` so the desktop chrome stays tight.diff --git a/client/src/components/settings/BackupTab.jsx b/client/src/components/settings/BackupTab.jsxindex b6952af81a..2002094b84 100644--- a/client/src/components/settings/BackupTab.jsx+++ b/client/src/components/settings/BackupTab.jsx@@ -54,7 +54,7 @@ export function BackupTab() {}return (- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-5">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-5"><div className="space-y-1"><label className="block text-sm text-gray-400">Destination Path</label><input@@ -103,7 +103,8 @@ export function BackupTab() {<buttononClick={addExclude}disabled={!newExclude.trim()}- className="px-3 py-2 bg-port-border hover:bg-port-border/70 text-white rounded-lg transition-colors disabled:opacity-50"+ aria-label="Add exclude path"+ className="inline-flex items-center justify-center min-w-[40px] min-h-[40px] px-3 py-2 bg-port-border hover:bg-port-border/70 text-white rounded-lg transition-colors disabled:opacity-50 shrink-0"><Plus size={16} /></button>@@ -125,7 +126,7 @@ export function BackupTab() {<buttononClick={handleSave}disabled={saving}- className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50">{saving ? <BrailleSpinner /> : <Save size={16} />}Savediff --git a/client/src/components/settings/DatabaseTab.jsx b/client/src/components/settings/DatabaseTab.jsxindex 743a8d57c7..0cc2eb837e 100644--- a/client/src/components/settings/DatabaseTab.jsx+++ b/client/src/components/settings/DatabaseTab.jsx@@ -232,7 +232,7 @@ export function DatabaseTab() {return (<div className="space-y-4">- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-5">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-5">{/* Connection summary */}<div className="flex items-center justify-between"><div className="flex items-center gap-3">diff --git a/client/src/components/settings/GeneralTab.jsx b/client/src/components/settings/GeneralTab.jsxindex 35a0e6b85f..d2db7ce021 100644--- a/client/src/components/settings/GeneralTab.jsx+++ b/client/src/components/settings/GeneralTab.jsx@@ -57,29 +57,29 @@ export function GeneralTab() {return (<div className="space-y-6">- <div className="bg-port-card border border-port-border rounded-lg p-6">+ <div className="bg-port-card border border-port-border rounded-lg p-4 sm:p-6"><h3 className="text-lg font-semibold text-white mb-4">Interface Theme</h3><ThemePickerPanel /></div>- <div className="bg-port-card border border-port-border rounded-lg p-6">+ <div className="bg-port-card border border-port-border rounded-lg p-4 sm:p-6"><h3 className="text-lg font-semibold text-white mb-4">Timezone</h3><p className="text-sm text-gray-400 mb-4">Used for job scheduling (cron expressions & scheduled times) and briefing dates.</p>- <div className="flex items-center gap-3">+ <div className="flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3"><inputtype="text"value={timezone}onChange={e => setTimezone(e.target.value)}placeholder={detectedTz}- className="flex-1 max-w-xs px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white text-sm"+ className="w-full sm:flex-1 sm:max-w-xs min-w-0 px-3 py-2 bg-port-bg border border-port-border rounded-lg text-white text-sm"list="tz-list"/><buttononClick={() => handleSave(timezone)}disabled={saving}- className="px-4 py-2 bg-port-accent/20 hover:bg-port-accent/30 text-port-accent rounded-lg text-sm transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center min-h-[40px] px-4 py-2 bg-port-accent/20 hover:bg-port-accent/30 text-port-accent rounded-lg text-sm transition-colors disabled:opacity-50 whitespace-nowrap"><Save size={14} className="inline mr-1" />{saving ? 'Saving...' : 'Save'}@@ -88,14 +88,15 @@ export function GeneralTab() {<buttononClick={() => handleSave(detectedTz)}disabled={saving}- className="px-3 py-2 text-sm text-gray-400 hover:text-white transition-colors"+ className="inline-flex items-center justify-center min-h-[40px] px-3 py-2 text-sm text-gray-400 hover:text-white transition-colors truncate"+ title={`Use detected: ${detectedTz}`}>- Use detected: {detectedTz}+ <span className="truncate">Use detected: {detectedTz}</span></button>)}</div>{timezone && timezone !== detectedTz && (- <p className="text-xs text-gray-500 mt-2">+ <p className="text-xs text-gray-500 mt-2 break-all">Browser detected: {detectedTz}</p>)}diff --git a/client/src/components/settings/MortalLoomTab.jsx b/client/src/components/settings/MortalLoomTab.jsxindex 41a55d3861..e68e031df4 100644--- a/client/src/components/settings/MortalLoomTab.jsx+++ b/client/src/components/settings/MortalLoomTab.jsx@@ -90,7 +90,7 @@ export function MortalLoomTab() {return (<div className="space-y-5">- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-5">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-5"><div><h3 className="text-lg font-semibold text-white mb-1">MortalLoom iCloud Sync</h3><p className="text-sm text-gray-400">@@ -108,15 +108,16 @@ export function MortalLoomTab() {</a></div>- <div className="flex items-center gap-3">+ <div className="flex flex-wrap items-center gap-x-3 gap-y-1"><label className="text-sm text-gray-400">Enabled</label><buttononClick={() => setEnabled(!enabled)}- className={`relative w-10 h-5 rounded-full transition-colors ${enabled ? 'bg-port-accent' : 'bg-port-border'}`}+ aria-pressed={enabled}+ className={`relative w-10 h-5 rounded-full transition-colors shrink-0 ${enabled ? 'bg-port-accent' : 'bg-port-border'}`}><span className={`absolute top-0.5 left-0.5 w-4 h-4 rounded-full bg-white transition-transform ${enabled ? 'translate-x-5' : ''}`} /></button>- <span className="text-xs text-gray-500">+ <span className="basis-full sm:basis-auto text-xs text-gray-500">When enabled, Goals and Meatspace views surface MortalLoom data.</span></div>@@ -135,11 +136,11 @@ export function MortalLoomTab() {</p></div>- <div className="flex items-center gap-3">+ <div className="flex flex-wrap items-center gap-2 sm:gap-3"><buttononClick={handleSave}disabled={saving}- className="px-4 py-2 bg-port-accent/20 hover:bg-port-accent/30 text-port-accent rounded-lg text-sm transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center min-h-[40px] px-4 py-2 bg-port-accent/20 hover:bg-port-accent/30 text-port-accent rounded-lg text-sm transition-colors disabled:opacity-50"><Save size={14} className="inline mr-1" />{saving ? 'Saving…' : 'Save'}@@ -147,7 +148,7 @@ export function MortalLoomTab() {<buttononClick={handleImport}disabled={importing || !status?.exists || !enabled}- className="px-4 py-2 bg-port-bg border border-port-border hover:border-port-accent text-white rounded-lg text-sm transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center min-h-[40px] px-4 py-2 bg-port-bg border border-port-border hover:border-port-accent text-white rounded-lg text-sm transition-colors disabled:opacity-50"title={!enabled ? 'Enable sync first' : !status?.exists ? 'MortalLoom.json not found' : 'Import into PortOS'}><Download size={14} className="inline mr-1" />@@ -160,7 +161,7 @@ export function MortalLoomTab() {</p></div>- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-3">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-3"><h3 className="text-sm font-semibold text-white">iCloud file status</h3><div className="text-xs text-gray-400 space-y-1 font-mono"><div className="flex items-start gap-2">diff --git a/client/src/components/settings/TelegramTab.jsx b/client/src/components/settings/TelegramTab.jsxindex 2b617ecd5d..1f0016fd8a 100644--- a/client/src/components/settings/TelegramTab.jsx+++ b/client/src/components/settings/TelegramTab.jsx@@ -123,7 +123,7 @@ export function TelegramTab() {return (<div className="space-y-4">{/* Method Selector */}- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-4">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-4"><label className="block text-sm text-gray-400">Integration Method</label><div className="grid grid-cols-1 sm:grid-cols-2 gap-3"><button@@ -160,23 +160,23 @@ export function TelegramTab() {{/* Method-specific config */}{method === 'manual' ? (- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-5">- <div className="flex items-center justify-between">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-5">+ {(tgStatus?.connected || (tgStatus && !tgStatus.connected && tgStatus.hasToken)) && (<div className="text-sm">{tgStatus?.connected && (- <span className="flex items-center gap-2 text-port-success">- <span className="w-2 h-2 rounded-full bg-port-success" />+ <span className="flex items-center gap-2 text-port-success break-all">+ <span className="w-2 h-2 rounded-full bg-port-success shrink-0" />@{tgStatus.botUsername}</span>)}{tgStatus && !tgStatus.connected && tgStatus.hasToken && (<span className="flex items-center gap-2 text-port-error">- <span className="w-2 h-2 rounded-full bg-port-error" />+ <span className="w-2 h-2 rounded-full bg-port-error shrink-0" />Disconnected</span>)}</div>- </div>+ )}<div className="space-y-1"><label className="block text-sm text-gray-400">Bot Token</label>@@ -185,12 +185,13 @@ export function TelegramTab() {type={tgShowToken ? 'text' : 'password'}value={tgToken}onChange={e => setTgToken(e.target.value)}- className="flex-1 bg-port-bg border border-port-border rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-port-accent"+ className="flex-1 min-w-0 bg-port-bg border border-port-border rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:border-port-accent"placeholder={tgStatus?.hasToken ? '••••••••••• (configured)' : 'Paste bot token from @BotFather'}/><buttononClick={() => setTgShowToken(!tgShowToken)}- className="px-3 py-2 bg-port-border hover:bg-port-border/70 text-white rounded-lg transition-colors"+ aria-label={tgShowToken ? 'Hide bot token' : 'Show bot token'}+ className="inline-flex items-center justify-center min-w-[40px] min-h-[40px] px-3 py-2 bg-port-border hover:bg-port-border/70 text-white rounded-lg transition-colors shrink-0">{tgShowToken ? <EyeOff size={16} /> : <Eye size={16} />}</button>@@ -214,11 +215,11 @@ export function TelegramTab() {3. Paste the Chat ID above and click Save & Test.</p>- <div className="flex items-center gap-3">+ <div className="flex flex-wrap items-center gap-2 sm:gap-3"><buttononClick={handleTelegramSave}disabled={tgSaving || (!tgToken && !tgStatus?.hasToken)}- className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50">{tgSaving ? <BrailleSpinner /> : <Save size={16} />}{tgStatus?.connected && tgChatId ? 'Save & Test' : 'Save'}@@ -227,7 +228,7 @@ export function TelegramTab() {<buttononClick={handleTelegramTest}disabled={tgTesting}- className="flex items-center gap-2 px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm font-medium rounded-lg transition-colors disabled:opacity-50">{tgTesting ? <BrailleSpinner /> : <Send size={16} />}Send Test@@ -237,7 +238,7 @@ export function TelegramTab() {<buttononClick={handleTelegramDisconnect}disabled={tgDisconnecting}- className="flex items-center gap-2 px-4 py-2 bg-port-error/20 hover:bg-port-error/30 text-port-error text-sm font-medium rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-error/20 hover:bg-port-error/30 text-port-error text-sm font-medium rounded-lg transition-colors disabled:opacity-50">{tgDisconnecting ? <BrailleSpinner /> : <Trash2 size={16} />}Disconnect@@ -246,7 +247,7 @@ export function TelegramTab() {</div></div>) : (- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-5">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-5"><div className="flex items-center justify-between"><div className="text-sm">{tgStatus?.connected ? (@@ -298,7 +299,7 @@ export function TelegramTab() {{/* Forward types (shared between both methods) */}{tgStatus?.connected && (- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-2">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-2"><label className="block text-sm text-gray-400">Forward Notification Types</label><p className="text-xs text-gray-500">When all are unchecked, all types are forwarded</p><div className="grid grid-cols-2 sm:grid-cols-3 gap-2">diff --git a/client/src/components/settings/VoiceTab.jsx b/client/src/components/settings/VoiceTab.jsxindex 73d504c346..aa37ca5ec5 100644--- a/client/src/components/settings/VoiceTab.jsx+++ b/client/src/components/settings/VoiceTab.jsx@@ -212,7 +212,7 @@ export function VoiceTab() {const voices = voiceList.voices || [];return (- <div className="bg-port-card border border-port-border rounded-xl p-6 space-y-6">+ <div className="bg-port-card border border-port-border rounded-xl p-4 sm:p-6 space-y-6"><div className="flex items-center gap-2 text-white"><Mic size={18} /><h2 className="text-lg font-semibold">Local Voice Chief-of-Staff</h2>@@ -223,30 +223,34 @@ export function VoiceTab() {digests, time, and more). Everything runs on this machine — no external API calls.</p>- <label className="flex items-center gap-3 cursor-pointer">+ <label className="flex items-start gap-3 cursor-pointer"><inputtype="checkbox"checked={cfg.enabled}onChange={(e) => patch('enabled', e.target.checked)}- className="w-4 h-4"+ className="w-4 h-4 mt-0.5 shrink-0"/>- <span className="text-sm text-white">Enable voice mode</span>- <span className="text-xs text-gray-500">- (toggling on installs missing binaries + downloads selected models)- </span>+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-baseline gap-x-3 gap-y-0.5 min-w-0 flex-1">+ <span className="text-sm text-white">Enable voice mode</span>+ <span className="text-xs text-gray-500">+ (toggling on installs missing binaries + downloads selected models)+ </span>+ </div></label>- <label className="flex items-center gap-3 cursor-pointer">+ <label className="flex items-start gap-3 cursor-pointer"><inputtype="checkbox"checked={!widgetHidden}onChange={(e) => toggleWidgetHidden(!e.target.checked)}- className="w-4 h-4"+ className="w-4 h-4 mt-0.5 shrink-0"/>- <span className="text-sm text-white">Show floating voice widget</span>- <span className="text-xs text-gray-500">- (per-browser preference — Safari on iPhone does not support the mic APIs this widget uses)- </span>+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-baseline gap-x-3 gap-y-0.5 min-w-0 flex-1">+ <span className="text-sm text-white">Show floating voice widget</span>+ <span className="text-xs text-gray-500">+ (per-browser preference — Safari on iPhone does not support the mic APIs this widget uses)+ </span>+ </div></label><div className="grid grid-cols-1 md:grid-cols-3 gap-4">@@ -400,17 +404,19 @@ export function VoiceTab() {/></Field>- <label className="flex items-center gap-3 cursor-pointer md:col-span-2">+ <label className="flex items-start gap-3 cursor-pointer md:col-span-2"><inputtype="checkbox"checked={cfg.llm.usePersonality !== false}onChange={(e) => patch('llm.usePersonality', e.target.checked)}- className="w-4 h-4"+ className="w-4 h-4 mt-0.5 shrink-0"/>- <span className="text-sm text-white">Use Chief-of-Staff personality (recommended)</span>- <span className="text-xs text-gray-500">- Composes the system prompt from the fields below. Turn off to use the raw prompt.- </span>+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-baseline gap-x-3 gap-y-0.5 min-w-0 flex-1">+ <span className="text-sm text-white">Use Chief-of-Staff personality (recommended)</span>+ <span className="text-xs text-gray-500">+ Composes the system prompt from the fields below. Turn off to use the raw prompt.+ </span>+ </div></label>{cfg.llm.usePersonality !== false ? (@@ -468,38 +474,42 @@ export function VoiceTab() {</Field>)}- <label className="flex items-center gap-3 cursor-pointer md:col-span-2">+ <label className="flex items-start gap-3 cursor-pointer md:col-span-2"><inputtype="checkbox"checked={cfg.llm.tools?.enabled === true}onChange={(e) => patch('llm.tools.enabled', e.target.checked)}- className="w-4 h-4"+ className="w-4 h-4 mt-0.5 shrink-0"/>- <span className="text-sm text-white">Enable tools (brain, goals, PM2, feeds, time…)</span>- <span className="text-xs text-gray-500">- Needs a tool-use-capable model (Qwen2.5, Hermes-3, etc.).- </span>+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-baseline gap-x-3 gap-y-0.5 min-w-0 flex-1">+ <span className="text-sm text-white">Enable tools (brain, goals, PM2, feeds, time…)</span>+ <span className="text-xs text-gray-500">+ Needs a tool-use-capable model (Qwen2.5, Hermes-3, etc.).+ </span>+ </div></label>{sttEngine === 'whisper' && (- <label className="flex items-center gap-3 cursor-pointer md:col-span-2">+ <label className="flex items-start gap-3 cursor-pointer md:col-span-2"><inputtype="checkbox"checked={!!cfg.stt.coreml}onChange={(e) => patch('stt.coreml', e.target.checked)}- className="w-4 h-4"+ className="w-4 h-4 mt-0.5 shrink-0"/>- <span className="text-sm text-white">Use CoreML encoder for Whisper (macOS only)</span>- <span className="text-xs text-gray-500">2–3× faster STT on Apple Silicon.</span>+ <div className="flex flex-col sm:flex-row sm:flex-wrap sm:items-baseline gap-x-3 gap-y-0.5 min-w-0 flex-1">+ <span className="text-sm text-white">Use CoreML encoder for Whisper (macOS only)</span>+ <span className="text-xs text-gray-500">2–3× faster STT on Apple Silicon.</span>+ </div></label>)}</div>- <div className="flex items-center gap-3 pt-2">+ <div className="flex flex-wrap items-center gap-2 sm:gap-3 pt-2"><buttononClick={handleSave}disabled={saving}- className="flex items-center gap-2 px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-accent hover:bg-port-accent/80 text-white text-sm rounded-lg transition-colors disabled:opacity-50">{saving ? <BrailleSpinner /> : <Save size={14} />}Save & Reconcile@@ -507,7 +517,7 @@ export function VoiceTab() {<buttononClick={handleTest}disabled={testing}- className="flex items-center gap-2 px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm rounded-lg transition-colors disabled:opacity-50"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm rounded-lg transition-colors disabled:opacity-50"title="Synthesize a test phrase with the active TTS engine">{testing ? <BrailleSpinner /> : <Play size={14} />}@@ -515,7 +525,7 @@ export function VoiceTab() {</button><buttononClick={refreshStatus}- className="flex items-center gap-2 px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm rounded-lg transition-colors"+ className="inline-flex items-center justify-center gap-2 min-h-[40px] px-4 py-2 bg-port-border hover:bg-port-border/70 text-white text-sm rounded-lg transition-colors"><Zap size={14} />Refresh