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
feat(ui): restyle ServiceDetail tabs + Templates catalog to the new look
Juan Denisa16ff1b8f874
diff --git a/frontend/src/components/service-detail/CommandsTab.jsx b/frontend/src/components/service-detail/CommandsTab.jsxindex 7d92f3ff..a11e869a 100644--- a/frontend/src/components/service-detail/CommandsTab.jsx+++ b/frontend/src/components/service-detail/CommandsTab.jsx@@ -40,8 +40,8 @@ const CommandsTab = ({ appId, appType }) => {return (<div>- <h3>Run Commands</h3>- <p className="hint">Commands run in the app's virtual environment context.</p>+ <h3 className="svc-eyebrow">Run Commands</h3>+ <p className="hint">Commands run in the app's virtual environment context.</p><div className="quick-commands">{quickCommands.map(({ label, cmd }) => (diff --git a/frontend/src/components/service-detail/EventsTab.jsx b/frontend/src/components/service-detail/EventsTab.jsxindex 770b9cf9..e3a52865 100644--- a/frontend/src/components/service-detail/EventsTab.jsx+++ b/frontend/src/components/service-detail/EventsTab.jsx@@ -1,9 +1,18 @@import React, { useState } from 'react';import { Button } from '@/components/ui/button';-import { Badge } from '@/components/ui/badge';+import { Pill } from '@/components/ds';import { useDeployments } from '../../hooks/useDeployments';import { getDeployStatus, formatRelativeTime, formatDuration } from '../../utils/serviceTypes';+// Deployment status → semantic tone (ds Pill kind / dot modifier)+const DEPLOY_TONE = {+ success: 'green',+ failed: 'red',+ in_progress: 'amber',+ rolled_back: 'gray',+ pending: 'cyan',+};+const EventsTab = ({ appId }) => {const { deployments, loading, error, reload } = useDeployments(appId);const [expandedId, setExpandedId] = useState(null);@@ -38,13 +47,16 @@ const EventsTab = ({ appId }) => {return (<div className="events-tab"><div className="events-tab__header">- <h3>Deployment Events</h3>+ <h3 className="svc-eyebrow">+ Deployment Events <span className="svc-eyebrow__count">· {deployments.length}</span>+ </h3><Button variant="outline" size="sm" onClick={reload}>Refresh</Button></div><div className="events-tab__timeline">{deployments.map((deploy, idx) => {const statusInfo = getDeployStatus(deploy.status);+ const tone = DEPLOY_TONE[deploy.status] || 'cyan';const isExpanded = expandedId === deploy.id;const isLatest = idx === 0 && deploy.status === 'success';@@ -54,10 +66,7 @@ const EventsTab = ({ appId }) => {className={`events-tab__event ${isExpanded ? 'events-tab__event--expanded' : ''}`}onClick={() => setExpandedId(isExpanded ? null : deploy.id)}>- <div- className="events-tab__event-status"- style={{ backgroundColor: statusInfo.color }}- />+ <div className={`events-tab__event-status events-tab__event-status--${tone}`} /><div className="events-tab__event-body"><div className="events-tab__event-header"><div className="events-tab__event-commit">@@ -70,15 +79,9 @@ const EventsTab = ({ appId }) => {{deploy.commitMessage || deploy.version || `Deployment #${deployments.length - idx}`}</span></div>- <span- className="events-tab__event-badge"- style={{- backgroundColor: statusInfo.color + '1a',- color: statusInfo.color,- }}- >+ <Pill kind={isLatest ? 'green' : tone}>{isLatest ? 'Live' : statusInfo.label}- </span>+ </Pill></div><div className="events-tab__event-meta">{deploy.duration && <span>{formatDuration(deploy.duration)}</span>}diff --git a/frontend/src/components/service-detail/GunicornTab.jsx b/frontend/src/components/service-detail/GunicornTab.jsxindex a61c18c7..5d49c6a0 100644--- a/frontend/src/components/service-detail/GunicornTab.jsx+++ b/frontend/src/components/service-detail/GunicornTab.jsx@@ -44,7 +44,7 @@ const GunicornTab = ({ appId }) => {return (<div><div className="section-header">- <h3>Gunicorn Configuration</h3>+ <h3 className="svc-eyebrow">Gunicorn Configuration</h3><Button onClick={handleSave} disabled={saving}>{saving ? 'Saving...' : 'Save'}</Button>diff --git a/frontend/src/components/service-detail/MetricsTab.jsx b/frontend/src/components/service-detail/MetricsTab.jsxindex ccaffe60..78abca00 100644--- a/frontend/src/components/service-detail/MetricsTab.jsx+++ b/frontend/src/components/service-detail/MetricsTab.jsx@@ -1,5 +1,6 @@import React, { useState, useEffect } from 'react';import api from '../../services/api';+import { Gauge } from '@/components/ds';const MetricsTab = ({ app }) => {const [stats, setStats] = useState(null);@@ -39,12 +40,6 @@ const MetricsTab = ({ app }) => {}}- function getBarColor(percent) {- if (percent > 80) return 'var(--danger, #ef4444)';- if (percent > 60) return 'var(--warning, #f59e0b)';- return 'var(--success, #10b981)';- }-if (loading) {return <div className="loading">Loading metrics...</div>;}@@ -65,15 +60,7 @@ const MetricsTab = ({ app }) => {<h4>CPU Usage</h4><span>{cpuPercent.toFixed(1)}%</span></div>- <div className="metrics-tab__bar">- <div- className="metrics-tab__bar-fill"- style={{- width: `${Math.min(cpuPercent, 100)}%`,- backgroundColor: getBarColor(cpuPercent),- }}- />- </div>+ <Gauge value={cpuPercent} /></div><div className="metrics-tab__card">@@ -81,15 +68,7 @@ const MetricsTab = ({ app }) => {<h4>Memory Usage</h4><span>{memPercent.toFixed(1)}%</span></div>- <div className="metrics-tab__bar">- <div- className="metrics-tab__bar-fill"- style={{- width: `${Math.min(memPercent, 100)}%`,- backgroundColor: getBarColor(memPercent),- }}- />- </div>+ <Gauge value={memPercent} /><div className="metrics-tab__info">{memUsage}</div></div>diff --git a/frontend/src/components/service-detail/OverviewTab.jsx b/frontend/src/components/service-detail/OverviewTab.jsxindex 516b13fb..af1aad59 100644--- a/frontend/src/components/service-detail/OverviewTab.jsx+++ b/frontend/src/components/service-detail/OverviewTab.jsx@@ -1,7 +1,25 @@import React, { useState, useEffect } from 'react';+import { Activity, Rocket, CheckCircle2, XCircle } from 'lucide-react';import api from '../../services/api';import { useDeployments } from '../../hooks/useDeployments';import { getDeployStatus, formatRelativeTime, formatDuration } from '../../utils/serviceTypes';+import { MetricCard, Pill, Gauge, EnvTag } from '@/components/ds';++// Deployment status → semantic tone (ds Pill kind / dot modifier)+const DEPLOY_TONE = {+ success: 'green',+ failed: 'red',+ in_progress: 'amber',+ rolled_back: 'gray',+ pending: 'cyan',+};++// environment_type → short EnvTag label+const ENV_LABEL = {+ production: 'PROD',+ development: 'DEV',+ staging: 'STAGING',+};const OverviewTab = ({ app, deployConfig }) => {const [metrics, setMetrics] = useState(null);@@ -55,63 +73,34 @@ const OverviewTab = ({ app, deployConfig }) => {const successfulDeploys = deployments.filter(d => d.status === 'success');const failedDeploys = deployments.filter(d => d.status === 'failed');- function getBarColor(percent) {- if (percent > 80) return 'var(--danger, #ef4444)';- if (percent > 60) return 'var(--warning, #f59e0b)';- return 'var(--success, #10b981)';- }-return (<div className="overview-tab">- {/* Quick Stats Row */}- <div className="overview-tab__stats-row">- <div className="overview-tab__stat-card">- <div className="overview-tab__stat-icon overview-tab__stat-icon--status">- <span className={`overview-tab__pulse overview-tab__pulse--${app.isRunning ? 'live' : 'stopped'}`} />- </div>- <div className="overview-tab__stat-info">- <span className="overview-tab__stat-value">{app.isRunning ? 'Live' : 'Stopped'}</span>- <span className="overview-tab__stat-label">Status</span>- </div>- </div>-- <div className="overview-tab__stat-card">- <div className="overview-tab__stat-icon overview-tab__stat-icon--deploys">- <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>- </div>- <div className="overview-tab__stat-info">- <span className="overview-tab__stat-value">{deployments.length}</span>- <span className="overview-tab__stat-label">Total Deploys</span>- </div>- </div>-- <div className="overview-tab__stat-card">- <div className="overview-tab__stat-icon overview-tab__stat-icon--success">- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <polyline points="20 6 9 17 4 12"/>- </svg>- </div>- <div className="overview-tab__stat-info">- <span className="overview-tab__stat-value">{successfulDeploys.length}</span>- <span className="overview-tab__stat-label">Successful</span>- </div>- </div>-- <div className="overview-tab__stat-card">- <div className="overview-tab__stat-icon overview-tab__stat-icon--failed">- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <line x1="18" y1="6" x2="6" y2="18"/>- <line x1="6" y1="6" x2="18" y2="18"/>- </svg>- </div>- <div className="overview-tab__stat-info">- <span className="overview-tab__stat-value">{failedDeploys.length}</span>- <span className="overview-tab__stat-label">Failed</span>- </div>- </div>+ {/* KPI Strip */}+ <div className="overview-tab__kpis">+ <MetricCard+ tone={app.isRunning ? 'green' : 'amber'}+ icon={<Activity size={16} />}+ value={app.isRunning ? 'Live' : 'Stopped'}+ label="Status"+ />+ <MetricCard+ tone="accent"+ icon={<Rocket size={16} />}+ value={deployments.length}+ label="Total Deploys"+ />+ <MetricCard+ tone="green"+ icon={<CheckCircle2 size={16} />}+ value={successfulDeploys.length}+ label="Successful"+ />+ <MetricCard+ tone="red"+ icon={<XCircle size={16} />}+ value={failedDeploys.length}+ label="Failed"+ /></div><div className="overview-tab__grid">@@ -119,61 +108,65 @@ const OverviewTab = ({ app, deployConfig }) => {<div className="overview-tab__card"><h3 className="overview-tab__card-title">Service Info</h3><div className="overview-tab__info-list">- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Type</span>- <span- className="overview-tab__info-badge"- style={{ backgroundColor: app.typeInfo.bgColor, color: app.typeInfo.color, borderColor: app.typeInfo.borderColor }}- >- {app.typeInfo.label}+ <div className="sk-info-row">+ <span className="k">Type</span>+ <span className="v">+ <span+ className="overview-tab__info-badge"+ style={{ backgroundColor: app.typeInfo.bgColor, color: app.typeInfo.color, borderColor: app.typeInfo.borderColor }}+ >+ {app.typeInfo.label}+ </span></span></div>{app.domain && (- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Domain</span>- <a- href={`https://${app.domain}`}- target="_blank"- rel="noopener noreferrer"- className="overview-tab__info-link"- >- {app.domain}- <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>- <polyline points="15 3 21 3 21 9"/>- <line x1="10" y1="14" x2="21" y2="3"/>- </svg>- </a>+ <div className="sk-info-row">+ <span className="k">Domain</span>+ <span className="v">+ <a+ href={`https://${app.domain}`}+ target="_blank"+ rel="noopener noreferrer"+ className="overview-tab__info-link"+ >+ {app.domain}+ <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>+ <polyline points="15 3 21 3 21 9"/>+ <line x1="10" y1="14" x2="21" y2="3"/>+ </svg>+ </a>+ </span></div>)}{app.port && (- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Port</span>- <span className="overview-tab__info-value mono">{app.port}</span>+ <div className="sk-info-row">+ <span className="k">Port</span>+ <span className="v">{app.port}</span></div>)}- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Created</span>- <span className="overview-tab__info-value">+ <div className="sk-info-row">+ <span className="k">Created</span>+ <span className="v">{new Date(app.created_at).toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric'})}</span></div>{deployConfig && (- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Repository</span>- <span className="overview-tab__info-value mono">+ <div className="sk-info-row">+ <span className="k">Repository</span>+ <span className="v">{extractRepoDisplay(deployConfig.repo_url)}<span className="overview-tab__branch">{deployConfig.branch || 'main'}</span></span></div>)}{app.environment_type && app.environment_type !== 'standalone' && (- <div className="overview-tab__info-row">- <span className="overview-tab__info-label">Environment</span>- <span className={`overview-tab__env-badge overview-tab__env-badge--${app.environment_type}`}>- {app.environment_type}+ <div className="sk-info-row">+ <span className="k">Environment</span>+ <span className="v">+ <EnvTag env={ENV_LABEL[app.environment_type] || app.environment_type.toUpperCase()} /></span></div>)}@@ -192,24 +185,14 @@ const OverviewTab = ({ app, deployConfig }) => {<span>CPU</span><span className="overview-tab__metric-value">{metrics.cpu.toFixed(1)}%</span></div>- <div className="overview-tab__metric-bar">- <div- className="overview-tab__metric-bar-fill"- style={{ width: `${Math.min(metrics.cpu, 100)}%`, backgroundColor: getBarColor(metrics.cpu) }}- />- </div>+ <Gauge value={metrics.cpu} /></div><div className="overview-tab__metric"><div className="overview-tab__metric-header"><span>Memory</span><span className="overview-tab__metric-value">{metrics.memory.toFixed(1)}%</span></div>- <div className="overview-tab__metric-bar">- <div- className="overview-tab__metric-bar-fill"- style={{ width: `${Math.min(metrics.memory, 100)}%`, backgroundColor: getBarColor(metrics.memory) }}- />- </div>+ <Gauge value={metrics.memory} /><span className="overview-tab__metric-detail">{metrics.memUsage}</span></div><div className="overview-tab__metric-row">@@ -235,7 +218,7 @@ const OverviewTab = ({ app, deployConfig }) => {{metrics.pid && (<div className="overview-tab__metric-item"><span className="overview-tab__metric-item-label">PID</span>- <span className="overview-tab__metric-item-value mono">{metrics.pid}</span>+ <span className="overview-tab__metric-item-value">{metrics.pid}</span></div>)}</div>@@ -290,13 +273,11 @@ const OverviewTab = ({ app, deployConfig }) => {<div className="overview-tab__deploy-list">{deployments.slice(0, 5).map((deploy, idx) => {const statusInfo = getDeployStatus(deploy.status);+ const tone = DEPLOY_TONE[deploy.status] || 'cyan';const isLatest = idx === 0 && deploy.status === 'success';return (<div key={deploy.id} className="overview-tab__deploy-row">- <div- className="overview-tab__deploy-dot"- style={{ backgroundColor: statusInfo.color }}- />+ <div className={`overview-tab__deploy-dot overview-tab__deploy-dot--${tone}`} /><div className="overview-tab__deploy-info"><span className="overview-tab__deploy-message">{deploy.commitMessage || deploy.version || `Deployment #${deployments.length - idx}`}@@ -310,12 +291,9 @@ const OverviewTab = ({ app, deployConfig }) => {<span>{formatRelativeTime(deploy.timestamp)}</span></span></div>- <span- className="overview-tab__deploy-badge"- style={{ backgroundColor: statusInfo.color + '1a', color: statusInfo.color }}- >+ <Pill kind={isLatest ? 'green' : tone}>{isLatest ? 'Live' : statusInfo.label}- </span>+ </Pill></div>);})}diff --git a/frontend/src/components/service-detail/PackagesTab.jsx b/frontend/src/components/service-detail/PackagesTab.jsxindex bd5e1936..ee4a9cea 100644--- a/frontend/src/components/service-detail/PackagesTab.jsx+++ b/frontend/src/components/service-detail/PackagesTab.jsx@@ -58,7 +58,9 @@ const PackagesTab = ({ appId }) => {return (<div><div className="section-header">- <h3>Installed Packages</h3>+ <h3 className="svc-eyebrow">+ Installed Packages <span className="svc-eyebrow__count">· {packages.length}</span>+ </h3><Button variant="outline" size="sm" onClick={handleFreeze}>Freeze to requirements.txt</Button>@@ -76,13 +78,23 @@ const PackagesTab = ({ appId }) => {</Button></form>- <div className="packages-list">- {packages.map(pkg => (- <div key={pkg.name} className="package-item">- <span className="package-name">{pkg.name}</span>- <span className="package-version">{pkg.version}</span>- </div>- ))}+ <div className="svc-card">+ <table className="sk-dtable">+ <thead>+ <tr>+ <th>Package</th>+ <th>Version</th>+ </tr>+ </thead>+ <tbody>+ {packages.map(pkg => (+ <tr key={pkg.name}>+ <td className="sk-cell-mono svc-pkg-name">{pkg.name}</td>+ <td className="sk-cell-mono">{pkg.version}</td>+ </tr>+ ))}+ </tbody>+ </table></div></div>);diff --git a/frontend/src/components/service-detail/ShellTab.jsx b/frontend/src/components/service-detail/ShellTab.jsxindex e41a6c5d..beccd722 100644--- a/frontend/src/components/service-detail/ShellTab.jsx+++ b/frontend/src/components/service-detail/ShellTab.jsx@@ -81,7 +81,7 @@ const ShellTab = ({ appId, appName }) => {<div className="shell-tab"><div className="shell-tab__container"><div className="shell-tab__header">- <span style={{ fontSize: '13px', color: 'var(--text-secondary)' }}>Container Shell</span>+ <span className="shell-tab__title">Container Shell</span>{containers.length > 1 && (<Selectvalue={selectedContainer || ''}@@ -103,7 +103,7 @@ const ShellTab = ({ appId, appName }) => {<div className="shell-tab__terminal" ref={terminalRef}>{history.length === 0 && (- <div style={{ color: '#8b949e' }}>+ <div className="shell-tab__hint">Type a command below to execute it in the container.</div>)}@@ -113,7 +113,7 @@ const ShellTab = ({ appId, appName }) => {{line.text}</div>))}- {running && <div style={{ color: '#8b949e' }}>Running...</div>}+ {running && <div className="shell-tab__hint">Running...</div>}</div><form className="shell-tab__input-row" onSubmit={handleExec}>diff --git a/frontend/src/pages/ServiceDetail.jsx b/frontend/src/pages/ServiceDetail.jsxindex 0b559ea3..c6b2610d 100644--- a/frontend/src/pages/ServiceDetail.jsx+++ b/frontend/src/pages/ServiceDetail.jsx@@ -20,6 +20,16 @@ import OverviewTab from '../components/service-detail/OverviewTab';import EmptyState from '../components/EmptyState';import { Layers } from 'lucide-react';import { Button } from '@/components/ui/button';+import { Pill, ServiceTile } from '@/components/ds';++// statusInfo.dotClass → ds Pill kind+const STATUS_PILL = {+ live: 'green',+ stopped: 'gray',+ deploying: 'amber',+ building: 'amber',+ failed: 'red',+};const TAB_LABELS = {overview: 'Overview',@@ -154,19 +164,13 @@ const ServiceDetail = () => {{/* Header */}<div className="svc-detail__header"><div className="svc-detail__header-left">- <div- className="svc-detail__icon"- style={{ backgroundColor: service.typeInfo.bgColor, color: service.typeInfo.color }}- >- <ServiceIcon type={service.app_type} />- </div>+ <ServiceTile name={service.name} size={52} className="svc-detail__tile" /><div className="svc-detail__title-block"><div className="svc-detail__title-row"><h1>{service.name}</h1>- <span className={`svc-detail__status svc-detail__status--${service.statusInfo.dotClass}`}>- <span className="svc-detail__status-dot" />+ <Pill kind={STATUS_PILL[service.statusInfo.dotClass] || 'gray'}>{service.statusInfo.label}- </span>+ </Pill><spanclassName="svc-detail__type-badge"style={{ backgroundColor: service.typeInfo.bgColor, color: service.typeInfo.color, borderColor: service.typeInfo.borderColor }}@@ -175,9 +179,21 @@ const ServiceDetail = () => {</span></div><div className="svc-detail__subtitle">- {service.port && <span className="mono">Port {service.port}</span>}+ {service.port && <span>Port {service.port}</span>}{service.port && <span className="svc-detail__sep">·</span>}<span>Created {new Date(service.created_at).toLocaleDateString()}</span>+ {service.domain && (+ <>+ <span className="svc-detail__sep">·</span>+ <a+ href={`https://${service.domain}`}+ target="_blank"+ rel="noopener noreferrer"+ >+ {service.domain}+ </a>+ </>+ )}</div></div></div>@@ -380,28 +396,6 @@ const ServiceDetail = () => {);};-function ServiceIcon({ type }) {- switch (type) {- case 'docker':- return (- <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">- <path d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.186m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288z"/>- </svg>- );- case 'flask':- case 'django':- return (- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M12 2L2 7l10 5 10-5-10-5z"/>- <path d="M2 17l10 5 10-5"/>- <path d="M2 12l10 5 10-5"/>- </svg>- );- default:- return <span className="text-lg font-bold">{type?.charAt(0).toUpperCase()}</span>;- }-}-function extractRepoDisplay(url) {if (!url) return '';try {diff --git a/frontend/src/pages/Templates.jsx b/frontend/src/pages/Templates.jsxindex 3773a74a..9eb52770 100644--- a/frontend/src/pages/Templates.jsx+++ b/frontend/src/pages/Templates.jsx@@ -5,7 +5,7 @@ import {Database, Shield, Cloud, MessageSquare, Video, Music, Image, Home,Code, Server, GitBranch, Workflow, HardDrive, Lock, Users, FileText,Settings, Layers, LayoutTemplate, ChevronDown, Copy, Check, Tag, Cpu,- Newspaper, TrendingUp+ Newspaper, TrendingUp, Rocket} from 'lucide-react';import api from '../services/api';import { useToast } from '../contexts/ToastContext';@@ -268,6 +268,23 @@ const Templates = () => {}}+ // Hover-reveal Deploy: skip the detail modal, go straight to install+ async function handleDeploy(template) {+ if (template.id === 'wordpress') {+ navigate('/wordpress');+ return;+ }+ try {+ const result = await api.getTemplate(template.id);+ if (result.template) {+ setSelectedTemplate(result.template);+ setShowInstallModal(true);+ }+ } catch (err) {+ toast.error('Failed to load template details');+ }+ }+function isFeatured(templateId) {return FEATURED_TEMPLATES.includes(templateId);}@@ -413,46 +430,56 @@ const Templates = () => {/>) : (sortedTemplates.map(template => (- <div key={template.id} className="template-card" onClick={() => handleViewTemplate(template)}>+ <div key={template.id} className="tpl-card" onClick={() => handleViewTemplate(template)}>{isFeatured(template.id) && (- <span className="featured-badge">- <Star size={12} /> Featured+ <span className="tpl-ft" title="Featured">+ <Star size={14} /></span>)}- <div className="template-icon">- {renderIcon(template, 32)}- </div>- <div className="template-info">- <h3>{template.name}</h3>- <p className="template-description">{template.description}</p>- <div className="template-meta">- <span className="template-version">v{template.version}</span>- {template.website && (- <span className="template-link-indicator" title="Has website">- <ExternalLink size={12} />- </span>- )}- {template.documentation && (- <span className="template-link-indicator" title="Has documentation">- <BookOpen size={12} />- </span>- )}- <div className="template-categories">- {(template.categories || []).slice(0, 2).map(cat => (- <span key={cat} className="category-badge">- {cat}- </span>- ))}- </div>+ <div className="tpl-top">+ <span className="tpl-ico">+ {renderIcon(template, 22)}+ </span>+ <div className="tpl-id">+ <div className="tpl-name">{template.name}</div>+ <div className="tpl-ver">v{template.version}</div></div></div>+ <p className="tpl-desc">{template.description}</p>+ <div className="tpl-tags">+ {(template.categories || []).slice(0, 3).map(cat => (+ <span key={cat} className="tg">+ {cat}+ </span>+ ))}+ {template.website && (+ <span className="tpl-link" title="Has website">+ <ExternalLink size={12} />+ </span>+ )}+ {template.documentation && (+ <span className="tpl-link" title="Has documentation">+ <BookOpen size={12} />+ </span>+ )}+ <Button+ size="sm"+ className="tpl-deploy"+ onClick={(e) => {+ e.stopPropagation();+ handleDeploy(template);+ }}+ >+ <Rocket size={12} /> Deploy+ </Button>+ </div></div>)))}</div>{/* Template Detail Modal */}- {selectedTemplate && (+ {selectedTemplate && !showInstallModal && (<div className="modal-overlay" onClick={() => setSelectedTemplate(null)}><div className="modal template-detail-drawer" onClick={e => e.stopPropagation()}><div className="modal-header">diff --git a/frontend/src/styles/pages/_service-detail.scss b/frontend/src/styles/pages/_service-detail.scssindex 5a7c3d7c..932e08cd 100644--- a/frontend/src/styles/pages/_service-detail.scss+++ b/frontend/src/styles/pages/_service-detail.scss@@ -1,32 +1,36 @@// ============================================-// SERVICE DETAIL PAGE+// SERVICE DETAIL PAGE (redesign — infra console look)+// Header keeps the breadcrumb (detail pages don't get the group top bar);+// tab strip uses the accent-bg active wash; tab bodies consume the shared+// sk- primitives (Pill / MetricCard / Gauge / .sk-info-row / .sk-dtable).// ============================================.svc-detail {- // Breadcrumb+ // Breadcrumb — mono trail&__breadcrumb {display: flex;align-items: center;gap: $space-2;margin-bottom: $space-5;+ font-family: var(--mono);font-size: $font-size-sm;a {- color: $text-tertiary;+ color: var(--text-faint);text-decoration: none;&:hover {- color: $text-primary;+ color: var(--accent-bright);}}}&__breadcrumb-sep {- color: $text-tertiary;+ color: var(--text-ghost);}&__breadcrumb-current {- color: $text-secondary;+ color: var(--text-dim);font-weight: $font-weight-medium;}@@ -46,14 +50,10 @@min-width: 0;}- &__icon {- width: 48px;- height: 48px;- border-radius: $radius-xl;- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;+ // Gradient initial avatar (ds ServiceTile — size via props)+ &__tile {+ border-radius: 13px;+ box-shadow: var(--shadow-sm);}&__title-block {@@ -67,66 +67,24 @@flex-wrap: wrap;h1 {- font-size: $font-size-2xl;- font-weight: $font-weight-bold;+ font-size: 21px;+ font-weight: $font-weight-semibold;+ letter-spacing: -0.02em;color: $text-primary;margin: 0;white-space: nowrap;}}- &__status {- display: inline-flex;- align-items: center;- gap: $space-1;- font-size: $font-size-sm;- font-weight: $font-weight-medium;- padding: 2px $space-3;- border-radius: $radius-full;-- &--live {- color: $success;- background: $success-bg;- }-- &--stopped {- color: $text-tertiary;- background: $bg-secondary;- }-- &--deploying,- &--building {- color: $warning;- background: $warning-bg;- }-- &--failed {- color: $danger;- background: $danger-bg;- }- }-- &__status-dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: currentColor;-- .svc-detail__status--live & {- animation: pulse-dot 2s ease-in-out infinite;- }-- .svc-detail__status--deploying &,- .svc-detail__status--building & {- animation: pulse-dot 1s ease-in-out infinite;- }- }-+ // Service-type tag (brand colors arrive via inline style props)&__type-badge {- font-size: $font-size-xs;- font-weight: $font-weight-medium;- padding: 2px $space-2;- border-radius: $radius-full;+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ padding: 2px 7px;+ border-radius: 5px;border: 1px solid;}@@ -134,17 +92,24 @@display: flex;align-items: center;gap: $space-2;- margin-top: $space-1;- font-size: $font-size-sm;- color: $text-tertiary;+ flex-wrap: wrap;+ margin-top: 6px;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text-dim);- .mono {- font-family: $font-mono;+ a {+ color: var(--accent-bright);+ text-decoration: none;++ &:hover {+ text-decoration: underline;+ }}}&__sep {- color: $text-tertiary;+ color: var(--text-ghost);}// Header Actions@@ -164,13 +129,13 @@position: absolute;top: calc(100% + 4px);left: 0;- background: $bg-elevated;- border: 1px solid $border-default;- border-radius: $radius-lg;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: var(--radius);padding: $space-1;min-width: 200px;z-index: $z-dropdown;- box-shadow: $shadow-lg;+ box-shadow: var(--shadow-md);&--right {left: auto;@@ -192,7 +157,7 @@text-decoration: none;&:hover {- background: $bg-hover;+ background: var(--surface-hover);color: $text-primary;}@@ -205,7 +170,7 @@&__dropdown-divider {height: 1px;- background: $border-subtle;+ background: var(--border-soft);margin: $space-1 0;}@@ -227,92 +192,110 @@display: inline-flex;align-items: center;gap: $space-2;- padding: $space-2 $space-3;- background: $bg-card;- border: 1px solid $border-default;+ padding: 6px $space-3;+ background: var(--surface);+ border: 1px solid var(--border);border-radius: $radius-full;+ font-family: var(--mono);font-size: $font-size-sm;- color: $text-secondary;+ color: var(--text-dim);cursor: pointer;- transition: border-color $transition-fast;+ transition: border-color $transition-fast, background $transition-fast;++ svg { color: var(--text-faint); }&:hover {- border-color: $accent-primary;+ border-color: var(--accent-dim);+ background: var(--surface-2);}}&__repo-url {- font-family: $font-mono;- font-size: $font-size-xs;+ font-size: $font-size-sm;+ color: $text-primary;}&__repo-arrow {- color: $text-tertiary;+ color: var(--text-ghost);}&__repo-branch {- font-family: $font-mono;- font-size: $font-size-xs;- color: $accent-primary;+ font-size: $font-size-sm;+ color: var(--accent-bright);font-weight: $font-weight-medium;}&__auto-deploy-badge {- font-size: $font-size-xs;- padding: 0 $space-1;- background: $success-bg;- color: $success;+ font-family: var(--mono);+ font-size: 10px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ padding: 1px 6px;+ background: var(--green-bg);+ color: var(--green);border-radius: $radius-sm;- font-weight: $font-weight-medium;}&__connect-repo {display: inline-flex;align-items: center;gap: $space-2;- padding: $space-2 $space-3;+ padding: 6px $space-3;background: none;- border: 1px dashed $border-default;+ border: 1px dashed var(--border-strong);border-radius: $radius-full;font-size: $font-size-sm;- color: $text-tertiary;+ color: var(--text-faint);cursor: pointer;transition: all $transition-fast;&:hover {- border-color: $accent-primary;- color: $accent-primary;+ border-color: var(--accent-dim);+ color: var(--accent-bright);+ background: var(--accent-bg-soft);}}- // Tabs+ // Tab strip — accent wash on the active chip&__tabs {display: flex;- gap: 0;- border-bottom: 1px solid $border-default;+ align-items: center;+ gap: 2px;+ border-bottom: 1px solid var(--border-soft);+ padding-bottom: $space-2;margin-bottom: $space-6;overflow-x: auto;++ &::-webkit-scrollbar { height: 0; }}&__tab {- padding: $space-3 $space-4;+ padding: 7px 12px;background: none;border: none;- border-bottom: 2px solid transparent;- color: $text-tertiary;- font-size: $font-size-sm;- font-weight: $font-weight-medium;+ border-radius: 8px;+ color: var(--text-dim);+ font-size: 13px;+ font-weight: $font-weight-normal;cursor: pointer;white-space: nowrap;- transition: all $transition-fast;+ transition: background $transition-fast, color $transition-fast;&:hover {- color: $text-secondary;+ background: var(--surface-hover);+ color: $text-primary;}&--active {- color: $text-primary;- border-bottom-color: $accent-primary;+ background: var(--accent-bg);+ color: var(--accent-bright);+ font-weight: $font-weight-medium;++ &:hover {+ background: var(--accent-bg);+ color: var(--accent-bright);+ }}}@@ -320,51 +303,120 @@&__content {min-height: 400px;}++ // Scoped console/editor polish for tabs that use shared classes+ // (Gunicorn editor, Commands output) — token re-tint only.+ .code-editor {+ background: var(--bg-code);+ border-color: var(--border-soft);+ color: var(--text-code);+ font-family: var(--mono);+ font-size: $font-size-sm;+ }++ .command-output {+ background: var(--bg-code);+ border-color: var(--border-soft);+ border-radius: var(--radius);++ pre {+ color: var(--text-code);+ font-size: $font-size-sm;+ }++ &.error {+ border-color: rgba(251, 111, 111, 0.4);+ }++ .stderr {+ color: var(--red);+ }+ }}// ============================================-// TAB COMPONENT STYLES+// SHARED TAB CHROME// ============================================-// Events Tab+// Mono eyebrow section label (used by tab section headers).+// The h3 variant out-specifies the global `.section-header h3` sizing.+.svc-eyebrow,+h3.svc-eyebrow {+ display: flex;+ align-items: center;+ gap: 6px;+ margin: 0;+ font-family: var(--mono);+ font-size: 11px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);++ &__count {+ font-weight: $font-weight-medium;+ color: var(--text-ghost);+ letter-spacing: 0.02em;+ }++ // standalone eyebrow followed by a hint paragraph (Commands tab)+ + .hint {+ margin-top: $space-2;+ }+}++// Plain surface card wrapper (tables, consoles)+.svc-card {+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ overflow: hidden;+}++// Accent-tinted mono cell (e.g. package names)+.svc-pkg-name {+ color: var(--accent-bright) !important;+}++// ============================================+// EVENTS TAB — dense feed-style timeline+// ============================================.events-tab {&__header {display: flex;justify-content: space-between;align-items: center;- margin-bottom: $space-5;-- h3 {- margin: 0;- color: $text-primary;- }+ margin-bottom: $space-4;}+ // The timeline is one card; events are dense rows inside it&__timeline {display: flex;flex-direction: column;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ overflow: hidden;}&__event {display: flex;gap: $space-4;- padding: $space-4;- border: 1px solid $border-default;- border-radius: $radius-lg;- background: $bg-card;+ padding: $space-3 $space-4;+ background: transparent;cursor: pointer;transition: background $transition-fast;& + & {- margin-top: $space-2;+ border-top: 1px solid var(--border-soft);}&:hover {- background: $bg-hover;+ background: var(--surface-2);}&--expanded {- background: $bg-elevated;+ background: var(--surface-2);}}@@ -374,6 +426,13 @@border-radius: 50%;margin-top: 6px;flex-shrink: 0;+ background: var(--text-ghost);++ &--green { background: var(--green); box-shadow: 0 0 6px var(--green); }+ &--red { background: var(--red); }+ &--amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }+ &--cyan { background: var(--cyan); }+ &--gray { background: var(--text-faint); }}&__event-body {@@ -392,19 +451,21 @@display: flex;align-items: center;gap: $space-2;+ min-width: 0;}&__event-sha {- font-family: $font-mono;- font-size: $font-size-xs;- color: $accent-primary;- background: $accent-glow;+ font-family: var(--mono);+ font-size: $font-size-sm;+ color: var(--accent-bright);+ background: var(--accent-bg);padding: 1px $space-2;border-radius: $radius-sm;+ flex-shrink: 0;}&__event-message {- font-size: $font-size-sm;+ font-size: $font-size-base - 1;color: $text-primary;font-weight: $font-weight-medium;white-space: nowrap;@@ -417,30 +478,25 @@align-items: center;gap: $space-3;margin-top: $space-1;- font-size: $font-size-xs;- color: $text-tertiary;- }-- &__event-badge {- font-size: $font-size-xs;- font-weight: $font-weight-medium;- padding: 1px $space-2;- border-radius: $radius-sm;+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);}&__event-logs {margin-top: $space-3;padding: $space-3;- background: $bg-body;+ background: var(--bg-code);+ border: 1px solid var(--border-soft);border-radius: $radius-md;max-height: 300px;overflow-y: auto;pre {margin: 0;- font-family: $font-mono;- font-size: $font-size-xs;- color: $text-secondary;+ font-family: var(--mono);+ font-size: $font-size-sm;+ color: var(--text-code);white-space: pre-wrap;word-break: break-all;}@@ -458,11 +514,13 @@}}-// Shell Tab+// ============================================+// SHELL TAB — console re-tinted to tokens+// ============================================.shell-tab {&__container {- border: 1px solid $border-default;- border-radius: $radius-lg;+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);overflow: hidden;}@@ -471,32 +529,45 @@justify-content: space-between;align-items: center;padding: $space-3 $space-4;- background: $bg-elevated;- border-bottom: 1px solid $border-default;+ background: var(--surface-2);+ border-bottom: 1px solid var(--border-soft);+ }++ &__title {+ font-family: var(--mono);+ font-size: 11px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}&__terminal {- background: #0d1117;+ background: var(--bg-code);padding: $space-4;min-height: 400px;- font-family: $font-mono;+ font-family: var(--mono);font-size: $font-size-sm;- color: #e6edf3;+ color: var(--text-code);overflow-y: auto;max-height: 600px;}+ &__hint {+ color: var(--text-faint);+ }+&__line {line-height: 1.6;white-space: pre-wrap;word-break: break-all;&--input {- color: #58a6ff;+ color: var(--cyan);}&--error {- color: #f85149;+ color: var(--red);}}@@ -505,13 +576,13 @@align-items: center;gap: $space-2;padding: $space-3 $space-4;- background: $bg-card;- border-top: 1px solid $border-default;+ background: var(--surface);+ border-top: 1px solid var(--border-soft);}&__prompt {- color: $accent-primary;- font-family: $font-mono;+ color: var(--accent-bright);+ font-family: var(--mono);font-size: $font-size-sm;flex-shrink: 0;}@@ -521,13 +592,17 @@background: none;border: none;color: $text-primary;- font-family: $font-mono;+ font-family: var(--mono);font-size: $font-size-sm;outline: none;}}-// Metrics Tab+// ============================================+// METRICS TAB — point-in-time spec cards + gauges+// (no metrics HISTORY backend yet — see docs/REDESIGN_MAP.md §5; the cards+// bind to live point-in-time stats only, no fabricated series)+// ============================================.metrics-tab {&__grid {display: grid;@@ -536,52 +611,57 @@}&__card {- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg;- padding: $space-5;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ padding: $space-4 $space-5;+ transition: border-color 0.15s;++ &:hover {+ border-color: var(--border-strong);+ }++ .sk-gauge {+ margin-top: $space-3;+ }}&__card-header {display: flex;justify-content: space-between;align-items: center;- margin-bottom: $space-3;+ gap: $space-3;h4 {margin: 0;- color: $text-primary;- font-size: $font-size-base;+ font-family: var(--mono);+ font-size: 11px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}span {- font-size: $font-size-xl;- font-weight: $font-weight-bold;+ font-family: var(--mono);+ font-size: 22px;+ font-weight: $font-weight-semibold;+ letter-spacing: -0.02em;color: $text-primary;}}- &__bar {- height: 8px;- background: $bg-secondary;- border-radius: $radius-full;- overflow: hidden;- }-- &__bar-fill {- height: 100%;- border-radius: $radius-full;- transition: width $transition-slow;- }-&__info {margin-top: $space-2;- font-size: $font-size-xs;- color: $text-tertiary;+ font-family: var(--mono);+ font-size: $font-size-sm;+ color: var(--text-dim);}}-// GitConnectModal+// ============================================+// GIT CONNECT MODAL — token polish+// ============================================.git-connect-modal {&__form {display: flex;@@ -601,21 +681,22 @@input, select, textarea {width: 100%;padding: $space-2 $space-3;- background: $bg-card;- border: 1px solid $border-default;+ background: var(--surface);+ border: 1px solid var(--border);border-radius: $radius-md;color: $text-primary;font-size: $font-size-sm;&:focus {outline: none;- border-color: $accent-primary;+ border-color: var(--accent-primary);+ box-shadow: 0 0 0 3px var(--accent-bg-soft);}}textarea {- font-family: $font-mono;- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: $font-size-sm;min-height: 80px;resize: vertical;}@@ -625,19 +706,22 @@display: flex;align-items: center;justify-content: space-between;+ gap: $space-4;padding: $space-3;- background: $bg-card;- border: 1px solid $border-default;+ background: var(--surface);+ border: 1px solid var(--border-soft);border-radius: $radius-md;}&__toggle-label {font-size: $font-size-sm;- color: $text-secondary;+ font-weight: $font-weight-medium;+ color: $text-primary;span {display: block;- font-size: $font-size-xs;+ font-size: $font-size-sm;+ font-weight: $font-weight-normal;color: $text-tertiary;margin-top: 2px;}@@ -649,25 +733,33 @@gap: $space-2;margin-top: $space-4;padding-top: $space-4;- border-top: 1px solid $border-subtle;+ border-top: 1px solid var(--border-soft);}}-// Settings Tab within service detail+// Settings tab within service detail.svc-settings {+ max-width: 820px;+&__section {margin-bottom: $space-6;}&__section-title {- font-size: $font-size-md;+ display: flex;+ align-items: center;+ gap: 6px;+ margin: 0 0 $space-3;+ font-family: var(--mono);+ font-size: 11px;font-weight: $font-weight-semibold;- color: $text-primary;- margin-bottom: $space-4;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}}-// Icon-only button+// Icon-only button (global utility consumed by several other components).btn-icon {padding: $space-2 !important;min-width: auto !important;@@ -677,72 +769,15 @@// OVERVIEW TAB// ============================================.overview-tab {- &__stats-row {+ // KPI strip (ds MetricCard)+ &__kpis {display: grid;grid-template-columns: repeat(4, 1fr);gap: $space-4;- margin-bottom: $space-6;-- @media (max-width: $breakpoint-md) {- grid-template-columns: repeat(2, 1fr);- }- }-- &__stat-card {- display: flex;- align-items: center;- gap: $space-3;- padding: $space-4 $space-5;- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg;- }-- &__stat-icon {- width: 36px;- height: 36px;- border-radius: $radius-lg;- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;-- &--status { background: $bg-secondary; }- &--deploys { background: $info-bg; color: $info; }- &--success { background: $success-bg; color: $success; }- &--failed { background: $danger-bg; color: $danger; }- }-- &__pulse {- width: 10px;- height: 10px;- border-radius: 50%;-- &--live {- background: $success;- animation: pulse-dot 2s ease-in-out infinite;- }-- &--stopped {- background: $text-tertiary;- }- }-- &__stat-info {- display: flex;- flex-direction: column;- }-- &__stat-value {- font-size: $font-size-lg;- font-weight: $font-weight-bold;- color: $text-primary;- line-height: 1.2;- }+ margin-bottom: $space-4;- &__stat-label {- font-size: $font-size-xs;- color: $text-tertiary;+ @media (max-width: $breakpoint-lg) { grid-template-columns: repeat(2, 1fr); }+ @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }}// Grid layout for info + metrics@@ -750,7 +785,7 @@display: grid;grid-template-columns: 1fr 1fr;gap: $space-4;- margin-bottom: $space-6;+ margin-bottom: $space-4;@media (max-width: $breakpoint-md) {grid-template-columns: 1fr;@@ -758,10 +793,10 @@}&__card {- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg;- padding: $space-5;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ padding: $space-4 $space-5;&--full {grid-column: 1 / -1;@@ -769,17 +804,23 @@}&__card-title {- font-size: $font-size-base;+ display: flex;+ align-items: center;+ gap: 6px;+ margin: 0 0 $space-3;+ font-family: var(--mono);+ font-size: 11px;font-weight: $font-weight-semibold;- color: $text-primary;- margin: 0 0 $space-4;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}&__card-header-row {display: flex;justify-content: space-between;align-items: center;- margin-bottom: $space-4;+ margin-bottom: $space-3;.overview-tab__card-title {margin: 0;@@ -787,47 +828,20 @@}&__see-all {- font-size: $font-size-xs;- color: $text-tertiary;- }-- // Service Info List- &__info-list {- display: flex;- flex-direction: column;- }-- &__info-row {- display: flex;- justify-content: space-between;- align-items: center;- padding: $space-3 0;-- & + & {- border-top: 1px solid $border-subtle;- }- }-- &__info-label {- font-size: $font-size-sm;- color: $text-tertiary;- }-- &__info-value {- font-size: $font-size-sm;- color: $text-primary;-- &.mono {- font-family: $font-mono;- font-size: $font-size-xs;- }+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);}+ // Info badge (brand colors via inline style props)&__info-badge {- font-size: $font-size-xs;- font-weight: $font-weight-medium;- padding: 2px $space-2;- border-radius: $radius-full;+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ padding: 2px 7px;+ border-radius: 5px;border: 1px solid;}@@ -835,8 +849,9 @@display: inline-flex;align-items: center;gap: $space-1;+ font-family: var(--mono);font-size: $font-size-sm;- color: $accent-primary;+ color: var(--accent-bright);text-decoration: none;&:hover {@@ -846,23 +861,11 @@&__branch {margin-left: $space-2;- color: $accent-primary;+ color: var(--accent-bright);font-weight: $font-weight-medium;}- &__env-badge {- font-size: $font-size-xs;- font-weight: $font-weight-medium;- padding: 2px $space-2;- border-radius: $radius-sm;- text-transform: capitalize;-- &--production { background: $danger-bg; color: $danger; }- &--staging { background: $warning-bg; color: $warning; }- &--development { background: $info-bg; color: $info; }- }-- // Resource metrics+ // Resource metrics (ds Gauge bars + mono values)&__metrics {display: flex;flex-direction: column;@@ -874,31 +877,21 @@justify-content: space-between;align-items: center;margin-bottom: $space-2;- font-size: $font-size-sm;+ font-size: $font-size-sm + 1;color: $text-secondary;}&__metric-value {- font-weight: $font-weight-bold;+ font-family: var(--mono);+ font-weight: $font-weight-semibold;color: $text-primary;}- &__metric-bar {- height: 6px;- background: $bg-secondary;- border-radius: $radius-full;- overflow: hidden;- }-- &__metric-bar-fill {- height: 100%;- border-radius: $radius-full;- transition: width $transition-slow;- }-&__metric-detail {- font-size: $font-size-xs;- color: $text-tertiary;+ display: block;+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);margin-top: $space-1;}@@ -915,18 +908,18 @@}&__metric-item-label {- font-size: $font-size-xs;- color: $text-tertiary;+ font-family: var(--mono);+ font-size: 10.5px;+ letter-spacing: 0.05em;+ text-transform: uppercase;+ color: var(--text-faint);}&__metric-item-value {- font-size: $font-size-sm;+ font-family: var(--mono);+ font-size: $font-size-base - 1;font-weight: $font-weight-medium;color: $text-primary;-- &.mono {- font-family: $font-mono;- }}&__loading, &__no-metrics, &__no-deploys {@@ -936,7 +929,7 @@font-size: $font-size-sm;}- // Recent Deployments list+ // Recent Deployments list — dense rows&__deploy-list {display: flex;flex-direction: column;@@ -946,10 +939,10 @@display: flex;align-items: center;gap: $space-3;- padding: $space-3 0;+ padding: 11px 0;& + & {- border-top: 1px solid $border-subtle;+ border-top: 1px solid var(--border-soft);}}@@ -958,6 +951,13 @@height: 8px;border-radius: 50%;flex-shrink: 0;+ background: var(--text-ghost);++ &--green { background: var(--green); box-shadow: 0 0 6px var(--green); }+ &--red { background: var(--red); }+ &--amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }+ &--cyan { background: var(--cyan); }+ &--gray { background: var(--text-faint); }}&__deploy-info {@@ -966,7 +966,7 @@}&__deploy-message {- font-size: $font-size-sm;+ font-size: $font-size-base - 1;color: $text-primary;font-weight: $font-weight-medium;display: block;@@ -979,30 +979,22 @@display: flex;align-items: center;gap: $space-3;- font-size: $font-size-xs;- color: $text-tertiary;+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);margin-top: 2px;}&__deploy-sha {- font-family: $font-mono;- color: $accent-primary;- background: $accent-glow;+ color: var(--accent-bright);+ background: var(--accent-bg);padding: 0 $space-1;border-radius: $radius-sm;}-- &__deploy-badge {- font-size: $font-size-xs;- font-weight: $font-weight-medium;- padding: 2px $space-2;- border-radius: $radius-sm;- flex-shrink: 0;- }}// ============================================-// LOGS TAB V2+// LOGS TAB V2 — console re-tinted to tokens// ============================================.logs-tab-v2 {display: flex;@@ -1016,9 +1008,9 @@align-items: center;gap: $space-3;padding: $space-3 $space-4;- background: $bg-card;- border: 1px solid $border-default;- border-radius: $radius-lg $radius-lg 0 0;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius) var(--radius) 0 0;&__left {display: flex;@@ -1038,19 +1030,19 @@display: flex;align-items: center;gap: $space-2;- background: $bg-body;- border: 1px solid $border-default;+ background: var(--surface-2);+ border: 1px solid var(--border);border-radius: $radius-md;padding: 0 $space-2;flex: 1;max-width: 300px;&:focus-within {- border-color: $accent-primary;+ border-color: var(--accent-primary);}svg {- color: $text-tertiary;+ color: var(--text-faint);flex-shrink: 0;}@@ -1065,48 +1057,49 @@min-width: 0;&::placeholder {- color: $text-tertiary;+ color: var(--text-faint);}}}&__match-count {- font-size: $font-size-xs;- color: $accent-primary;+ font-family: var(--mono);+ font-size: 11px;+ color: var(--accent-bright);white-space: nowrap;}&__select {- background: $bg-body;- border: 1px solid $border-default;+ background: var(--surface-2);+ border: 1px solid var(--border);border-radius: $radius-md;padding: $space-1 $space-2;color: $text-secondary;- font-size: $font-size-xs;+ font-size: $font-size-sm;outline: none;cursor: pointer;- &:focus { border-color: $accent-primary; }+ &:focus { border-color: var(--accent-primary); }}&__toggle {display: flex;align-items: center;gap: $space-1;- font-size: $font-size-xs;+ font-size: $font-size-sm;color: $text-tertiary;cursor: pointer;white-space: nowrap;input {- accent-color: var(--accent-primary, #6d7cff);+ accent-color: var(--accent-primary);}}&__divider {width: 1px;height: 16px;- background: $border-default;+ background: var(--border);}}@@ -1115,40 +1108,42 @@align-items: center;gap: $space-2;padding: $space-1 $space-4;- background: $bg-elevated;- border-left: 1px solid $border-default;- border-right: 1px solid $border-default;- font-size: $font-size-xs;- color: $text-tertiary;+ background: var(--surface-2);+ border-left: 1px solid var(--border-soft);+ border-right: 1px solid var(--border-soft);+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);&__live {font-size: 9px;font-weight: $font-weight-bold;+ letter-spacing: 0.08em;padding: 1px $space-1;- background: $danger;- color: white;+ background: var(--red-bg);+ color: var(--red);border-radius: $radius-sm;animation: pulse-dot 1.5s ease-in-out infinite;}}.logs-viewer {- background: #0d1117;- border: 1px solid $border-default;+ background: var(--bg-code);+ border: 1px solid var(--border-soft);border-top: none;- border-radius: 0 0 $radius-lg $radius-lg;+ border-radius: 0 0 var(--radius) var(--radius);min-height: 400px;max-height: 600px;overflow-y: auto;- font-family: $font-mono;- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: $font-size-sm;line-height: 1.7;scroll-behavior: smooth;&__loading, &__empty {padding: $space-8;text-align: center;- color: #8b949e;+ color: var(--text-faint);}&__line {@@ -1157,28 +1152,28 @@transition: background 0.1s;&:hover {- background: rgba(255, 255, 255, 0.03);+ background: var(--surface-hover);}&--error {- background: rgba(248, 81, 73, 0.06);- .logs-viewer__line-text { color: #f85149; }+ background: rgba(251, 111, 111, 0.06);+ .logs-viewer__line-text { color: var(--red); }}&--warn {- background: rgba(210, 153, 34, 0.06);- .logs-viewer__line-text { color: #d29922; }+ background: rgba(245, 185, 69, 0.06);+ .logs-viewer__line-text { color: var(--amber); }}&--debug {- .logs-viewer__line-text { color: #8b949e; }+ .logs-viewer__line-text { color: var(--text-faint); }}}&__line-num {width: 48px;padding-right: $space-3;- color: #484f58;+ color: var(--text-ghost);text-align: right;flex-shrink: 0;user-select: none;@@ -1186,14 +1181,14 @@&__line-text {flex: 1;- color: #e6edf3;+ color: var(--text-code);white-space: pre-wrap;word-break: break-all;}&__highlight {- background: rgba(210, 153, 34, 0.3);- color: #e6edf3;+ background: rgba(245, 185, 69, 0.35);+ color: var(--text);border-radius: 2px;padding: 0 1px;}diff --git a/frontend/src/styles/pages/_templates.scss b/frontend/src/styles/pages/_templates.scssindex 36271d3d..5d4dea97 100644--- a/frontend/src/styles/pages/_templates.scss+++ b/frontend/src/styles/pages/_templates.scss@@ -1,5 +1,7 @@// ============================================-// TEMPLATES PAGE STYLES+// TEMPLATES PAGE (redesign — catalog grid, see docs/REDESIGN_MAP.md #13)+// Catalog cards use the demo's .tpl-card pattern, page-scoped here (NOT a+// design-system primitive). Detail/install modal styles stay below.// ============================================.templates-page {@@ -40,6 +42,159 @@font-size: $font-size-lg;}}++ // ── Catalog grid ────────────────────────────────────────+ .templates-grid {+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));+ gap: 14px;+ padding-top: $space-1;+ }++ // ── Template card (demo .tpl-card pattern) ──────────────+ .tpl-card {+ position: relative;+ display: flex;+ flex-direction: column;+ padding: $space-4;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ cursor: pointer;+ transition: border-color 0.14s, transform 0.14s, box-shadow 0.14s;++ &:hover {+ border-color: var(--border-strong);+ transform: translateY(-2px);+ box-shadow: var(--shadow-md);++ .tpl-deploy {+ opacity: 1;+ pointer-events: auto;+ }+ }+ }++ .tpl-top {+ display: flex;+ align-items: center;+ gap: $space-3;+ margin-bottom: 11px;+ }++ .tpl-ico {+ width: 42px;+ height: 42px;+ border-radius: 11px;+ display: grid;+ place-items: center;+ flex-shrink: 0;+ overflow: hidden;+ background: var(--surface-2);+ color: var(--accent-bright);++ img {+ width: 100%;+ height: 100%;+ object-fit: contain;+ padding: 6px;+ }++ svg {+ flex-shrink: 0;+ }+ }++ .tpl-id {+ min-width: 0;+ }++ .tpl-name {+ font-size: $font-size-base;+ font-weight: $font-weight-semibold;+ color: $text-primary;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ .tpl-ver {+ font-family: var(--mono);+ font-size: 10.5px;+ color: var(--text-faint);+ margin-top: 1px;+ }++ // Featured flag — amber star, top-right+ .tpl-ft {+ position: absolute;+ top: 13px;+ right: 13px;+ color: var(--amber);++ svg {+ fill: currentColor;+ }+ }++ .tpl-desc {+ margin: 0;+ font-size: $font-size-sm + 0.5;+ color: var(--text-faint);+ line-height: 1.5;+ flex: 1;+ display: -webkit-box;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ overflow: hidden;+ }++ .tpl-tags {+ display: flex;+ align-items: center;+ gap: 5px;+ flex-wrap: wrap;+ margin-top: $space-3;+ min-height: 26px;++ .tg {+ font-family: var(--mono);+ font-size: 10px;+ padding: 2px 7px;+ border-radius: 5px;+ background: var(--surface-2);+ color: var(--text-dim);+ text-transform: capitalize;+ white-space: nowrap;+ }+ }++ .tpl-link {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 20px;+ height: 20px;+ border-radius: 5px;+ background: var(--surface-2);+ color: var(--text-faint);+ }++ // Hover-reveal Deploy button+ .tpl-deploy {+ margin-left: auto;+ height: 26px;+ padding: 3px 10px;+ font-size: $font-size-sm;+ opacity: 0;+ pointer-events: none;+ transition: opacity 0.14s;++ &:focus-visible {+ opacity: 1;+ pointer-events: auto;+ }+ }}// Filters@@ -50,7 +205,8 @@margin-bottom: $space-4;}-.search-box {+// Scoped: Servers carries its own .search-box definition+.templates-page .search-box {position: relative;max-width: 400px;width: min(400px, 42vw);@@ -66,24 +222,24 @@input {width: 100%;- min-height: 40px;+ min-height: 36px;padding: $space-2 $space-4;padding-left: $space-10;padding-right: $space-10;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-md;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: $radius-lg;color: $text-primary;- font-size: $font-size-base;+ font-size: $font-size-sm + 1;&:focus {outline: none;- border-color: $accent-primary;- box-shadow: 0 0 0 3px $accent-glow;+ border-color: var(--accent-primary);+ box-shadow: 0 0 0 3px var(--accent-bg-soft);}&::placeholder {- color: $text-tertiary;+ color: var(--text-faint);}}@@ -104,47 +260,61 @@&:hover {color: $text-primary;- background: $bg-hover;+ background: var(--surface-hover);}}}+// Category chips (demo .cat-chip look on the existing buttons).category-filters {display: flex;flex-wrap: wrap;- gap: $space-2;+ gap: 7px;min-width: 0;}.category-btn {display: flex;align-items: center;- gap: $space-2;- padding: $space-2 $space-3;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-md;- color: $text-secondary;- font-size: $font-size-sm;+ gap: 6px;+ padding: 5px 12px;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: 8px;+ color: var(--text-faint);+ font-size: $font-size-sm + 0.5;+ font-weight: $font-weight-medium;cursor: pointer;- transition: all $transition-fast;+ transition: 0.12s;text-transform: capitalize;+ svg {+ color: var(--text-ghost);+ transition: color 0.12s;+ }+&:hover {- background: $bg-hover;- border-color: $border-default;color: $text-primary;+ border-color: var(--border-strong);++ svg {+ color: var(--text-faint);+ }}&.active {- background: $accent-glow;- border-color: $accent-primary;- color: $accent-primary;+ color: var(--accent-bright);+ background: var(--accent-bg);+ border-color: var(--accent-dim);++ svg {+ color: var(--accent-bright);+ }}&--more {- color: $accent-primary;- border-color: $border-active;+ color: var(--accent-bright);+ border-style: dashed;}}@@ -163,11 +333,12 @@gap: $space-2;padding: $space-1 $space-2;padding-right: $space-1;- background: $accent-glow;- border: 1px solid $accent-primary;+ background: var(--accent-bg);+ border: 1px solid var(--accent-dim);border-radius: $radius-full;+ font-family: var(--mono);font-size: $font-size-sm;- color: $accent-primary;+ color: var(--accent-bright);svg:first-child {flex-shrink: 0;@@ -182,13 +353,13 @@background: transparent;border: none;border-radius: $radius-full;- color: $accent-primary;+ color: var(--accent-bright);cursor: pointer;transition: all $transition-fast;&:hover {- background: $accent-primary;- color: white;+ background: var(--accent-bg);+ color: var(--text);}}}@@ -196,7 +367,7 @@.clear-all-btn {padding: $space-1 $space-3;background: transparent;- border: 1px solid $border-subtle;+ border: 1px solid var(--border);border-radius: $radius-full;font-size: $font-size-sm;color: $text-secondary;@@ -204,8 +375,8 @@transition: all $transition-fast;&:hover {- background: $bg-hover;- border-color: $border-default;+ background: var(--surface-hover);+ border-color: var(--border-strong);color: $text-primary;}}@@ -218,12 +389,13 @@gap: $space-3;margin-bottom: $space-4;padding-bottom: $space-3;- border-bottom: 1px solid $border-subtle;+ border-bottom: 1px solid var(--border-soft);}.results-count {- font-size: $font-size-sm;- color: $text-secondary;+ font-family: var(--mono);+ font-size: 11.5px;+ color: var(--text-faint);white-space: nowrap;}@@ -234,23 +406,26 @@position: relative;label {- font-size: $font-size-sm;- color: $text-tertiary;+ font-family: var(--mono);+ font-size: 11px;+ letter-spacing: 0.04em;+ text-transform: uppercase;+ color: var(--text-faint);}select {appearance: none;padding: $space-2 $space-8 $space-2 $space-3;- background: $bg-card;- border: 1px solid $border-subtle;+ background: var(--surface);+ border: 1px solid var(--border);border-radius: $radius-md;- font-size: $font-size-sm;+ font-size: $font-size-sm + 1;color: $text-primary;cursor: pointer;&:focus {outline: none;- border-color: $accent-primary;+ border-color: var(--accent-primary);}}@@ -258,84 +433,11 @@position: absolute;right: $space-2;pointer-events: none;- color: $text-tertiary;- }-}--// Templates Grid-.templates-grid {- display: grid;- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));- gap: $space-5;-}--.template-card {- position: relative;- display: flex;- gap: $space-4;- padding: $space-5;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- border-color: $accent-primary;- box-shadow: $shadow-md;- transform: translateY(-2px);+ color: var(--text-faint);}}-.featured-badge {- position: absolute;- top: $space-3;- right: $space-3;- display: inline-flex;- align-items: center;- gap: $space-1;- padding: $space-1 $space-2;- background: $color-star;- border-radius: $radius-sm;- font-size: $font-size-xs;- font-weight: $font-weight-medium;- color: white;-- svg {- fill: currentColor;- }-}--.template-icon {- width: 64px;- height: 64px;- flex-shrink: 0;- display: flex;- align-items: center;- justify-content: center;- background: $bg-hover;- border-radius: $radius-md;- overflow: hidden;- color: $accent-primary;-- img {- width: 100%;- height: 100%;- object-fit: contain;- padding: $space-2;- }-- svg {- flex-shrink: 0;- }-}--.template-icon-placeholder {- font-size: $font-size-2xl;- font-weight: $font-weight-bold;- color: $accent-primary;-}-+// Template icon (detail modal header).template-icon-large {width: 80px;height: 80px;@@ -343,10 +445,10 @@display: flex;align-items: center;justify-content: center;- background: $bg-hover;+ background: var(--surface-2);border-radius: $radius-lg;overflow: hidden;- color: $accent-primary;+ color: var(--accent-bright);img {width: 100%;@@ -360,26 +462,10 @@}}-.template-info {- flex: 1;- min-width: 0;-- h3 {- margin: 0 0 $space-2 0;- font-size: $font-size-lg;- font-weight: $font-weight-semibold;- }-}--.template-description {- margin: 0 0 $space-3 0;- color: $text-secondary;- font-size: $font-size-sm;- line-height: $line-height-relaxed;- display: -webkit-box;- -webkit-line-clamp: 2;- -webkit-box-orient: vertical;- overflow: hidden;+.template-icon-placeholder {+ font-size: $font-size-2xl;+ font-weight: $font-weight-bold;+ color: var(--accent-bright);}.template-full-description {@@ -388,35 +474,14 @@line-height: $line-height-relaxed;}-.template-meta {- display: flex;- align-items: center;- gap: $space-2;- flex-wrap: wrap;-}-.template-version {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: $font-size-sm;font-weight: $font-weight-medium;- color: $accent-primary;+ color: var(--accent-bright);padding: $space-1 $space-2;- background: $accent-glow;- border-radius: $radius-sm;-}--.template-link-indicator {- display: inline-flex;- align-items: center;- justify-content: center;- width: 24px;- height: 24px;- background: $bg-hover;+ background: var(--accent-bg);border-radius: $radius-sm;- color: $text-tertiary;-- &:hover {- color: $accent-primary;- }}.template-categories {@@ -429,11 +494,12 @@display: inline-flex;align-items: center;gap: $space-1;- padding: $space-1 $space-2;- font-size: $font-size-xs;- color: $text-secondary;- background: $bg-hover;- border-radius: $radius-sm;+ padding: 2px 7px;+ font-family: var(--mono);+ font-size: 10.5px;+ color: var(--text-dim);+ background: var(--surface-2);+ border-radius: 5px;text-transform: capitalize;}@@ -447,19 +513,19 @@max-width: 100vw;max-height: none;border-radius: $radius-2xl 0 0 $radius-2xl;- border-left: 1px solid $border-subtle;+ border-left: 1px solid var(--border-soft);overflow: hidden;display: flex;flex-direction: column;- box-shadow: $shadow-lg;+ box-shadow: var(--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;- border-bottom: 1px solid $border-subtle;- background: $bg-elevated;+ border-bottom: 1px solid var(--border-soft);+ background: var(--surface-2);}.modal-body {@@ -515,11 +581,12 @@align-items: center;gap: $space-2;margin: 0 0 $space-3 0;- font-size: $font-size-sm;+ font-family: var(--mono);+ font-size: 11px;font-weight: $font-weight-semibold;- color: $text-secondary;+ color: var(--text-faint);text-transform: uppercase;- letter-spacing: 0.05em;+ letter-spacing: 0.08em;svg {flex-shrink: 0;@@ -538,8 +605,8 @@transition: all $transition-fast;&:hover {- color: $accent-primary;- background: $bg-hover;+ color: var(--accent-bright);+ background: var(--surface-hover);}}}@@ -557,7 +624,7 @@align-items: center;gap: $space-2;padding: $space-2 $space-3;- background: $bg-hover;+ background: var(--surface-2);border-radius: $radius-md;.requirement-label {@@ -569,7 +636,7 @@font-size: $font-size-sm;font-weight: $font-weight-medium;color: $text-primary;- font-family: $font-mono;+ font-family: var(--mono);}}@@ -585,13 +652,13 @@flex-direction: column;gap: $space-1;padding: $space-3;- background: $bg-hover;+ background: var(--surface-2);border-radius: $radius-md;- border: 1px solid $border-subtle;+ border: 1px solid var(--border-soft);&.required {border-color: fade($accent-primary-raw, 45%);- background: fade($accent-primary-raw, 8%);+ background: var(--accent-bg-soft);}.variable-header {@@ -602,28 +669,34 @@}.variable-name {- font-family: $font-mono;+ font-family: var(--mono);font-size: $font-size-sm;font-weight: $font-weight-medium;- color: $accent-primary;+ color: var(--accent-bright);}.required-badge {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: 10px;+ letter-spacing: 0.05em;+ text-transform: uppercase;padding: 2px $space-2;- background: $accent-primary;- color: white;+ background: var(--accent-bg);+ color: var(--accent-bright);border-radius: $radius-sm;- font-weight: $font-weight-medium;+ font-weight: $font-weight-semibold;}.auto-badge {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: 10px;+ letter-spacing: 0.05em;+ text-transform: uppercase;padding: 2px $space-2;- background: $success-bg;- color: $success;+ background: var(--green-bg);+ color: var(--green);border-radius: $radius-sm;- font-weight: $font-weight-medium;+ font-weight: $font-weight-semibold;}.variable-description {@@ -632,9 +705,9 @@}.variable-default {- font-size: $font-size-xs;- color: $text-tertiary;- font-family: $font-mono;+ font-size: $font-size-sm;+ color: var(--text-faint);+ font-family: var(--mono);}// Ports@@ -649,20 +722,21 @@align-items: center;gap: $space-2;padding: $space-2 $space-3;- background: $bg-hover;+ background: var(--surface-2);border-radius: $radius-md;}.port-number {- font-family: $font-mono;+ font-family: var(--mono);font-weight: $font-weight-medium;color: $text-primary;}.port-protocol {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: 10px;padding: $space-1;- background: $bg-card;+ background: var(--surface-3);border-radius: $radius-sm;color: $text-secondary;text-transform: uppercase;@@ -676,14 +750,14 @@// Compose Preview.compose-preview {padding: $space-4;- background: $bg-elevated;+ background: var(--bg-code);border-radius: $radius-md;- border: 1px solid $border-subtle;+ border: 1px solid var(--border-soft);code {- font-family: $font-mono;+ font-family: var(--mono);font-size: $font-size-sm;- color: $text-secondary;+ color: var(--text-code);}}@@ -694,7 +768,7 @@font-size: $font-size-base;font-weight: $font-weight-semibold;padding-top: $space-4;- border-top: 1px solid $border-subtle;+ border-top: 1px solid var(--border-soft);}}@@ -706,6 +780,7 @@margin-bottom: $space-3;span {+ font-family: var(--mono);font-size: $font-size-sm;color: $text-secondary;text-transform: capitalize;@@ -714,16 +789,16 @@}.deployment-progress-track {- height: 8px;- background: $bg-elevated;- border: 1px solid $border-subtle;- border-radius: $radius-sm;+ height: 5px;+ background: var(--surface-3);+ border-radius: 3px;overflow: hidden;}.deployment-progress-fill {height: 100%;- background: $accent-primary;+ border-radius: 3px;+ background: var(--accent-primary);transition: width 180ms ease;}@@ -739,6 +814,16 @@white-space: normal;}}++ .templates-grid {+ grid-template-columns: 1fr;+ }++ // No hover on touch — keep Deploy reachable+ .tpl-deploy {+ opacity: 1;+ pointer-events: auto;+ }}.search-box {@@ -746,10 +831,6 @@max-width: none;}- .templates-grid {- grid-template-columns: 1fr;- }-.templates-results-header {grid-template-columns: 1fr;align-items: flex-start;@@ -767,18 +848,4 @@flex: 1;}}-- .template-card {- flex-direction: column;- }-- .template-icon {- width: 48px;- height: 48px;- }-- .featured-badge {- top: $space-2;- right: $space-2;- }}