/*
 * dirtybits device manager — Design Layer 2026 ("Cool · Swiss Grotesk")
 *
 * Ported from the "Sebastian Martens 2026" theme (style.css, 2026 design layer)
 * and _project/Design.md. Single stylesheet — replaces the old Eris base
 * (style_static.css) and the Google-hosted Playfair fonts (fonts.css).
 *
 * Invariants: radius 0 (only the status dot and the app icon are round),
 * one accent blue, hairline rules instead of boxes, Space Mono for every
 * label / meta / number.
 *
 * Breakpoints: 1200px (header nav <-> burger, side rails), 767px (tables scroll).
 */

/*--------------------------------------------------------------
# Fonts (self-hosted, OFL — see assets/fonts/*/OFL.txt)
--------------------------------------------------------------*/

/* Space Grotesk ships as a variable font: one file covers 300–700. */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(../assets/fonts/space-grotesk/space-grotesk-latin-ext.woff2) format("woff2");
	unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(../assets/fonts/space-grotesk/space-grotesk-latin.woff2) format("woff2");
	unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../assets/fonts/space-mono/space-mono-400-latin-ext.woff2) format("woff2");
	unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../assets/fonts/space-mono/space-mono-400-latin.woff2) format("woff2");
	unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../assets/fonts/space-mono/space-mono-700-latin-ext.woff2) format("woff2");
	unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../assets/fonts/space-mono/space-mono-700-latin.woff2) format("woff2");
	unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/

:root {
	/* surfaces — --sm-bg is every light plane, --sm-paper only ever sits on ink */
	--sm-ink: #10141b;
	--sm-bg: #faf6f7;
	--sm-paper: #f5f7fa;

	/* accent */
	--sm-blue: #2863ab;
	--sm-blue-dark: #1c4a86;
	--sm-blue-hover: #4682cc;
	--sm-blue-on-dark: #4c88d3;
	--sm-blue-link-on-dark: #64a1ee;

	/* signal */
	--sm-green: #409d48;

	/* text */
	--sm-text: #44484e;
	--sm-text-strong: #25292f;
	--sm-muted: #535861;
	--sm-on-dark: #e9ebee;
	--sm-on-dark-muted: #7c8088;

	/* lines */
	--sm-rule: #cbced2;
	--sm-rule-faint: #dcdee2;

	/* tinted panel (pre blocks / inset surfaces) */
	--sm-panel: #f1ecee;

	/* type */
	--sm-font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--sm-font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

	/* rhythm — 52px section gutter + an 8-based scale */
	--sm-gutter: 52px;
	--sm-space-1: 8px;
	--sm-space-2: 16px;
	--sm-space-3: 24px;
	--sm-space-4: 32px;
	--sm-space-5: 48px;
	--sm-space-6: 80px;

	/* device status — an extension of the system: it only ships one accent plus
	   the green signal, but the device table needs four legible age steps. */
	--sm-status-ok: var(--sm-green);   /* < 10 min  ONLINE  */
	--sm-status-warn: #c98a2e;         /* < 24 h    IDLE    */
	--sm-status-late: #b5651d;         /* < 7 d     STALE   */
	--sm-status-crit: #b02525;         /* > 7 d     OFFLINE */
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sm-bg);
	color: var(--sm-text);
	font-family: var(--sm-font-display);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--sm-blue);
	text-decoration: none;
}

a:hover {
	color: var(--sm-blue-hover);
}

h1,
h2,
h3,
h4 {
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--sm-text-strong);
	margin: 0 0 0.4em;
}

h1 {
	font-size: clamp(36px, 6vw, 52px);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

h2 {
	font-size: clamp(26px, 4vw, 34px);
	letter-spacing: -0.02em;
}

h3 {
	font-size: 24px;
}

h4 {
	font-size: 19px;
}

h5,
h6 {
	font-family: var(--sm-font-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-muted);
	margin: 0 0 var(--sm-space-2);
}

p {
	margin: 0 0 var(--sm-space-2);
}

/* The recurring mono label: every date, number, nav item and caption. */
.sm-mono {
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--sm-muted);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*--------------------------------------------------------------
# Shell
--------------------------------------------------------------*/

.sm-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 var(--sm-gutter);
}

/* Reveal — body.show is set by ui.js on ready. */
.site-header,
.sm-rail {
	opacity: 0;
	transition: opacity 0.5s ease;
}

body.show .site-header,
body.show .sm-rail {
	opacity: 1;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1 0 auto;
	padding: var(--sm-space-6) 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.site-header {
	background: var(--sm-bg);
	border-bottom: 1px solid var(--sm-ink);
	position: relative;
	z-index: 1000;
}

.site-header .sm-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sm-space-3);
	padding-top: var(--sm-space-3);
	padding-bottom: var(--sm-space-3);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sm-monogram {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
}

.site-title {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--sm-text-strong);
	margin: 0;
}

.site-title a {
	color: inherit;
}

.site-title a:hover {
	color: var(--sm-blue);
}

/* The wordmark's only accent: a blue full stop. */
.site-title a::after {
	content: ".";
	color: var(--sm-blue);
}

.site-tagline {
	display: block;
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-muted);
	margin-top: 3px;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a,
.sm-chrome-link {
	font-family: var(--sm-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sm-muted);
}

.main-navigation a:hover,
.main-navigation .is-current > a,
.sm-chrome-link:hover {
	color: var(--sm-blue);
}

.site-header .sm-header-actions {
	display: flex;
	align-items: center;
	gap: var(--sm-space-3);
}

/* Burger — 3 ink bars, the <i> is the middle one. */
.sidebar-trigger {
	display: none;
	background: transparent;
	border: 0;
	padding: 0;
	width: 40px;
	height: 40px;
	cursor: pointer;
	align-items: center;
	justify-content: flex-end;
}

.sidebar-trigger i {
	position: relative;
	display: inline-block;
	width: 22px;
	height: 2px;
	background: var(--sm-ink);
	vertical-align: middle;
}

.sidebar-trigger i::before,
.sidebar-trigger i::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: var(--sm-ink);
}

.sidebar-trigger i::before {
	top: -7px;
}

.sidebar-trigger i::after {
	top: 7px;
}

.hidden {
	display: none !important;
}

/*--------------------------------------------------------------
# Aside (off-canvas, ink slab)
--------------------------------------------------------------*/

.widget-area {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1100;
	width: min(440px, 100%);
	background: var(--sm-ink);
	color: var(--sm-on-dark-muted);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.35s ease;
}

body.sidebar-opened .widget-area {
	transform: translateX(0);
}

.widget-area .scroll-box {
	display: flex;
	flex-direction: column;
	gap: var(--sm-space-5);
	padding: var(--sm-space-6) var(--sm-gutter);
}

.widget-area .widget-title {
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-blue-on-dark);
	margin: 0 0 var(--sm-space-2);
}

/* primary menu — the big voice */
.sm-aside-primary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sm-aside-primary li + li {
	margin-top: var(--sm-space-2);
}

.sm-aside-primary a {
	display: inline-block;
	font-size: 26px;
	line-height: 1.2;
	color: var(--sm-on-dark);
}

.sm-aside-primary a:hover,
.sm-aside-primary .is-current > a {
	color: var(--sm-blue-link-on-dark);
}

.sm-aside-impressum a {
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sm-on-dark-muted);
}

.sm-aside-impressum a:hover {
	color: var(--sm-blue-link-on-dark);
}

/* login form on ink */
.widget-area label {
	display: block;
}

.widget-area label + label {
	margin-top: var(--sm-space-2);
}

.widget-area input[type="text"],
.widget-area input[type="password"] {
	width: 100%;
	background: transparent;
	border: 1px solid rgba(233, 235, 238, 0.28);
	border-radius: 0;
	color: var(--sm-on-dark);
	font-family: var(--sm-font-display);
	font-size: 16px;
	padding: 15px var(--sm-space-2);
}

.widget-area input::placeholder {
	color: var(--sm-on-dark-muted);
}

.widget-area input:focus {
	border-color: var(--sm-blue-on-dark);
	outline: none;
}

/* Chrome paints autofilled fields near-white — keep them on the ink surface. */
.widget-area input:-webkit-autofill,
.widget-area input:-webkit-autofill:hover,
.widget-area input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--sm-on-dark);
	-webkit-box-shadow: 0 0 0 1000px var(--sm-ink) inset;
	caret-color: var(--sm-on-dark);
}

.widget-area .sm-btn {
	width: 100%;
	margin-top: var(--sm-space-2);
	background: var(--sm-paper);
	color: var(--sm-ink);
}

.widget-area .sm-btn:hover {
	background: var(--sm-blue-on-dark);
	color: var(--sm-paper);
}

.sm-form-error {
	display: none;
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--sm-status-crit);
	margin-top: var(--sm-space-1);
}

.widget-area .sm-form-error {
	color: #e37070;
}

/* close X, top-right */
.close-sidebar {
	position: absolute;
	top: var(--sm-space-3);
	right: var(--sm-space-3);
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.close-sidebar::before,
.close-sidebar::after {
	content: "";
	position: absolute;
	top: 26%;
	left: 19px;
	width: 2px;
	height: 50%;
	background: var(--sm-on-dark);
}

.close-sidebar::before {
	transform: rotate(-45deg);
}

.close-sidebar::after {
	transform: rotate(45deg);
}

.close-sidebar:hover::before,
.close-sidebar:hover::after {
	background: var(--sm-blue-link-on-dark);
}

/* ink wash behind the open aside */
.sm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1050;
	background: rgba(16, 20, 27, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.sidebar-opened .sm-backdrop {
	opacity: 1;
	visibility: visible;
}

/*--------------------------------------------------------------
# Side rails (rotated, >= 1200px only)
--------------------------------------------------------------*/

.sm-rail {
	position: fixed;
	z-index: 999;
	display: none;
	line-height: 1;
	transform-origin: 0 0;
	transform: rotate(-90deg);
	font-family: var(--sm-font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--sm-muted);
}

/* Left rail reads bottom-to-top, hinged on its own top-left corner. Offsets are
   whole pixels off 100vh — fractional vh values land the rotated text on half
   pixels and it renders blurry. The 120px keeps it clear of the footer. */
.menu-social-container {
	left: 50px;
	top: calc(100vh - 120px);
}

/* right rail turns the same way, hinged on its top-right corner so the line
   hangs down the right edge (62px = 50px inset + the ~12px line height). */
.stats-menu-container {
	right: 62px;
	top: calc(100vh - 120px);
	transform-origin: 100% 0;
	/* translateX runs along the rotated text axis, i.e. upwards — it lifts the
	   line by its own length so it ends on the same baseline as the left rail. */
	transform: rotate(-90deg) translateX(100%);
}

.menu-social-container .social-menu-trig {
	display: inline-block;
	background: #fff;
	color: #000;
	border: 1px solid #000;
	padding: 5px 10px;
	margin-right: 28px;
	text-transform: uppercase;
	font-size: 10px;
}

.menu-social-container ul {
	display: inline-block;
	list-style: none;
	margin: 0;
	padding: 0;
	vertical-align: top;
}

.menu-social-container li {
	display: inline-block;
	margin: 0 5px;
}

.menu-social-container a {
	color: var(--sm-muted);
	text-transform: lowercase;
}

.menu-social-container a:hover {
	color: var(--sm-blue);
}

.menu-social-container p {
	display: block;
	margin: 0;
	padding: 1rem 0 0;
	max-width: 375px;
	font-family: var(--sm-font-display);
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sm-text);
}

@media only screen and (min-height: 750px) {
	.menu-social-container p {
		max-width: 450px;
	}
}

@media only screen and (min-height: 900px) {
	.menu-social-container p {
		max-width: 550px;
	}
}

.stats-menu-container .stats_item {
	text-transform: uppercase;
	margin-right: 18px;
}

.stats-menu-container .stats_item:last-child {
	margin-right: 0;
}

.stats-menu-container .stats_item a {
	color: inherit;
}

.stats-menu-container .stats_item span {
	color: var(--sm-blue);
}

/*--------------------------------------------------------------
# Section head
--------------------------------------------------------------*/

.sm-section-head {
	margin-bottom: var(--sm-space-4);
}

.sm-section-head + .sm-section-head {
	margin-top: var(--sm-space-6);
}

.sm-section-head__title {
	font-family: var(--sm-font-mono);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-blue);
	margin: 0;
}

.sm-section-head__sub {
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--sm-muted);
	margin: var(--sm-space-1) 0 0;
}

.sm-block {
	margin-top: var(--sm-space-6);
}

/*--------------------------------------------------------------
# Buttons / inputs
--------------------------------------------------------------*/

.sm-btn {
	display: inline-block;
	background: var(--sm-ink);
	color: var(--sm-paper);
	border: 1px solid var(--sm-ink);
	border-radius: 0;
	font-family: var(--sm-font-display);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.2;
	padding: 16px var(--sm-space-3);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sm-btn:hover {
	background: var(--sm-blue);
	border-color: var(--sm-blue);
	color: var(--sm-paper);
}

.sm-btn--sm {
	font-family: var(--sm-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 12px;
}

.sm-btn--sm + .sm-btn--sm {
	margin-left: var(--sm-space-1);
}

.sm-btn--danger {
	background: transparent;
	color: var(--sm-status-crit);
	border-color: var(--sm-status-crit);
}

.sm-btn--danger:hover {
	background: var(--sm-status-crit);
	border-color: var(--sm-status-crit);
	color: var(--sm-paper);
}

/* quiet secondary action (cancel) */
.sm-btn--ghost,
.um-cancel-pw-btn {
	background: transparent;
	color: var(--sm-muted);
	border-color: var(--sm-rule);
}

.sm-btn--ghost:hover,
.um-cancel-pw-btn:hover {
	background: transparent;
	border-color: var(--sm-ink);
	color: var(--sm-ink);
}

.sm-input,
.sm-form input[type="text"],
.sm-form input[type="email"],
.sm-form input[type="password"],
.sm-form input[type="number"] {
	width: 100%;
	background: transparent;
	border: 1px solid var(--sm-rule);
	border-radius: 0;
	padding: 15px var(--sm-space-2);
	font-family: var(--sm-font-display);
	font-size: 16px;
	color: var(--sm-text-strong);
}

.sm-input:focus,
.sm-form input:focus {
	border-color: var(--sm-blue);
	outline: none;
}

.sm-form {
	max-width: 420px;
}

.sm-form label {
	display: block;
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-muted);
	margin: var(--sm-space-3) 0 var(--sm-space-1);
}

.sm-form label:first-child {
	margin-top: 0;
}

.sm-form .sm-btn {
	margin-top: var(--sm-space-3);
}

/* status messages — mono, token colours, never inline styles */
.sm-msg {
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sm-muted);
	margin-left: var(--sm-space-1);
}

.sm-msg.is-ok {
	color: var(--sm-green);
}

.sm-msg.is-error {
	color: var(--sm-status-crit);
}

.sm-form .sm-msg {
	display: block;
	margin: var(--sm-space-2) 0 0;
}

/* checkbox — square, ink accent */
input[type="checkbox"] {
	accent-color: var(--sm-ink);
	width: 16px;
	height: 16px;
	margin: 0;
	vertical-align: middle;
}

/*--------------------------------------------------------------
# Data table
--------------------------------------------------------------*/

.sm-table-wrap {
	overflow-x: auto;
}

.sm-table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

.sm-table th {
	font-family: var(--sm-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-muted);
	text-align: left;
	white-space: nowrap;
	padding: 0 var(--sm-space-2) var(--sm-space-1) 0;
	border-bottom: 1px solid var(--sm-ink);
}

.sm-table td {
	font-size: 14px;
	color: var(--sm-text-strong);
	padding: 12px var(--sm-space-2) 12px 0;
	border-bottom: 1px solid var(--sm-rule-faint);
	vertical-align: middle;
}

.sm-table th:last-child,
.sm-table td:last-child {
	padding-right: 0;
}

/* quiet zebra so long rows stay trackable across the table */
.sm-table tbody tr:nth-child(even) td {
	background: var(--sm-paper);
}

.sm-table tbody tr:hover td {
	background: var(--sm-panel);
}

/* numbers, IPs, timestamps — always mono */
.sm-cell-mono {
	font-family: var(--sm-font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--sm-text);
	white-space: nowrap;
}

.sm-table input[type="text"],
.sm-table input[type="email"],
.sm-table input[type="number"],
.sm-table input[type="password"] {
	width: 100%;
	min-width: 90px;
	background: transparent;
	border: 1px solid var(--sm-rule);
	border-radius: 0;
	padding: 7px var(--sm-space-1);
	font-family: var(--sm-font-mono);
	font-size: 12px;
	color: var(--sm-text-strong);
}

.sm-table input:focus {
	border-color: var(--sm-blue);
	outline: none;
}

.sm-cell-center {
	text-align: center;
}

/* status — dot + mono label, the only round shape besides the app icon */
.sm-status {
	display: inline-flex;
	align-items: center;
	gap: var(--sm-space-1);
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sm-muted);
	white-space: nowrap;
}

.sm-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sm-muted);
	flex: 0 0 auto;
}

.sm-dot.is-ok {
	background: var(--sm-status-ok);
}

.sm-dot.is-warn {
	background: var(--sm-status-warn);
}

.sm-dot.is-late {
	background: var(--sm-status-late);
}

.sm-dot.is-crit {
	background: var(--sm-status-crit);
}

/* expand row for the hidden offline devices */
.sm-expand-row td {
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sm-muted);
	text-align: center;
	cursor: pointer;
	padding: var(--sm-space-2) 0;
}

.sm-expand-row:hover td {
	color: var(--sm-blue);
	background: transparent;
}

.sm-expand-arrow {
	font-size: 9px;
	margin-right: 6px;
}

.sm-empty {
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--sm-muted);
}

/* filter bar above a table */
.sm-filter-bar {
	display: flex;
	align-items: center;
	gap: var(--sm-space-1);
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sm-muted);
	margin-bottom: var(--sm-space-3);
}

.sm-filter-bar label {
	display: inline-flex;
	align-items: center;
	gap: var(--sm-space-1);
	cursor: pointer;
}

/* password row inside the user table */
.pw-row {
	display: none;
}

.pw-row.active {
	display: table-row;
}

.hidden-row {
	display: none;
}

/*--------------------------------------------------------------
# Footer (dark)
--------------------------------------------------------------*/

.site-footer {
	flex: 0 0 auto;
	background: var(--sm-ink);
	color: var(--sm-on-dark-muted);
	position: relative;
	z-index: 1000;
}

.site-footer .sm-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sm-space-3);
	flex-wrap: wrap;
	padding-top: var(--sm-space-4);
	padding-bottom: var(--sm-space-4);
	font-family: var(--sm-font-mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
}

.site-footer a {
	color: var(--sm-on-dark-muted);
}

.site-footer a:hover {
	color: var(--sm-blue-link-on-dark);
}

.site-footer .sm-footer-title {
	color: var(--sm-blue-on-dark);
	text-transform: uppercase;
}

/*--------------------------------------------------------------
# Cookie bar
--------------------------------------------------------------*/

#cookie-law-info-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1200;
	background: var(--sm-ink) !important;
	color: var(--sm-on-dark-muted) !important;
	font-family: var(--sm-font-mono) !important;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	line-height: 1.6;
	padding: var(--sm-space-2) var(--sm-gutter);
	text-align: left;
}

#cookie-law-info-bar a {
	color: var(--sm-on-dark-muted) !important;
	background: transparent !important;
	text-transform: uppercase;
	margin-left: var(--sm-space-2);
}

#cookie-law-info-bar a:hover {
	color: var(--sm-blue-link-on-dark) !important;
}

#cookie-law-info-again {
	display: none !important;
}

/*--------------------------------------------------------------
# Breakpoints
--------------------------------------------------------------*/

/* Below 1200px the header carries no menu of its own: the aside holds the
   navigation and the rails are gone. One nav control, one switch. */
@media only screen and (max-width: 1199px) {
	.main-navigation {
		display: none;
	}

	.sidebar-trigger {
		display: flex;
	}
}

@media only screen and (min-width: 1200px) {
	.sm-rail {
		display: block;
	}

	/* keep the shell clear of both rotated rails */
	.sm-shell {
		width: min(1180px, 100% - 2 * 260px);
	}
}

@media only screen and (max-width: 767px) {
	:root {
		--sm-gutter: 24px;
	}

	.site-content {
		padding: var(--sm-space-5) 0;
	}

	.widget-area .scroll-box {
		padding: var(--sm-space-5) var(--sm-gutter);
	}

	.site-footer .sm-shell {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sm-space-1);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
