.srah-wrap {
	max-width: none;
}

.srah-wrap h1 {
	padding: 0;
	margin: 0 0 4px;
	font-size: 23px;
	line-height: 1.2;
}

.srah-hero {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	margin: 16px 0;
}

.srah-brand {
	display: flex;
	gap: 12px;
	align-items: center;
}

.srah-brand p,
.srah-credit {
	margin: 0;
	color: #3d4a42;
}

.srah-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
}

.srah-nav a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e7eeea;
	color: #1d3c34;
	text-decoration: none;
}

.srah-nav a[aria-current="page"] {
	background: #1d3c34;
	color: #fff;
}

img.srah-avatar {
	display: block;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px #f0f0f1;
}

.srah-mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	flex: 0 0 auto;
}

.srah-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.srah-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}

.srah-stat,
.srah-panel,
.srah-filters,
.srah-empty,
.srah-note,
.srah-highlight {
	background: #fffcf7;
	border: 1px solid #e4dccb;
	border-radius: 14px;
}

.srah-stat {
	padding: 14px 16px;
}

.srah-stat p {
	margin: 0 0 6px;
	color: #3d4a42;
}

.srah-stat strong {
	font-size: 28px;
	line-height: 1;
	color: #1c2430;
}

.srah-filters {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	margin: 0 0 16px;
}

.srah-filter-grid,
.srah-filter-bar {
	display: grid;
	gap: 12px 16px;
	align-items: end;
}

.srah-filter-grid {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.srah-filter-bar {
	grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto minmax(0, 1fr);
}

.srah-filters p,
.srah-settings p {
	margin: 0;
}

.srah-filters label,
.srah-settings label,
.srah-note label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.srah-filters input[type="search"],
.srah-filters input[type="text"],
.srah-filters input[type="date"],
.srah-filters select,
.srah-settings input[type="text"],
.srah-settings input[type="email"],
.srah-settings input[type="url"],
.srah-settings input[type="number"],
.srah-settings select,
.srah-note textarea,
.srah-note select {
	width: 100%;
	max-width: 100%;
}

.srah-filters input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin: 0 8px 0 0;
	vertical-align: text-bottom;
}

.srah-filter-check label,
.srah-settings .srah-role,
.srah-note summary,
.srah-details summary {
	font-weight: 600;
}

.srah-filter-check label {
	display: flex;
	align-items: center;
	min-height: 30px;
	margin-bottom: 0;
}

.srah-filter-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.srah-timeline {
	position: relative;
	display: grid;
	gap: 12px;
	margin: 0 0 16px;
}

.srah-timeline::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: #d7cbb6;
}

.srah-event {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 8px;
	position: relative;
}

.srah-event-avatar {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	margin-top: 12px;
}

.srah-event-avatar .srah-avatar,
.srah-actor-cell .srah-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px #f0f0f1;
	background: #1f6f8b;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.srah-actor-cell {
	display: flex;
	align-items: center;
	gap: 8px;
}

.srah-actor-cell .srah-event-avatar {
	width: 28px;
	height: 28px;
	margin: 0;
	flex: 0 0 auto;
}

.srah-actor-cell .srah-avatar,
.srah-avatar-sm {
	width: 28px;
	height: 28px;
	box-shadow: none;
	font-size: 12px;
}

.srah-event-body {
	background: #fffcf7;
	border: 1px solid #e4dccb;
	border-left: 4px solid #1f6f8b;
	border-radius: 14px;
	padding: 12px 14px;
}

.srah-severity-notice .srah-event-body {
	border-left-color: #0c5c59;
}

.srah-severity-warning .srah-event-body {
	border-left-color: #8a4b0f;
}

.srah-severity-critical .srah-event-body {
	border-left-color: #9d2c3a;
}

.srah-event-top {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 6px;
}

.srah-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 8px;
	background: #efe7d8;
	color: #1c2430;
	font-size: 12px;
	line-height: 1.6;
}

.srah-pill-warning {
	background: #f3e2cc;
	color: #6d3b0c;
}

.srah-pill-critical {
	background: #f6d9dd;
	color: #7a1f2c;
}

.srah-pill-notice {
	background: #d9ecea;
	color: #0c4543;
}

.srah-pill-info {
	background: #d9e7ee;
	color: #16485c;
}

.srah-pill-repeat {
	background: #efe7d8;
	color: #1c2430;
}

.srah-repeat-times {
	margin: 8px 0 0 1.2em;
}

.srah-event-summary {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.srah-event-meta,
.srah-event time {
	color: #3d4a42;
}

.srah-event-top time {
	margin-left: auto;
	font-size: 12px;
}

.srah-event-meta {
	margin: 0;
}

.srah-details {
	margin-top: 8px;
}

.srah-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px 16px;
	margin: 10px 0;
}

.srah-facts div {
	margin: 0;
}

.srah-facts dt {
	font-weight: 700;
}

.srah-facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.srah-changes {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0;
}

.srah-changes th,
.srah-changes td {
	border-bottom: 1px solid #e4dccb;
	text-align: left;
	vertical-align: top;
	padding: 6px 8px 6px 0;
}

.srah-diff-label {
	display: inline-block;
	min-width: 8em;
	font-weight: 700;
}

.srah-patch {
	margin: 8px 0 4px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
}

.srah-patch-file {
	padding: 6px 12px;
	background: #f6f8fa;
	border-bottom: 1px solid #d0d7de;
	font-weight: 600;
	color: #1f2328;
}

.srah-patch-body {
	overflow-x: auto;
}

.srah-patch-line {
	display: grid;
	grid-template-columns: 2em minmax(0, 1fr);
}

.srah-patch-gutter {
	text-align: center;
	user-select: none;
	opacity: 0.75;
}

.srah-patch-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	padding-right: 12px;
}

.srah-patch-add {
	background: #e6ffec;
	color: #116329;
}

.srah-patch-del {
	background: #ffebe9;
	color: #82071e;
}

.srah-patch-ctx {
	background: #fff;
	color: #1f2328;
}

.srah-patch-gap {
	padding: 2px 12px;
	background: #f6f8fa;
	color: #656d76;
	letter-spacing: 0.2em;
	text-align: center;
}

.srah-patch-note {
	margin: 0;
	padding: 6px 12px;
	background: #fff8c5;
	color: #6a4b16;
}

.srah-thumb {
	display: block;
	margin-bottom: 4px;
	border-radius: 6px;
}

.srah-empty,
.srah-note,
.srah-highlight {
	padding: 16px;
	margin: 0 0 16px;
}

.srah-panel {
	padding: 0 0 8px;
	margin: 0 0 20px;
	overflow: hidden;
}

.srah-empty h2,
.srah-panel h2 {
	margin-top: 0;
}

.srah-bulk {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 12px;
}

.srah-table {
	margin-bottom: 16px;
}

.srah-pager {
	margin: 12px 0 20px;
}

.srah-pager .page-numbers {
	display: inline-block;
	margin-right: 6px;
	padding: 4px 8px;
	border: 1px solid #e4dccb;
	border-radius: 8px;
	background: #fffcf7;
	text-decoration: none;
}

.srah-settings {
	max-width: none;
}

.srah-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
	margin-bottom: 20px;
}

.srah-settings-grid > .srah-panel {
	margin: 0;
}

.srah-panel-head {
	padding: 18px 22px 0;
}

.srah-panel-head h2 {
	margin: 0 0 4px;
	font-size: 16px;
}

.srah-recent {
	margin: 0;
	padding: 8px 22px 18px 40px;
}

.srah-recent li {
	margin: 0 0 8px;
}

.srah-recent time {
	display: inline-block;
	min-width: 12em;
	color: #3d4a42;
}

.srah-panel-head p,
.srah-field .description,
.srah-toggle .description,
.srah-logger .description {
	display: block;
	margin: 4px 0 0;
	color: #3d4a42;
	font-weight: 400;
}

.srah-fields,
.srah-toggles,
.srah-logger-grid {
	padding: 16px 22px 8px;
}

.srah-fields {
	display: grid;
	gap: 16px;
}

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

.srah-fields-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.srah-field {
	min-width: 0;
}

.srah-settings fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.srah-toggles {
	display: grid;
}

.srah-settings .srah-toggle {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #efe7d8;
	font-weight: 500;
}

.srah-toggles .srah-toggle:first-child {
	border-top: 0;
	padding-top: 4px;
}

.srah-toggle input {
	width: 1rem;
	height: 1rem;
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.srah-toggle strong {
	display: block;
}

.srah-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.srah-settings .srah-role {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid #e4dccb;
	border-radius: 999px;
	background: #fff;
	font-weight: 500;
}

.srah-role input {
	margin: 0;
}

.srah-logger-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	padding-bottom: 22px;
}

.srah-settings .srah-logger {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px;
	border: 1px solid #e4dccb;
	border-radius: 12px;
	background: #fff;
	font-weight: 500;
}

.srah-logger input {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.srah-logger strong {
	display: block;
}

.srah-savebar {
	display: flex;
	justify-content: flex-end;
	margin: 4px 0 24px;
}

.srah-savebar .submit {
	margin: 0;
	padding: 0;
}

.srah-maintenance-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	padding: 8px 22px 18px;
}

.srah-maintenance-row form {
	margin: 0;
}

.srah-maintenance-row .submit {
	margin: 0;
	padding: 0;
}

.srah-danger {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	margin-left: auto;
	padding: 10px 12px;
	border: 1px solid #e7c7cc;
	border-radius: 12px;
	background: #fff7f8;
}

.srah-danger .srah-toggle {
	border: 0;
	padding: 0;
}

.srah-segment {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: #efe7d8;
}

.srah-segment .button {
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #1c2430;
}

.srah-segment .button[aria-current="page"] {
	background: #0c5c59;
	color: #f6f3ec;
}

.srah-settings .description,
.srah-panel .description {
	color: #3d4a42;
}

.srah-note textarea {
	min-height: 80px;
}

.srah-widget .srah-event-body {
	padding: 8px 10px;
}

.srah-widget .srah-event-summary {
	font-size: 14px;
}

.srah-timeline-compact::before {
	left: 21px;
}

.srah-wrap a:focus,
.srah-wrap button:focus,
.srah-wrap input:focus,
.srah-wrap select:focus,
.srah-wrap textarea:focus,
.srah-wrap summary:focus {
	outline: 2px solid #0c5c59;
	outline-offset: 2px;
}

@media (max-width: 1200px) {
	.srah-settings-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.srah-hero,
	.srah-bulk {
		display: block;
	}

	.srah-settings-grid,
	.srah-fields-2,
	.srah-fields-3 {
		grid-template-columns: 1fr;
	}

	.srah-danger {
		margin-left: 0;
		width: 100%;
	}

	.srah-filter-bar {
		grid-template-columns: 1fr;
	}

	.srah-filter-actions {
		justify-content: flex-start;
	}

	.srah-hero-actions > .button,
	.srah-filter-actions .button {
		margin-top: 8px;
	}

	.srah-timeline::before {
		display: none;
	}

	.srah-event {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.srah-event-avatar {
		width: 32px;
		height: 32px;
	}
}

@media print {
	.srah-filters,
	.srah-hero-actions,
	.srah-bulk,
	.srah-note,
	.srah-credit {
		display: none;
	}
}
