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
// ============================================
// MONITORS — list, detail, incidents, uptime strip
// ============================================
// Owns the shared `mon-*` panel, section, and hint vocabulary for the whole
// Monitoring group, including its overview and detail pages.
// ── panels ──────────────────────────────────────────────────
.monitoring-page,
.monitors-page,
.incidents-page,
.monitor-detail {
// ── shared bits ─────────────────────────────────────────
// Mono-uppercase eyebrow section headers
.mon-section-head h3,
.monitoring-panel__header h3 {
margin: 0;
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: var(--text-faint);
}
// Neutral icon tile (rule editors, channel tiles, host cards)
.mon-ico {
width: 30px;
height: 30px; // geometry: icon tile
border-radius: $radius-card;
display: grid;
place-items: center;
flex-shrink: 0;
background: var(--surface-3);
color: var(--text-dim);
&--sm {
width: 26px;
height: 26px; // geometry: icon tile
border-radius: $radius-control;
}
}
// Every section stacks the same way, so a tab change never shifts the
// rhythm of the page.
.mon-overview,
.monitoring-stack,
.monitoring-delivery-layout {
display: grid;
gap: $space-5;
}
// Two equal panels side by side (charts row, alerts + speed test row) —
// the mock's `dash-grid` with two `span-2` cards.
.mon-grid2 {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: $space-5;
@media (max-width: 1000px) { grid-template-columns: 1fr; }
}
// ── section heads + panels ──────────────────────────────
.mon-section-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: $space-3;
margin-bottom: -$space-2; // the grid gap already spaces it off the grid
&__meta {
font-size: $text-xs;
color: var(--text-faint);
}
}
// Caption under a panel heading — says what the panel is showing and,
// crucially, WHICH host it is showing it for. One line: a wrapped caption
// pushes the chart down and makes the two panels in a row disagree on where
// their plots start.
.mon-panel-sub {
display: block;
max-width: 100%;
font-size: $text-xs;
color: var(--text-faint);
@include truncate();
}
.monitoring-panel__header > div {
// A heading with a caption stacks and takes the free space; the default
// row layout is for headers whose second child is a button cluster.
&:has(> h3) {
flex: 1 1 auto;
min-width: 0;
flex-direction: column;
align-items: flex-start;
gap: $space-1;
}
}
// Controls on the right of a panel header never wrap or shrink — letting
// them do either steals width from the caption and folds a 4-button switch
// onto two lines.
.mon-period-switch,
.mon-legend {
flex: none;
flex-wrap: nowrap;
}
.mon-legend {
display: flex;
gap: $space-3;
font-size: $text-xs;
color: var(--text-faint);
span { display: inline-flex; align-items: center; gap: 5px; }
i {
width: 8px;
height: 8px;
border-radius: $radius-badge;
&.is-memory { background: var(--cyan); }
&.is-disk { background: var(--green); }
}
}
.monitoring-panel {
min-width: 0;
padding: $space-5;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface);
&--warning {
border-color: rgba(251, 111, 111, 0.28);
}
}
.monitoring-panel__header {
display: flex;
justify-content: space-between;
align-items: center;
gap: $space-3;
margin-bottom: $space-4;
> div {
display: flex;
flex-wrap: wrap;
gap: $space-2;
}
@media (max-width: 640px) {
align-items: flex-start;
flex-direction: column;
}
}
// The KPI band is the shared DS tile (MetricCard + KpiBand) — the
// monitoring-only copy that lived here was the same geometry twice, so the
// sparkline slot moved into the primitive instead.
// ── Host health strip: one card per machine, the panel host first ──
// This is the ex-Fleet-Monitor heatmap, except each card is a button that
// re-scopes the whole page rather than a cell you can only read.
.mon-fleet-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: $space-4;
}
.mon-host {
display: block;
width: 100%;
min-width: 0;
padding: $space-4 $space-4 $space-3;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface);
text-align: left;
cursor: pointer;
transition: border-color $transition-fast, background $transition-fast;
&:hover { border-color: var(--border-strong); }
&.is-active {
border-color: var(--accent-dim);
background: var(--accent-bg);
}
&__head {
display: flex;
align-items: center;
gap: $space-2;
margin-bottom: $space-3;
.sk-pill { margin-left: auto; flex-shrink: 0; }
}
&__ico {
width: 28px;
height: 28px; // geometry: icon tile
border-radius: $radius-card;
display: grid;
place-items: center;
flex-shrink: 0;
background: var(--surface-3);
color: var(--text-dim);
}
&__name {
flex: 1;
min-width: 0;
font-size: $text-sm;
font-weight: $font-weight-semibold;
color: var(--text);
@include truncate();
small {
display: block;
font-size: $text-xs;
font-weight: $font-weight-normal;
color: var(--text-faint);
@include truncate();
}
}
&__spark {
display: block;
height: 38px; // geometry: sparkline chart box
svg { width: 100%; height: 100%; }
&--empty {
border-bottom: 1px dashed var(--border-soft);
height: 37px; // geometry: empty sparkline baseline (chart box)
}
}
// mono footer stats (mock `.host-mini`)
&__mini {
display: flex;
justify-content: space-between;
gap: $space-3;
margin-top: $space-3;
font-size: $text-xs;
color: var(--text-faint);
span { white-space: nowrap; }
b { color: var(--text-dim); font-weight: $font-weight-semibold; }
}
}
// ── alert rows (active alerts + history; prototype .alert-row)
.mon-alert-list {
display: flex;
flex-direction: column;
}
.mon-alert-row {
display: flex;
align-items: center;
gap: $space-4;
padding: $space-3 0;
border-top: 1px solid var(--border-soft);
&:first-child {
border-top: none;
padding-top: 0;
}
&:last-child { padding-bottom: 0; }
&__body {
flex: 1;
min-width: 0;
}
&__title {
font-size: $text-sm;
font-weight: $font-weight-semibold;
color: var(--text);
}
&__sub {
margin-top: $space-hair;
font-size: $text-xs;
color: var(--text-faint);
}
&__end {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: $space-1;
flex-shrink: 0;
}
&__time {
font-size: $text-xs;
color: var(--text-faint);
white-space: nowrap;
}
@media (max-width: 640px) {
align-items: flex-start;
&__end { align-items: flex-start; }
}
}
// Severity dot (prototype .sev)
.mon-sev {
width: 9px;
height: 9px;
border-radius: $radius-badge;
flex-shrink: 0;
background: var(--text-ghost);
&--critical { background: var(--red); }
&--warning { background: var(--amber); }
&--info { background: var(--cyan); }
}
// State chip (prototype .alert-state: st-firing / st-resolved) —
// shape from the shared %sk-state primitive (_design-system.scss)
.mon-state {
@extend %sk-state;
&--red { color: var(--red); background: var(--red-bg); }
&--amber { color: var(--amber); background: var(--amber-bg); }
&--cyan { color: var(--cyan); background: var(--cyan-bg); }
&--green { color: var(--green); background: var(--green-bg); }
&--gray { color: var(--text-faint); background: var(--surface-3); }
}
// ── alert-rule editors (thresholds tab) ─────────────────
.metric-rule-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: $space-3;
@media (max-width: 1024px) {
grid-template-columns: 1fr;
}
}
.metric-rule-editor {
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 150px auto;
gap: $space-4;
align-items: center;
padding: $space-4 $space-4;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
&.is-alerting {
border-color: rgba(245, 185, 69, 0.35);
}
&__main {
display: flex;
gap: $space-3;
align-items: center;
min-width: 0;
h4 {
margin: 0 0 $space-1;
font-size: $text-sm;
font-weight: $font-weight-semibold;
}
span {
font-size: $text-xs;
color: var(--text-faint);
}
}
&__threshold {
display: grid;
gap: $space-2;
}
> .sk-pill { justify-self: end; }
@media (max-width: 820px) {
grid-template-columns: 1fr;
align-items: start;
> .sk-pill { justify-self: start; }
}
}
// Eyebrow-style field labels inside the editor + delivery forms
.metric-rule-editor__threshold label,
.monitoring-delivery-layout .form-group label {
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: var(--text-faint);
}
// ── delivery tab ────────────────────────────────────────
.monitoring-delivery-layout {
grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
@media (max-width: 1000px) {
grid-template-columns: 1fr;
}
}
.monitoring-switch-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: $space-4;
padding: $space-4;
margin-bottom: $space-4;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
strong {
display: block;
font-size: $text-sm;
font-weight: $font-weight-semibold;
}
span {
display: block;
margin-top: $space-1;
font-size: $text-xs;
color: var(--text-faint);
}
}
.notification-channel-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: $space-3;
}
.notification-channel-tile {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: $space-3;
align-items: center;
padding: $space-3 $space-4;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
&.is-ready {
border-color: rgba(61, 220, 151, 0.3);
.mon-ico {
@include status-variant(var(--green), var(--green-bg));
}
}
// A channel with no credentials yet is a to-do, not a failure: dim the
// brand mark rather than colouring it like a live one.
&.is-unset .mon-ico { opacity: 0.5; }
> div { min-width: 0; }
strong {
display: block;
font-size: $text-sm;
font-weight: $font-weight-semibold;
@include truncate();
}
span {
display: block;
margin-top: $space-hair;
font-size: $text-xs;
color: var(--text-faint);
// "Configured but off" is longer than the tile is wide at three
// across; clip it rather than let it fold and grow the row.
@include truncate();
}
}
.form-help {
display: block;
margin-top: $space-1;
font-size: $text-xs;
color: var(--text-faint);
}
// Speed test — three readings in a row, sized to sit beside the alerts
// panel rather than take a band of its own.
.mon-speed-row {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: $space-3;
}
.mon-speed {
min-width: 0;
padding: $space-3 $space-4;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
// Only the glyph is tinted here — the tile keeps the quiet surface, so
// three of them side by side don't read as three status badges.
&__ico {
display: block;
margin-bottom: $space-tight;
background: none;
&.is-cpu { color: var(--accent-bright); }
&.is-memory { color: var(--cyan); }
&.is-extra { color: var(--violet); }
}
&__val {
display: block;
font-size: $text-lg;
font-weight: $font-weight-semibold;
letter-spacing: -0.02em;
line-height: 1;
color: var(--text);
small {
margin-left: $space-1;
font-size: $text-xs;
color: var(--text-faint);
}
}
&__label {
display: block;
margin-top: $space-tight;
font-size: $text-xs;
color: var(--text-dim);
}
}
.mon-speed-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: $space-3;
margin-top: $space-3;
span {
font-size: $text-xs;
color: var(--text-faint);
}
}
// ── fleet-scoped panels (Host health, Capacity, Fleet alerts) ──
// Folded in from the old standalone Fleet Monitor page; they reuse the
// panel chrome above so the sections read as one page rather than two
// stapled together.
// Small mono caption used for every field label in the fleet panels.
.mon-field-label {
display: block;
margin-bottom: $space-1;
font-size: $text-xs;
font-weight: $font-weight-semibold;
color: var(--text-faint);
}
.mon-field-hint,
.mon-panel-hint {
display: flex;
align-items: center;
gap: $space-2;
margin: 0;
font-size: $text-xs;
color: var(--text-faint);
}
.mon-panel-hint svg { flex-shrink: 0; color: var(--green); }
// Wide tables keep their own scroller so the panel never widens the page.
.mon-table-scroll { overflow-x: auto; }
.mon-row-actions {
display: flex;
justify-content: flex-end;
gap: $space-1;
white-space: nowrap;
}
// Add-a-rule form on the Rules tab: fields in a row, save at the end.
.mon-threshold-form {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: $space-3;
margin-bottom: $space-4;
padding: $space-4;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
.form-group { margin: 0; min-width: 150px; flex: 1 1 150px; }
}
// Comparison / forecast control rows: a servers picker that grows, plus
// fixed-width selects.
.mon-compare-controls {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: $space-4;
margin-bottom: $space-4;
.form-group { margin: 0; min-width: 160px; }
&__servers { flex: 1 1 320px; min-width: 0; }
}
.mon-server-picker {
display: flex;
flex-wrap: wrap;
gap: $space-2;
max-height: 96px;
overflow-y: auto;
padding: $space-2;
border: 1px solid var(--border-soft);
border-radius: var(--radius);
background: var(--surface-2);
}
.mon-period-switch { display: flex; gap: 4px; align-items: center; }
.mon-forecast {
display: flex;
flex-direction: column;
gap: $space-4;
}
.mon-forecast__stats,
.mon-forecast__predictions {
display: grid;
gap: $space-3;
}
.mon-forecast__stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mon-forecast__predictions { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mon-forecast strong {
display: block;
font-size: $text-lg;
color: var(--text);
em { font-style: normal; font-size: $text-xs; color: var(--text-faint); }
}
}
.monitors-page,
.incidents-page,
.monitor-detail {
.mon-stack { display: flex; flex-direction: column; gap: 16px; }
.mon-grid-2 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: $space-4;
}
.mon-panel {
background: var(--bg-card, var(--surface-1));
border: 1px solid var(--border-soft);
border-radius: $radius-overlay;
padding: $space-5;
}
.mon-panel__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: $space-3;
margin-bottom: $space-4;
h3 {
margin: 0;
font-size: $text-xs;
color: var(--text-faint);
}
}
.mon-panel__actions { display: flex; align-items: center; gap: 8px; }
.mon-panel__footer {
margin-top: $space-4;
padding-top: $space-3;
border-top: 1px solid var(--border-soft);
}
.mon-danger { color: var(--red); }
// Definition rows: key on the left, value right-aligned in mono.
.mon-inforows {
margin: 0;
display: flex;
flex-direction: column;
> div {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-4;
padding: $space-2 0;
border-bottom: 1px solid var(--border-soft);
&:last-child { border-bottom: none; }
}
dt {
font-size: $text-sm;
color: var(--text-faint);
}
dd {
margin: 0;
font-size: $text-sm;
color: var(--text-dim);
text-align: right;
word-break: break-word;
}
}
// Check result code chip (200 / down / ok).
.mon-code {
display: inline-flex;
align-items: center;
padding: $space-hair $space-2;
border-radius: $radius-control;
font-family: var(--mono);
font-size: $text-xs;
font-weight: $font-weight-semibold;
&--ok { background: var(--green-bg, rgba(63, 185, 80, 0.14)); color: var(--green); }
&--bad { background: var(--red-bg, rgba(248, 81, 73, 0.14)); color: var(--red); }
}
}
.monitor-detail {
.monitor-detail__crumb {
display: flex;
align-items: center;
gap: $space-2;
margin-bottom: $space-4;
font-size: $text-sm;
color: var(--text-faint);
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
}
.monitor-detail__sections { margin: 18px 0 16px; }
.mon-kpi-sub {
margin-top: $space-1;
font-size: $text-xs;
color: var(--text-faint);
}
.mon-statstrip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
gap: $space-3;
margin-top: $space-4;
padding-top: $space-4;
border-top: 1px solid var(--border-soft);
}
.mon-statstrip__label {
display: block;
font-size: $text-xs;
color: var(--text-faint);
}
.mon-statstrip__value {
display: block;
margin-top: $space-1;
font-size: $text-base;
font-weight: $font-weight-semibold;
}
.mon-uptime-summary { display: flex; gap: 18px; text-align: right; }
.mon-uptime-axis {
display: flex;
justify-content: space-between;
margin-top: $space-2;
font-size: $text-xs;
color: var(--text-faint);
}
.mon-checkdetail {
max-width: 380px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--mono);
font-size: $text-xs;
color: var(--text-faint);
}
.sk-dtable .is-bad .mon-checkdetail { color: var(--red); }
}
// ── list ────────────────────────────────────────────────────
.monitors-page {
.mon-namecell__name { font-weight: $font-weight-semibold; }
.mon-namecell__target {
display: block;
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--mono);
font-size: $text-xs;
color: var(--text-faint);
}
.mon-type {
display: inline-flex;
padding: $space-hair $space-2;
border-radius: $radius-full;
border: 1px solid var(--border);
font-size: $text-xs;
color: var(--text-dim);
}
.mon-response {
display: flex;
align-items: center;
gap: $space-2;
}
.mon-response__ms {
font-size: $text-xs;
color: var(--text-dim);
// "128 ms" must not break across two lines in a narrow column.
white-space: nowrap;
&.is-slow { color: var(--amber); }
}
.mon-uptime,
.mon-muted {
font-size: $text-xs;
color: var(--text-dim);
}
.mon-muted { color: var(--text-faint); }
.mon-actions-col { width: 118px; }
.mon-actions-cell { text-align: right; }
.mon-actions { display: inline-flex; gap: 2px; justify-content: flex-end; }
.sk-dtable .is-disabled { opacity: 0.55; }
// Create-monitor drawer
.mon-form {
display: flex;
flex-direction: column;
gap: $space-4;
}
.mon-form__row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: $space-3;
}
.mon-form__actions {
display: flex;
justify-content: flex-end;
gap: $space-2;
padding-top: $space-tight;
border-top: 1px solid var(--border-soft);
}
.mon-switch-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-4;
padding: $space-3 0;
border-top: 1px solid var(--border-soft);
strong { display: block; font-size: $text-sm; font-weight: $font-weight-semibold; }
span { font-size: $text-xs; color: var(--text-faint); }
}
}
// ── detail ──────────────────────────────────────────────────
// ── 90-day uptime strip ─────────────────────────────────────
.uptime-bars {
display: flex;
align-items: stretch;
gap: $space-hair;
height: 52px;
width: 100%;
&__bar {
flex: 1 1 0;
min-width: 3px;
padding: 0;
border: none;
border-radius: $radius-badge;
background: var(--green);
cursor: pointer;
transition: opacity 0.12s, transform 0.12s;
&:hover { opacity: 0.75; }
&.is-selected { transform: scaleY(1.06); outline: 1px solid var(--text-dim); }
// "We weren't watching" is not the same fact as "it was fine".
&--none { background: var(--border-soft); cursor: default; }
&--partial { background: var(--amber); }
&--down { background: var(--red); }
}
}
// ── overview: monitors summary ──────────────────────────────
.monitoring-page {
.mon-monitors-summary {
display: flex;
flex-direction: column;
gap: $space-4;
margin-bottom: $space-6;
}
.mon-nomonitors { margin-bottom: 22px; }
.mon-monitor-list,
.mon-feed { display: flex; flex-direction: column; }
.mon-monitor-row,
.mon-feed-row {
display: flex;
align-items: center;
gap: $space-3;
padding: $space-3 0;
border-bottom: 1px solid var(--border-soft);
color: inherit;
text-decoration: none;
&:last-child { border-bottom: none; }
&:hover { background: var(--surface-2); }
}
.mon-monitor-row__body,
.mon-feed-row__body { flex: 1; min-width: 0; }
.mon-monitor-row__name,
.mon-feed-row__name {
display: block;
font-size: $text-sm;
font-weight: $font-weight-semibold;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mon-monitor-row__sub,
.mon-feed-row__sub {
display: block;
font-size: $text-xs;
color: var(--text-faint);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mon-monitor-row__ms,
.mon-feed-row__ms {
font-size: $text-xs;
color: var(--text-dim);
}
}
// ── incidents ───────────────────────────────────────────────
.incidents-page {
.incidents-list {
background: var(--bg-card, var(--surface-1));
border: 1px solid var(--border-soft);
border-radius: $radius-overlay;
overflow: hidden;
}
.incident-row {
display: flex;
align-items: center;
gap: $space-3;
width: 100%;
padding: $space-4 $space-5;
border: none;
border-top: 1px solid var(--border-soft);
background: transparent;
color: inherit;
text-align: left;
font: inherit;
cursor: pointer;
&:first-child { border-top: none; }
&:hover { background: var(--surface-2); }
}
.incident-row__sev {
flex-shrink: 0;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-ghost);
&--red { background: var(--red); }
&--amber { background: var(--amber); }
&--cyan { background: var(--cyan); }
&--green { background: var(--green); }
}
.incident-row__body { flex: 1; min-width: 0; }
.incident-row__title {
display: flex;
align-items: center;
gap: $space-2;
flex-wrap: wrap;
font-size: $text-sm;
font-weight: $font-weight-semibold;
}
.incident-row__sub {
display: block;
margin-top: $space-1;
font-size: $text-xs;
color: var(--text-faint);
}
.incident-row__chev { flex-shrink: 0; color: var(--text-faint); }
// Ack / Resolve share the trailing cell with the chevron, so a fleet alert
// stays actionable without earning a column that is empty on every other row.
.incident-row__acts {
display: flex;
align-items: center;
gap: $space-1;
}
}
// Incident drawer body
.incident-detail {
display: flex;
flex-direction: column;
gap: $space-4;
&__pills { display: flex; gap: 8px; flex-wrap: wrap; }
&__body { margin: 0; font-size: $text-sm; color: var(--text-dim); }
&__heading {
margin: 0;
font-size: $text-xs;
color: var(--text-faint);
}
&__link {
display: inline-flex;
align-items: center;
gap: $space-2;
font-size: $text-sm;
color: var(--accent-bright);
text-decoration: none;
&:hover { text-decoration: underline; }
}
&__post { display: flex; flex-direction: column; gap: 10px; }
&__states { display: flex; gap: 6px; flex-wrap: wrap; }
}
.incident-timeline {
list-style: none;
margin: 0;
padding: 0 0 0 $space-tight;
display: flex;
flex-direction: column;
gap: $space-4;
&__item {
display: flex;
gap: $space-3;
position: relative;
padding-left: $space-4;
border-left: 1px solid var(--border-soft);
p { margin: 5px 0 0; font-size: $text-sm; }
}
&__dot {
position: absolute;
left: -5px;
top: 4px;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--text-ghost);
&.is-red { background: var(--red); }
&.is-amber { background: var(--amber); }
&.is-cyan { background: var(--cyan); }
&.is-green { background: var(--green); }
}
&__head {
display: flex;
align-items: center;
gap: $space-2;
font-size: $text-xs;
color: var(--text-faint);
}
}
// ── status pages: attach an existing monitor ────────────────
.status-attach-list {
display: flex;
flex-direction: column;
margin-top: $space-3;
.status-attach-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: $space-3;
width: 100%;
padding: $space-3 $space-1;
border: none;
border-bottom: 1px solid var(--border-soft);
background: transparent;
color: inherit;
text-align: left;
font: inherit;
cursor: pointer;
&:last-child { border-bottom: none; }
&:hover { background: var(--surface-2); }
&__body { min-width: 0; }
strong { display: block; font-size: $text-sm; font-weight: $font-weight-semibold; }
span span,
&__body > span {
display: block;
margin-top: $space-hair;
font-size: $text-xs;
color: var(--text-faint);
}
}
}