/* Sentryward — additions to the design system for the product.
   ds-tokens.css and ds-components.css stay as delivered by the design system (prefix sw-
   and English names since the rename to Sentryward); here are only fonts, replacements
   for inline styles (the CSP allows none) and the graphs based on uPlot. */

/* The hidden attribute always applies; otherwise e.g. .sw-btn { display: inline-flex } wins. */
[hidden] { display: none !important; }
/* "3 min ago" never breaks (on the phone it stood in three lines otherwise). */
.sw-livechip { white-space: nowrap; }
/* Top bar: brand and buttons keep their size, only the freshness gives way. "Hub nicht
   erreichbar · Stand …" made the page wider than the phone (Tim, 05.11.2026). */
.sw-brand, .sw-topbar-r > .sw-btn { flex: none; }
.sw-topbar-r, #head-freshness, .sw-livechip { min-width: 0; }
#head-freshness { display: flex; }
.sw-livechip-t { overflow: hidden; text-overflow: ellipsis; }
.sw-livechip .sw-dot { width: 8px; height: 8px; border-radius: var(--radius-full); flex: none; }
/* Tile head: break long mount names instead of pushing the badge out of the tile. */
.sw-tile-top > .sw-tile-lbl { min-width: 0; }
.sw-tile-top > .sw-badge { flex: none; }
/* From the design system (round 1g, components): disabled buttons visibly grey. */
.sw-btn[disabled] { background: rgba(255,255,255,.06); color: var(--text-disabled); cursor: not-allowed; }

/* ---------- fonts (served by us, OFL 1.1, subset latin) ---------- */
@font-face {
  font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap;
  src: url("../vendor/fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../vendor/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- base ---------- */
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; }
.sw a { color: inherit; text-decoration: none; }
.sw-brand { display: inline-flex; align-items: center; gap: 10px; }
/* Word mark in capitals (Tim, 20.10.2026: SENTRYWARD, as HEARTBEAT was); by CSS, so screen
   readers keep reading the word "Sentryward". */
.sw-word { text-transform: uppercase; }
.sw-brand img { display: block; }
a.sw-tab:hover { color: var(--text); }
/* Tab bar: the ground lies on .sw-tabs-wrap, so that on the phone only the tabs fade out at an
   edge where more follows and the bar keeps its shape (Tim, 28.11.2026, as on the Honeypod
   website). Margin and corners as ds-components gives them to .sw-tabs--page. */
.sw-tabs-wrap { background: var(--nav); border-radius: var(--radius-md); overflow: hidden; margin: var(--space-4) 0 var(--space-3); }
.sw-tabs-wrap > .sw-tabs--page { margin: 0; background: none; border-radius: 0; }
/* "Aktualisieren" (Tim, 28.11.2026): the icon turns until every server has delivered */
.sw-update.is-busy .sw-ico { animation: sw-turn 1.6s linear infinite; }
@keyframes sw-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sw-update.is-busy .sw-ico { animation: none; opacity: .55; } }
.sw-w-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sw a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }

/* ---------- replacements for inline styles of the design system ---------- */
.sw-mets--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-bottom { margin-top: auto; }
.sw-live--sm { width: 6px; height: 6px; }
.sw-footnote { padding: 4px 12px 6px; }
.sw-large { font-size: 18px; font-weight: 300; }
.sw-spaced { margin-top: 4px; }
.sw-text { color: var(--text); }
.sw-chip--crit { color: var(--crit-text); }

.sw-row--al-l { grid-template-columns: 96px 220px minmax(0, 1fr) 170px; }
.sw-row--al-m { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "b n w" "b s w"; row-gap: 2px; }
.sw-row--al-m > :nth-child(1) { grid-area: b; }
.sw-row--al-m > :nth-child(2) { grid-area: n; }
.sw-row--al-m > :nth-child(3) { grid-area: s; white-space: normal; }
.sw-row--al-m > :nth-child(4) { grid-area: w; align-self: start; }
.sw-row--disk { grid-template-columns: minmax(0, 1fr) auto; }
.sw-row--ct { grid-template-columns: minmax(0, 1fr) 54px 72px 64px; padding-top: 4px; padding-bottom: 4px; }
.sw-row--head { color: var(--text-3); font-size: 11px; padding-top: 6px; padding-bottom: 6px; }
.sw-row--ev { grid-template-columns: 128px minmax(0, 1fr) auto; }
.sw-row--ev .sw-chip { font-weight: 400; justify-self: start; }

/* Bars: fill level and threshold marks as classes (no style attributes) */
.sw-bar > u.t-37-5 { left: 37.5%; } .sw-bar > u.t-50 { left: 50%; } .sw-bar > u.t-75 { left: 75%; }
.sw-bar > u.t-80 { left: 80%; } .sw-bar > u.t-85 { left: 85%; } .sw-bar > u.t-90 { left: 90%; }
.sw-bar > u.t-95 { left: 95%; } .sw-bar > u.t-98 { left: 98%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-0 { width: 0%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-1 { width: 1%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-2 { width: 2%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-3 { width: 3%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-4 { width: 4%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-5 { width: 5%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-6 { width: 6%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-7 { width: 7%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-8 { width: 8%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-9 { width: 9%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-10 { width: 10%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-11 { width: 11%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-12 { width: 12%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-13 { width: 13%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-14 { width: 14%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-15 { width: 15%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-16 { width: 16%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-17 { width: 17%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-18 { width: 18%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-19 { width: 19%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-20 { width: 20%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-21 { width: 21%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-22 { width: 22%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-23 { width: 23%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-24 { width: 24%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-25 { width: 25%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-26 { width: 26%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-27 { width: 27%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-28 { width: 28%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-29 { width: 29%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-30 { width: 30%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-31 { width: 31%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-32 { width: 32%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-33 { width: 33%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-34 { width: 34%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-35 { width: 35%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-36 { width: 36%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-37 { width: 37%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-38 { width: 38%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-39 { width: 39%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-40 { width: 40%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-41 { width: 41%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-42 { width: 42%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-43 { width: 43%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-44 { width: 44%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-45 { width: 45%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-46 { width: 46%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-47 { width: 47%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-48 { width: 48%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-49 { width: 49%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-50 { width: 50%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-51 { width: 51%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-52 { width: 52%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-53 { width: 53%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-54 { width: 54%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-55 { width: 55%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-56 { width: 56%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-57 { width: 57%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-58 { width: 58%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-59 { width: 59%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-60 { width: 60%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-61 { width: 61%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-62 { width: 62%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-63 { width: 63%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-64 { width: 64%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-65 { width: 65%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-66 { width: 66%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-67 { width: 67%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-68 { width: 68%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-69 { width: 69%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-70 { width: 70%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-71 { width: 71%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-72 { width: 72%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-73 { width: 73%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-74 { width: 74%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-75 { width: 75%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-76 { width: 76%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-77 { width: 77%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-78 { width: 78%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-79 { width: 79%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-80 { width: 80%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-81 { width: 81%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-82 { width: 82%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-83 { width: 83%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-84 { width: 84%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-85 { width: 85%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-86 { width: 86%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-87 { width: 87%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-88 { width: 88%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-89 { width: 89%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-90 { width: 90%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-91 { width: 91%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-92 { width: 92%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-93 { width: 93%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-94 { width: 94%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-95 { width: 95%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-96 { width: 96%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-97 { width: 97%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-98 { width: 98%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-99 { width: 99%; }
:is(.sw-bar, .sw-split, .sw-old-bar) > i.w-100 { width: 100%; }

/* Sparklines of the key figure tiles (server side as an SVG polyline) */
.sw-spark-line { fill: none; stroke: var(--series-1); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round; }
.sw-tile--warn .sw-spark-line { stroke: var(--warn); }
.sw-tile--crit .sw-spark-line { stroke: var(--crit); }
.sw-tile--stale .sw-spark-line { stroke: var(--stale); }
.sw-spark-mark { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .7; }

/* ---------- graphs (uPlot) ---------- */
.sw-uplot { position: relative; flex: 1; min-height: 0; }
.sw-uplot .uplot { font-family: var(--font-sans); }
.sw-uplot .u-over { cursor: crosshair; }
.sw-uplot .u-legend { display: none; }
.sw-gap-hint { align-self: flex-end; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 1px 7px; }
.sw-uplot .sw-tip { z-index: 5; }
.sw-uplot-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 12px; }
.sw-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--series-1); }
.sw-legend i.s2 { border-top: 2px dashed var(--series-2); }
.sw-legend i.s3 { border-top: 2px dotted var(--series-3); }
/* Stacked areas (CPU by kind): a color field instead of a line style; the script sets the color */
.sw-legend i.sw-area, .sw-tip-r i.sw-area { width: 10px; height: 10px; border: 0; border-radius: 2px; vertical-align: -1px; }

/* ---------- services (DS widget "services", round 1e; "running" per category after round 1i) ---------- */
.sw-row--service { grid-template-columns: minmax(0, 1fr) auto; }
.sw-row--service .sub { white-space: normal; }
.sw-row--empty { grid-template-columns: minmax(0, 1fr); }
.sw-w--free { margin-top: var(--grid-gap); }
.sw-w-number { margin-right: 8px; }
.sw-w--stale .sw-w-b > .sw-alert { margin: 10px 12px 4px; }
.sw-svc-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 2px 14px 8px; }
.sw-svc-cat { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); }
.sw-svc-cats > div > .sw-svc-cat:last-child { border-bottom: 0; }
.sw-svc-k { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.sw-svc-chips { display: flex; flex-wrap: wrap; gap: 5px 6px; min-width: 0; }
.sw-svc { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); font: 12px/16px var(--font-mono); color: var(--text-2); white-space: nowrap; }
.sw-svc > i { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--ok); flex: none; }
.sw-svc--group { font-family: var(--font-sans); }
.sw-svc--group b { font: 600 12px var(--font-mono); color: var(--text); }
.sw-svc--part { background: rgba(199,111,48,.14); box-shadow: inset 0 0 0 1px rgba(199,111,48,.55); color: var(--text); }
.sw-svc--part > i { background: var(--warn); }
.sw-svc--part b { color: var(--warn-text); }
/* Reference instead of a chip: "dovecot down, above", in the color of the outage */
.sw-svc-ref { display: inline-flex; align-items: center; gap: 4px; height: 22px; font-size: 11px; color: var(--warn-text); }
.sw-svc-ref--crit { color: var(--crit-text); }
.sw-svc-ref .sw-ico { width: 12px; height: 12px; }
/* Data missing (DS artboard 2b): the last state muted, dots grey */
.sw-last-state { opacity: .5; }
.sw-last-state .sw-svc > i { background: var(--text-3); }

/* ---------- disks and mounts with a device row, where the space goes (DS round 1j) ---------- */
.sw-devrow td { padding: 0 !important; background: rgba(255,255,255,.025); border-top: 1px solid var(--border); }
.sw-devline { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; padding: 5px 12px; font-size: 12px; color: var(--text-2); }
.sw-devline b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sw-devline--warn { background: linear-gradient(var(--warn-tint), var(--warn-tint)), var(--tile-ground); }
.sw-devline--warn b { color: var(--warn-text); }
.sw-devline .sw-badge { margin-left: auto; }
.sw-dev-n .mono { color: var(--text); font-weight: 500; }
.sw-dev-sp { margin-left: auto; width: 96px; }
.sw-dev-sp svg { display: block; width: 96px; height: 18px; overflow: visible; }
.sw-spark-line--muted { stroke: var(--text-3); }
.sw-indent { padding-left: 24px !important; }
.sw-grouprow td { padding: 5px 12px !important; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-3); background: rgba(255,255,255,.025); border-top: 1px solid var(--border); }
.sw-hintrow td { padding: 0 12px 6px 24px !important; border-top: 0 !important; }
.sw-hintrow .sw-alert, .sw-hint-ph .sw-alert { padding: 4px 8px; font-size: 11.5px; line-height: 15px; }
.sw-hint-ph { padding: 0 12px 8px; }
.sw-cmd { font: 11.5px var(--font-mono); background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 5px; color: var(--text); white-space: nowrap; }
.sw-io-sum { padding: 6px 12px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.sw-io-sum > span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--text-3); margin-right: 6px; }
.sw-io-sum b { color: var(--text); }
.sw-s-foot--line { padding: 4px 12px; }
/* Table (size L in the server detail) */
.sw-disks td.mono { font-size: 12px; }
.sw-disks-used { width: 26%; white-space: nowrap; }
.sw-disks-used > * { vertical-align: middle; }
.sw-disks-pct { display: inline-block; width: 46px; text-align: right; margin-right: 8px; }
.sw-disks-used .sw-bar { display: inline-block; width: calc(100% - 56px); margin-top: 0; }
.sw-disks-free { color: var(--text); font-weight: 600; }
.sw-disks-sp { width: 110px; }
.sw-disks-sp svg { display: block; width: 110px; height: 22px; overflow: visible; }
.sw-spark-line--warn { stroke: var(--warn); } .sw-spark-line--crit { stroke: var(--crit); }
.sw-disks tr.crit td { background: linear-gradient(var(--crit-tint), var(--crit-tint)), var(--tile-ground); color: var(--text); }
.sw-disks tr.crit .sw-ico { color: var(--crit-text); }
.sw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-narrow-only { display: none; }

/* ---------- Nextcloud sizes (DS widget 4): M as rows, L/wide as a table ---------- */
.sw-row--nc { grid-template-columns: minmax(0, 1fr) auto; }
.sw-nc .sw-disks-used { width: 18%; }
.sw-nc th, .sw-nc td { padding-left: 8px; padding-right: 8px; }
.sw-nc th:first-child, .sw-nc td:first-child { padding-left: 12px; }
.sw-nc th:last-child, .sw-nc td:last-child { padding-right: 12px; }
.sw-nc .sw-disks-sp, .sw-nc .sw-disks-sp svg { width: 96px; }
.sw-nc .sw-disks-sp svg { height: 16px; }
/* More instances than fit into the fixed height: scroll instead of cutting off (DS: L shows all). */
.sw-w-b.sw-nc-body { overflow-y: auto; container-type: inline-size; }
/* Narrow card (L, tablet): hide columns by importance. Instance, usage, size and "full in"
   with the badge always stay; growth and history 90 d belong to L (DS), version, cron and
   users join in "wide" as far as there is room. */
@container (max-width: 1199px) { .sw-nc .sw-nc-p3 { display: none; } }
@container (max-width: 1049px) { .sw-nc .sw-nc-p2 { display: none; } }
@container (max-width: 879px) { .sw-nc .sw-nc-pv { display: none; } }
@container (max-width: 759px) { .sw-nc .sw-nc-p1 { display: none; } }

/* ---------- Nextcloud with real data, Nextcloud page (DS round 1l) ---------- */
/* Breakdown: its own split bar; 100 % = usage, neutral tones, trash hatched */
.sw-split { display: flex; height: 6px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.06); gap: 1px; }
.sw-split--lg { height: 10px; margin: 2px 0 8px; }
.sw-split > i { display: block; height: 100%; min-width: 2px; }
.sw-split--files { background: var(--nc-files); }
.sw-split--groups { background: var(--nc-groups); }
.sw-split--versions { background: var(--nc-versions); }
.sw-split--trash { background: repeating-linear-gradient(45deg, var(--nc-trash) 0 2px, rgba(215,215,215,.25) 2px 4px); }
.sw-split--other { background: var(--nc-other); }
.sw-split-leg { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.sw-split-leg > span { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.sw-split-leg i { display: block; width: 10px; height: 10px; border-radius: 2px; }
.sw-split-leg b { color: var(--text); font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.sw-split-leg em { font-style: normal; color: var(--text-3); min-width: 44px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.sw-split-leg > .is-zero, .sw-split-leg > .is-zero b { color: var(--text-3); }
.sw-split-leg > .sw-split-ext { display: block; padding-left: 18px; }
.sw-nc .sw-nc-open, .sw-nc .sw-nc-open .sw-split { width: 110px; }
.sw-nc td.sw-nc-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
/* Row with a problem: edge stroke on the left in the state color */
.sw-nc tr.sw-tr--warn td:first-child { box-shadow: inset 2px 0 0 var(--warn); }
.sw-nc tr.sw-tr--crit td:first-child { box-shadow: inset 2px 0 0 var(--crit); }
/* Expanding (Nextcloud page): chevron, expanded accent-tint */
.sw-nc .sw-nc-x { width: 26px; padding-right: 0; }
.sw-nc tr[data-nc-row] { cursor: pointer; }
.sw-nc tr.sw-tr--open td { background: var(--accent-tint); }
.sw-nc tr.sw-tr-detail td { padding: 0 !important; border-bottom: 1px solid var(--border-strong); }
.sw-nc tbody tr.sw-tr-detail:hover td { background: none; }
.sw-expand { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0;
  border-radius: var(--radius-sm); background: none; color: var(--text-3); cursor: pointer; vertical-align: middle; }
.sw-expand:hover { color: var(--text); }
.sw-expand:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.sw-expand .sw-ico { transition: transform .15s; }
.sw-tr--open .sw-expand { color: var(--accent-line); }
.sw-tr--open .sw-expand .sw-ico { transform: rotate(180deg); }
/* Details: five blocks side by side, below them the log across the full width */
.sw-ncd { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr 1fr; background: rgba(255,255,255,.025); border-top: 1px solid var(--border); cursor: auto; }
.sw-ncd-b { padding: 12px 14px; border-right: 1px solid var(--border); min-width: 0; }
.sw-ncd-b:nth-child(5), .sw-ncd-b:last-child { border-right: 0; }
.sw-ncd-t { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.sw-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 20px; color: var(--text-2); }
.sw-kv > span:last-child { color: var(--text); text-align: right; min-width: 0; }
.sw-chips-s { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sw-chips-s .sw-chip { font-weight: 400; font-size: 11px; }
.sw-ncd .sw-alert { font-size: 12px; line-height: 17px; }
.sw-ncd-text { font-size: 12px; line-height: 17px; color: var(--text-2); }
.sw-ncd-text--spaced { margin-top: 8px; }
.sw-ncd-sp svg { display: block; width: 100%; height: 40px; overflow: visible; margin-bottom: 6px; }
.sw-split-note { font-size: 11px; line-height: 14px; color: var(--text-3); margin: -4px 0 8px; }
/* "oldest reserved" (DS round 1m): age against 12 h, a stroke at the end, neutral */
.sw-old { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.sw-old-bar { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.09); margin: 4px 0; }
.sw-old-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--text-3); }
.sw-old-bar > u { position: absolute; right: 0; top: -2px; bottom: -2px; width: 1px; background: var(--text-2); }
/* DS round 1n: class name in its own line (can be long), below it plain text and the 12-h rule */
.sw-old-c { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.sw-old-l { font-size: 11px; line-height: 15px; color: var(--text-2); }
.sw-old-l.sw-t3 { color: var(--text-3); }
/* Log · 24 h (DS round 1m): full width under the five blocks */
.sw-ncd > .sw-log { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--border); }
.sw-log-read { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sw-log-n { display: flex; gap: 24px; margin-bottom: 10px; }
.sw-log-c { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--text-2); }
.sw-log-c b { font-size: 20px; line-height: 24px; font-weight: 300; color: var(--text); font-variant-numeric: tabular-nums; }
.sw-log-c.is-zero b { color: var(--text-3); }
/* Level marks: shape instead of color (stroke · double stroke · bar) */
.sw-log-c i, .sw-log-lv i { display: inline-block; width: 10px; height: 10px; align-self: center; border-radius: 1px; flex: none; }
.sw-log-c--warn i { background: linear-gradient(var(--text-2), var(--text-2)) center / 10px 2px no-repeat; }
.sw-log-c--error i { background: linear-gradient(var(--text-2), var(--text-2)) center 2px / 10px 2px no-repeat,
  linear-gradient(var(--text-2), var(--text-2)) center 6px / 10px 2px no-repeat; }
.sw-log-c--fatal i { background: var(--text-2); }
.sw-log-m { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.sw-log-r { display: grid; grid-template-columns: 86px auto minmax(0, 1fr) 74px 48px 128px; gap: 10px; align-items: center; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-size: 12px; }
/* DS round 1n: numbers on the left, "errors per day · 7 d" on the right; per message 24 hour bars (SVG, CSP) */
.sw-log-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.sw-log-top .sw-log-n { margin-bottom: 0; }
.sw-log-d { width: 220px; flex: none; font-size: 11px; }
.sw-log-d--none { width: auto; }
.sw-log-dh { display: flex; justify-content: space-between; margin-bottom: 3px; }
.sw-log-dc { display: block; width: 100%; height: 36px; border-bottom: 1px solid var(--border-strong); overflow: visible; }
.sw-log-dc-f { fill: var(--text-3); }
.sw-log-dc-s { fill: var(--text-2); }
.sw-log-dc-m { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sw-hbars { display: block; width: 72px; height: 16px; border-bottom: 1px solid var(--border-strong); }
.sw-hbars rect { fill: var(--text-3); }
.sw-hbars--empty { border-bottom: 0; }
.sw-log-r .sw-chip { font-weight: 400; font-size: 11px; }
.sw-log-lv { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.sw-log-t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-redact { display: inline-block; padding: 0 4px; margin: 0 1px; border-radius: 2px; background: rgba(255,255,255,.08); color: var(--text-3);
  font-size: 11px; line-height: 15px; }
.sw-log-foot { font-size: 11px; line-height: 14px; color: var(--text-3); margin-top: 6px; }
.sw-log--na .sw-state { padding: 4px 0; text-align: left; align-items: flex-start; justify-content: flex-start; min-height: 0; }
@container (max-width: 1099px) {
  .sw-ncd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-ncd-b { border-right: 0; border-bottom: 1px solid var(--border); }
  .sw-ncd-b:first-child { grid-column: 1 / -1; }
}
/* M foot: "Nextcloud page ›" */
.sw-nc-link { color: var(--accent-line); }
/* Nextcloud page */
.sw-ncs-t { margin-bottom: var(--grid-gap); }
.sw-ncs .sw-w--full { height: auto; }
.sw-nc-body--page { overflow: visible; }
.sw-ncs-ver { font-size: 22px; }
/* Narrow tile (tablet, phone): badge below the label instead of cutting it off */
.sw-ncs .sw-tile-top { flex-wrap: wrap; justify-content: flex-start; row-gap: 4px; }
.sw-ncs .sw-tile-top > .sw-tile-lbl { min-width: auto; margin-right: auto; }
.sw-ncs-scroll { overflow-y: auto; }
.sw-ncs-quiet { flex: none; padding: 14px 18px; }
.sw-ncs-rules { padding: 4px 12px 10px; font-size: 12px; line-height: 18px; color: var(--text-2); }
.sw-ncs-group { padding-left: 0; padding-right: 0; background: none; margin-top: 4px; }
.sw-row--app { grid-template-columns: minmax(0, 1fr) auto; padding-top: 5px; padding-bottom: 5px; }
/* Collabora (DS round 1o, card 19): facts side by side, separated by hairlines (gap on the
   border color), on narrower screens three, on the phone two by two with the answer below */
.sw-ncs-o { margin-bottom: var(--grid-gap); }
.sw-oc-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border);
  border-bottom: 1px solid var(--border); }
.sw-oc-f { background: var(--panel); padding: 10px 14px 12px; min-width: 0; }
.sw-oc-f .sw-met-v .mono { font-size: 15px; line-height: 22px; }
.sw-oc-f .sw-met-s { white-space: normal; }
.sw-oc-sp { height: 24px; margin-top: 6px; }
.sw-oc-sp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sw-oc-facts--none { display: block; background: none; padding: 10px 14px; font-size: 12px; }
.sw-oc-hint { padding-top: 10px; }
.sw-oc-t th, .sw-oc-t td { padding-left: 8px; padding-right: 8px; }
.sw-oc-t th:first-child, .sw-oc-t td:first-child { padding-left: 12px; }
.sw-oc-t th:last-child, .sw-oc-t td:last-child { padding-right: 12px; }
.sw-oc-hh { width: 84px; }
.sw-oc-r { grid-template-columns: minmax(0, 1fr) auto; }
.sw-oc-r .num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sw-oc-m { border-top: 1px solid var(--border); }
.sw-oc-m .sw-log-m { padding: 0 12px; border-top: 0; }
.sw-oc-quiet, .sw-oc-foot { padding: 8px 12px 0; }
.sw-oc-foot { padding-bottom: 10px; }
@media (max-width: 1099px) {
  .sw-oc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-oc-facts > .sw-oc-f:last-child:nth-child(3n+2) { grid-column: span 2; }
}
/* Server tile L (DS round 1l): head line per history with "now" and "peak" */
.sw-tl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sw-tl-v { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.sw-tl-v b { color: var(--text); font-weight: 600; }
.sw-tl-foot { font-size: 11px; line-height: 14px; color: var(--text-3); flex: none; }

/* ---------- updates and maintenance (DS card 8, blueprint rounds 1m/1n) ---------- */
.sw-v--info { color: var(--info-text); }
.sw-updates-b { overflow-y: auto; }
.sw-updates-l { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: 100%; }
/* L (Claude Design, 20.10.2026): the badge under the server's name, the text gets the width */
.sw-updates-a .sw-row--maint { grid-template-columns: 86px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
.sw-updates-a .sw-row--maint > :first-child { grid-column: 1; grid-row: 1; }
.sw-updates-a .sw-row--maint > .sw-maint-t { grid-column: 2; grid-row: 1 / span 2; }
.sw-updates-a .sw-row--maint > :last-child { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 4px; }
.sw-updates-r { border-left: 1px solid var(--border); min-width: 0; }
.sw-updates-a { min-width: 0; }
.sw-row--maint { grid-template-columns: 86px minmax(0, 1fr) auto; padding-top: 6px; padding-bottom: 6px; }
.sw-maint-n { font-weight: 600; }
.sw-maint-k { font-size: 11px; color: var(--text-2); }
.sw-maint-t { white-space: normal !important; }
/* DS round 1o: certificates as the second line of the server row, below them in slate the
   warning that is still to come; "without a valid one" grey with a dotted underline */
.sw-maint-l2 { display: block; margin-top: 2px; }
.sw-maint-hint { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11.5px; line-height: 15px; color: var(--info-text); }
.sw-maint-hint .sw-ico { flex: none; }
.sw-dotted { color: var(--text-3); text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.sw-dotted--here { color: inherit; }   /* what points here keeps the line's color, the rest is grey */
.sw-dotted:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
.sw-row--app2 { grid-template-columns: minmax(0, 1fr) auto; padding-top: 6px; padding-bottom: 6px; }
.sw-row--app2 .sub { white-space: normal; }
.sw-small { font-size: 11px; }
.sw-chips-r { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
@media (max-width: 767px) {
  .sw-updates-l { grid-template-columns: minmax(0, 1fr); }
  .sw-updates-r { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- sizes from DS round 1k: character badge, services L, server tile L ---------- */
.sw-sym { padding: 0; width: 24px; height: 22px; justify-content: center; gap: 0; flex: none; }
.sw-sym .sw-ico { width: 16px; height: 16px; margin: 0; stroke-width: 2; }
.sw-svcl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: 100%; }
.sw-svcl-l { display: flex; flex-direction: column; min-width: 0; }
.sw-svcl-l .sw-rows { flex: 1; }
.sw-svcl-r { border-left: 1px solid var(--border); min-width: 0; }
.sw-svcl-cats { padding: 0 0 6px; }
.sw-svcl-cat { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; height: 23px; padding: 0 14px; }
.sw-svcl-cat .sw-svc-chips { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.sw-svcl-cat .sw-svc, .sw-svcl-cat .sw-svc-ref { height: 19px; font-size: 11px; padding: 0 6px; white-space: nowrap; }
/* Shorten long names instead of pushing "+N" out of the row */
.sw-svcl-cat .sw-svc { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 19px; }
.sw-svcl-cat .sw-svc > i { display: inline-block; vertical-align: 1px; margin-right: 6px; }
.sw-svc--more { color: var(--text-2); font-family: var(--font-sans); }
.sw-svcl-cat .sw-svc--more { flex: none; }
.sw-svc--more i { display: none; }
.sw-svcl-more { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-svcl-more .mono { overflow: hidden; text-overflow: ellipsis; }
.sw-svcl-link { text-decoration: none; } .sw-svcl-link b { color: var(--text); font-weight: 600; margin-left: auto; }
.sw-row--svcl { grid-template-columns: auto minmax(0, 1fr); }
.sw-tile-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; height: 100%; }
.sw-tile-l-a { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sw-tile-l-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sw-tile-l-g { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sw-tile-l-svg { flex: 1; min-height: 60px; }
.sw-tile-l-svg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sw-tile-l-empty { flex: 1; min-height: 60px; }
/* ---------- reach (28.11.2026): websites and clouds as chips like the ports, the dot tells the state ---------- */
.sw-reach { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); font: 11px/16px var(--font-sans); color: var(--text-2); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sw a.sw-reach:hover { color: var(--text); background: rgba(255,255,255,.09); }
.sw-reach small { font: 10px var(--font-mono); color: var(--text-3); }
.sw-reach > i { width: 6px; height: 6px; border-radius: var(--radius-full); flex: none; background: var(--ok); }
.sw-reach--hint > i { background: var(--info); }
.sw-reach--warn > i { background: var(--warn); }
.sw-reach--unclear > i, .sw-reach--elsewhere > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stale); }
.sw-reach--elsewhere { color: var(--text-3); }
.sw-reach--crit { background: rgba(241,128,145,.14); box-shadow: inset 0 0 0 1px rgba(241,128,145,.55); color: var(--crit-text); }
.sw-reach--crit > i { background: var(--crit); }
.sw-reach-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; min-width: 0; padding: 2px 12px 8px; }
.sw-maint-t .sw-reach-chips { padding: 0; margin-top: 5px; }
.sw-reach-l { padding-top: 2px; }
/* A row of the card: the name on top with the room of the whole row, why and since below, the
   badge on the right across both lines */
.sw-row--reach { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n b" "s b"; row-gap: 1px;
  padding-top: 6px; padding-bottom: 6px; }
.sw-row--reach > :nth-child(1) { grid-area: n; }
.sw-row--reach > :nth-child(2) { grid-area: s; }
.sw-row--reach > :nth-child(3) { grid-area: b; }
/* ---------- open ports (22.10.2026): in the style of the services, the dot tells the firewall ---------- */
.sw-port { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); font: 11px/16px var(--font-sans); color: var(--text-2); white-space: nowrap; }
.sw-port b { font: 600 11.5px var(--font-mono); color: var(--text); }
.sw-port small { font: 10px var(--font-mono); color: var(--text-3); margin-left: -2px; }
.sw-port > i, .sw-port-dot { width: 6px; height: 6px; border-radius: var(--radius-full); flex: none; background: var(--info); display: inline-block; }
.sw-port--shielded > i, .sw-port-dot--shielded { background: var(--ok); }
.sw-port--unknown > i, .sw-port-dot--unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--stale); }
.sw-port--crit { background: rgba(241,128,145,.14); box-shadow: inset 0 0 0 1px rgba(241,128,145,.55); color: var(--text); }
.sw-port--crit > i, .sw-port-dot--crit { background: var(--crit); }
.sw-port--crit b { color: var(--crit-text); }
.sw-port-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; min-width: 0; }
.sw-port-chips--pad { padding: 2px 12px 6px; }
.sw-maint-t .sw-port-chips { display: flex; margin-top: 5px; }
.sw-port-cats { padding: 0 14px 4px; }
.sw-port-cats--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.sw-port-cat { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 4px 0;
  border-bottom: 1px solid var(--border); }
.sw-port-col > .sw-port-cat:last-child { border-bottom: 0; }
.sw-port-cat .sw-svc-k { padding-top: 0; line-height: 20px; }
.sw-port-fw { display: flex; align-items: flex-start; gap: 6px; padding: 7px 12px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 16px; color: var(--text-2); }
.sw-port-fw .sw-ico { flex: none; margin-top: 1px; }
.sw-port-fw.sw-v--warn, .sw-port-fw.sw-v--warn .sw-ico { color: var(--warn-text); }
.sw-port-fw.sw-v--stale .sw-ico { color: var(--stale); }
.sw-port-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding: 6px 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3); }
.sw-port-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw-portl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.sw-portl-l { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sw-portl-l .sw-rows { flex: 1; min-height: 0; overflow: hidden; }
.sw-portl-r { border-left: 1px solid var(--border); min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sw-portl-r .sw-port-cats { flex: 1; min-height: 0; overflow: hidden; }
.sw-ports-m .sw-port-fw { border-bottom: 1px solid var(--border); }
/* ---------- network, backups, containers over 7 days (22.10.2026, the weekly report of the old
   CORTEX monitoring in the dashboard) ---------- */
.sw-row--backup { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.sw-row--backup .sub { white-space: normal; }
.sw-row--backup .sw-bar { margin: 4px 0 3px; }
.sw-netm, .sw-netl-a { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.sw-netl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.sw-netl-b { border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; min-width: 0; }
.sw-row--ct7 { grid-template-columns: minmax(0, 1fr) 54px 72px 64px 104px 140px; padding-top: 4px; padding-bottom: 4px; }
.sw-port-fw--short span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sw-ports-m-chips { flex: 1; min-height: 0; overflow: hidden; }
.sw-ports-m .sw-s-foot--line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 767px) {
  .sw-svcl, .sw-tile-l { grid-template-columns: minmax(0, 1fr); }
  .sw-svcl-r { border-left: 0; border-top: 1px solid var(--border); }
  /* Server tile on the phone like S (round 1a): without the histories of size L */
  .sw-tile-l-b { display: none; }
  .sw-portl, .sw-port-cats--2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .sw-portl-r .sw-port-cats, .sw-portl-l .sw-rows { overflow: visible; }
  .sw-portl .sw-svcl-more { white-space: normal; }
  .sw-netl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .sw-netl-b { border-left: 0; border-top: 1px solid var(--border); }
  .sw-row--ct7 { grid-template-columns: minmax(0, 1fr) 54px 72px 64px; }
  .sw-row--ct7 > :nth-child(n+5) { display: none; }
  .sw-portl-r { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- load-15 with "CPU by kind" (DS round 1j) ---------- */
.sw-w--strip .sw-w-b { gap: 0; }
.sw-cpu { flex: none; margin-top: 2px; }
.sw-cpu-h { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); padding: 0 0 2px 44px; }
.sw-cpu-t { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.sw-cpu-l { display: inline-flex; align-items: center; gap: 5px; }
.sw-cpu-l b { color: var(--text); font-weight: 600; }
.sw-cpu-l i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw-cpu-user { background: var(--cpu-user); }
.sw-cpu-system { background: var(--cpu-system); }
.sw-cpu-iowait { background: var(--cpu-iowait); }
.sw-cpu-steal { background: repeating-linear-gradient(45deg, #d7d7d7 0 2px, rgba(215,215,215,.25) 2px 4px); }
/* Double class: beats the minimum height of the graphs on the phone (220 px) */
.sw-uplot.sw-uplot--strip { flex: none; height: 62px; min-height: 0; }
.sw-uplot--strip .sw-tip { z-index: 4; }

/* ---------- grid in the server detail ---------- */
/* Sizes "wide" (12 × 4, an addition of the product for graphs and tables) and "tall"
   (4 × 8, DS widget-tall) */
.sw-grid > .sw-w--w { grid-column: span 12; grid-row: span 4; }
.sw-grid > .sw-w--t { grid-column: span 4; grid-row: span 8; }
@media (max-width: 1279px) { .sw-grid > .sw-w--w { grid-column: span 6; } .sw-grid > .sw-w--t { grid-column: span 3; } }
@media (max-width: 767px) { .sw-grid > .sw-w--w, .sw-grid > .sw-w--t { grid-column: 1 / -1; grid-row: auto; } }
/* Double height (Tim, 22.10.2026): the height follows data-size, so L and wide take two fields of
   height as lt and wt, and the editor shows the new height while the lower edge is dragged */
@media (min-width: 768px) {
  .sw-grid > [data-size="m"], .sw-grid > [data-size="l"], .sw-grid > [data-size="w"] { grid-row: span 4; }
  .sw-grid > [data-size="t"], .sw-grid > [data-size="lt"], .sw-grid > [data-size="wt"] { grid-row: span 8; }
}

/* ---------- edit layout (DS artboard 5) ---------- */
.sw-arrange-button[aria-pressed="true"] { background: var(--accent-tint); color: var(--text); }
.sw-editing .sw-grid { position: relative; }
.sw-editing .sw-grid > *:not(.sw-guides) { position: relative; z-index: 1; }
.sw-editing .sw-w-b { opacity: .55; pointer-events: none; }
.sw-editing .sw-w-h { cursor: grab; user-select: none; touch-action: none; }
.sw-editing .sw-w-h .sw-w-m { margin-left: auto; }
.sw-editing .sw-w-t a { pointer-events: none; }
.sw-w--drag { cursor: grabbing; }
.sw-w--drag .sw-w-h { cursor: grabbing; }
.sw-ghost { min-height: 84px; }
/* Lower edge of a card in the editor: dragged down two fields of height, up one again */
.sw-hhandle { position: absolute; left: 50%; bottom: 2px; z-index: 4; width: 56px; height: 14px; margin-left: -28px; padding: 0;
  border: 0; border-radius: var(--radius-full); background: transparent; cursor: ns-resize; touch-action: none; }
.sw-hhandle::before { content: ""; position: absolute; left: 12px; right: 12px; top: 5px; height: 4px; border-radius: var(--radius-full);
  background: var(--border-strong); }
.sw-hhandle:hover::before, .sw-hhandle:focus-visible::before, .sw-w--hdrag .sw-hhandle::before { background: var(--accent-line); }
.sw-hhandle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.sw-w--hdrag { outline: 2px solid var(--accent-line); }
.sw-editbar-message { font-size: 12px; color: var(--warn-text); }
.sw-drawer { position: fixed; top: var(--nav-height); right: 0; bottom: 0; width: 340px; background: var(--panel); border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-drag); z-index: 30; display: flex; flex-direction: column; overflow-y: auto; }
.sw-drawer .sw-ph { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; flex: none; }
.sw-drawer-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border); font-size: 13px; }
.sw-drawer-item .sw-ico { color: var(--accent-line); }
.sw-drawer-item small { display: block; font-size: 11px; color: var(--text-2); line-height: 15px; }
.sw-drawer-foot { padding: 12px 14px; font-size: 12px; line-height: 17px; color: var(--text-2); }
/* "not here" (DS round 1f): grey, a thin solid frame, one sentence */
.sw-w--na { border: 1px solid var(--border); }
.sw-w--na .sw-w-h { border-bottom-color: var(--border); }
.sw-w--na .sw-w-t, .sw-w--na .sw-w-t > .sw-ico { color: var(--text-3); }
.sw-state--na { color: var(--text-3); font-size: 13px; gap: 8px; }

/* News (Tim, 12.11.2026): four key figures, the filter, the reports as rows with their summary
   and what of ours they concern. A first version; Claude Design shapes it in round 3. */
.sw-news-k { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Number left, label and line next to it, the footnote below: two lines less (Tim, 28.11.2026) */
.sw-news-k .sw-tile { min-height: 0; padding: 10px 14px 11px; gap: 6px; }
.sw-news-k .sw-tile--crit { padding: 9px 13px 10px; }
.sw-tile-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sw-news-k .sw-tile-val { flex: none; margin-top: 0; font-size: 30px; line-height: 34px; }
.sw-tile-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sw-news-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-2); }
.sw-news-list { height: auto; }
.sw-row--news { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-top: 9px; padding-bottom: 9px; }
.sw-row--news .nm.sw-news-title { white-space: normal; }
.sw-row--news .nm a { color: var(--text); text-decoration: none; }
.sw-row--news .nm a:hover, .sw-row--news .nm a:focus-visible { text-decoration: underline; }
.sw-row--news .sub.sw-news-meta { white-space: normal; margin-top: 2px; }
.sw-news-sum { margin-top: 4px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sw-news-hit { margin-top: 5px; display: flex; gap: 6px; align-items: flex-start; color: var(--warn-text); }
.sw-news-hit b { font-weight: 600; }
.sw-news-hit .sw-ico { flex: none; margin-top: 1px; }
/* The verdict on an exploited report (Tim, 19.11.2026): per server what is affected (warn), what
   cannot be decided (info) and what is fixed or not there (calm, grey with a green mark) */
.sw-news-checks { margin-top: 2px; }
.sw-news-hit--info { color: var(--text-2); }
.sw-news-hit--info .sw-ico { color: var(--info-text); }
.sw-news-hit--ok { color: var(--text-2); }
.sw-news-hit--ok .sw-ico { color: var(--ok-text); }
/* WordPress (19.11.2026): one line above the list, the license of Wordfence's data below it */
.sw-news-wp { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 var(--space-2); color: var(--text-2); }
.sw-news-wp .sw-ico { flex: none; margin-top: 2px; }
.sw-news-license { margin-top: var(--space-2); color: var(--text-3); font-size: 12px; }
.sw-news-license summary { cursor: pointer; }
.sw-news-license p { margin: 6px 0 0; }
.sw-news-license a { color: var(--text-2); }

/* Overview head: the short line and the corner count exist for the phone only */
.sw-sum-narrow, .sw-sum-count { display: none; }

/* Desktop: the head in one line, servers and newest alarm right of the title with room between
   (Tim, 28.11.2026: "einzeilig und wesentlich schmäler"). Too narrow for one line, the line
   about the servers wraps below the title. */
@media (min-width: 768px) {
  .sw-sum { gap: 14px; padding: 9px 16px; }
  .sw-sum--crit { padding: 8px 15px; }
  .sw-sum-ico { display: inline-flex; }
  .sw-sum-ico .sw-ico { width: 22px; height: 22px; }
  .sw-sum-text { display: flex; align-items: center; flex-wrap: wrap; column-gap: 28px; row-gap: 2px; min-width: 0; }
  .sw-sum-t { font-size: 24px; line-height: 30px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .sw-page { padding: 0 var(--gutter-phone) var(--space-6); }
  .sw-topbar { padding: 0 var(--gutter-phone); }       /* as the phone artboard, flush with the page */
  .sw-tabs--page { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; --fade-l: 0px; --fade-r: 0px; }
  .sw-tabs--page::-webkit-scrollbar { display: none; }
  .sw-tabs--page .sw-tab { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
  /* Fading out only at an edge where the bar goes on, app.js sets the attributes while it
     scrolls. The width is TAB_FADE in app.js. */
  .sw-tabs--page[data-fade-l], .sw-tabs--page[data-fade-r] {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  }
  .sw-tabs--page[data-fade-l] { --fade-l: 32px; }
  .sw-tabs--page[data-fade-r] { --fade-r: 32px; }
  .sw-sum-t { font-size: 22px; line-height: 28px; }
  .sw-sum-r { display: none; }
  /* The number of servers as a small corner "1/3" with a server icon, below the title only the
     newest alarm: two lines instead of three (Tim, 28.11.2026) */
  .sw-sum--count { position: relative; }
  .sw-sum--count .sw-sum-text { padding-right: 44px; }
  .sw-sum--count .sw-sum-wide { display: none; }
  .sw-sum--count .sw-sum-narrow { display: inline; }
  .sw-sum-count { display: inline-flex; position: absolute; top: 10px; right: 12px; align-items: center; gap: 4px;
                  font-size: 13px; line-height: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .sw-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-row--al-l { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "b n w" "b s w"; row-gap: 2px; }
  .sw-row--al-l > :nth-child(1) { grid-area: b; } .sw-row--al-l > :nth-child(2) { grid-area: n; }
  .sw-row--al-l > :nth-child(3) { grid-area: s; white-space: normal; } .sw-row--al-l > :nth-child(4) { grid-area: w; }
  .sw-uplot { min-height: 220px; }
  /* Page head: name on the left, freshness and state on the right in the same line, the
     details below across the full width (before: two squeezed columns, Tim 17.10.) */
  .sw-pagehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; }
  .sw-pagehead > div:first-child { display: contents; }
  .sw-pagehead h1 { grid-column: 1; grid-row: 1; min-width: 0; }
  .sw-pagehead .r { grid-column: 2; grid-row: 1; margin-left: 0; }
  .sw-pagehead .meta { grid-column: 1 / -1; grid-row: 2; column-gap: 12px; row-gap: 2px; }
  /* News: the number of sources on the right of the subtitle. If the subtitle must wrap, it
     wraps beside it (Tim, 28.11.2026: before three lines). */
  .sw-pagehead .meta.sw-meta-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .sw-meta-split > .sw-meta-end { justify-self: end; white-space: nowrap; }
  .sw-w-h { flex-wrap: wrap; }
  /* When wrapped, legend and time filter stay on the right (before they slid to the left) */
  .sw-w-m { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; margin-left: auto; }
  /* Graphs (Tim, 19.10.): legend left of the time filter in one line instead of two */
  .sw-w-m--graph { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 10px; margin-left: 0; }
  .sw-w-m--graph .sw-legend { flex: 1 1 auto; min-width: 0; gap: 2px 10px; font-size: 11px; }
  .sw-w-m--graph .sw-legend span { gap: 4px; }
  .sw-w-m--graph .sw-legend i { width: 12px; }
  .sw-w-m--graph .sw-seg { flex: none; }
  /* Phone: alarms first, then the servers by severity (Tim's decision, round 1a) */
  .sw-wide-only { display: none; }
  .sw-narrow-only { display: block; }
  /* Nextcloud on the phone: the sub line may wrap */
  .sw-row--nc .sub { white-space: normal; }
  /* Nextcloud page on the phone (DS artboard 17b): alarms first, key figures in two columns,
     then the instances as rows; details one below the other */
  .sw-ncs { display: flex; flex-direction: column; gap: var(--grid-gap); }
  .sw-ncs-u { display: contents; }
  .sw-ncs-a { order: 1; } .sw-ncs-k { order: 2; } .sw-ncs-t { order: 3; } .sw-ncs-o { order: 4; } .sw-ncs-p { order: 5; }
  .sw-ncs-x { order: 6; }
  .sw-ncs-o { margin-bottom: 0; }
  /* Collabora on the phone (DS round 1o): facts two by two, the answer across below them;
     one row per instance, the messages in two lines */
  .sw-oc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-oc-facts > .sw-oc-f:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sw-oc-m .sw-log-r { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "lv app n" "t t t" "b b z"; row-gap: 3px; }
  .sw-oc-m .sw-log-r > .sw-log-lv { grid-area: lv; }
  .sw-oc-m .sw-log-r > :nth-child(2) { grid-area: app; justify-self: start; }
  .sw-oc-m .sw-log-r > .sw-log-t { grid-area: t; white-space: normal; overflow-wrap: anywhere; }
  .sw-oc-m .sw-log-r > .sw-hbars { grid-area: b; }
  .sw-oc-m .sw-log-r > .sw-log-k { grid-area: n; justify-self: end; }
  .sw-oc-m .sw-log-r > .sw-log-z { grid-area: z; justify-self: end; text-align: right; }
  .sw-ncs .sw-tiles { margin: 0; }
  .sw-ncs .sw-tile { min-height: 0; }
  .sw-ncs-t { margin-bottom: 0; }
  .sw-ncs .sw-w--m { height: auto; }
  .sw-ncp { grid-template-columns: minmax(0, 1fr) auto 22px; align-items: start; cursor: pointer; }
  .sw-ncp .sw-expand { margin-top: 1px; }
  .sw-ncp-sub { margin: 4px 0 1px; white-space: normal !important; }
  .sw-ncp.sw-tr--open { background: var(--accent-tint); }
  .sw-ncd-phone .sw-ncd { grid-template-columns: minmax(0, 1fr); }
  .sw-ncd-phone .sw-ncd-b { border-right: 0; border-bottom: 1px solid var(--border); grid-column: auto; }
  .sw-ncd-phone .sw-ncd > .sw-log { border-top: 0; }
  /* Log on the phone: every message in two lines, hour bars under the text (DS rounds 1m/1n) */
  .sw-ncd-phone .sw-log-r { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "lv app n" "t t t" "b b z"; row-gap: 3px; }
  .sw-ncd-phone .sw-log-r > .sw-log-lv { grid-area: lv; }
  .sw-ncd-phone .sw-log-r > :nth-child(2) { grid-area: app; justify-self: start; }
  .sw-ncd-phone .sw-log-r > .sw-log-t { grid-area: t; white-space: normal; overflow-wrap: anywhere; }
  .sw-ncd-phone .sw-log-r > .sw-hbars { grid-area: b; }
  .sw-ncd-phone .sw-log-r > .sw-log-k { grid-area: n; justify-self: end; }
  .sw-ncd-phone .sw-log-r > .sw-log-z { grid-area: z; justify-self: end; text-align: right; }
  .sw-ncd-phone .sw-log-n { gap: 14px; flex-wrap: wrap; }
  .sw-ncd-phone .sw-log-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .sw-ncd-phone .sw-log-d { width: auto; }
  /* Alarms always first. Without an own order on the phone, then the servers by severity
     (round 1a); with an own one (DS round 1k, artboard 3c) that applies, hidden ones are missing. */
  .sw-grid > .sw-alarms { order: -3; }
  .sw-grid > .sw-alarms--empty { display: none; }
  .sw-grid:not(.sw-grid--phone) > .sw-rank-2 { order: -2; }
  .sw-grid:not(.sw-grid--phone) > .sw-rank-1 { order: -1; }
  .sw-grid--phone > [data-phone-hidden] { display: none; }
  .sw-grid--phone > [data-phone="0"] { order: 0; }
  .sw-grid--phone > [data-phone="1"] { order: 1; }
  .sw-grid--phone > [data-phone="2"] { order: 2; }
  .sw-grid--phone > [data-phone="3"] { order: 3; }
  .sw-grid--phone > [data-phone="4"] { order: 4; }
  .sw-grid--phone > [data-phone="5"] { order: 5; }
  .sw-grid--phone > [data-phone="6"] { order: 6; }
  .sw-grid--phone > [data-phone="7"] { order: 7; }
  .sw-grid--phone > [data-phone="8"] { order: 8; }
  .sw-grid--phone > [data-phone="9"] { order: 9; }
  .sw-grid--phone > [data-phone="10"] { order: 10; }
  .sw-grid--phone > [data-phone="11"] { order: 11; }
  .sw-grid--phone > [data-phone="12"] { order: 12; }
  .sw-grid--phone > [data-phone="13"] { order: 13; }
  .sw-grid--phone > [data-phone="14"] { order: 14; }
  .sw-grid--phone > [data-phone="15"] { order: 15; }
  .sw-grid--phone > [data-phone="16"] { order: 16; }
  .sw-grid--phone > [data-phone="17"] { order: 17; }
  .sw-grid--phone > [data-phone="18"] { order: 18; }
  .sw-grid--phone > [data-phone="19"] { order: 19; }
  .sw-grid--phone > [data-phone="20"] { order: 20; }
  .sw-grid--phone > [data-phone="21"] { order: 21; }
  .sw-grid--phone > [data-phone="22"] { order: 22; }
  .sw-grid--phone > [data-phone="23"] { order: 23; }
  .sw-grid--phone > [data-phone="24"] { order: 24; }
  .sw-grid--phone > [data-phone="25"] { order: 25; }
  .sw-grid--phone > [data-phone="26"] { order: 26; }
  .sw-grid--phone > [data-phone="27"] { order: 27; }
  .sw-grid--phone > [data-phone="28"] { order: 28; }
  .sw-grid--phone > [data-phone="29"] { order: 29; }
  .sw-grid--phone > [data-phone="30"] { order: 30; }
  .sw-grid--phone > [data-phone="31"] { order: 31; }
  .sw-grid--phone > [data-phone="32"] { order: 32; }
  .sw-grid--phone > [data-phone="33"] { order: 33; }
  .sw-grid--phone > [data-phone="34"] { order: 34; }
  .sw-grid--phone > [data-phone="35"] { order: 35; }
  .sw-grid--phone > [data-phone="36"] { order: 36; }
  .sw-grid--phone > [data-phone="37"] { order: 37; }
  .sw-grid--phone > [data-phone="38"] { order: 38; }
  .sw-grid--phone > [data-phone="39"] { order: 39; }
  .sw-grid--phone > [data-phone="40"] { order: 40; }
  .sw-grid--phone > [data-phone="41"] { order: 41; }
  .sw-grid--phone > [data-phone="42"] { order: 42; }
  .sw-grid--phone > [data-phone="43"] { order: 43; }
  .sw-grid--phone > [data-phone="44"] { order: 44; }
  .sw-grid--phone > [data-phone="45"] { order: 45; }
  .sw-grid--phone > [data-phone="46"] { order: 46; }
  .sw-grid--phone > [data-phone="47"] { order: 47; }
  .sw-grid--phone > [data-phone="48"] { order: 48; }
  .sw-grid--phone > [data-phone="49"] { order: 49; }
  .sw-grid--phone > [data-phone="50"] { order: 50; }
  .sw-grid--phone > [data-phone="51"] { order: 51; }
  .sw-grid--phone > [data-phone="52"] { order: 52; }
  .sw-grid--phone > [data-phone="53"] { order: 53; }
  .sw-grid--phone > [data-phone="54"] { order: 54; }
  .sw-grid--phone > [data-phone="55"] { order: 55; }
  .sw-grid--phone > [data-phone="56"] { order: 56; }
  .sw-grid--phone > [data-phone="57"] { order: 57; }
  .sw-grid--phone > [data-phone="58"] { order: 58; }
  .sw-grid--phone > [data-phone="59"] { order: 59; }
  .sw-grid--phone > [data-phone="60"] { order: 60; }
  /* Server tile like S: three core values, without the host line */
  .sw-grid > [id^="tile-"] .sw-mets--3 > .sw-met:nth-child(n+4) { display: none; }
  .sw-grid > [id^="tile-"] .sw-bottom { display: none; }
}
@media (min-width: 768px) {
  .sw-grid > .sw-w--l .sw-uplot { min-height: 0; }
}

/* ---------- login (standalone page, without navigation) ---------- */
.sw-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sw-login-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: var(--space-3); }
.sw-login-brand { justify-content: center; padding: 8px 0 4px; }
.sw-login-form { width: 100%; }
.sw-login-form .sw-input { width: 100%; box-sizing: border-box; }
.sw-login-foot { margin: 0; text-align: center; font-size: 11px; color: var(--text-3); }
.sw-password { position: relative; display: block; }
.sw-password .sw-input { width: 100%; box-sizing: border-box; padding-right: 36px; }
.sw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
/* Consent of the MCP connector (hub/oauth.py) */
.sw-oauth-to { margin-top: 2px; font-size: 12px; overflow-wrap: anywhere; }
.sw-oauth-deny { order: -1; }
@media (max-width: 767px) {
  /* Card in the upper third so the keyboard hides nothing; 16 px: iOS does not zoom. */
  .sw-login { align-items: flex-start; padding-top: 12vh; }
  .sw-login-form .sw-input { height: 44px; font-size: 16px; }
  .sw-login-form .sw-dialog-f .sw-btn { height: 44px; font-size: 16px; flex: 1; }
}

/* ---------- devices and notifications (DS round 1g, artboards 7 and 7b) ---------- */
.sw-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: var(--space-6); }
.sw-set-sp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sw-set .sw-panel { margin: 0; }
.sw-set-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 19px; }
.sw-set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sw-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sw-pill .sw-ico { width: 14px; height: 14px; }
.sw-pill--on { color: var(--text); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); }
.sw-pill--on .sw-ico { color: var(--accent-line); }
.sw-pill--off { color: var(--text-2); background: rgba(255,255,255,.06); }
.sw-pill--blocked { color: var(--warn-text); background: rgba(199,111,48,.18); }
.sw-set-dev { font-size: 12px; color: var(--text-2); }
.sw-set-k { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.sw-set-value { color: var(--text); font-family: var(--font-mono); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.sw-set table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-set th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 7px 14px; border-bottom: 1px solid var(--border); background: var(--panel-hdr); }
.sw-set td { padding: 8px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.sw-set tr:last-child td { border-bottom: 0; }
.sw-set td b { color: var(--text); font-weight: 600; }
.sw-set td form { margin: 0; }
.sw-set .sw-me { font-size: 11px; color: var(--accent-line); margin-left: 6px; font-weight: 600; }
.sw-set-r { text-align: right; }
.sw-nowrap { white-space: nowrap; }
.sw-set-past td, .sw-set-past td b { color: var(--text-3); }
.sw-push-on .sw-ico { color: var(--text-2); }
.sw-push-on--error .sw-ico { color: var(--warn-text); }
.sw-chan { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sw-chan > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.sw-chan .sw-ico { width: 13px; height: 13px; color: var(--text-3); }
.sw-set-note { font-size: 12px; line-height: 17px; color: var(--text-3); padding: 10px 14px; border-top: 1px solid var(--border); }
.sw-phone-only, .sw-set-second { display: none; }
@media (max-width: 767px) {
  /* Phone like artboard 7b: one column: this device, what is reported, devices, then the rest */
  .sw-set { grid-template-columns: minmax(0, 1fr); }
  .sw-set-sp { display: contents; }
  .sw-set-this { order: 1; } .sw-set-what { order: 2; } .sw-set-devices { order: 3; }
  .sw-set-mail { order: 4; } .sw-set-history { order: 5; }
  .sw-set-row .sw-btn { height: 40px; font-size: 14px; }
  .sw-set th, .sw-set td { padding-left: 12px; padding-right: 12px; }
  .sw-phone-only { display: inline; }
  .sw-what th:nth-child(3), .sw-what td:nth-child(3) { display: none; }
  /* Server detail on the phone (DS artboard 2c): alarms, events, then the rest; swap is left
     out there (the tile shows it). Device row in two lines above its mounts. */
  .sw-grid--detail:not(.sw-grid--phone) > #ereignisse { order: -2; }
  .sw-grid--detail:not(.sw-grid--phone) > #verlauf-swap { display: none; }
  .sw-narrow-only .sw-devline { background: rgba(255,255,255,.025); border-top: 1px solid var(--border); gap: 2px 12px; }
  .sw-narrow-only .sw-dev-n { width: 100%; }
  .sw-narrow-only .sw-dev-sp { margin-left: auto; }
  .sw-cpu-h { padding-left: 0; }
  /* Services in one column, the category above the chips (DS artboard 2c) */
  .sw-svc-cats { grid-template-columns: minmax(0, 1fr); }
  .sw-svc-cats > div:first-child > .sw-svc-cat:last-child { border-bottom: 1px solid var(--border); }
  .sw-svc-cat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* "Last active" or "when" moves under the name, otherwise it gets too tight */
  .sw-set-devices th:nth-child(2), .sw-set-devices td:nth-child(2),
  .sw-set-history th:nth-child(3), .sw-set-history td:nth-child(3) { display: none; }
  .sw-set-second { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); margin-top: 2px; }
}

/* ---------- arranging on the phone (DS round 1k, artboard 3c): up, down, hide ---------- */
.sw-arr-open { overflow: hidden; }
.sw-arr-sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sw-arr-sheet-head { display: flex; align-items: center; gap: 8px; height: var(--nav-height); padding: 0 12px; background: var(--nav);
  border-bottom: 1px solid var(--border-strong); position: sticky; top: 0; z-index: 1; font-weight: 600; }
.sw-arr-head { padding: 12px; background: var(--accent-tint); border-bottom: 1px solid var(--accent-line); font-size: 12px; line-height: 17px; color: var(--text-2); }
.sw-arr-head b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.sw-arr { display: flex; flex-direction: column; }
.sw-arr-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 52px;
  padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--border); background: var(--panel); }
.sw-arr-row > .sw-ico { color: var(--text-2); }
.sw-arr-row b { display: block; font-size: 13px; font-weight: 600; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-arr-row small { display: block; font-size: 11px; line-height: 15px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-arr-btns { display: flex; gap: 2px; }
.sw-arr-btns .sw-iconbtn { width: 40px; height: 40px; }
.sw-arr-btns .sw-iconbtn[disabled] { opacity: .3; }
.sw-arr-row--fixed { background: transparent; }
.sw-arr-row--fixed b { color: var(--text-2); }
.sw-arr-fixed { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); padding-right: 8px; }
.sw-arr-row--moved { background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent-line); }
.sw-arr-row--hidden b, .sw-arr-row--hidden small { color: var(--text-3); }
.sw-arr-cap { padding: 14px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.sw-arr-reset { padding: 12px; }
.sw-arr-message { padding: 0 12px; font-size: 12px; color: var(--warn-text); min-height: 16px; }
.sw-arr-bar { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 8px; padding: 12px; background: var(--nav);
  border-top: 1px solid var(--border-strong); }
.sw-arr-bar .sw-btn { flex: 1; justify-content: center; height: 44px; }

/* ---------- acknowledging (DS component Quittieren, rounds 1c to 1f; variant B) ----------
   Taken from the design system's rounds 1d and 1e (chips, block button, "or", hint, sheet), the
   layer fixed instead of absolute as in the previews. Below 768 px the dialog is a sheet. */
.sw-ack-layer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: center;
  justify-content: center; padding: 16px; }
body.sw-ack-open { overflow: hidden; }
.sw-ack { width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.sw-ack .sw-sheet-grip { display: none; width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 2px; }
.sw-ack .sw-dialog-al .sw-badge { white-space: nowrap; }
.sw-ack textarea { width: 100%; box-sizing: border-box; min-height: 48px; line-height: 18px; }
.sw-ack textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-tint); }
.sw-ack textarea.sw-ta--ask, .sw-ack textarea.sw-ta--ask:focus { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn-tint); }
.sw-ack-quick { display: flex; flex-direction: column; gap: 12px; }
.sw-ack-send > span { display: inline-flex; align-items: center; gap: 6px; }
.sw-ack-until { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sw-ack .sw-input { color-scheme: dark; }
.sw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-qchip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.sw-qchip:hover { color: var(--text); border-color: var(--accent-line); }
.sw-qchip[aria-pressed="true"] { background: var(--accent-tint); color: var(--text); border-color: var(--accent-line); }
.sw-btn--block { width: 100%; justify-content: center; height: 36px; font-size: 14px; }
.sw-btn[disabled] { background: rgba(255,255,255,.06); color: var(--text-disabled); cursor: not-allowed; }
.sw-or { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.sw-or::before, .sw-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sw-dialog-hint { margin-right: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
/* Rows: "Quittieren" or "Aufheben" in a column of its own (L), under the time (M) */
.sw-row--al-l.sw-row--tools { grid-template-columns: 96px 220px minmax(0, 1fr) 150px 104px; }
.sw-row--al-m.sw-row--tools { grid-template-areas: "b n w" "b s t"; }
.sw-row--al-m > :nth-child(5) { grid-area: t; }
.sw-al-tool { display: flex; justify-content: flex-end; align-items: flex-start; }
.sw-al-tool .sw-btn--sm { height: 22px; }
/* M with tools on the desktop: "seit …" left of the button, both centred in the row instead of
   stacked in a narrow corner (Tim, 28.11.2026) */
@media (min-width: 768px) {
  .sw-row--al-m.sw-row--tools { grid-template-columns: 92px minmax(0, 1fr) auto auto; grid-template-areas: "b n w t" "b s w t"; }
  .sw-row--al-m.sw-row--tools > :nth-child(4), .sw-row--al-m.sw-row--tools > :nth-child(5) { align-self: center; }
  .sw-row--al-m.sw-row--tools .sw-al-tool { align-items: center; }
  .sw-row--al-m.sw-row--tools .sw-al-tool .sw-btn--sm { height: 28px; min-width: 32px; justify-content: center; }
}
.sw-row--ack .sub .sw-ack-note { color: var(--text-2); }
.sw-row--known { grid-template-columns: auto minmax(0, 1fr); }
.sw-row--known .sub { white-space: normal; color: var(--text-2); }
@media (max-width: 767px) {
  .sw-ack-layer { align-items: flex-end; padding: 0; }
  .sw-ack { width: 100%; max-height: 92vh; border: 0; border-top: 1px solid var(--border-strong); border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 28px rgba(0,0,0,.55); }
  .sw-ack .sw-sheet-grip { display: block; }
  .sw-ack .sw-dialog-h { background: transparent; border-bottom: 0; font-size: 16px; padding: 6px 16px 4px; }
  .sw-ack .sw-dialog-h .sw-iconbtn { display: none; }
  .sw-ack .sw-dialog-b { padding: 8px 16px 10px; }
  .sw-ack .sw-qchip { height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
  .sw-ack textarea { font-size: 16px; line-height: 22px; min-height: 56px; }
  .sw-ack .sw-seg { padding: 3px; }
  .sw-ack .sw-seg button { height: 36px; padding: 0 12px; font-size: 13px; }
  .sw-ack .sw-input { height: 40px; font-size: 16px; }
  .sw-ack .sw-btn--block { height: 48px; font-size: 15px; }
  .sw-ack .sw-dialog-f { flex-direction: column; gap: 8px; padding: 10px 16px 18px; }
  .sw-ack .sw-dialog-f .sw-btn { width: 100%; justify-content: center; height: 44px; font-size: 15px; }
  .sw-ack .sw-dialog-hint { margin: 0 auto; order: 0; }
  .sw-ack .sw-ack-send { order: 1; }
  .sw-ack .sw-ack-cancel { order: 2; background: transparent; }
  .sw-row--al-l.sw-row--tools { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-areas: "b n w" "b s t"; }
  .sw-row--al-l > :nth-child(5) { grid-area: t; }
  .sw-ack-btn-t { display: none; }
  .sw-al-tool .sw-btn--sm { height: 32px; min-width: 36px; justify-content: center; }
  /* News on the phone: key figures two by two, the chips below the text */
  .sw-news-k { grid-template-columns: 1fr; }        /* one per line: number and text side by side need the width */
  .sw-news-k .sw-tile-val { font-size: 26px; line-height: 30px; }
  .sw-row--news { grid-template-columns: minmax(0, 1fr); }
  .sw-row--news .sw-chips-r { justify-content: flex-start; }
}

/* ---------- Tab "WordPress" (Claude Design round 4b, accepted 28.11.2026, classes sw-wp…) ---------- */
/* Shared pieces of the design system that the dashboard had not built yet: severity as bars and a
   word, group headings, the mark "wird ausgenutzt", lists and key-value pairs of the details */
.sw-sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sw-sev-b { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sw-sev-b i { width: 3px; border-radius: 1px; background: currentColor; opacity: .9; }
.sw-sev-b i:nth-child(1) { height: 4px; } .sw-sev-b i:nth-child(2) { height: 7px; }
.sw-sev-b i:nth-child(3) { height: 10px; } .sw-sev-b i:nth-child(4) { height: 12px; }
.sw-sev-b i.o { background: none; box-shadow: inset 0 0 0 1px currentColor; opacity: .55; }
.sw-sev-b.u i { background: none; box-shadow: inset 0 0 0 1px currentColor; opacity: .55; border-radius: 0; }
.sw-sev-w { color: var(--text-2); }
.sw-sev--warn, .sw-sev--warn .sw-sev-w { color: var(--warn-text); }
.sw-sev--crit, .sw-sev--crit .sw-sev-w { color: var(--crit-text); }
.sw-ngrp { padding: 8px 14px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); display: flex; justify-content: space-between; gap: 12px; }
.sw-ngrp-s { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sw-xpl { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-sm); border: 1px solid var(--crit); color: var(--crit-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sw-xpl .sw-ico { width: 13px; height: 13px; }
.sw-seg--lg { padding: 3px; }
.sw-seg--lg button { height: 36px; padding: 0 12px; font-size: 13px; }
.sw-d-sh { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sw-d-sh small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3); font-size: 11px; }
.sw-d-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.sw-d-kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 13px; line-height: 19px; }
.sw-d-kv dt { color: var(--text-2); }
.sw-d-kv dd { margin: 0; min-width: 0; }
.sw-d-kv .mono { font-size: 12px; }

.sw-wp-en { font-style: normal; }
.sw-wph { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; background: var(--panel); border-radius: var(--radius-md); padding: 16px 18px 12px; }
.sw-wph-a { display: flex; gap: 12px; align-items: flex-start; }
.sw-wph-a > .sw-badge { margin-top: 3px; flex: none; }
.sw-wph-t { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.sw-wph-s { font-size: 13px; line-height: 20px; color: var(--text-2); }
.sw-wph-r { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.sw-wph-kz { display: flex; gap: 22px; }
.sw-wph-k { display: flex; flex-direction: column; gap: 2px; }
.sw-wph-k span { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.sw-wph-k b { font-size: 18px; line-height: 22px; font-weight: 300; }
.sw-wph-bars { display: flex; gap: 16px; }
.sw-wph-sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sw-wph-sev b { font-weight: 600; color: var(--text); }
.sw-wph-src { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.sw-wph-src .sw-ico { width: 13px; height: 13px; }
.sw-wph-src.stale { color: var(--text-2); }
.sw-wph-src .sw-badge { margin-right: 2px; }
.sw-wph-s1 { display: inline-flex; align-items: center; gap: 6px; }
.sw-wph-s1 + .sw-wph-s1::before { content: "·"; margin-right: 4px; }
.sw-wp-bar { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.sw-wp-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }
.sw-wp-list { margin: 0; overflow: hidden; }
.sw-wpp, .sw-wps { display: grid; grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.1fr) 16px; gap: 14px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: 13px; line-height: 19px; }
.sw-wps { grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 2fr) 16px; }
.sw-wpp .nm, .sw-wps .nm { display: block; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sw-wpp .nm.mono, .sw-wps .nm.mono { font-size: 13px; font-weight: 500; }
.sw-wpp .sl, .sw-wps .sl { display: block; font-size: 12px; line-height: 17px; color: var(--text-3); overflow-wrap: anywhere; }
.sw-wpp .c3 b { color: var(--text); font-weight: 600; }
.sw-wpp .c3 .sl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-wpp .c4 .sw-sev, .sw-wps .c4 .sw-sev { display: flex; }
.sw-wpp .c5 b, .sw-wps .c5 b { color: var(--text); font-weight: 500; }
.sw-wpp--h { padding-top: 8px; padding-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--text-3); background: var(--panel-hdr); }
.sw-wpp--al, .sw-wpc--al { box-shadow: inset 2px 0 0 var(--warn); }
.sw-wpp--x, .sw-wpc--x { box-shadow: inset 2px 0 0 var(--crit); background: linear-gradient(var(--crit-tint), var(--crit-tint)), var(--panel); }
.sw-wpp--more { grid-template-columns: 96px 1fr 16px; color: var(--text-2); border-bottom: 0; cursor: pointer; list-style: none; }
.sw-wpp--more::-webkit-details-marker { display: none; }
.sw-wp-chev { width: 16px; height: 16px; color: var(--accent-line); margin-top: 2px; transform: rotate(-90deg); transition: transform .15s; }
.sw-wpp--open .sw-wp-chev, details[open] > summary .sw-wp-chev { transform: none; }
.sw-wpp--open { background: var(--accent-tint); border-bottom-color: transparent; }
.sw-wp-nofix { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.sw-wpc { display: none; grid-template-columns: minmax(0, 1fr) 16px; gap: 3px 10px; padding: 12px 14px; min-height: 44px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-2); font-size: 13px; line-height: 19px; }
.sw-wpc > * { grid-column: 1; }
.sw-wpc > .sw-wp-chev { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.sw-wpc-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.sw-wpc-nm { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sw-wpc-nm.mono { font-size: 14px; font-weight: 500; }
.sw-wpc-l b { color: var(--text); font-weight: 500; }
.sw-wp-exp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 14px 14px 124px; background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.sw-wp-exp[hidden] { display: none; }
.sw-wp-exp-c { min-width: 0; }
.sw-wp-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.sw-wp-hit:last-child { border-bottom: 0; }
.sw-wp-hit .n { color: var(--text); overflow-wrap: anywhere; }
.sw-wp-hit .n.mono { font-size: 12.5px; }
.sw-wp-hit .v { text-align: right; white-space: nowrap; color: var(--text-3); }
.sw-wp-hit .v b { color: var(--text); font-weight: 500; }
.sw-wp-rep { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sw-wp-rep:last-child { border-bottom: 0; }
.sw-wp-rep .t { font-size: 12.5px; line-height: 17px; color: var(--text); }
.sw-wp-rep .t a { color: var(--text); text-decoration-color: var(--border-strong); }
.sw-wp-rep .m { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--text-3); }
.sw-wp-rep .m b { color: var(--text); font-weight: 500; }
.sw-wp-more { display: inline-block; margin-top: 6px; color: var(--accent-line); text-decoration: none; font-size: 12.5px; cursor: pointer; }
.sw-wp-all > summary { list-style: none; }
.sw-wp-all > summary::-webkit-details-marker { display: none; }
.sw-wp-quiet { list-style: none; margin: 0; padding: 4px 14px 12px 124px; columns: 2; column-gap: 18px; font-size: 12px; line-height: 20px; }
.sw-wp-quiet li { display: flex; justify-content: space-between; gap: 8px; break-inside: avoid; }
.sw-wp-quiet li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sw-wp-lic { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 8px 12px; font-size: 12px; line-height: 17px; color: var(--text-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.sw-wp-lic > .sw-ico { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.sw-wp-lic > span { flex: 1 1 320px; }
.sw-wp-licdet { flex: 1 0 100%; }
.sw-wp-licdet > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.sw-wp-licdet > summary::-webkit-details-marker { display: none; }
.sw-wp-lics { font-size: 12px; line-height: 17px; color: var(--text-3); margin-top: 6px; }
.sw-wp-lics p { margin: 0 0 6px; }
.sw-wp-ban { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 19px; color: var(--text-2); border: 1px solid var(--border-strong); background: var(--panel); }
.sw-wp-ban > .sw-ico { flex: none; margin-top: 1px; }
.sw-wp-ban b { color: var(--text); }
.sw-wp-ban--stale { border-style: dashed; }
.sw-wp-ban--unknown { border-style: dotted; }
.sw-wp-ban--crit { border-color: var(--crit); }
/* News: one line instead of every report of Wordfence */
.sw-wp-agg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; gap: 4px 16px; align-items: center; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel); color: var(--text-2); text-decoration: none; font-size: 13px; line-height: 19px; }
.sw-wp-agg .t { font-weight: 600; color: var(--text); }
.sw-wp-agg-l { display: inline-flex; }
.sw-wp-agg-s { display: block; font-size: 12px; line-height: 17px; color: var(--text-3); }   /* board 40: source, severities, first task */
/* Overview card WordPress (board 40): sign badge, name over sites and target, severity right */
.sw-wpm { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; text-decoration: none; color: inherit; }
.sw-wpm:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.sw-wpm-t { display: flex; flex-direction: column; min-width: 0; }
.sw-wpm .nm { font-weight: 600; }
.sw-wpm .sub { white-space: normal; }

@media (max-width: 767px) {
  /* Phone (boards 35b, 38b): cards instead of rows, targets of 44 px, one column */
  .sw-wph { grid-template-columns: 1fr; padding: 14px; }
  .sw-wph-a { flex-direction: column; gap: 6px; }
  .sw-wph-t { font-size: 17px; line-height: 23px; }
  .sw-wph-r { align-items: flex-start; }
  .sw-wph-kz { gap: 14px; flex-wrap: wrap; }
  .sw-wph-bars { flex-wrap: wrap; gap: 6px 14px; }
  .sw-wph-src { flex-direction: column; align-items: flex-start; gap: 4px; }   /* one source per line */
  .sw-wph-s1 + .sw-wph-s1::before { content: none; }
  .sw-wp-bar .sw-seg { width: 100%; }
  .sw-wp-bar .sw-seg button { flex: 1; height: 44px; }
  .sw-wp-hint { display: none; }
  .sw-wpp, .sw-wps { display: none; }
  .sw-wpp--more { display: grid; grid-template-columns: minmax(0, 1fr) 16px; min-height: 44px; align-items: center; }
  .sw-wpp--more .c0 { display: none; }
  .sw-wpc { display: grid; }
  .sw-wp-exp { grid-template-columns: 1fr; padding: 4px 14px 14px; }
  .sw-wp-quiet { columns: 1; padding: 4px 14px 12px; font-size: 13px; line-height: 24px; }
  .sw-wp-lic .sw-btn { min-height: 44px; }
  .sw-wp-agg { grid-template-columns: auto minmax(0, 1fr) 16px; }
  .sw-wp-agg > .sw-t3 { display: none; }
}
