:root {
	--ink: #07131f;
	--navy: #0b2740;
	--navy-2: #0d2f4a;
	--blue: #17a9d6;
	--cyan: #5bd8f4;
	--coral: #f46f47;
	--green: #14b881;
	--amber: #f0a538;
	--red: #c74337;
	--soft: #f5f9fc;
	--paper: #ffffff;
	--muted: #647386;
	--line: rgba(7, 19, 31, .12);
	--shadow: 0 18px 42px rgba(7, 19, 31, .09);
}

* {
	box-sizing: border-box;
	letter-spacing: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--soft);
	color: var(--ink);
	font-family: Inter, Poppins, Montserrat, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
}

.wiki-page {
	min-height: 100vh;
}

.wiki-header {
	background: rgba(7, 19, 31, .96);
	border-bottom: 1px solid rgba(255, 255, 255, .10);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 20;
}

.wiki-shell {
	margin: 0 auto;
	max-width: 1240px;
	padding: 0 24px;
}

.wiki-header-inner {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 78px;
}

.wiki-brand {
	align-items: center;
	color: #fff;
	display: inline-flex;
	gap: 18px;
	text-decoration: none;
}

.wiki-brand img {
	display: block;
	height: 42px;
	width: auto;
}

.wiki-brand span {
	border-left: 1px solid rgba(255, 255, 255, .22);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	padding-left: 18px;
	text-transform: uppercase;
}

.wiki-top-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

.wiki-user {
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	margin-right: 8px;
	text-align: right;
}

.wiki-user strong {
	color: #fff;
	display: block;
	font-weight: 500;
}

.wiki-layout {
	display: grid;
	gap: 22px;
	grid-template-columns: 250px minmax(0, 1fr);
	padding: 26px 24px 44px;
}

.wiki-sidebar,
.wiki-card,
.wiki-panel,
.wiki-table-wrap,
.wiki-empty {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.wiki-sidebar {
	align-self: start;
	padding: 18px;
	position: sticky;
	top: 102px;
}

.wiki-sidebar-title {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.wiki-side-link {
	align-items: center;
	border-radius: 8px;
	color: #24394e;
	display: flex;
	font-size: 14px;
	gap: 10px;
	justify-content: space-between;
	padding: 10px 12px;
	text-decoration: none;
}

.wiki-side-link:hover,
.wiki-side-link.active {
	background: #eaf6fb;
	color: #06344d;
}

.wiki-main {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.wiki-hero {
	background:
		linear-gradient(90deg, rgba(7, 19, 31, .96), rgba(11, 39, 64, .82)),
		url("viva-hero-backbone.jpg") center/cover no-repeat;
	border-radius: 8px;
	color: #fff;
	overflow: hidden;
	padding: 34px;
}

.wiki-hero p {
	color: rgba(255, 255, 255, .74);
	font-size: 17px;
	margin: 12px 0 0;
	max-width: 760px;
}

.wiki-kicker {
	color: var(--cyan);
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	gap: 10px;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.wiki-kicker::before {
	background: var(--coral);
	border-radius: 999px;
	content: "";
	height: 10px;
	margin-top: 3px;
	width: 10px;
}

.wiki-hero h1,
.wiki-page-title h1 {
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 600;
	line-height: 1;
	margin: 0;
}

.wiki-toolbar {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) 190px auto auto;
}

.wiki-field {
	display: grid;
	gap: 7px;
}

.wiki-field label,
.wiki-label {
	color: #4f6276;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.wiki-input,
.wiki-select,
.wiki-textarea {
	background: #fff;
	border: 1px solid rgba(7, 19, 31, .18);
	border-radius: 8px;
	color: var(--ink);
	min-height: 46px;
	outline: none;
	padding: 11px 13px;
	width: 100%;
}

.wiki-textarea {
	line-height: 1.55;
	min-height: 160px;
	resize: vertical;
}

.wiki-input:focus,
.wiki-select:focus,
.wiki-textarea:focus {
	border-color: rgba(23, 169, 214, .8);
	box-shadow: 0 0 0 4px rgba(23, 169, 214, .12);
}

.wiki-button {
	align-items: center;
	background: #e8f3f8;
	border: 1px solid rgba(7, 19, 31, .12);
	border-radius: 8px;
	color: #08263d;
	cursor: pointer;
	display: inline-flex;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	min-height: 46px;
	padding: 11px 16px;
	text-decoration: none;
	white-space: nowrap;
}

.wiki-button.primary {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.wiki-button.coral {
	background: var(--coral);
	border-color: var(--coral);
	color: #fff;
}

.wiki-button.ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .22);
	color: rgba(255, 255, 255, .84);
}

.wiki-button.danger {
	background: rgba(199, 67, 55, .10);
	border-color: rgba(199, 67, 55, .22);
	color: #9d2d24;
}

.wiki-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wiki-card {
	min-height: 116px;
	padding: 20px;
}

.wiki-card span {
	color: var(--muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.wiki-card strong {
	color: var(--ink);
	display: block;
	font-size: 30px;
	font-weight: 600;
	margin-top: 8px;
}

.wiki-content-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(360px, .95fr) minmax(0, 1.35fr);
}

.wiki-panel {
	overflow: hidden;
}

.wiki-panel-head {
	align-items: center;
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 18px 20px;
}

.wiki-panel-head h2,
.wiki-panel-head h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.wiki-table-wrap {
	overflow: auto;
}

.wiki-table {
	border-collapse: collapse;
	min-width: 720px;
	width: 100%;
}

.wiki-table th,
.wiki-table td {
	border-bottom: 1px solid rgba(7, 19, 31, .08);
	padding: 14px 16px;
	text-align: left;
	vertical-align: top;
}

.wiki-table th {
	background: #eef6fa;
	color: #4b5f73;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.wiki-table td {
	color: #263b4f;
	font-size: 14px;
}

.wiki-table a {
	color: #087da3;
	font-weight: 600;
	text-decoration: none;
}

.wiki-pop-body {
	padding: 22px;
}

.wiki-pop-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.wiki-pill {
	background: #edf5f9;
	border-radius: 999px;
	color: #214258;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
}

.wiki-pill.green {
	background: rgba(20, 184, 129, .12);
	color: #087a56;
}

.wiki-pill.amber {
	background: rgba(240, 165, 56, .16);
	color: #96621a;
}

.wiki-pill.red {
	background: rgba(199, 67, 55, .12);
	color: #9d2d24;
}

.wiki-pop-text h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 8px;
}

.wiki-pop-text p,
.wiki-pop-text li,
.wiki-muted {
	color: var(--muted);
}

.wiki-pop-text p {
	margin: 0 0 12px;
}

.wiki-pop-text ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.wiki-form {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 22px;
}

.wiki-form .full {
	grid-column: 1 / -1;
}

.wiki-check-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wiki-check {
	align-items: center;
	background: #f6fafc;
	border: 1px solid rgba(7, 19, 31, .10);
	border-radius: 8px;
	color: #263b4f;
	display: flex;
	gap: 9px;
	padding: 10px 12px;
}

.wiki-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.wiki-flash {
	border-radius: 8px;
	font-weight: 600;
	padding: 14px 16px;
}

.wiki-flash.ok {
	background: rgba(20, 184, 129, .13);
	color: #087a56;
}

.wiki-flash.error {
	background: rgba(199, 67, 55, .12);
	color: #9d2d24;
}

.wiki-login {
	align-items: center;
	background:
		linear-gradient(90deg, rgba(7, 19, 31, .96), rgba(11, 39, 64, .78)),
		url("viva-hero-backbone.jpg") center/cover no-repeat;
	display: grid;
	min-height: 100vh;
	padding: 32px;
}

.wiki-login-card {
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(255, 255, 255, .62);
	border-radius: 8px;
	box-shadow: 0 28px 70px rgba(0, 0, 0, .24);
	margin: 0 auto;
	max-width: 460px;
	padding: 30px;
	width: 100%;
}

.wiki-login-card img {
	height: 52px;
	width: auto;
}

.wiki-login-card h1 {
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	margin: 24px 0 10px;
}

.wiki-login-card p {
	color: var(--muted);
	margin: 0 0 24px;
}

.wiki-empty {
	padding: 28px;
	text-align: center;
}

.wiki-empty h2 {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 10px;
}

.wiki-code {
	background: #07131f;
	border-radius: 8px;
	color: #e8f8ff;
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
	margin-top: 14px;
	overflow: auto;
	padding: 14px;
	text-align: left;
	white-space: pre-wrap;
}

@media (max-width: 980px) {
	.wiki-layout,
	.wiki-content-grid {
		grid-template-columns: 1fr;
	}

	.wiki-sidebar {
		position: static;
	}

	.wiki-toolbar {
		grid-template-columns: 1fr 1fr;
	}

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

@media (max-width: 680px) {
	.wiki-shell,
	.wiki-layout {
		padding-left: 16px;
		padding-right: 16px;
	}

	.wiki-header-inner,
	.wiki-top-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.wiki-brand span {
		font-size: 20px;
	}

	.wiki-toolbar,
	.wiki-grid,
	.wiki-form,
	.wiki-check-grid {
		grid-template-columns: 1fr;
	}

	.wiki-hero {
		padding: 26px;
	}
}
