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(email): restyle Email Server page onto the sk-email design system
Juan Denis7ca2b77364f8
diff --git a/frontend/src/pages/Email.jsx b/frontend/src/pages/Email.jsxindex a4b9dd38..f81e6d99 100644--- a/frontend/src/pages/Email.jsx+++ b/frontend/src/pages/Email.jsx@@ -7,16 +7,17 @@// covers the same surface area: server/service status, mail domains with// SPF/DKIM/DMARC/PTR presence pills + DNS verify/deploy, accounts, aliases,// outbound relay (smarthost), SpamAssassin, webmail, and the mail queue.-import { useState, useEffect, useCallback } from 'react';+import { useState, useEffect, useCallback, useMemo } from 'react';import {Mail, RefreshCw, Plus, Trash2, ShieldCheck, Server, Globe, Users,- Send, Filter, Inbox, ExternalLink, CheckCircle2, XCircle, HelpCircle,+ Send, Filter, Inbox, ExternalLink, CheckCircle2, XCircle, HelpCircle, Search,} from 'lucide-react';import api from '../services/api';import useTabParam from '../hooks/useTabParam';-import { PageTopbar, Pill, MetricCard, KpiBand } from '@/components/ds';+import { PageTopbar, Pill, MetricCard, KpiBand, DataTable } from '@/components/ds';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import EmptyState from '../components/EmptyState';import { useToast } from '../contexts/ToastContext';import { useConfirm } from '../hooks/useConfirm';@@ -174,16 +175,55 @@ function OverviewTab({ status, installed, onChange }) {if (!installed) {return (- <div className="sk-email__empty">- <Server size={24} aria-hidden="true" />- <p>The mail server stack is not installed on this host.</p>- <Button size="sm" onClick={install}>- <Plus size={14} /> Install mail server- </Button>+ <div className="sk-email__hero">+ <EmptyState+ icon={Server}+ title="Mail server not installed"+ description="Most panels never run a mail server, install it when you need it."+ action={(+ <Button size="sm" onClick={install}>+ <Plus size={14} /> Install mail server+ </Button>+ )}+ />+ <p className="sk-email__hero-note">+ A deliverability preflight (PTR, port 25, RBL) gates outbound sending before mail+ can leave this host.+ </p></div>);}+ const serviceRows = names.map((name) => {+ const running = components[name]?.running ?? components[name] === 'running';+ return { id: name, name, running };+ });++ const serviceColumns = [+ { key: 'component', header: 'Component', render: (r) => r.name },+ {+ key: 'state',+ header: 'State',+ render: (r) => <Pill kind={r.running ? 'green' : 'red'}>{r.running ? 'Running' : 'Stopped'}</Pill>,+ },+ {+ key: 'actions',+ header: '',+ className: 'sk-email__actions-col',+ cellClassName: 'sk-email__actions-cell',+ render: (r) => (+ <div className="sk-email__actions">+ <Button variant="ghost" size="sm" onClick={() => control(r.name, r.running ? 'restart' : 'start')}>+ {r.running ? 'Restart' : 'Start'}+ </Button>+ {r.running && (+ <Button variant="ghost" size="sm" onClick={() => control(r.name, 'stop')}>Stop</Button>+ )}+ </div>+ ),+ },+ ];+return (<section className="sk-email__section"><KpiBand>@@ -193,34 +233,13 @@ function OverviewTab({ status, installed, onChange }) {</KpiBand><h2 className="sk-email__section-title"><Server size={16} /> Services</h2>- {names.length === 0 ? (- <div className="sk-email__empty">No service components reported.</div>- ) : (- <table className="sk-email__table">- <thead>- <tr><th>Component</th><th>State</th><th aria-label="Actions" /></tr>- </thead>- <tbody>- {names.map((name) => {- const running = components[name]?.running ?? components[name] === 'running';- return (- <tr key={name}>- <td>{name}</td>- <td><Pill kind={running ? 'green' : 'red'}>{running ? 'Running' : 'Stopped'}</Pill></td>- <td className="sk-email__actions">- <Button variant="ghost" size="sm" onClick={() => control(name, running ? 'restart' : 'start')}>- {running ? 'Restart' : 'Start'}- </Button>- {running && (- <Button variant="ghost" size="sm" onClick={() => control(name, 'stop')}>Stop</Button>- )}- </td>- </tr>- );- })}- </tbody>- </table>- )}+ <DataTable+ columns={serviceColumns}+ data={serviceRows}+ keyField="id"+ sortable={false}+ emptyState={<div className="sk-email__empty">No service components reported.</div>}+ /></section>);}@@ -361,6 +380,7 @@ function AccountsTab({ domains }) {const [domainId, setDomainId] = useState(domains[0]?.id ? String(domains[0].id) : '');const [accounts, setAccounts] = useState([]);const [loading, setLoading] = useState(false);+ const [search, setSearch] = useState('');const [form, setForm] = useState({ username: '', password: '', quota_mb: 1024 });const load = useCallback(async () => {@@ -408,6 +428,35 @@ function AccountsTab({ domains }) {}};+ const filtered = useMemo(() => {+ const q = search.trim().toLowerCase();+ if (!q) return accounts;+ return accounts.filter((a) => (a.email || '').toLowerCase().includes(q));+ }, [accounts, search]);++ const accountColumns = [+ { key: 'email', header: 'Address', render: (a) => <span className="sk-email__mono">{a.email}</span> },+ { key: 'quota', header: 'Quota', render: (a) => `${a.quota_used_mb ?? 0} / ${a.quota_mb ?? 0} MB` },+ {+ key: 'state',+ header: 'State',+ render: (a) => <Pill kind={a.is_active ? 'green' : 'gray'}>{a.is_active ? 'Active' : 'Disabled'}</Pill>,+ },+ {+ key: 'actions',+ header: '',+ className: 'sk-email__actions-col',+ cellClassName: 'sk-email__actions-cell',+ render: (a) => (+ <div className="sk-email__actions">+ <Button variant="ghost" size="sm" onClick={() => remove(a)}>+ <Trash2 size={14} /> Delete+ </Button>+ </div>+ ),+ },+ ];+if (domains.length === 0) {return (<div className="sk-email__empty">@@ -426,6 +475,16 @@ function AccountsTab({ domains }) {{domains.map((d) => <option key={d.id} value={String(d.id)}>{d.name}</option>)}</select></label>+ <label className="search-box">+ <Search size={16} />+ <Input+ type="text"+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ placeholder="Search accounts by address..."+ aria-label="Search accounts"+ />+ </label></div><form className="sk-email__add" onSubmit={create}>@@ -452,31 +511,18 @@ function AccountsTab({ domains }) {<Button type="submit" size="sm"><Plus size={14} /> Create</Button></form>- {loading ? (- <div className="sk-email__empty">Loading…</div>- ) : accounts.length === 0 ? (- <div className="sk-email__empty">No accounts in this domain.</div>- ) : (- <table className="sk-email__table">- <thead>- <tr><th>Address</th><th>Quota</th><th>State</th><th aria-label="Actions" /></tr>- </thead>- <tbody>- {accounts.map((account) => (- <tr key={account.id}>- <td>{account.email}</td>- <td>{account.quota_used_mb ?? 0} / {account.quota_mb ?? 0} MB</td>- <td><Pill kind={account.is_active ? 'green' : 'gray'}>{account.is_active ? 'Active' : 'Disabled'}</Pill></td>- <td className="sk-email__actions">- <Button variant="ghost" size="sm" onClick={() => remove(account)}>- <Trash2 size={14} /> Delete- </Button>- </td>- </tr>- ))}- </tbody>- </table>- )}+ <DataTable+ columns={accountColumns}+ data={filtered}+ keyField="id"+ sortable={false}+ loading={loading}+ emptyState={(+ <div className="sk-email__empty">+ {accounts.length === 0 ? 'No accounts in this domain.' : 'No accounts match this search.'}+ </div>+ )}+ /></section>);}@@ -673,6 +719,7 @@ function QueueTab() {const toast = useToast();const [queue, setQueue] = useState([]);const [loading, setLoading] = useState(true);+ const [search, setSearch] = useState('');const load = useCallback(async () => {setLoading(true);@@ -707,42 +754,67 @@ function QueueTab() {}};+ const filtered = queue.filter((item) => {+ const q = search.trim().toLowerCase();+ if (!q) return true;+ const id = String(item.id || item.queue_id || '').toLowerCase();+ const sender = String(item.sender || '').toLowerCase();+ const recipient = String(item.recipient || '').toLowerCase();+ return id.includes(q) || sender.includes(q) || recipient.includes(q);+ });++ const queueColumns = [+ { key: 'id', header: 'ID', render: (item) => <span className="sk-email__mono">{item.id || item.queue_id}</span> },+ { key: 'sender', header: 'Sender', render: (item) => item.sender || '-' },+ { key: 'recipient', header: 'Recipient', render: (item) => item.recipient || '-' },+ { key: 'size', header: 'Size', render: (item) => item.size || '-' },+ {+ key: 'actions',+ header: '',+ className: 'sk-email__actions-col',+ cellClassName: 'sk-email__actions-cell',+ render: (item) => (+ <div className="sk-email__actions">+ <Button variant="ghost" size="sm" onClick={() => remove(item.id || item.queue_id)}>+ <Trash2 size={14} /> Delete+ </Button>+ </div>+ ),+ },+ ];+return (<section className="sk-email__section">- <div className="sk-email__actions">- <Button variant="outline" size="sm" onClick={load}><RefreshCw size={14} /> Refresh</Button>- <Button variant="outline" size="sm" onClick={flush}>Flush queue</Button>+ <div className="sk-email__filters">+ <label className="search-box">+ <Search size={16} />+ <Input+ type="text"+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ placeholder="Search queue by sender, recipient, or ID..."+ aria-label="Search mail queue"+ />+ </label>+ <div className="sk-email__actions">+ <Button variant="outline" size="sm" onClick={load}><RefreshCw size={14} /> Refresh</Button>+ <Button variant="outline" size="sm" onClick={flush}>Flush queue</Button>+ </div></div>- {loading ? (- <div className="sk-email__empty">Loading…</div>- ) : queue.length === 0 ? (- <div className="sk-email__empty">- <Inbox size={24} aria-hidden="true" />- <p>The mail queue is empty.</p>- </div>- ) : (- <table className="sk-email__table">- <thead>- <tr><th>ID</th><th>Sender</th><th>Recipient</th><th>Size</th><th aria-label="Actions" /></tr>- </thead>- <tbody>- {queue.map((item) => (- <tr key={item.id || item.queue_id}>- <td className="sk-email__mono">{item.id || item.queue_id}</td>- <td>{item.sender || '—'}</td>- <td>{item.recipient || '—'}</td>- <td>{item.size || '—'}</td>- <td className="sk-email__actions">- <Button variant="ghost" size="sm" onClick={() => remove(item.id || item.queue_id)}>- <Trash2 size={14} /> Delete- </Button>- </td>- </tr>- ))}- </tbody>- </table>- )}+ <DataTable+ columns={queueColumns}+ data={filtered}+ keyField={(item) => item.id || item.queue_id}+ sortable={false}+ loading={loading}+ emptyState={(+ <div className="sk-email__empty">+ <Inbox size={24} aria-hidden="true" />+ <p>{queue.length === 0 ? 'The mail queue is empty.' : 'No messages match this search.'}</p>+ </div>+ )}+ /></section>);}diff --git a/frontend/src/styles/pages/_email.scss b/frontend/src/styles/pages/_email.scssindex f0fb1aea..6d8e24a4 100644--- a/frontend/src/styles/pages/_email.scss+++ b/frontend/src/styles/pages/_email.scss@@ -1,299 +1,184 @@// ============================================// EMAIL SERVER PAGE (redesign — infra console look, REDESIGN_MAP #18):-// status Pills on per-service cards, MetricCard KPI strip (Domains tab),-// dense .sk-dtable lists (domains / accounts / aliases / forwarding / queue),-// mono-uppercase eyebrow section headers, token surfaces, --bg-code logs.+// status Pills on the Services list, MetricCard KPI strip (Overview),+// dense .sk-dtable lists (services / accounts / queue), mono-uppercase+// eyebrow section headers, token surfaces. Domains stay as a designed+// card list. Class namespace = `sk-email` (the rebuilt Email.jsx emits it).+//// Mail-volume chart, reputation/RBL ring, structured activity feed,// per-mailbox storage gauges and per-message retry are intentionally// absent — no backend yet (REDESIGN_MAP §5).// ============================================-.email-page {+.sk-email {+ padding: $space-6;- // Page header (global base in layout/_main-content) — mono meta line- .page-header .page-description {- font-family: var(--mono);- font-size: 11.5px;- color: var(--text-faint);- }-- .page-loading {+ // ── Sections stack with breathing room ──────────────────+ &__section {display: flex;- justify-content: center;- align-items: center;- min-height: 400px;- }-- // ── In-page tab strip (shadcn Tabs → .tabs/.tab) ────────- // Demo `.bk-tab` accent-wash pills. Tab ids/keys + ?tab= deep-links- // are untouched (JSX keeps the same VALID_TABS values).- .tabs {- gap: 4px;- padding-bottom: $space-2;- margin-bottom: $space-5;- border-bottom: 1px solid var(--border-soft);- }-- .tab {- padding: 7px 14px;- border-bottom: none;- margin-bottom: 0;- border-radius: 9px;- font-size: 13px;- font-weight: $font-weight-medium;- color: var(--text-faint);-- &:hover {- color: var(--text);- background: var(--surface-2);- }-- &.active,- &[data-state='active'] {- color: var(--accent-bright);- background: var(--accent-bg);- }+ flex-direction: column;+ gap: $space-5;}- // ── Section headers → mono-uppercase eyebrows ───────────- .section-header {+ // ── Mono-uppercase eyebrow section headers ──────────────+ &__section-title {display: flex;- justify-content: space-between;align-items: center;- gap: $space-3;- margin-bottom: $space-3;-- h2 {- margin: 0;- font-family: var(--mono);- font-size: 10.5px;- font-weight: $font-weight-semibold;- letter-spacing: 0.08em;- text-transform: uppercase;- color: var(--text-faint);- }-- .section-actions {- display: flex;- gap: $space-2;- }- }-- // Eyebrow field labels (forms + selectors); checkbox rows keep sentence case- .form-group:not(.checkbox-field) > label:not(.email-check) {+ gap: $space-2;+ margin: 0;font-family: var(--mono);- font-size: 10px;+ font-size: 10.5px;font-weight: $font-weight-semibold;letter-spacing: 0.08em;text-transform: uppercase;color: var(--text-faint);- }- .domain-selector {- max-width: 340px;- margin-bottom: $space-4;+ svg { color: var(--text-dim); }}- // ── Not-installed install flow (method-card look) ───────- .not-installed {+ // ── Empty / loading placeholders (shared look) ──────────+ &__empty {display: flex;flex-direction: column;align-items: center;- max-width: 520px;- margin: $space-8 auto 0;- padding: 48px 40px;+ justify-content: center;+ gap: $space-2;+ padding: $space-6 $space-5;background: var(--surface);border: 1px solid var(--border-soft);border-radius: var(--radius-lg);text-align: center;+ color: var(--text-dim);+ font-size: $font-size-sm;- &__icon {- width: 46px;- height: 46px;- border-radius: 12px;- display: grid;- place-items: center;- background: var(--accent-bg);- color: var(--accent-bright);- margin-bottom: $space-4;- }-- h2 {- margin: 0 0 $space-2;- font-size: 17px;- font-weight: $font-weight-semibold;- letter-spacing: -0.01em;- }-- p {- margin: 0 0 $space-6;- font-size: 13px;- line-height: 1.55;- color: var(--text-dim);- }-- .install-form {- display: flex;- flex-direction: column;- gap: $space-4;- align-items: center;- width: 100%;- max-width: 380px;+ svg { color: var(--text-faint); }- .form-group {- margin-bottom: 0;- text-align: left;- }- }+ p { margin: 0; }}- // ── KPI strip (Domains tab — real counts only) ──────────- .email-kpis {- display: grid;- grid-template-columns: repeat(4, 1fr);- gap: $space-4;- margin-bottom: $space-5;-- @media (max-width: $breakpoint-lg) { grid-template-columns: repeat(2, 1fr); }- @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }- }+ // ── Not-installed hero (EmptyState + preflight note) ─────+ &__hero {+ max-width: 560px;+ margin: $space-6 auto 0;- // ── Card-wrapped dense tables (.sk-dtable spec) ─────────- .email-table-card {- background: var(--surface);- border: 1px solid var(--border-soft);- border-radius: var(--radius);- overflow-x: auto;+ .empty-state {+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius-lg);+ padding: $space-8 $space-6;+ }}- // Tinted icon tile for name cells (domains / mailboxes / providers)- .email-fav {- width: 30px;- height: 30px;- border-radius: 8px;- display: grid;- place-items: center;- flex-shrink: 0;+ &__hero-note {+ margin: $space-4 0 0;+ padding: $space-3 $space-4;background: var(--accent-bg);- color: var(--accent-bright);-- &--cyan { background: var(--cyan-bg); color: var(--cyan); }- &--violet { background: var(--violet-bg); color: var(--violet); }- }-- .email-addr {- font-family: var(--mono);- font-size: 12.5px;- color: var(--text);- }-- .email-arrow {+ border: 1px solid var(--border-soft);+ border-radius: var(--radius-md);font-family: var(--mono);- font-size: 12px;- color: var(--text-ghost);+ font-size: 11.5px;+ line-height: 1.55;+ color: var(--text-dim);+ text-align: center;}- .email-row-actions {+ // ── Action clusters (row actions, form buttons, toolbars) ─+ &__actions {display: flex;- justify-content: flex-end;- gap: 6px;+ align-items: center;+ gap: $space-2;flex-wrap: wrap;}- // ── Status tab: per-service cards ───────────────────────- .status-grid {- display: grid;- grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));- gap: $space-4;- }-- .email-service-card {- background: var(--surface);- border: 1px solid var(--border-soft);- border-radius: var(--radius);- padding: 15px 16px;- transition: border-color $transition-fast;+ // Right-align the DataTable actions column+ &__actions-col { text-align: right; }- &:hover { border-color: var(--border-strong); }- }+ &__actions-cell {+ text-align: right;- .email-service-ico {- width: 30px;- height: 30px;- border-radius: 8px;- display: grid;- place-items: center;- flex-shrink: 0;- background: var(--surface-2);- color: var(--text-dim);+ .sk-email__actions { justify-content: flex-end; }}- .email-service-header {+ // ── Filters / toolbar row (domain select + search) ──────+ &__filters {display: flex;align-items: center;- gap: 10px;-- .email-service-id {- flex: 1;- min-width: 0;- }+ gap: $space-3;+ flex-wrap: wrap;- h3 {- margin: 0;- font-size: 13.5px;+ > label {+ display: flex;+ align-items: center;+ gap: $space-2;+ font-family: var(--mono);+ font-size: 10px;font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}- .version {- display: block;- margin-top: 2px;- font-family: var(--mono);- font-size: 10.5px;- color: var(--text-faint);+ select {+ padding: 6px 10px;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: $radius-md;+ color: var(--text);+ font-family: $font-mono;+ font-size: $font-size-sm;+ cursor: pointer;++ &:focus {+ outline: none;+ border-color: var(--accent);+ }}- .sk-pill { flex-shrink: 0; }+ // The global .search-box keeps its own chrome; just let it grow.+ .search-box {+ flex: 1;+ min-width: 220px;+ max-width: 360px;+ }}- .email-service-actions {+ // ── Inline create/add forms (domain + account) ──────────+ &__add,+ &__form {display: flex;- gap: $space-2;- margin-top: 14px;- padding-top: 13px;- border-top: 1px solid var(--border-soft);- }-- // ── Inline create/edit forms ────────────────────────────- .email-form {+ flex-wrap: wrap;+ align-items: flex-end;+ gap: $space-3;+ padding: $space-4 $space-5;background: var(--surface);border: 1px solid var(--border-soft);- border-radius: var(--radius);- padding: $space-5;- margin-bottom: $space-4;-- .form-grid {- display: grid;- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));- gap: $space-4;- margin-bottom: $space-4;- align-items: end;-- .form-group { margin-bottom: 0; }- }+ border-radius: var(--radius-lg);- .form-actions {+ label {display: flex;- gap: $space-2;- justify-content: flex-end;+ flex-direction: column;+ gap: $space-1;+ font-family: var(--mono);+ font-size: 10px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}}- // Checkbox row label (forwarding keep-copy)- .email-check {- display: flex;+ &__form { flex-direction: column; align-items: stretch; }++ // Checkbox rows keep sentence case (not eyebrow uppercase)+ &__check {+ flex-direction: row;align-items: center;gap: $space-2;- font-size: 13px;+ font-family: inherit;+ font-size: $font-size-sm;+ font-weight: $font-weight-normal;+ letter-spacing: normal;+ text-transform: none;color: var(--text-dim);cursor: pointer;@@ -304,256 +189,66 @@}}- // ── Queue error sub-line + queue id emphasis ────────────- .email-qid { color: var(--text); }-- .email-qerr {- margin-top: 3px;- font-family: var(--mono);- font-size: 11px;- color: var(--red);+ // ── Domains card list (kept as designed cards) ──────────+ &__domains {+ list-style: none;+ margin: 0;+ padding: 0;+ display: grid;+ grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));+ gap: $space-4;}- .email-queue { margin-bottom: $space-6; }-- // ── DNS providers ───────────────────────────────────────- .provider-list {+ &__domain {display: flex;flex-direction: column;gap: $space-3;- }-- .provider-card {+ padding: 15px 16px;background: var(--surface);border: 1px solid var(--border-soft);- border-radius: var(--radius);- padding: 15px 16px;+ border-radius: var(--radius-lg);transition: border-color $transition-fast;&:hover { border-color: var(--border-strong); }-- .provider-header {- display: flex;- align-items: center;- gap: 10px;-- h3 {- margin: 0;- font-size: 13.5px;- font-weight: $font-weight-semibold;- }- }-- .provider-type {- padding: 2px 7px;- border: 1px solid var(--border-strong);- border-radius: 5px;- background: var(--surface-2);- color: var(--text-dim);- font-family: var(--mono);- font-size: 10.5px;- font-weight: $font-weight-semibold;- letter-spacing: 0.06em;- text-transform: uppercase;- }-- .provider-meta {- margin-top: 12px;-- .meta-row {- display: flex;- justify-content: space-between;- align-items: center;- gap: $space-4;-- .k {- font-family: var(--mono);- font-size: 12px;- color: var(--text-faint);- }-- .v {- font-family: var(--mono);- font-size: 12.5px;- color: var(--text);- overflow-wrap: anywhere;- }- }- }-- .provider-actions {- display: flex;- gap: $space-2;- margin-top: 13px;- padding-top: 13px;- border-top: 1px solid var(--border-soft);- }-- .zones-list {- margin-top: $space-3;- padding: $space-2 $space-3;- background: var(--surface-2);- border: 1px solid var(--border-soft);- border-radius: var(--radius-sm);-- .zone-item {- display: flex;- justify-content: space-between;- gap: $space-4;- padding: 7px 0;- font-family: var(--mono);- font-size: 11.5px;-- span:first-child { color: var(--text-dim); }- span:last-child { color: var(--text-faint); }-- &:not(:last-child) { border-bottom: 1px solid var(--border-soft); }- }- }}- // ── SpamAssassin config ─────────────────────────────────- .spam-config {- background: var(--surface);- border: 1px solid var(--border-soft);- border-radius: var(--radius);- padding: $space-5;-- .form-grid {- display: grid;- grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));- gap: $space-4;- align-items: center;-- .form-group { margin-bottom: 0; }- }-- .checkbox-field {- display: flex;- align-items: center;- gap: $space-2;-- input[type='checkbox'] {- width: 15px;- height: 15px;- accent-color: var(--accent);- }-- label {- margin: 0;- font-size: 13px;- color: var(--text-dim);- }- }+ &__domain-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: $space-3;}- // ── Webmail ─────────────────────────────────────────────- .webmail-card {- background: var(--surface);- border: 1px solid var(--border-soft);- border-radius: var(--radius);- padding: $space-5;-- .webmail-status-row {- display: flex;- justify-content: space-between;- align-items: center;- gap: $space-3;- margin-bottom: $space-4;- }-- .webmail-port {- font-family: var(--mono);- font-size: 11.5px;- color: var(--text-faint);- }-- .webmail-actions {- display: flex;- gap: $space-2;- flex-wrap: wrap;- }-- .proxy-form {- display: flex;- align-items: flex-end;- gap: $space-3;- flex-wrap: wrap;- margin-top: $space-4;- padding-top: $space-4;- border-top: 1px solid var(--border-soft);-- .form-group {- flex: 1;- min-width: 240px;- max-width: 360px;- margin-bottom: 0;- }- }+ &__domain-name {+ font-family: var(--mono);+ font-size: 13.5px;+ font-weight: $font-weight-semibold;+ color: var(--text);+ overflow-wrap: anywhere;}- // ── Mail logs ───────────────────────────────────────────- .email-logs {- .log-controls {- display: flex;- align-items: center;- gap: $space-2;-- select {- padding: 5px 10px;- background: var(--surface-2);- border: 1px solid var(--border);- border-radius: $radius-md;- color: var(--text);- font-size: $font-size-sm;- cursor: pointer;-- &:focus {- outline: none;- border-color: var(--accent);- }- }- }-- .log-output {- margin: 0;- padding: $space-4;- background: var(--bg-code);- border: 1px solid var(--border-soft);- border-radius: var(--radius);- font-family: var(--mono);- font-size: 12px;- line-height: 1.6;- color: var(--text-dim);- max-height: 600px;- overflow: auto;- white-space: pre-wrap;- word-break: break-all;- }+ &__dns {+ display: flex;+ flex-wrap: wrap;+ gap: 6px;}- // ── Change-password modal (overlay is global _modals.scss;- // .modal-content has no global styles — surface card here)- .modal-content {- width: 100%;- max-width: 420px;- padding: $space-5 $space-6 $space-6;- background: var(--surface);- border: 1px solid var(--border);- border-radius: var(--radius-lg);- box-shadow: var(--shadow-lg);-- h3 {- margin: 0 0 $space-4;- font-size: 15px;- font-weight: $font-weight-semibold;- }+ &__domain-meta {+ display: flex;+ flex-wrap: wrap;+ gap: $space-3;+ padding-top: $space-3;+ border-top: 1px solid var(--border-soft);+ font-family: var(--mono);+ font-size: 11.5px;+ color: var(--text-faint);+ }- .form-actions {- display: flex;- justify-content: flex-end;- gap: $space-2;- margin-top: $space-4;- }+ // ── Mono cell emphasis (queue ids, addresses) ───────────+ &__mono {+ font-family: var(--mono);+ font-size: 12.5px;+ color: var(--text);+ overflow-wrap: anywhere;}}