.mag-console {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 16px;
}

.mag-console__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(20, 32, 43, 0.14);
	padding-bottom: 18px;
}

.mag-console__header h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.15;
}

.mag-console__header--sub {
	margin-top: 34px;
}

.mag-console__header--sub h2 {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.2;
}

.mag-console__eyebrow {
	margin: 0 0 6px;
	color: #596775;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
}

.mag-console__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.mag-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid #b9c5cf;
	border-radius: 6px;
	background: #fff;
	color: #1f2b35;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.mag-button:hover,
.mag-button:focus {
	background: #f4f8fb;
	color: #111820;
	text-decoration: none;
}

.mag-button--primary {
	border-color: #1f6f8b;
	background: #1f6f8b;
	color: #fff;
}

.mag-button--primary:hover,
.mag-button--primary:focus {
	background: #185b73;
	color: #fff;
}

.mag-button--danger {
	border-color: #b84545;
	color: #8e2d2d;
}

.mag-search {
	display: grid;
	gap: 8px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid #d8e0e6;
	border-radius: 8px;
	background: #f8fafb;
}

.mag-search label {
	font-size: 0.86rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mag-search__row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.mag-search input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
	min-height: 40px;
	border: 1px solid #b9c5cf;
	border-radius: 6px;
	padding: 8px 12px;
	background: #fff;
	color: #1f2b35;
}

.mag-alert,
.mag-empty {
	padding: 18px;
	border: 1px solid #d7b56d;
	border-radius: 8px;
	background: #fff8e8;
}

.mag-empty {
	border-color: #c9d5de;
	background: #f8fafb;
}

.mag-empty h2 {
	margin-top: 0;
	font-size: 1.35rem;
}

.mag-public-list {
	display: grid;
	gap: 18px;
}

.mag-public-card {
	display: grid;
	gap: 8px;
	padding: 18px 0;
	border-bottom: 1px solid #d8e0e6;
}

.mag-public-card:first-child {
	padding-top: 0;
}

.mag-public-card:last-child {
	border-bottom: 0;
}

.mag-public-card h2 {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.2;
}

.mag-public-card h2 a,
.mag-read-more,
.mag-back-link {
	color: #1f6f8b;
	text-decoration: none;
}

.mag-public-card h2 a:hover,
.mag-public-card h2 a:focus,
.mag-read-more:hover,
.mag-read-more:focus,
.mag-back-link:hover,
.mag-back-link:focus {
	color: #185b73;
	text-decoration: underline;
}

.mag-public-card p {
	margin: 0;
}

.mag-meta {
	margin: 0;
	color: #607180;
	font-size: 0.88rem;
	font-weight: 700;
}

.mag-read-more {
	font-weight: 800;
}

.mag-article-detail {
	display: grid;
	gap: 18px;
}

.mag-article-detail__header {
	display: grid;
	gap: 8px;
}

.mag-article-detail__header h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.16;
}

.mag-article-body {
	display: flow-root;
	color: #25323b;
	font-size: 1.02rem;
	line-height: 1.68;
}

.mag-article-body h2 {
	margin: 28px 0 10px;
	font-size: 1.35rem;
	line-height: 1.25;
}

.mag-article-body p {
	margin: 0 0 16px;
}

.mag-article-body blockquote {
	margin: 18px 0;
	padding: 12px 18px;
	border-left: 4px solid #1f6f8b;
	background: #eef6f8;
}

.mag-back-link {
	width: fit-content;
	font-weight: 800;
}

.mag-author-console {
	margin-top: 36px;
	padding-top: 4px;
}

.mag-table-wrap {
	overflow-x: auto;
	border: 1px solid #d8e0e6;
	border-radius: 8px;
}

.mag-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.mag-table th,
.mag-table td {
	padding: 14px;
	border-bottom: 1px solid #e5ebef;
	text-align: left;
	vertical-align: middle;
}

.mag-table tr:last-child td {
	border-bottom: 0;
}

.mag-table__actions {
	width: 330px;
}

.mag-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mag-state {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
}

.mag-state-published {
	background: #e3f4e6;
	color: #19692c;
}

.mag-state-unpublished {
	background: #f0edf8;
	color: #5a3b93;
}

.mag-state-trashed {
	background: #fdebea;
	color: #8c2b26;
}

.mag-form {
	display: grid;
	gap: 22px;
}

.mag-field {
	display: grid;
	gap: 8px;
}

.mag-field label {
	font-weight: 800;
}

.mag-field input[type="text"],
.mag-field select {
	width: 100%;
	max-width: 760px;
	min-height: 42px;
	border: 1px solid #bac7d0;
	border-radius: 6px;
	padding: 8px 11px;
}

.mag-field--compact {
	max-width: 360px;
}

.mag-help {
	margin: 0;
	color: #596775;
}

.mag-form__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	border-top: 1px solid #d8e0e6;
	padding-top: 18px;
}

@media (max-width: 720px) {
	.mag-console__header,
	.mag-form__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.mag-console__menu {
		justify-content: stretch;
	}

	.mag-button {
		width: 100%;
	}

	.mag-search__row {
		align-items: stretch;
		flex-direction: column;
	}

	.mag-table__actions {
		width: auto;
	}
}
