ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
refactor(servers): one list instead of a rail, and give Add Server its drawer back
Juan Denis8e6b53d77b80
diff --git a/docs/screenshots/servers-add.png b/docs/screenshots/servers-add.pngnew file mode 100644index 00000000..6e98b98aBinary files /dev/null and b/docs/screenshots/servers-add.png differdiff --git a/docs/screenshots/servers.png b/docs/screenshots/servers.pngindex 2303aa2b..d581a502 100644Binary files a/docs/screenshots/servers.png and b/docs/screenshots/servers.png differdiff --git a/frontend/src/pages/Servers.jsx b/frontend/src/pages/Servers.jsxindex ed1630e5..8c359a64 100644--- a/frontend/src/pages/Servers.jsx+++ b/frontend/src/pages/Servers.jsx@@ -1,27 +1,47 @@-import { useState, useEffect, useCallback, useRef } from 'react';-import { Link } from 'react-router-dom';-import {- Activity,- CheckCircle2,- Clock3,- Folder,- Plus,- RefreshCw,- Search,- Server as ServerLucideIcon,- XCircle,-} from 'lucide-react';+import { useState, useEffect, useCallback } from 'react';+import { useNavigate } from 'react-router-dom';+import { ChevronRight, Folder, Plus, RefreshCw, Server as ServerLucideIcon } from 'lucide-react';import api from '../services/api';import { useToast } from '../contexts/ToastContext';-import { ConfirmDialog } from '../components/ConfirmDialog';import EmptyState from '../components/EmptyState';import Modal from '@/components/Modal';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';-import { DataTable } from '@/components/ds';+import { Drawer, Gauge, Pill, SearchField, SegControl } from '@/components/ds';+import { useTopbarActions } from '@/hooks/useTopbarActions';import LinkPanelForm from '../components/servers/LinkPanelForm';+// Status -> Pill tone. `connecting` and `pending` both mean "not reporting+// yet" but for different reasons (handshake in flight vs agent never+// installed), so they stay distinct rather than folding into one bucket.+const STATUS_KIND = {+ online: 'green',+ offline: 'red',+ connecting: 'amber',+ pending: 'gray',+};++const STATUS_FILTERS = ['all', 'online', 'offline', 'connecting', 'pending'];++const formatLastSeen = (timestamp) => {+ if (!timestamp) return 'Never';+ const diff = (Date.now() - new Date(timestamp).getTime()) / 1000;+ if (Number.isNaN(diff)) return 'Never';+ if (diff < 60) return 'Just now';+ if (diff < 3600) return `${Math.floor(diff / 60)}m ago`;+ if (diff < 86400) return `${Math.floor(diff / 3600)}h ago`;+ return new Date(timestamp).toLocaleDateString();+};++const clamp = (v) => Math.min(100, Math.max(0, Number(v) || 0));++// The fleet as one table. The previous layout wrapped this list in a rail of+// its own: a health dial, a status nav and a groups nav, each restating a+// number the table already carries. Every one of those is now a column or a+// filter, and per-row actions moved to the server's own page, which is where+// rebooting or deleting a machine belongs.const Servers = () => {+ const navigate = useNavigate();const [servers, setServers] = useState([]);const [groups, setGroups] = useState([]);const [loading, setLoading] = useState(true);@@ -30,9 +50,6 @@ const Servers = () => {const [selectedGroup, setSelectedGroup] = useState('all');const [selectedStatus, setSelectedStatus] = useState('all');const [searchTerm, setSearchTerm] = useState('');- const [selectedIds, setSelectedIds] = useState(() => new Set());- const [deleteTarget, setDeleteTarget] = useState(null);- const [bulkDeleteOpen, setBulkDeleteOpen] = useState(false);const toast = useToast();const loadData = useCallback(async () => {@@ -40,7 +57,7 @@ const Servers = () => {try {const [serversData, groupsData] = await Promise.all([api.getServers(),- api.getServerGroups()+ api.getServerGroups(),]);setServers(Array.isArray(serversData) ? serversData : []);setGroups(Array.isArray(groupsData) ? groupsData : []);@@ -56,392 +73,190 @@ const Servers = () => {loadData();}, [loadData]);- async function handlePingServer(serverId) {- try {- const result = await api.pingServer(serverId);- if (result.success) {- toast.success(`Server responded in ${result.latency}ms`);- } else {- toast.error('Server did not respond');- }- loadData();- } catch {- toast.error('Failed to ping server');- }- }-- async function handleDeleteServer() {- if (!deleteTarget) return;- try {- await api.deleteServer(deleteTarget.id);- toast.success(`${deleteTarget.name} removed from fleet`);- setSelectedIds(prev => {- const next = new Set(prev);- next.delete(deleteTarget.id);- return next;- });- setDeleteTarget(null);- loadData();- } catch (err) {- toast.error(err.message || 'Failed to delete server');- }- }-- async function handleBulkDelete() {- const ids = Array.from(selectedIds);- if (ids.length === 0) return;- const results = await Promise.allSettled(ids.map(id => api.deleteServer(id)));- const failed = results.filter(r => r.status === 'rejected').length;- if (failed === 0) {- toast.success(`${ids.length} server${ids.length === 1 ? '' : 's'} deleted`);- } else {- toast.error(`${failed} of ${ids.length} could not be deleted`);- }- setSelectedIds(new Set());- setBulkDeleteOpen(false);- loadData();- }-- async function handleCopyInstall(server) {- try {- const result = await api.generateRegistrationToken(server.id);- const connString = result?.connection_string;- if (!connString) {- toast.error('Could not generate connection string');- return;- }- await navigator.clipboard.writeText(connString);- toast.success('Connection string copied to clipboard');- } catch (err) {- toast.error(err.message || 'Failed to generate connection string');- }- }-- function toggleSelect(id) {- setSelectedIds(prev => {- const next = new Set(prev);- if (next.has(id)) next.delete(id); else next.add(id);- return next;- });- }-- function toggleSelectAll(visibleIds) {- setSelectedIds(prev => {- const allSelected = visibleIds.length > 0 && visibleIds.every(id => prev.has(id));- if (allSelected) {- const next = new Set(prev);- visibleIds.forEach(id => next.delete(id));- return next;- }- const next = new Set(prev);- visibleIds.forEach(id => next.add(id));- return next;- });- }-- const filteredServers = servers.filter(server => {- const matchesGroup = selectedGroup === 'all' ||- (selectedGroup === 'ungrouped' && !server.group_id) ||- String(server.group_id) === String(selectedGroup);+ const filteredServers = servers.filter((server) => {+ const matchesGroup = selectedGroup === 'all'+ || (selectedGroup === 'ungrouped' && !server.group_id)+ || String(server.group_id) === String(selectedGroup);const matchesStatus = selectedStatus === 'all' || server.status === selectedStatus;- const matchesSearch = !searchTerm ||- server.name?.toLowerCase().includes(searchTerm.toLowerCase()) ||- server.hostname?.toLowerCase().includes(searchTerm.toLowerCase()) ||- server.ip_address?.toLowerCase().includes(searchTerm.toLowerCase());+ const q = searchTerm.trim().toLowerCase();+ const matchesSearch = !q+ || server.name?.toLowerCase().includes(q)+ || server.hostname?.toLowerCase().includes(q)+ || server.ip_address?.toLowerCase().includes(q)+ || server.group_name?.toLowerCase().includes(q);return matchesGroup && matchesStatus && matchesSearch;});- const fleetStats = {- total: servers.length,- online: servers.filter(s => s.status === 'online').length,- offline: servers.filter(s => s.status === 'offline').length,- connecting: servers.filter(s => s.status === 'connecting').length,- pending: servers.filter(s => s.status === 'pending').length- };- const availability = fleetStats.total > 0 ? Math.round((fleetStats.online / fleetStats.total) * 100) : 0;- const hasActiveFilters = selectedGroup !== 'all' || selectedStatus !== 'all' || Boolean(searchTerm);- const groupCounts = servers.reduce((acc, server) => {- const key = server.group_id ? String(server.group_id) : 'ungrouped';- acc[key] = (acc[key] || 0) + 1;+ const online = servers.filter((s) => s.status === 'online').length;+ const statusCounts = servers.reduce((acc, server) => {+ acc[server.status] = (acc[server.status] || 0) + 1;return acc;}, {});- const statusFilters = [- {- key: 'all',- label: 'All servers',- value: fleetStats.total,- detail: `${groups.length} group${groups.length === 1 ? '' : 's'}`,- icon: ServerLucideIcon,- },- {- key: 'online',- label: 'Online',- value: fleetStats.online,- detail: `${availability}% available`,- icon: CheckCircle2,- },- {- key: 'offline',- label: 'Offline',- value: fleetStats.offline,- detail: 'Needs attention',- icon: XCircle,- },- {- key: 'connecting',- label: 'Connecting',- value: fleetStats.connecting,- detail: 'Agent handshake',- icon: RefreshCw,- },- {- key: 'pending',- label: 'Pending',- value: fleetStats.pending,- detail: 'Awaiting install',- icon: Clock3,- },- ];- const groupFilters = [- { key: 'all', label: 'All groups', value: fleetStats.total },- ...groups.map(group => ({- key: String(group.id),- label: group.name,- value: groupCounts[String(group.id)] || 0,- })),- { key: 'ungrouped', label: 'Ungrouped', value: groupCounts.ungrouped || 0 },- ];- const activeStatusLabel = statusFilters.find(filter => filter.key === selectedStatus)?.label || 'All servers';- const fleetStateLabel = fleetStats.total === 0- ? 'No agents paired'- : fleetStats.offline > 0- ? 'Needs attention'- : (fleetStats.connecting + fleetStats.pending) > 0- ? 'Pairing in progress'- : 'Healthy';++ // The tab-group top bar owns this page's controls, search included.+ useTopbarActions(() => (+ <>+ <Button variant="outline" size="sm" onClick={() => setShowGroupModal(true)}>+ <Folder size={16} /> Groups+ </Button>+ <Button variant="outline" size="sm" onClick={loadData} disabled={loading}>+ <RefreshCw size={16} className={loading ? 'spin' : ''} /> Sync+ </Button>+ <Button size="sm" onClick={() => setShowAddModal(true)}>+ <Plus size={16} /> Add server+ </Button>+ <SearchField+ value={searchTerm}+ onSearch={setSearchTerm}+ placeholder="Search servers..."+ />+ </>+ ), [searchTerm, loading]);if (loading) {return (- <div className="servers-page servers-page--loading">- <div className="servers-loading-card">- <ServerIcon />- <span>Scanning fleet...</span>- </div>+ <div className="sk-tabgroup__inner servers-page">+ <EmptyState loading loadingVariant="table" title="Scanning fleet..." /></div>);}- const visibleIds = filteredServers.map(s => s.id);- const allVisibleSelected = visibleIds.length > 0 && visibleIds.every(id => selectedIds.has(id));- const someVisibleSelected = visibleIds.some(id => selectedIds.has(id));-return (- <div className="servers-page servers-page--ops">- <div className="servers-ops-workspace">- <aside className="servers-fleet-rail">- <section className="servers-rail-section servers-rail-section--health">- <div className="servers-rail-section-header">- <Activity size={14} />- <span>Fleet health</span>- </div>- <div className="servers-health-dial" style={{ '--availability': `${availability * 3.6}deg` }}>- <strong>{availability}%</strong>- <span>available</span>- </div>- <div className="servers-health-summary">- <strong>{fleetStateLabel}</strong>- <span>{fleetStats.online} of {fleetStats.total} online</span>- </div>- </section>+ <div className="sk-tabgroup__inner servers-page">+ <div className="servers-listhead">+ <SegControl+ value={selectedStatus}+ onChange={setSelectedStatus}+ options={STATUS_FILTERS.map((key) => ({+ value: key,+ label: key === 'all' ? 'All' : key.charAt(0).toUpperCase() + key.slice(1),+ count: key === 'all' ? servers.length : (statusCounts[key] || 0),+ }))}+ aria-label="Filter by status"+ />+ {groups.length > 0 && (+ <select+ className="servers-groupselect"+ value={selectedGroup}+ onChange={(e) => setSelectedGroup(e.target.value)}+ aria-label="Filter by group"+ >+ <option value="all">All groups</option>+ {groups.map((g) => <option key={g.id} value={g.id}>{g.name}</option>)}+ <option value="ungrouped">Ungrouped</option>+ </select>+ )}+ <span className="servers-count">+ {filteredServers.length} of {servers.length} server{servers.length === 1 ? '' : 's'}+ <i>·</i>+ <b>{online} online</b>+ </span>+ </div>- <section className="servers-rail-section">- <div className="servers-rail-section-header">- <ServerLucideIcon size={14} />- <span>Status</span>- </div>- <div className="servers-status-nav">- {statusFilters.map(filter => {- const Icon = filter.icon;+ {filteredServers.length === 0 ? (+ <EmptyState+ icon={ServerLucideIcon}+ title={servers.length === 0 ? 'No servers yet' : 'No servers match these filters'}+ description={servers.length === 0+ ? 'Pair an agent and the machine shows up here with its CPU, memory and disk alongside every other box you run.'+ : 'Adjust the status, group or search to see your servers.'}+ action={servers.length === 0 ? (+ <Button onClick={() => setShowAddModal(true)}>+ <Plus size={16} /> Add your first server+ </Button>+ ) : (+ <Button+ variant="outline"+ onClick={() => {+ setSelectedGroup('all');+ setSelectedStatus('all');+ setSearchTerm('');+ }}+ >+ Clear filters+ </Button>+ )}+ />+ ) : (+ <div className="servers-card">+ <table className="sk-dtable servers-table">+ <thead>+ <tr>+ <th>Server</th>+ <th>Host</th>+ <th>Agent</th>+ <th>Status</th>+ <th className="servers-table__meter">CPU</th>+ <th className="servers-table__meter">Memory</th>+ <th className="servers-table__meter">Disk</th>+ <th>Last seen</th>+ <th aria-label="Open" />+ </tr>+ </thead>+ <tbody>+ {filteredServers.map((server) => {+ const status = server.status || 'pending';+ const live = Boolean(server.metrics) && status === 'online';+ const meters = [+ clamp(server.metrics?.cpu_percent),+ clamp(server.metrics?.memory_percent),+ clamp(server.metrics?.disk_percent),+ ];return (- <button- type="button"- key={filter.key}- className={`servers-status-nav-item servers-status-nav-item--${filter.key} ${selectedStatus === filter.key ? 'active' : ''}`}- onClick={() => setSelectedStatus(filter.key)}+ <tr+ key={server.id}+ className="servers-row"+ onClick={() => navigate(`/servers/${server.id}`)}>- <Icon size={15} />- <span>- <strong>{filter.label}</strong>- <small>{filter.detail}</small>- </span>- <b>{filter.value}</b>- </button>+ <td>+ <div className="sk-cell-name">+ <span className="servers-row__ico">+ <ServerLucideIcon size={15} />+ </span>+ <span>+ <div>{server.name}</div>+ <div className="sk-cell-sub">+ {[server.group_name, server.os_version || server.os_type]+ .filter(Boolean).join(' \u00b7 ') || 'unclaimed'}+ </div>+ </span>+ </div>+ </td>+ <td className="sk-cell-mono">+ {server.hostname || server.ip_address || '\u2014'}+ </td>+ <td className="sk-cell-mono servers-row__agent">+ {server.agent_version || 'not installed'}+ </td>+ <td><Pill kind={STATUS_KIND[status] || 'gray'}>{status}</Pill></td>+ {/* A gauge with nothing behind it reads as 0%,+ which is a claim. Offline and pending rows+ get a dash instead. */}+ {meters.map((value, i) => (+ <td key={i} className="servers-table__meter">+ {live ? (+ <>+ <div className="sk-cell-mono">{value.toFixed(0)}%</div>+ <Gauge value={value} />+ </>+ ) : (+ <span className="servers-row__nodata">—</span>+ )}+ </td>+ ))}+ <td className="sk-cell-mono servers-row__seen">+ {formatLastSeen(server.last_seen)}+ </td>+ <td>+ <ChevronRight size={16} className="servers-row__chev" />+ </td>+ </tr>);})}- </div>- </section>-- <section className="servers-rail-section">- <div className="servers-rail-section-header servers-rail-section-header--split">- <span>- <Folder size={14} />- Groups- </span>- <Button type="button" variant="ghost" size="sm" onClick={() => setShowGroupModal(true)}>- Manage- </Button>- </div>- <div className="servers-group-nav">- {groupFilters.map(filter => (- <button- type="button"- key={filter.key}- className={`servers-group-nav-item ${selectedGroup === filter.key ? 'active' : ''}`}- onClick={() => setSelectedGroup(filter.key)}- >- <Folder size={14} />- <span>{filter.label}</span>- <b>{filter.value}</b>- </button>- ))}- </div>- </section>- </aside>-- <main className="servers-main">- <div className="servers-workbar">- <div className="servers-workbar-title">- <span>Servers</span>- <h1>{activeStatusLabel}</h1>- <em>{filteredServers.length} visible of {servers.length}</em>- </div>- <div className="servers-workbar-actions">- <Button variant="outline" onClick={() => setShowGroupModal(true)}>- <Folder size={16} /> Groups- </Button>- <Button onClick={() => setShowAddModal(true)}>- <Plus size={16} /> Add Server- </Button>- </div>- </div>-- <div className="servers-command-bar">- <div className="servers-toolbar">- <label className="search-box">- <Search size={16} />- <Input- type="text"- placeholder="Search by name, host, or IP..."- value={searchTerm}- onChange={(e) => setSearchTerm(e.target.value)}- />- </label>- </div>-- <div className="servers-results-summary">- <strong>{filteredServers.length}</strong>- <span>{filteredServers.length === 1 ? 'server' : 'servers'}</span>- {hasActiveFilters && (- <Button- type="button"- variant="ghost"- size="sm"- className="servers-clear-filters"- onClick={() => {- setSelectedGroup('all');- setSelectedStatus('all');- setSearchTerm('');- }}- >- Clear filters- </Button>- )}- </div>- </div>-- {selectedIds.size > 0 && (- <div className="servers-bulk-bar" role="region" aria-label="Bulk actions">- <div className="servers-bulk-bar__info">- <span className="servers-bulk-bar__count">{selectedIds.size}</span>- <span>selected</span>- </div>- <div className="servers-bulk-bar__actions">- <Button type="button" variant="ghost" size="sm" onClick={() => setSelectedIds(new Set())}>- Clear selection- </Button>- <Button type="button" variant="destructive" size="sm" onClick={() => setBulkDeleteOpen(true)}>- <TrashIcon /> Delete {selectedIds.size}- </Button>- </div>- </div>- )}-- {filteredServers.length === 0 ? (- <EmptyState- icon={ServerLucideIcon}- title={servers.length === 0 ? 'No servers yet' : 'No servers match these filters'}- description={servers.length === 0- ? 'Add a server to start managing it from here.'- : 'Adjust the filters or search query to see your servers.'}- action={servers.length === 0 ? (- <Button onClick={() => setShowAddModal(true)}>- <Plus size={16} /> Add your first server- </Button>- ) : (- <Button- type="button"- variant="outline"- onClick={() => {- setSelectedGroup('all');- setSelectedStatus('all');- setSearchTerm('');- }}- >- Clear filters- </Button>- )}- />- ) : (- <div className="servers-table-wrap">- <DataTable- tableClassName="servers-table"- sortable={false}- columns={[- { key: 'select', header: (- <input- type="checkbox"- aria-label="Select all visible servers"- checked={allVisibleSelected}- ref={el => { if (el) el.indeterminate = someVisibleSelected && !allVisibleSelected; }}- onChange={() => toggleSelectAll(visibleIds)}- />- ), className: 'col-check' },- { key: 'server', header: 'Server' },- { key: 'status', header: 'Status' },- { key: 'group', header: 'Group' },- { key: 'os', header: 'OS · Agent' },- { key: 'telemetry', header: 'Telemetry' },- { key: 'lastSeen', header: 'Last seen' },- { key: 'actions', header: '', className: 'col-actions' },- ]}- data={filteredServers}- keyField="id"- renderRow={(server, { key }) => (- <ServerRow- key={key}- server={server}- selected={selectedIds.has(server.id)}- onToggle={() => toggleSelect(server.id)}- onPing={() => handlePingServer(server.id)}- onDelete={() => setDeleteTarget(server)}- onCopyInstall={() => handleCopyInstall(server)}- />- )}- />- </div>- )}- </main>- </div>+ </tbody>+ </table>+ </div>+ )}{showAddModal && (<AddServerModal@@ -461,217 +276,10 @@ const Servers = () => {onUpdated={loadData}/>)}-- <ConfirmDialog- isOpen={Boolean(deleteTarget)}- title={`Delete ${deleteTarget?.name || 'server'}?`}- message="This removes the server from your fleet and revokes its agent token. The agent on the host will stop reporting."- requireConfirmation={deleteTarget?.name}- confirmText="Delete server"- variant="danger"- onConfirm={handleDeleteServer}- onCancel={() => setDeleteTarget(null)}- />-- <ConfirmDialog- isOpen={bulkDeleteOpen}- title={`Delete ${selectedIds.size} server${selectedIds.size === 1 ? '' : 's'}?`}- message="All selected servers will be removed from the fleet and their agent tokens revoked. This cannot be undone."- requireConfirmation="DELETE"- confirmText={`Delete ${selectedIds.size} server${selectedIds.size === 1 ? '' : 's'}`}- variant="danger"- onConfirm={handleBulkDelete}- onCancel={() => setBulkDeleteOpen(false)}- /></div>);};-const formatLastSeen = (timestamp) => {- if (!timestamp) return 'Never';- const date = new Date(timestamp);- const now = new Date();- const diff = (now - date) / 1000;- if (diff < 60) return 'Just now';- if (diff < 3600) return `${Math.floor(diff / 60)}m ago`;- if (diff < 86400) return `${Math.floor(diff / 3600)}h ago`;- return date.toLocaleDateString();-};--const clamp = (v) => Math.min(100, Math.max(0, Number(v) || 0));--const ServerRow = ({ server, selected, onToggle, onPing, onDelete, onCopyInstall, className = '', onClick }) => {- const [menuPos, setMenuPos] = useState(null);- const triggerRef = useRef(null);- const menuRef = useRef(null);-- const closeMenu = useCallback(() => setMenuPos(null), []);-- const openMenu = () => {- const r = triggerRef.current?.getBoundingClientRect();- if (!r) return;- const menuHeight = 240;- const menuWidth = 220;- const flipUp = r.bottom + menuHeight + 8 > window.innerHeight;- setMenuPos({- top: flipUp ? r.top - menuHeight - 4 : r.bottom + 4,- left: Math.max(8, r.right - menuWidth),- });- };-- useEffect(() => {- if (!menuPos) return undefined;- const onDocDown = (e) => {- if (- menuRef.current && !menuRef.current.contains(e.target) &&- triggerRef.current && !triggerRef.current.contains(e.target)- ) {- closeMenu();- }- };- const onScroll = () => closeMenu();- document.addEventListener('mousedown', onDocDown);- window.addEventListener('scroll', onScroll, true);- window.addEventListener('resize', onScroll);- return () => {- document.removeEventListener('mousedown', onDocDown);- window.removeEventListener('scroll', onScroll, true);- window.removeEventListener('resize', onScroll);- };- }, [menuPos, closeMenu]);-- const status = server.status || 'pending';- const displayHost = server.hostname || server.ip_address || 'Unassigned endpoint';- const initial = (server.name || displayHost || '?').charAt(0).toUpperCase();- const metrics = {- cpu: clamp(server.metrics?.cpu_percent),- memory: clamp(server.metrics?.memory_percent),- disk: clamp(server.metrics?.disk_percent),- };- const hasMetrics = server.metrics && status === 'online';-- return (- <tr- className={`server-row server-row--${status} ${selected ? 'is-selected' : ''} ${className}`.trim()}- onClick={onClick}- >- <td className="col-check">- <input- type="checkbox"- checked={selected}- onChange={onToggle}- aria-label={`Select ${server.name}`}- />- </td>- <td>- <Link to={`/servers/${server.id}`} className="server-row__name">- <span className={`server-row__avatar server-row__avatar--${status}`} aria-hidden="true">{initial}</span>- <span className="server-row__identity">- <span className="server-row__title">{server.name}</span>- <span className="server-row__sub">{displayHost}</span>- </span>- </Link>- </td>- <td>- <span className={`status-pill status-pill--${status}`}>- <span className="status-pill__dot" />- {status}- </span>- </td>- <td>- {server.group_name ? (- <span className="server-row__group">- <FolderIcon size={12} />- {server.group_name}- </span>- ) : (- <span className="muted">—</span>- )}- </td>- <td>- <div className="server-row__stack">- <span>{server.os_type || 'Unknown'}</span>- <span className="muted">{server.agent_version ? `agent ${server.agent_version}` : 'agent not installed'}</span>- </div>- </td>- <td>- {hasMetrics ? (- <div className="server-row__telemetry">- <span title={`CPU ${metrics.cpu.toFixed(0)}%`}>- <em>CPU</em>- <span className="bar"><span className="bar-fill cpu" style={{ width: `${metrics.cpu}%` }} /></span>- <b>{metrics.cpu.toFixed(0)}%</b>- </span>- <span title={`RAM ${metrics.memory.toFixed(0)}%`}>- <em>RAM</em>- <span className="bar"><span className="bar-fill memory" style={{ width: `${metrics.memory}%` }} /></span>- <b>{metrics.memory.toFixed(0)}%</b>- </span>- <span title={`Disk ${metrics.disk.toFixed(0)}%`}>- <em>DSK</em>- <span className="bar"><span className="bar-fill disk" style={{ width: `${metrics.disk}%` }} /></span>- <b>{metrics.disk.toFixed(0)}%</b>- </span>- </div>- ) : (- <span className="muted">{status === 'pending' ? 'Awaiting agent' : status === 'offline' ? 'Offline' : 'No data'}</span>- )}- </td>- <td>- <span className="server-row__lastseen">{formatLastSeen(server.last_seen)}</span>- </td>- <td className="col-actions">- <div className="row-actions">- <button type="button" className="row-actions__icon" onClick={onPing} title="Ping server" aria-label={`Ping ${server.name}`}>- <RefreshIcon />- </button>- <Link to={`/servers/${server.id}/docker`} className="row-actions__icon" title="Open Docker" aria-label={`Open Docker for ${server.name}`}>- <DockerIcon />- </Link>- <button- ref={triggerRef}- type="button"- className="row-actions__icon"- onClick={() => (menuPos ? closeMenu() : openMenu())}- aria-haspopup="menu"- aria-expanded={Boolean(menuPos)}- title="More actions"- >- <MoreIcon />- </button>- {menuPos && (- <div- ref={menuRef}- className="row-menu"- role="menu"- style={{ position: 'fixed', top: menuPos.top, left: menuPos.left }}- >- <Link to={`/servers/${server.id}`} className="row-menu__item" role="menuitem" onClick={closeMenu}>- <EyeIcon /> View details- </Link>- <button type="button" className="row-menu__item" role="menuitem" onClick={() => { closeMenu(); onPing(); }}>- <RefreshIcon /> Ping now- </button>- {status === 'pending' && (- <button type="button" className="row-menu__item" role="menuitem" onClick={() => { closeMenu(); onCopyInstall(); }}>- <CopyIcon /> Copy connection string- </button>- )}- <Link to={`/servers/${server.id}/docker`} className="row-menu__item" role="menuitem" onClick={closeMenu}>- <DockerIcon /> Manage Docker- </Link>- <div className="row-menu__divider" />- <button type="button" className="row-menu__item row-menu__item--danger" role="menuitem" onClick={() => { closeMenu(); onDelete(); }}>- <TrashIcon /> Delete server- </button>- </div>- )}- </div>- </td>- </tr>- );-};-const PairAgentForm = ({ groups, onClose, onClaimed }) => {const [pairCode, setPairCode] = useState('');const [passphrase, setPassphrase] = useState('');@@ -918,24 +526,33 @@ const AddServerModal = ({ groups, onClose, onCreated }) => {const windowsInstallScript = registrationData ? `irm ${window.location.origin}/api/v1/servers/install.ps1 | iexInstall-ServerKitAgent -Server "${window.location.origin}" -Token "${registrationData.registration_token}"` : '';+ // A right-side drawer, not a centred dialog: this flow is a multi-step+ // wizard with install scripts in it, and it always was a drawer — the+ // `.server-setup-drawer` rules carry the original slide-over intent.+ // Rendering them through the centred Dialog primitive left `left: 50%` and+ // the -50% transform applied on top of `right: 0`, which is what pushed the+ // panel half off-screen.+ const title = step === 1+ ? (mode === 'link' ? 'Link to Master Panel' : 'Add Server')+ : (mode === 'pair' ? 'Pair Agent' : 'Connect Agent');+ const subtitle = step === 1 && mode === 'link'+ ? 'Make THIS server manageable by another ServerKit panel'+ : step === 2 && mode !== 'pair'+ ? 'Paste the connection string into the agent'+ : step === 2+ ? 'Enter the code shown on the agent screen'+ : 'Connect an existing agent, or set up a new machine';+return (- <Modal+ <Draweropen- onClose={onClose}- size="lg"- className="server-setup-modal"- title={step === 1 ? (mode === 'link' ? 'Link to Master Panel' : 'Add Server') : (mode === 'pair' ? 'Pair Agent' : 'Connect Agent')}+ onOpenChange={(next) => { if (!next) onClose(); }}+ title={title}+ subtitle={subtitle}+ icon={<ServerLucideIcon size={17} />}+ width={520}+ className="server-setup-drawer">- <p className="sk-modal__subtitle">- {step === 1 && mode === 'link'- ? 'Make THIS server manageable by another ServerKit panel — no agent install needed.'- : step === 2 && mode !== 'pair'- ? 'Paste the connection string into the agent, or run the one-liner installer.'- : step === 2- ? 'Enter the 6-char code shown on the agent and your passphrase.'- : 'Connect an existing agent or set up a brand-new machine.'}- </p>-{step === 1 && (<div className="mode-switcher"><button@@ -1072,7 +689,7 @@ Install-ServerKitAgent -Server "${window.location.origin}" -Token "${registratio</div></div>)}- </Modal>+ </Drawer>);};@@ -1232,15 +849,6 @@ const ManageGroupsModal = ({ groups, onClose, onUpdated }) => {};// Icons-const ServerIcon = ({ size = 24, className = '' }) => (- <svg className={className} width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>- <rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>- <line x1="6" y1="6" x2="6.01" y2="6"/>- <line x1="6" y1="18" x2="6.01" y2="18"/>- </svg>-);-const PlusIcon = () => (<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><line x1="12" y1="5" x2="12" y2="19"/>@@ -1261,30 +869,6 @@ const CheckCircleIcon = () => (</svg>);-const RefreshIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <polyline points="23 4 23 10 17 10"/>- <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>- </svg>-);--const EyeIcon = () => (- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>- <circle cx="12" cy="12" r="3"/>- </svg>-);--const DockerIcon = () => (- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <rect x="2" y="7" width="5" height="5" rx="1"/>- <rect x="9" y="7" width="5" height="5" rx="1"/>- <rect x="16" y="7" width="5" height="5" rx="1"/>- <rect x="2" y="14" width="5" height="5" rx="1"/>- <rect x="9" y="14" width="5" height="5" rx="1"/>- </svg>-);-const TerminalIcon = () => (<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><polyline points="4 17 10 11 4 5"/>@@ -1319,14 +903,6 @@ const TrashIcon = () => (</svg>);-const MoreIcon = () => (- <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">- <circle cx="5" cy="12" r="1.6"/>- <circle cx="12" cy="12" r="1.6"/>- <circle cx="19" cy="12" r="1.6"/>- </svg>-);-const KeyIcon = () => (<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"/>diff --git a/frontend/src/styles/layout/_main-content.scss b/frontend/src/styles/layout/_main-content.scssindex 1f37b82c..ddca5771 100644--- a/frontend/src/styles/layout/_main-content.scss+++ b/frontend/src/styles/layout/_main-content.scss@@ -104,10 +104,10 @@flex-direction: column;overflow-y: auto;- // Full-bleed pages (Servers ops, File Manager) fill the region edge-to-- // edge and manage their own internal scroll. Centered pages instead- // wrap their content in .sk-tabgroup__inner (below).- > .servers-page--ops,+ // Full-bleed pages (File Manager) fill the region edge-to-edge and+ // manage their own internal scroll. Centered pages instead wrap their+ // content in .sk-tabgroup__inner (below). The Servers ops workspace+ // used to opt in here; it is a plain centered list now.> .sk-tabgroup__fill { flex: 1; min-height: 0; }}diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scssindex 577dce91..c6862bf8 100644--- a/frontend/src/styles/pages/_servers.scss+++ b/frontend/src/styles/pages/_servers.scss@@ -2,34 +2,91 @@// SERVERS PAGE// ============================================-.servers-page {- padding: 0;-}+// No `padding: 0` override any more: this page is a normal centered list now,+// so it takes the padding .sk-tabgroup__inner gives every other one. The+// override was for the old full-bleed ops workspace, and left the table+// running under the right edge of the viewport.-.servers-page--loading {- min-height: 58vh;+// ---------- Fleet list (design-mock layout) ----------+// Filters on the left, the count on the right, one table below. What used to+// be a left rail of dials and navs is now these two controls plus columns.+.servers-listhead {display: flex;align-items: center;- justify-content: center;+ gap: $space-3;+ margin-bottom: $space-4;+ flex-wrap: wrap;+}++.servers-groupselect {+ height: 32px;+ padding: 0 $space-3;+ border: 1px solid var(--border);+ border-radius: 8px;+ background: var(--surface-2);+ color: var(--text-dim);+ font-size: 12.5px;}-.servers-loading-card {+.servers-count {+ margin-left: auto;display: inline-flex;align-items: center;- gap: $space-3;- padding: $space-5 $space-6;- border: 1px solid $border-subtle;- border-radius: $radius-2xl;- background:- linear-gradient(135deg, $accent-glow, transparent 55%),- $bg-card;- color: $text-secondary;- box-shadow: $shadow-lg;+ gap: 6px;+ font-family: var(--mono);+ font-size: 11.5px;+ color: var(--text-faint);+ white-space: nowrap;- svg {- color: $accent-primary;- animation: servers-pulse 1.5s ease-in-out infinite;+ i { font-style: normal; opacity: 0.5; }+ b { color: var(--green); font-weight: 600; }+}++.servers-card {+ overflow-x: auto;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+}++// The whole row is the target, so it needs the affordance rather than a+// per-row button column.+.servers-row {+ cursor: pointer;+ transition: background $transition-fast;++ &:hover {+ background: var(--surface-2);++ .servers-row__chev { color: var(--text-dim); }+ }++ &__ico {+ width: 30px;+ height: 30px;+ border-radius: 8px;+ display: grid;+ place-items: center;+ flex-shrink: 0;+ background: var(--surface-3);+ color: var(--text-dim);}++ &__agent,+ &__seen { color: var(--text-faint); white-space: nowrap; }++ &__nodata { color: var(--text-ghost); }++ &__chev { color: var(--text-ghost); transition: color $transition-fast; }+}++// Metric columns: a percentage over a thin bar, sized so three of them fit+// without squeezing the name column.+.servers-table__meter {+ width: 108px;++ .sk-cell-mono { margin-bottom: 5px; }+ .sk-gauge { width: 100%; }}.servers-hero {@@ -237,34 +294,6 @@}}-.servers-command-bar {- display: flex;- justify-content: space-between;- align-items: center;- gap: $space-3;- margin-bottom: $space-6;- padding: $space-3;- border: 1px solid $border-subtle;- border-radius: $radius-2xl;- background: $bg-card;- box-shadow: $shadow-sm;-- @media (max-width: $breakpoint-lg) {- flex-direction: column;- align-items: stretch;- }-}--.servers-toolbar {- display: flex;- gap: $space-3;- flex: 1;-- @media (max-width: $breakpoint-sm) {- flex-direction: column;- }-}-.search-box {position: relative;flex: 1;@@ -298,76 +327,6 @@}}-.group-filter {- display: flex;- align-items: center;- gap: $space-2;- padding-left: $space-3;- border-left: 1px solid $border-subtle;-- span {- color: $text-tertiary;- font-size: $font-size-xs;- font-weight: $font-weight-bold;- letter-spacing: 0.08em;- text-transform: uppercase;- }-- select {- height: 44px;- background: $bg-body;- border: 1px solid $border-subtle;- border-radius: $radius-xl;- padding: $space-3 $space-4;- color: $text-primary;- font-size: $font-size-sm;- min-width: 160px;-- &:focus {- outline: none;- border-color: $accent-primary;- }- }-- @media (max-width: $breakpoint-sm) {- padding-left: 0;- border-left: 0;- }-}--.servers-results-summary {- display: flex;- align-items: center;- justify-content: flex-end;- gap: $space-2;- color: $text-tertiary;- font-size: $font-size-sm;- white-space: nowrap;-- strong {- color: $text-primary;- font-family: $font-mono;- font-size: $font-size-lg;- }-}--.servers-clear-filters {- margin-left: $space-2;- padding: $space-2 $space-3;- border: 1px solid $border-subtle;- border-radius: $radius-full;- background: transparent;- color: $accent-primary;- cursor: pointer;- font-size: $font-size-xs;- font-weight: $font-weight-semibold;-- &:hover {- border-color: $accent-primary;- background: $accent-glow;- }-}-.servers-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));@@ -658,51 +617,32 @@}}-.server-setup-modal {- position: fixed;- top: 0;- right: 0;- bottom: 0;- width: 480px;- max-width: 100vw;- max-height: none;- border-radius: $radius-2xl 0 0 $radius-2xl;- border-left: 1px solid $border-subtle;- overflow: hidden;- display: flex;- flex-direction: column;- box-shadow: $shadow-lg;- animation: drawer-slide-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);-- .modal-header {- flex-shrink: 0;- align-items: flex-start;- padding: $space-6 $space-6 $space-5;- background:- linear-gradient(135deg, $accent-glow, transparent 42%),- linear-gradient(135deg, $bg-card, $bg-elevated);- border-bottom: 1px solid $border-subtle;+// Add Server drawer. This used to hand-roll its own slide-over geometry+// (position:fixed / right:0 / a bespoke keyframe) and then got pointed at the+// centred Dialog primitive, which still applied `left: 50%` and a -50%+// transform on top of it — that combination is what rendered the panel half+// off-screen and clipped. It now runs on the shared Drawer (Sheet), so the+// slide-in, focus trap and overlay come from one place and only the interior+// layout lives here.+.server-setup-drawer {+ .sk-drawer__body {+ display: flex;+ flex-direction: column;+ min-height: 0;+ // The form owns the scrolling so its action row can stay pinned to the+ // bottom edge instead of scrolling away with the fields.+ overflow: hidden;+ }- h2 {- margin: 0 0 $space-1;- font-size: $font-size-xl;- letter-spacing: -0.03em;- }+ .mode-switcher { margin: $space-5 $space-6 0; }- p {- margin: 0;- color: $text-secondary;- font-size: $font-size-sm;- line-height: 1.45;- }+ .install-instructions,+ .server-setup-form {+ flex: 1;+ min-height: 0;}}-@keyframes drawer-slide-in {- from { transform: translateX(100%); }- to { transform: translateX(0); }-}-// Segmented tab control used in the Add Server drawer.mode-switcher {display: flex;@@ -2428,57 +2368,6 @@}}-.servers-bulk-bar {- display: flex;- align-items: center;- justify-content: space-between;- gap: $space-3;- padding: $space-3 $space-4;- margin-bottom: $space-4;- border: 1px solid $accent-primary;- border-radius: $radius-xl;- background:- linear-gradient(180deg, $accent-glow, transparent),- $bg-card;- box-shadow: $shadow-sm;-- &__info {- display: flex;- align-items: center;- gap: $space-2;- color: $text-secondary;- font-size: $font-size-sm;- }-- &__count {- display: inline-flex;- align-items: center;- justify-content: center;- min-width: 28px;- height: 28px;- padding: 0 $space-2;- border-radius: $radius-full;- background: $accent-primary;- color: #fff;- font-family: $font-mono;- font-weight: $font-weight-bold;- font-size: $font-size-sm;- }-- &__actions {- display: flex;- gap: $space-2;- }-}--.servers-table-wrap {- overflow-x: auto;- border: 1px solid $border-subtle;- border-radius: $radius-xl;- background: $bg-card;- box-shadow: $shadow-sm;-}-.servers-table {width: 100%;border-collapse: separate;@@ -2826,504 +2715,6 @@}// Servers workspace polish: match the Docker route's rail + work surface.-.servers-page--ops {- height: 100%;- min-height: 0;- max-width: none;- margin: 0;- padding: $space-3;- display: flex;- flex-direction: column; // fills the shared tab-group content region- background: transparent;-- .servers-ops-workspace {- flex: 1;- min-height: 0;- display: grid;- grid-template-columns: 252px minmax(0, 1fr);- gap: $space-3;- overflow: hidden;- }-- .servers-fleet-rail {- display: flex;- flex-direction: column;- gap: $space-2;- min-height: 0;- overflow-y: auto;- scrollbar-width: thin;-- &::-webkit-scrollbar { width: 4px; }- &::-webkit-scrollbar-thumb {- background: $border-default;- border-radius: $radius-sm;- }- }-- .servers-rail-section {- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg;- overflow: hidden;- flex-shrink: 0;- }-- .servers-rail-section-header {- display: flex;- align-items: center;- gap: $space-2;- padding: $space-3;- background: $bg-elevated;- border-bottom: 1px solid $border-subtle;- color: $text-primary;- font-size: $font-size-sm;- font-weight: $font-weight-medium;-- svg {- color: $accent-primary;- flex-shrink: 0;- }-- &--split {- justify-content: space-between;-- > span {- display: inline-flex;- align-items: center;- gap: $space-2;- min-width: 0;- }-- button {- border: 0;- background: transparent;- color: $text-tertiary;- font-size: $font-size-xs;- cursor: pointer;-- &:hover {- color: $accent-primary;- }- }- }- }-- .servers-rail-section--health {- padding-bottom: $space-3;- }-- .servers-health-dial {- position: relative;- width: 92px;- height: 92px;- margin: $space-4 auto $space-3;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: 2px;- border-radius: $radius-full;- background: conic-gradient($success var(--availability), $bg-tertiary 0);-- &::before {- content: '';- position: absolute;- inset: 8px;- border-radius: inherit;- background: $bg-card;- border: 1px solid $border-subtle;- }-- strong,- span {- position: relative;- z-index: 1;- }-- strong {- color: $text-primary;- font-family: $font-mono;- font-size: $font-size-xl;- line-height: 1;- }-- span {- color: $text-tertiary;- font-size: 10px;- }- }-- .servers-health-summary {- display: grid;- gap: 2px;- padding: 0 $space-3;- text-align: center;-- strong {- color: $text-primary;- font-size: $font-size-sm;- font-weight: $font-weight-semibold;- }-- span {- color: $text-tertiary;- font-family: $font-mono;- font-size: $font-size-xs;- }- }-- .servers-status-nav,- .servers-group-nav {- display: grid;- gap: 2px;- padding: $space-2;- }-- .servers-status-nav-item,- .servers-group-nav-item {- width: 100%;- min-height: 36px;- display: grid;- grid-template-columns: 18px minmax(0, 1fr) auto;- align-items: center;- gap: $space-2;- padding: 0 $space-2;- border: 1px solid transparent;- border-radius: $radius-md;- background: transparent;- color: $text-secondary;- text-align: left;- cursor: pointer;- @include transition(all);-- svg {- color: $text-tertiary;- flex-shrink: 0;- }-- span {- min-width: 0;- @include truncate();- }-- b {- min-width: 26px;- padding: 1px 7px;- border-radius: $radius-full;- background: $bg-tertiary;- color: $text-tertiary;- font-family: $font-mono;- font-size: 10px;- font-weight: $font-weight-medium;- text-align: center;- }-- &:hover {- background: $bg-hover;- color: $text-primary;- }-- &.active {- background: $accent-glow;- border-color: rgba($accent-primary-raw, 0.28);- color: $accent-primary;-- svg { color: $accent-primary; }-- b {- background: rgba($accent-primary-raw, 0.18);- color: $accent-primary;- }- }- }-- .servers-status-nav-item {- min-height: 44px;-- span {- display: flex;- flex-direction: column;- gap: 1px;- }-- strong {- color: inherit;- font-size: $font-size-sm;- font-weight: $font-weight-medium;- @include truncate();- }-- small {- color: $text-tertiary;- font-size: 10px;- @include truncate();- }-- &--online svg { color: $success; }- &--offline svg { color: $danger; }- &--connecting svg { color: $warning; }- &--pending svg { color: $text-tertiary; }- }-- .servers-main {- min-width: 0;- min-height: 0;- display: flex;- flex-direction: column;- gap: $space-2;- }-- .servers-workbar {- min-height: 46px;- display: flex;- align-items: center;- justify-content: space-between;- gap: $space-3;- padding: $space-2;- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg;- flex-shrink: 0;- }-- .servers-workbar-title {- min-width: 0;- display: flex;- align-items: baseline;- gap: $space-2;-- span {- color: $text-tertiary;- font-size: 10px;- font-weight: $font-weight-semibold;- text-transform: uppercase;- }-- h1 {- margin: 0;- color: $text-primary;- font-size: $font-size-base;- font-weight: $font-weight-semibold;- line-height: 1.2;- }-- em {- color: $text-tertiary;- font-size: $font-size-xs;- font-style: normal;- @include truncate();- }- }-- .servers-workbar-actions {- display: flex;- align-items: center;- gap: $space-2;- flex-wrap: wrap;-- .btn,- button {- min-height: 32px;- }- }-- .servers-command-bar {- margin: 0;- padding: $space-2;- border: 1px solid $border-default;- border-radius: $radius-lg;- background: $bg-card;- box-shadow: none;- backdrop-filter: none;- flex-shrink: 0;- }-- .servers-toolbar {- min-width: min(460px, 100%);- flex: 1;- gap: $space-2;- }-- .search-box {- width: min(460px, 100%);- height: 34px;- border-radius: $radius-md;- background: $bg-elevated;- border: 1px solid $border-subtle;-- svg {- color: $text-tertiary;- left: $space-3;- }-- input {- height: 100%;- border: 0;- background: transparent;- color: $text-primary;- font-size: $font-size-xs;- }- }-- .servers-results-summary {- padding: 0 $space-2;- min-height: 32px;- border: 0;- background: transparent;- color: $text-tertiary;- flex-shrink: 0;-- strong {- color: $text-primary;- font-family: $font-mono;- font-size: $font-size-sm;- }- }-- .servers-clear-filters {- border-radius: $radius-md;- }-- .servers-bulk-bar {- margin: 0;- border-radius: $radius-lg;- box-shadow: none;- flex-shrink: 0;- }-- .servers-table-wrap {- flex: 1;- min-height: 0;- overflow: auto;- border-color: $border-default;- border-radius: $radius-lg;- box-shadow: none;- }-- .servers-table {- min-width: 1040px;-- thead th {- background: $bg-elevated;- letter-spacing: 0;- }-- tbody tr {- background: $bg-card;- }- }-- .servers-empty-workspace {- flex: 1;- min-height: 360px;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: $space-3;- padding: $space-6;- border: 1px solid $border-default;- border-radius: $radius-lg;- background:- linear-gradient(180deg, rgba($accent-primary-raw, 0.06), transparent 42%),- $bg-card;- text-align: center;-- h2 {- margin: 0;- color: $text-primary;- font-size: $font-size-xl;- font-weight: $font-weight-semibold;- }-- p {- max-width: 420px;- margin: 0;- color: $text-secondary;- font-size: $font-size-sm;- line-height: $line-height-relaxed;- }- }-- .servers-empty-workspace__icon {- width: 58px;- height: 58px;- display: grid;- place-items: center;- border-radius: $radius-lg;- background: $bg-elevated;- border: 1px solid $border-subtle;- color: $accent-primary;- }-- .servers-empty-workspace__actions {- display: flex;- justify-content: center;- gap: $space-2;- flex-wrap: wrap;- }-- @media (max-width: $breakpoint-lg) {- height: auto;- min-height: 100vh;- overflow: auto;-- .servers-ops-workspace {- grid-template-columns: 1fr;- overflow: visible;- }-- .servers-fleet-rail {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- overflow: visible;- }-- .servers-rail-section--health {- grid-column: 1 / -1;- }-- .servers-main {- min-height: 620px;- }- }-- @media (max-width: $breakpoint-sm) {- padding: $space-2;-- .servers-fleet-rail {- grid-template-columns: 1fr;- }-- .servers-workbar,- .servers-command-bar {- align-items: stretch;- flex-direction: column;- }-- .servers-workbar-title {- flex-wrap: wrap;- }-- .servers-workbar-actions {- width: 100%;-- > * {- flex: 1;- }- }-- .servers-toolbar,- .search-box {- width: 100%;- }-- .servers-results-summary {- justify-content: space-between;- }- }-}-.btn-ghost {background: transparent;border: 1px solid transparent;