/**
 * status.manitu.de
 *
 * Layered on top of Bootstrap 5.3. All colors are defined as tokens below,
 * with a dark variant for [data-bs-theme="dark"] (set by /js/theme.js).
 */


/**
 * Tokens
 */

:root {
	--st-font:            'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--st-brand:           #3f84dd;
	--st-brand-strong:    #2563b8;

	--st-bg:              #f5f7fa;
	--st-surface:         #ffffff;
	--st-border:          #e3e8ef;
	--st-border-strong:   #cdd5df;
	--st-text:            #1d2939;
	--st-muted:           #5d6b82;
	--st-subtle:          #f2f4f7;

	--st-danger:          #d92d20;
	--st-danger-soft:     #fef3f2;
	--st-danger-border:   #fecdca;
	--st-warning:         #b54708;
	--st-warning-soft:    #fffaeb;
	--st-warning-border:  #fedf89;
	--st-info:            #175cd3;
	--st-info-soft:       #eff8ff;
	--st-info-border:     #b2ddff;
	--st-success:         #067647;
	--st-success-soft:    #ecfdf3;
	--st-success-border:  #abefc6;

	--st-radius:          12px;
	--st-radius-sm:       8px;
	--st-shadow:          0 1px 2px rgba(16, 24, 40, 0.05);
	--st-shadow-hover:    0 4px 12px rgba(16, 24, 40, 0.08);
}

[data-bs-theme="dark"] {
	--st-brand:           #6aa6f0;
	--st-brand-strong:    #8dbaf3;

	--st-bg:              #0e1217;
	--st-surface:         #161b22;
	--st-border:          #29303a;
	--st-border-strong:   #3a434f;
	--st-text:            #e6e9ee;
	--st-muted:           #9aa4b2;
	--st-subtle:          #1f252e;

	--st-danger:          #f97066;
	--st-danger-soft:     rgba(240, 68, 56, 0.12);
	--st-danger-border:   rgba(240, 68, 56, 0.40);
	--st-warning:         #fdb022;
	--st-warning-soft:    rgba(247, 144, 9, 0.12);
	--st-warning-border:  rgba(247, 144, 9, 0.40);
	--st-info:            #53b1fd;
	--st-info-soft:       rgba(46, 144, 250, 0.12);
	--st-info-border:     rgba(46, 144, 250, 0.40);
	--st-success:         #47cd89;
	--st-success-soft:    rgba(23, 178, 106, 0.12);
	--st-success-border:  rgba(23, 178, 106, 0.40);

	--st-shadow:          none;
	--st-shadow-hover:    0 4px 12px rgba(0, 0, 0, 0.35);
}


/**
 * Base
 */

html,
body {
	min-height: 100%;
}

body {
	font-family: var(--st-font);
}

.st-body {
	background:              var(--st-bg);
	color:                   var(--st-text);
	font-feature-settings:   'cv11', 'ss01';
	-webkit-font-smoothing:  antialiased;
	display:                 flex;
	flex-direction:          column;
	min-height:              100vh;
}

.st-body :where(a:not(.btn)) {
	color:           var(--st-brand-strong);
	text-decoration: none;
}

.st-body :where(a:not(.btn)):hover {
	text-decoration: underline;
}

.st-container {
	max-width: 960px;
}

.st-main {
	flex:           1 0 auto;
	padding-top:    2rem;
	padding-bottom: 3rem;
}


/**
 * Preview stripe (status-intern)
 */

.st-preview {
	padding:     0.5rem 1rem;
	text-align:  center;
	font-size:   0.875rem;
	color:       #1d2939;
	background:  repeating-linear-gradient(-45deg, #fedf89, #fedf89 12px, #fec84b 12px, #fec84b 24px);
}


/**
 * Header
 */

.st-header {
	background:    var(--st-surface);
	border-bottom: 1px solid var(--st-border);
}

.st-header__inner {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	min-height:      64px;
}

.st-body .st-brand {
	display:         flex;
	align-items:     center;
	gap:             1.125rem;
	text-decoration: none;
}

.st-brand__logo {
	height: 28px;
	width:  auto;
}

.st-brand__label {
	color:       var(--st-muted);
	font-weight: 500;
	font-size:   1.05rem;
	line-height: 1.4;
}

.st-body .st-header__nav a {
	color:       var(--st-muted);
	font-size:   0.875rem;
	font-weight: 500;
}

.st-body .st-header__nav a:hover {
	color: var(--st-text);
}


/**
 * Intro
 */

.st-intro {
	margin-bottom: 1.25rem;
}

.st-intro__title {
	font-size:      1.75rem;
	font-weight:    700;
	letter-spacing: -0.02em;
	margin:         0 0 0.25rem;
}

.st-intro__text {
	color:  var(--st-muted);
	margin: 0;
}


/**
 * Banner (overall status)
 */

.st-banner {
	--c:           var(--st-success);
	--c-soft:      var(--st-success-soft);
	--c-border:    var(--st-success-border);

	display:       flex;
	gap:           1rem;
	padding:       1.25rem 1.5rem;
	background:    var(--c-soft);
	border:        1px solid var(--c-border);
	border-radius: var(--st-radius);
}

.st-banner--danger  { --c: var(--st-danger);  --c-soft: var(--st-danger-soft);  --c-border: var(--st-danger-border);  }
.st-banner--warning { --c: var(--st-warning); --c-soft: var(--st-warning-soft); --c-border: var(--st-warning-border); }
.st-banner--info    { --c: var(--st-info);    --c-soft: var(--st-info-soft);    --c-border: var(--st-info-border);    }

.st-banner__icon {
	flex:            0 0 auto;
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           2.5rem;
	height:          2.5rem;
	border-radius:   50%;
	background:      var(--c);
	color:           #ffffff;
	font-size:       1.4rem;
}

[data-bs-theme="dark"] .st-banner__icon {
	color: var(--st-bg);
}

.st-banner__content {
	min-width: 0;
	flex:      1 1 auto;
}

.st-banner__title {
	font-size:   1.25rem;
	font-weight: 700;
	color:       var(--c);
	margin:      0.35rem 0 0.25rem;
}

.st-banner__text {
	margin: 0;
}

.st-banner__list {
	list-style: none;
	margin:     0.5rem 0 0;
	padding:    0;
}

.st-banner__list li {
	padding: 0.2rem 0;
}

.st-body .st-banner__list a {
	color:       var(--st-text);
	font-weight: 600;
}

.st-banner__list .mdi {
	color: var(--c);
}

.st-banner__type {
	font-weight: 500;
	color:       var(--st-muted);
}

.st-banner__since {
	color:       var(--st-muted);
	font-size:   0.875rem;
	white-space: nowrap;
}

.st-banner__meta {
	margin:               0.75rem 0 0;
	font-size:            0.8125rem;
	color:                var(--st-muted);
	font-variant-numeric: tabular-nums;
}


/**
 * Planned maintenance
 */

.st-planned {
	margin-top:    0.75rem;
	padding:       0.875rem 1.5rem;
	background:    var(--st-surface);
	border:        1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow:    var(--st-shadow);
}

.st-planned__title {
	font-size:      0.75rem;
	font-weight:    600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color:          var(--st-muted);
	margin:         0 0 0.35rem;
}

.st-planned__list {
	list-style: none;
	margin:     0;
	padding:    0;
}

.st-planned__list li {
	padding: 0.15rem 0;
}

.st-body .st-planned__list a {
	color:       var(--st-text);
	font-weight: 600;
}

.st-planned__date {
	color:                var(--st-muted);
	font-size:            0.875rem;
	font-variant-numeric: tabular-nums;
}


/**
 * Areas (status per area, used as filter)
 */

.st-areas {
	display:               grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap:                   0.75rem;
	margin-top:            0.75rem;
}

@media (max-width: 767.98px) {
	.st-areas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.st-body .st-area {
	display:        flex;
	flex-direction: column;
	gap:            0.2rem;
	padding:        0.875rem 1rem;
	background:     var(--st-surface);
	border:         1px solid var(--st-border);
	border-radius:  var(--st-radius);
	box-shadow:     var(--st-shadow);
	color:          var(--st-text);
	transition:     border-color 0.15s, box-shadow 0.15s;
}

.st-body .st-area:hover {
	text-decoration: none;
	border-color:    var(--st-border-strong);
	box-shadow:      var(--st-shadow-hover);
}

.st-body .st-area.is-current {
	border-color: var(--st-brand);
	box-shadow:   0 0 0 1px var(--st-brand);
}

.st-area__name {
	font-weight: 600;
}

.st-area__name .mdi {
	color:       var(--st-muted);
	margin-left: 0.15rem;
}

.st-area__state {
	--c:         var(--st-success);
	display:     flex;
	align-items: center;
	gap:         0.45rem;
	font-size:   0.875rem;
	color:       var(--st-muted);
}

.st-area__state--danger  { --c: var(--st-danger);  color: var(--st-danger);  font-weight: 600; }
.st-area__state--warning { --c: var(--st-warning); color: var(--st-warning); font-weight: 600; }
.st-area__state--info    { --c: var(--st-info);    color: var(--st-info);    font-weight: 600; }

.st-area__planned {
	font-size: 0.8125rem;
	color:     var(--st-muted);
}


/**
 * Status dot
 */

.st-dot {
	flex:          0 0 auto;
	display:       inline-block;
	width:         0.5rem;
	height:        0.5rem;
	border-radius: 50%;
	background:    var(--c, currentColor);
}

.st-area__state--danger .st-dot,
.st-pill--active .st-dot {
	animation: st-pulse 2s ease-out infinite;
}

@keyframes st-pulse {
	0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, currentColor) 55%, transparent); }
	70%  { box-shadow: 0 0 0 6px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.st-dot {
		animation: none !important;
	}
}


/**
 * List head and filter
 */

.st-listhead {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	flex-wrap:       wrap;
	gap:             0.75rem;
	margin:          2.5rem 0 0.5rem;
}

.st-listhead__title {
	font-size:   1.25rem;
	font-weight: 700;
	margin:      0;
}

.st-segmented {
	display:       inline-flex;
	padding:       3px;
	background:    var(--st-subtle);
	border:        1px solid var(--st-border);
	border-radius: 999px;
}

.st-body .st-segmented a {
	padding:       0.3rem 0.9rem;
	border-radius: 999px;
	font-size:     0.875rem;
	font-weight:   500;
	color:         var(--st-muted);
}

.st-body .st-segmented a:hover {
	color:           var(--st-text);
	text-decoration: none;
}

.st-body .st-segmented a.is-current {
	background: var(--st-surface);
	color:      var(--st-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.st-filterinfo {
	font-size: 0.875rem;
	color:     var(--st-muted);
	margin:    0 0 0.5rem;
}


/**
 * Sections
 */

.st-section {
	display:        flex;
	align-items:    center;
	gap:            0.5rem;
	font-size:      0.75rem;
	font-weight:    600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color:          var(--st-muted);
	margin:         1.75rem 0 0.75rem;
}

.st-section__count {
	padding:       0 0.45rem;
	border-radius: 999px;
	background:    var(--st-subtle);
	border:        1px solid var(--st-border);
	font-size:     0.7rem;
	letter-spacing: 0;
}

.st-month {
	font-size:   0.875rem;
	font-weight: 600;
	color:       var(--st-text);
	margin:      1.5rem 0 0.5rem;
}

.st-section + .st-month {
	margin-top: 0;
}


/**
 * Messages
 */

.st-msg {
	--c:           var(--st-danger);
	--c-soft:      var(--st-danger-soft);

	position:      relative;
	overflow:      hidden;
	margin-bottom: 0.75rem;
	padding:       1.25rem 1.5rem 1.25rem 1.75rem;
	background:    var(--st-surface);
	border:        1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow:    var(--st-shadow);
}

.st-msg::before {
	content:    '';
	position:   absolute;
	top:        0;
	bottom:     0;
	left:       0;
	width:      4px;
	background: var(--c);
}

.st-msg--warning { --c: var(--st-warning); --c-soft: var(--st-warning-soft); }
.st-msg--info    { --c: var(--st-info);    --c-soft: var(--st-info-soft);    }

.st-msg--resolved,
.st-msg--obsolete {
	--c-soft: var(--st-subtle);
}

.st-msg--resolved::before,
.st-msg--obsolete::before {
	background: var(--st-border);
}

.st-msg--compact {
	padding: 0.875rem 1.25rem 0.875rem 1.5rem;
}

.st-msg--obsolete .st-msg__title,
.st-msg--obsolete .st-msg__line {
	opacity: 0.65;
}

.st-msg__pills {
	display:       flex;
	flex-wrap:     wrap;
	gap:           0.4rem;
	margin-bottom: 0.4rem;
}

.st-pill {
	display:       inline-flex;
	align-items:   center;
	gap:           0.35rem;
	padding:       0.1rem 0.6rem;
	border-radius: 999px;
	font-size:     0.75rem;
	font-weight:   600;
	line-height:   1.5;
	white-space:   nowrap;
}

.st-pill--type {
	background: var(--c-soft);
	color:      var(--c);
}

.st-msg--resolved .st-pill--type,
.st-msg--obsolete .st-pill--type {
	color: var(--st-muted);
}

.st-msg--resolved .st-pill--type .mdi,
.st-msg--obsolete .st-pill--type .mdi {
	color: var(--c);
}

.st-pill--state {
	background: var(--st-subtle);
	color:      var(--st-muted);
}

.st-pill--active {
	background: var(--c);
	color:      #ffffff;
	--c-dot:    #ffffff;
}

[data-bs-theme="dark"] .st-pill--active {
	color: var(--st-bg);
}

.st-pill--active .st-dot {
	--c:        currentColor;
	background: currentColor;
}

.st-pill--planned {
	background: var(--st-info-soft);
	color:      var(--st-info);
}

.st-pill--resolved {
	background: var(--st-success-soft);
	color:      var(--st-success);
}

.st-msg__title {
	font-size:      1.125rem;
	font-weight:    600;
	line-height:    1.35;
	letter-spacing: -0.01em;
	margin:         0;
}

.st-msg--full .st-msg__title {
	font-size: 1.25rem;
}

.st-body .st-msg__title a {
	color: var(--st-text);
}

.st-body .st-msg__title a:hover {
	color: var(--st-brand-strong);
}

.st-msg__meta {
	display:               grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap:                   0.75rem 1.5rem;
	margin:                1rem 0 0;
	padding:               0.875rem 0;
	border-top:            1px solid var(--st-border);
	border-bottom:         1px solid var(--st-border);
}

.st-msg__meta dt {
	font-size:      0.6875rem;
	font-weight:    600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color:          var(--st-muted);
	margin-bottom:  0.15rem;
}

.st-msg__meta dd {
	margin:               0;
	font-size:            0.9375rem;
	font-variant-numeric: tabular-nums;
}

.st-msg__line {
	display:              flex;
	flex-wrap:            wrap;
	align-items:          center;
	gap:                  0.25rem 0.9rem;
	margin:               0.35rem 0 0;
	font-size:            0.875rem;
	color:                var(--st-muted);
	font-variant-numeric: tabular-nums;
}

/* Time range and duration, each with a muted icon */
.st-msg__when {
	display:     inline-flex;
	align-items: flex-start;
	gap:         0.3rem;
	line-height: 1.5;
}

/* Same line height as the text: centred on the first line, also when the range wraps */
.st-msg__when .mdi {
	font-size:   1rem;
	line-height: 1.3125rem;
	opacity:     0.75;
}

.st-msg__areas {
	display: inline-flex;
	gap:     0.3rem;
}

.st-body .st-chip {
	display:       inline-block;
	padding:       0.05rem 0.5rem;
	border-radius: 6px;
	background:    var(--st-subtle);
	border:        1px solid var(--st-border);
	color:         var(--st-muted);
	font-size:     0.75rem;
	font-weight:   500;
}

.st-body a.st-chip:hover {
	color:           var(--st-text);
	border-color:    var(--st-border-strong);
	text-decoration: none;
}

.st-msg__body {
	margin-top:  1rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.st-update {
	display:     flex;
	align-items: center;
	gap:         0.4rem;
	margin:      1rem 0 0.4rem;
	padding-top: 0.875rem;
	border-top:  1px dashed var(--st-border-strong);
	font-size:   0.875rem;
	font-weight: 600;
	color:       var(--st-text);
	font-variant-numeric: tabular-nums;
}

.st-update .mdi {
	color: var(--st-brand);
}

.st-note {
	display:     flex;
	align-items: center;
	gap:         0.4rem;
	margin-top:  0.875rem;
	font-weight: 600;
}

.st-note--thanks   { color: var(--st-success); }
.st-note--patience { color: var(--st-info); }

.st-msg__foot {
	display:         flex;
	justify-content: space-between;
	gap:             1rem;
	margin-top:      1rem;
	font-size:       0.8125rem;
	color:           var(--st-muted);
	font-variant-numeric: tabular-nums;
}

.st-body .st-msg__foot a {
	color: var(--st-muted);
}

.st-msg__details {
	margin-top: 0.4rem;
}

.st-msg__details summary {
	display:     inline-flex;
	align-items: center;
	gap:         0.25rem;
	cursor:      pointer;
	font-size:   0.8125rem;
	font-weight: 500;
	color:       var(--st-brand-strong);
	list-style:  none;
}

.st-msg__details summary::-webkit-details-marker {
	display: none;
}

.st-msg__details summary::after {
	content:    '';
	width:      0.4rem;
	height:     0.4rem;
	margin-left: 0.15rem;
	border-right:  1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform:  rotate(45deg) translateY(-2px);
	transition: transform 0.15s;
}

.st-msg__details[open] summary::after {
	transform: rotate(-135deg) translateY(-1px);
}

.st-msg__details .st-msg__body {
	margin-top: 0.5rem;
	font-size:  0.9375rem;
}

.st-back {
	margin: 1.25rem 0 0.75rem;
	font-size: 0.875rem;
}


/**
 * Empty state
 */

.st-empty {
	padding:       2.5rem 1rem;
	text-align:    center;
	color:         var(--st-muted);
	background:    var(--st-surface);
	border:        1px dashed var(--st-border-strong);
	border-radius: var(--st-radius);
	margin-top:    1rem;
}

.st-empty .mdi {
	font-size: 2rem;
	color:     var(--st-success);
}

.st-empty p {
	margin: 0.25rem 0 0;
}


/**
 * Pagination (markup from htmlPaginationCalcAndShow)
 */

.st-pagination {
	margin-top: 2rem;
}

.st-pagination .pagination {
	--bs-pagination-color:                 var(--st-text);
	--bs-pagination-bg:                    var(--st-surface);
	--bs-pagination-border-color:          var(--st-border);
	--bs-pagination-hover-color:           var(--st-text);
	--bs-pagination-hover-bg:              var(--st-subtle);
	--bs-pagination-hover-border-color:    var(--st-border-strong);
	--bs-pagination-focus-color:           var(--st-text);
	--bs-pagination-focus-bg:              var(--st-subtle);
	--bs-pagination-active-color:          #ffffff;
	--bs-pagination-active-bg:             var(--st-brand);
	--bs-pagination-active-border-color:   var(--st-brand);
	--bs-pagination-disabled-color:        var(--st-border-strong);
	--bs-pagination-disabled-bg:           var(--st-surface);
	--bs-pagination-disabled-border-color: var(--st-border);
	--bs-pagination-border-radius:         var(--st-radius-sm);
	--bs-pagination-font-size:             0.875rem;
	gap:        0.25rem;
	flex-wrap:  wrap;
	margin:     0;
}

.st-pagination .page-link {
	min-width:    2.25rem;
	text-align:   center;
	border-radius: var(--st-radius-sm) !important;
	margin-left:  0 !important;
	font-variant-numeric: tabular-nums;
}

.st-body .st-pagination .page-link:hover {
	text-decoration: none;
}


/**
 * Footer
 */

.st-footer {
	flex-shrink:  0;
	padding:      1.5rem 0 2rem;
	border-top:   1px solid var(--st-border);
	background:   var(--st-surface);
	font-size:    0.8125rem;
	color:        var(--st-muted);
	font-variant-numeric: tabular-nums;
}

.st-footer p {
	margin: 0 0 0.35rem;
}

.st-body .st-footer a {
	color: var(--st-muted);
	text-decoration: underline;
	text-decoration-color: var(--st-border-strong);
	text-underline-offset: 2px;
}

.st-body .st-footer a:hover {
	color: var(--st-text);
}

.st-footer__links {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.35rem 1.25rem;
	margin-top: 0.75rem !important;
}


/**
 * Small screens
 */

@media (max-width: 575.98px) {

	.st-main {
		padding-top: 1.25rem;
	}

	.st-intro__title {
		font-size: 1.5rem;
	}

	.st-banner {
		padding: 1rem;
		gap:     0.75rem;
	}

	.st-banner__icon {
		width:     2rem;
		height:    2rem;
		font-size: 1.1rem;
	}

	.st-banner__title {
		font-size: 1.1rem;
		margin-top: 0.2rem;
	}

	.st-planned {
		padding: 0.75rem 1rem;
	}

	.st-areas {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.st-body .st-area {
		flex-direction:  row;
		flex-wrap:       wrap;
		align-items:     center;
		justify-content: space-between;
		padding:         0.7rem 1rem;
	}

	.st-area__planned {
		width: 100%;
	}

	.st-msg {
		padding: 1rem 1rem 1rem 1.25rem;
	}

	.st-msg--compact {
		padding: 0.75rem 1rem 0.75rem 1.25rem;
	}

	.st-msg--full .st-msg__title {
		font-size: 1.125rem;
	}

	.st-msg__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/**
 * Admin
 */

.st-container--wide {
	max-width: 1140px;
}

.st-admin .st-header__nav {
	display:     flex;
	align-items: center;
	flex-wrap:   wrap;
	gap:         0.25rem 1.25rem;
}

.st-instance.st-instance--preview {
	background:   var(--st-warning-soft);
	border-color: var(--st-warning-border);
	color:        var(--st-warning);
}

.st-instance {
	display:       inline-flex;
	align-items:   center;
	gap:           0.3rem;
	padding:       0.15rem 0.6rem;
	border-radius: 999px;
	background:    var(--st-subtle);
	border:        1px solid var(--st-border);
	font-size:     0.8125rem;
	font-weight:   600;
	color:         var(--st-text);
}

.st-admin__title {
	margin-bottom: 1.25rem;
}

.st-listhead--admin {
	margin-top: 0;
}

.st-toolbar {
	display: flex;
	gap:     0.5rem;
}

.st-muted {
	color: var(--st-muted);
}

.st-more {
	margin-top: 1rem;
	text-align: center;
}

/* Alerts */

.st-alert {
	--c:           var(--st-info);
	--c-soft:      var(--st-info-soft);
	--c-border:    var(--st-info-border);
	margin-bottom: 1.25rem;
	padding:       0.875rem 1.125rem;
	background:    var(--c-soft);
	border:        1px solid var(--c-border);
	border-left:   4px solid var(--c);
	border-radius: var(--st-radius-sm);
}

.st-alert--success { --c: var(--st-success); --c-soft: var(--st-success-soft); --c-border: var(--st-success-border); }
.st-alert--warning { --c: var(--st-warning); --c-soft: var(--st-warning-soft); --c-border: var(--st-warning-border); }
.st-alert--danger  { --c: var(--st-danger);  --c-soft: var(--st-danger-soft);  --c-border: var(--st-danger-border);  }

.st-alert strong {
	color: var(--c);
}

.st-alert ul {
	margin: 0.35rem 0 0;
}

.st-alert__actions {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.5rem;
	margin-top: 0.6rem;
}

/* Overview rows */

.st-alist {
	background:    var(--st-surface);
	border:        1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow:    var(--st-shadow);
	overflow:      hidden;
}

.st-arow {
	--c:          var(--st-border);
	display:      flex;
	align-items:  center;
	gap:          1rem;
	padding:      0.75rem 1rem 0.75rem 1.25rem;
	border-top:   1px solid var(--st-border);
	box-shadow:   inset 4px 0 0 var(--c);
}

.st-arow:first-child {
	border-top: 0;
}

.st-arow--open.st-arow--danger  { --c: var(--st-danger);  }
.st-arow--open.st-arow--warning { --c: var(--st-warning); }
.st-arow--open.st-arow--info    { --c: var(--st-info);    }

.st-arow__main {
	flex:      1 1 auto;
	min-width: 0;
}

.st-arow .st-msg__pills {
	margin-bottom: 0.2rem;
}

.st-body .st-arow__title {
	display:     block;
	font-weight: 600;
	color:       var(--st-text);
}

.st-arow--obsolete .st-arow__title {
	color:           var(--st-muted);
	text-decoration: line-through;
}

.st-arow__id {
	font-size:            0.75rem;
	color:                var(--st-muted);
	font-variant-numeric: tabular-nums;
	align-self:           center;
}

.st-arow__meta {
	display:              flex;
	flex-wrap:            wrap;
	gap:                  0.2rem 1rem;
	margin-top:           0.15rem;
	font-size:            0.8125rem;
	color:                var(--st-muted);
	font-variant-numeric: tabular-nums;
}

.st-arow__actions {
	flex:        0 0 auto;
	display:     flex;
	flex-wrap:   wrap;
	justify-content: flex-end;
	gap:         0.35rem;
}

.st-pill--danger  { background: var(--st-danger-soft);  color: var(--st-danger);  }
.st-pill--warning { background: var(--st-warning-soft); color: var(--st-warning); }
.st-pill--info    { background: var(--st-info-soft);    color: var(--st-info);    }

.st-pill--status-open     { background: var(--st-text);         color: var(--st-surface); }
.st-pill--status-resolved { background: var(--st-success-soft); color: var(--st-success); }
.st-pill--status-obsolete { background: var(--st-subtle);       color: var(--st-muted);   }
.st-pill--hidden          { background: var(--st-subtle);       color: var(--st-muted);   border: 1px dashed var(--st-border-strong); }

/* Cards and form */

.st-card {
	margin-bottom: 1rem;
	padding:       1.25rem;
	background:    var(--st-surface);
	border:        1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow:    var(--st-shadow);
}

.st-card--subtle {
	background: var(--st-subtle);
	box-shadow: none;
}

.st-card--narrow {
	max-width: 640px;
}

.st-card__title {
	font-size:     1rem;
	font-weight:   700;
	margin:        0 0 0.75rem;
}

.st-card__title small {
	font-weight: 400;
	color:       var(--st-muted);
}

.st-card--rules {
	background:   var(--st-info-soft);
	border-color: var(--st-info-border);
	box-shadow:   none;
}

.st-card--rules .st-card__title .mdi {
	color: var(--st-info);
}

.st-card--rules ul {
	padding-left: 1.1rem;
	margin:       0 0 0.75rem;
	font-size:    0.875rem;
}

.st-card--rules li {
	margin-bottom: 0.3rem;
}

.st-form__grid {
	display:               grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap:                   1rem;
	align-items:           start;
}

.st-admin .form-label,
.st-admin legend.form-label {
	font-size:   0.875rem;
	font-weight: 600;
}

.st-admin .form-control,
.st-admin .form-select {
	border-color: var(--st-border-strong);
}

.st-inline {
	display:     flex;
	align-items: center;
	gap:         0.5rem;
}

.st-inline .btn {
	flex:        0 0 auto;
	white-space: nowrap;
}

.st-checks {
	display:   flex;
	flex-wrap: wrap;
	gap:       0.35rem 1.5rem;
}

.st-mono {
	font-variant-numeric: tabular-nums;
}

.st-textarea {
	min-height:  16rem;
	line-height: 1.6;
}

.st-textbuttons {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.4rem;
	margin-top: 0.5rem;
}

.st-internal {
	margin:    0.75rem 0 0;
	font-size: 0.8125rem;
	color:     var(--st-muted);
}

.st-formbar {
	position:      sticky;
	bottom:        0;
	z-index:       10;
	display:       flex;
	gap:           0.5rem;
	margin:        0 -0.75rem;
	padding:       0.75rem;
	background:    color-mix(in srgb, var(--st-bg) 88%, transparent);
	backdrop-filter: blur(6px);
	border-top:    1px solid var(--st-border);
}

.st-formbar--plain {
	position:   static;
	margin:     1.25rem 0 0;
	padding:    0;
	background: none;
	border:     0;
	backdrop-filter: none;
}

@media (max-width: 767.98px) {

	.st-admin .st-header__inner {
		flex-wrap:      wrap;
		gap:            0.25rem 1rem;
		padding-top:    0.75rem;
		padding-bottom: 0.75rem;
	}

	.st-admin .st-header__nav {
		width: 100%;
	}

}

@media (max-width: 991.98px) {

	.st-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.st-arow {
		flex-direction: column;
		align-items:    stretch;
	}

	.st-arow__actions {
		justify-content: flex-start;
	}

}

/* Sync state */

.st-sync {
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0.35rem 1rem;
	margin:        0 0 1.25rem;
	padding:       0.6rem 1rem;
	border-radius: var(--st-radius-sm);
	border:        1px solid var(--st-border);
	background:    var(--st-surface);
	font-size:     0.875rem;
	color:         var(--st-muted);
}

.st-sync strong {
	color: var(--st-text);
}

.st-sync--ok > .mdi {
	color: var(--st-success);
}

.st-sync--problem {
	background:   var(--st-warning-soft);
	border-color: var(--st-warning-border);
	color:        var(--st-text);
}

.st-sync--problem > .mdi {
	color: var(--st-warning);
}

.st-sync__instance .mdi-check {
	color: var(--st-success);
}

.st-sync__instance .mdi-close {
	color: var(--st-danger);
}
