:root {
	--sipav-ink: #101820;
	--sipav-navy: #123653;
	--sipav-navy-strong: #081f34;
	--sipav-steel: #5f7488;
	--sipav-blue: #2563a6;
	--sipav-sky: #dfeaf4;
	--sipav-gold: #d89b2b;
	--sipav-copper: #a65f20;
	--sipav-teal: #177b71;
	--sipav-red: #b42318;
	--sipav-paper: #ffffff;
	--sipav-surface: #f4f7fa;
	--sipav-surface-strong: #e8eef4;
	--sipav-border: #d4dde6;
	--sipav-muted: #5b6978;
	--sipav-radius: 8px;
	--sipav-shadow: 0 14px 32px rgba(16, 24, 32, 0.10);
	--sipav-shadow-soft: 0 6px 18px rgba(16, 24, 32, 0.07);
}

.sipav-wrap,
.sipav-admin-page {
	box-sizing: border-box;
	color: var(--sipav-ink);
	font-family: inherit;
}

.sipav-wrap *,
.sipav-wrap *::before,
.sipav-wrap *::after,
.sipav-admin-page *,
.sipav-admin-page *::before,
.sipav-admin-page *::after {
	box-sizing: border-box;
}

.sipav-wrap {
	background: #fff;
	border: 1px solid rgba(212, 221, 230, 0.72);
	border-radius: var(--sipav-radius);
	margin: 0 auto;
	max-width: 1180px;
	padding: clamp(14px, 2vw, 22px);
	width: 100%;
}

.sipav-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin: 0 auto 14px;
	max-width: 1180px;
	padding: 8px;
	position: sticky;
	top: 12px;
	width: 100%;
	z-index: 30;
}

.admin-bar .sipav-nav {
	top: 44px;
}

.sipav-nav-brand {
	align-items: center;
	background: var(--sipav-navy);
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 8px;
	min-height: 40px;
	padding: 8px 12px;
	text-decoration: none;
}

.sipav-nav-brand:hover,
.sipav-nav-brand:focus {
	color: #fff;
}

.sipav-nav-brand strong {
	font-size: 0.96rem;
	letter-spacing: 0;
	line-height: 1;
}

.sipav-nav-brand span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.sipav-nav-links {
	align-items: center;
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.sipav-nav a,
.sipav-nav summary {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--sipav-navy);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.88rem;
	font-weight: 850;
	line-height: 1.1;
	min-height: 36px;
	padding: 9px 11px;
	text-decoration: none;
	white-space: nowrap;
}

.sipav-nav a:hover,
.sipav-nav a:focus,
.sipav-nav summary:hover,
.sipav-nav summary:focus,
.sipav-nav a.is-active,
.sipav-nav-group.is-active > summary {
	background: var(--sipav-surface);
	border-color: var(--sipav-border);
	color: var(--sipav-navy-strong);
	outline: 0;
}

.sipav-nav a.is-active,
.sipav-nav-group.is-active > summary {
	box-shadow: inset 0 -3px 0 var(--sipav-gold);
}

.sipav-nav-group {
	position: relative;
}

.sipav-nav-group > summary {
	list-style: none;
}

.sipav-nav-group > summary::-webkit-details-marker {
	display: none;
}

.sipav-nav-group > summary::after {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	content: "";
	display: inline-block;
	height: 6px;
	margin-left: 8px;
	transform: rotate(45deg) translateY(-2px);
	width: 6px;
}

.sipav-nav-group[open] > summary::after {
	transform: rotate(-135deg) translateY(-1px);
}

.sipav-nav-group > div {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow);
	display: grid;
	gap: 4px;
	min-width: 210px;
	padding: 6px;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 40;
}

.sipav-nav-group > div a {
	justify-content: flex-start;
	width: 100%;
}

.sipav-hero {
	align-items: stretch;
	background:
		linear-gradient(120deg, rgba(8, 31, 52, 0.98), rgba(18, 54, 83, 0.94) 58%, rgba(23, 123, 113, 0.82)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 36px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow);
	color: #fff;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0 0 20px;
	min-height: 218px;
	overflow: hidden;
	padding: clamp(24px, 4vw, 38px);
	position: relative;
}

.sipav-hero::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-copper));
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 6px;
}

.sipav-hero::after {
	background:
		linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 38% 39%, transparent 39%),
		linear-gradient(135deg, transparent 0 58%, rgba(216, 155, 43, 0.24) 58% 59%, transparent 59%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.sipav-hero > * {
	position: relative;
	z-index: 1;
}

.sipav-hero h2,
.sipav-section-head h2,
.sipav-profile-head h2 {
	color: inherit;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.12;
	margin: 7px 0 10px;
}

.sipav-wrap .sipav-hero h2 {
	color: #fff;
}

.sipav-hero p,
.sipav-section-head p,
.sipav-muted {
	color: var(--sipav-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0;
}

.sipav-hero p {
	color: rgba(255, 255, 255, 0.80);
	max-width: 680px;
}

.sipav-eyebrow {
	align-items: center;
	color: var(--sipav-gold);
	display: inline-flex;
	font-size: 0.74rem;
	font-weight: 800;
	gap: 8px;
	letter-spacing: 0;
	text-transform: uppercase;
}

.sipav-eyebrow::before {
	background: currentColor;
	content: "";
	display: inline-block;
	height: 2px;
	width: 22px;
}

.sipav-score-strip {
	align-content: end;
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	min-width: 210px;
}

.sipav-score-strip-left {
	align-items: flex-start;
	flex-direction: row;
	justify-content: flex-start;
	margin-bottom: 18px;
	min-width: 0;
}

.sipav-badge,
.sipav-status {
	align-items: center;
	background: var(--sipav-paper);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	box-shadow: 0 1px 0 rgba(16, 24, 32, 0.04);
	color: var(--sipav-navy);
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 800;
	gap: 7px;
	line-height: 1;
	min-height: 30px;
	padding: 8px 12px;
	text-transform: capitalize;
	white-space: nowrap;
}

.sipav-badge::before,
.sipav-status::before {
	background: var(--sipav-blue);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 7px;
	width: 7px;
}

.sipav-hero .sipav-badge {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.26);
	box-shadow: none;
	color: #fff;
}

.sipav-badge-gold {
	background: #fff5df;
	border-color: #ecc777;
	color: #734707;
}

.sipav-badge-gold::before {
	background: var(--sipav-gold);
}

.sipav-status-activo,
.sipav-status-aprobada,
.sipav-status-implementada {
	background: #e7f5f1;
	border-color: #b8ddd6;
	color: #0f6259;
}

.sipav-status-activo::before,
.sipav-status-aprobada::before,
.sipav-status-implementada::before {
	background: var(--sipav-teal);
}

.sipav-status-pendiente,
.sipav-status-nueva,
.sipav-status-en_revision,
.sipav-status-en_desarrollo {
	background: #fff5df;
	border-color: #ecc777;
	color: #734707;
}

.sipav-status-pendiente::before,
.sipav-status-nueva::before,
.sipav-status-en_revision::before,
.sipav-status-en_desarrollo::before {
	background: var(--sipav-gold);
}

.sipav-status-bloqueado,
.sipav-status-revocado,
.sipav-status-rechazada {
	background: #fdebea;
	border-color: #f2bab4;
	color: var(--sipav-red);
}

.sipav-status-bloqueado::before,
.sipav-status-revocado::before,
.sipav-status-rechazada::before {
	background: var(--sipav-red);
}

.sipav-dashboard-grid,
.sipav-profile-grid,
.sipav-ranking-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(12, 1fr);
}

.sipav-panel {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
		linear-gradient(90deg, rgba(216, 155, 43, 0.15), transparent 34%);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	grid-column: span 6;
	overflow: hidden;
	padding: 20px;
	position: relative;
}

.sipav-panel::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 4px;
}

.sipav-dashboard-grid > .sipav-panel {
	grid-column: span 3;
}

.sipav-dashboard-grid > .sipav-panel:nth-child(1),
.sipav-dashboard-grid > .sipav-panel:nth-child(2) {
	background:
		linear-gradient(145deg, #ffffff, #f9fbfd),
		repeating-linear-gradient(135deg, rgba(18, 54, 83, 0.08) 0 1px, transparent 1px 14px);
}

.sipav-panel-wide,
.sipav-dashboard-grid > .sipav-panel-wide {
	grid-column: span 6;
}

.sipav-panel-head {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.sipav-panel h2,
.sipav-panel h3 {
	color: var(--sipav-navy);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 12px;
}

.sipav-panel-icon {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-blue));
	border: 1px solid rgba(255, 255, 255, 0.40);
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(18, 54, 83, 0.18);
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.sipav-metric {
	color: var(--sipav-navy-strong);
	font-size: 2.75rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 10px;
}

.sipav-list {
	display: grid;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sipav-list li {
	align-items: center;
	border-bottom: 1px solid rgba(212, 221, 230, 0.82);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-height: 42px;
	padding: 10px 0;
}

.sipav-list li:first-child {
	padding-top: 0;
}

.sipav-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sipav-list small {
	background: var(--sipav-surface);
	border-radius: 999px;
	color: var(--sipav-muted);
	font-size: 0.74rem;
	font-weight: 700;
	padding: 5px 8px;
	white-space: nowrap;
}

.sipav-mini-grid,
.sipav-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sipav-mini-card {
	background:
		linear-gradient(180deg, #ffffff, #f7fafc);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	flex: 1 1 170px;
	min-height: 92px;
	padding: 14px;
	position: relative;
}

.sipav-mini-card::after {
	background: var(--sipav-gold);
	content: "";
	height: 3px;
	inset: auto 14px 12px 14px;
	position: absolute;
}

.sipav-mini-card strong,
.sipav-mini-card span {
	display: block;
}

.sipav-mini-card span {
	color: var(--sipav-muted);
	font-size: 0.84rem;
	margin-top: 4px;
}

.sipav-button,
.sipav-wrap .sipav-button {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-blue));
	border: 1px solid rgba(18, 54, 83, 0.92);
	border-radius: 6px;
	box-shadow: 0 8px 16px rgba(18, 54, 83, 0.16);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.91rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 40px;
	padding: 10px 16px;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sipav-button:hover,
.sipav-button:focus {
	border-color: var(--sipav-gold);
	box-shadow: 0 10px 20px rgba(18, 54, 83, 0.22);
	color: #fff;
	transform: translateY(-1px);
}

.sipav-button-secondary {
	background: #fff;
	border-color: var(--sipav-border);
	box-shadow: none;
	color: var(--sipav-navy);
}

.sipav-button-secondary:hover,
.sipav-button-secondary:focus {
	background: var(--sipav-surface);
	border-color: var(--sipav-gold);
	color: var(--sipav-navy);
}

.sipav-button-small {
	font-size: 0.82rem;
	min-height: 34px;
	padding: 8px 12px;
}

.sipav-section-head {
	background:
		linear-gradient(90deg, rgba(18, 54, 83, 0.08), rgba(216, 155, 43, 0.12), transparent);
	border-left: 5px solid var(--sipav-gold);
	border-radius: var(--sipav-radius);
	margin: 0 0 18px;
	padding: 16px 18px;
}

.sipav-section-head h2 {
	color: var(--sipav-navy);
}

.sipav-tabs {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 18px;
	padding: 4px;
}

.sipav-tab {
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--sipav-muted);
	cursor: pointer;
	font-weight: 800;
	min-height: 36px;
	padding: 8px 13px;
}

.sipav-tab.is-active {
	background: var(--sipav-navy);
	box-shadow: 0 7px 16px rgba(18, 54, 83, 0.20);
	color: #fff;
}

.sipav-rank-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sipav-rank-item {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	display: grid;
	gap: 12px;
	grid-template-columns: 38px 46px minmax(0, 1fr) auto;
	min-height: 74px;
	padding: 12px;
	position: relative;
}

.sipav-rank-item::after {
	background: var(--sipav-surface-strong);
	content: "";
	inset: 12px auto 12px 56px;
	position: absolute;
	width: 1px;
}

.sipav-rank-1 {
	background: linear-gradient(90deg, #fff6df, #ffffff 52%);
	border-color: #ecc777;
	box-shadow: inset 5px 0 0 var(--sipav-gold), var(--sipav-shadow-soft);
}

.sipav-rank-2 {
	box-shadow: inset 5px 0 0 #9aa8b5;
}

.sipav-rank-3 {
	box-shadow: inset 5px 0 0 var(--sipav-copper);
}

.sipav-rank-position {
	align-items: center;
	background: var(--sipav-navy);
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--sipav-border);
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	height: 38px;
	justify-content: center;
	position: relative;
	width: 38px;
	z-index: 1;
}

.sipav-rank-1 .sipav-rank-position {
	background: var(--sipav-gold);
	color: #3b2506;
}

.sipav-avatar,
.sipav-profile-avatar {
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--sipav-border);
	display: block;
	height: 46px;
	object-fit: cover;
	position: relative;
	width: 46px;
	z-index: 1;
}

.sipav-avatar-fallback {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-teal));
	color: #fff;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 900;
	justify-content: center;
}

.sipav-rank-body {
	min-width: 0;
	position: relative;
	z-index: 1;
}

.sipav-rank-body strong,
.sipav-rank-body small {
	display: block;
	overflow-wrap: anywhere;
}

.sipav-rank-body small {
	color: var(--sipav-muted);
	font-size: 0.82rem;
}

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

.sipav-content-card {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	position: relative;
}

.sipav-content-card::before {
	background: linear-gradient(90deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	height: 4px;
	inset: 0 0 auto 0;
	position: absolute;
	z-index: 2;
}

.sipav-card-media {
	aspect-ratio: 16 / 9;
	background:
		linear-gradient(135deg, var(--sipav-surface-strong), #fff),
		repeating-linear-gradient(135deg, rgba(18, 54, 83, 0.08) 0 1px, transparent 1px 12px);
	margin-top: 4px;
	overflow: hidden;
}

.sipav-card-media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sipav-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.sipav-card-meta {
	color: var(--sipav-copper);
	font-size: 0.74rem;
	font-weight: 900;
	text-transform: uppercase;
}

.sipav-card-body h3 {
	color: var(--sipav-navy);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	overflow-wrap: anywhere;
}

.sipav-card-body p {
	color: var(--sipav-muted);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0;
}

.sipav-inline-link {
	color: var(--sipav-blue);
	font-weight: 800;
	text-decoration: none;
}

.sipav-inline-link:hover,
.sipav-inline-link:focus {
	color: var(--sipav-copper);
	text-decoration: underline;
}

.sipav-empty,
.sipav-notice {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-left: 5px solid var(--sipav-blue);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	color: var(--sipav-ink);
	margin: 0 0 18px;
	padding: 14px 16px;
}

.sipav-empty-state {
	align-items: flex-start;
	background:
		linear-gradient(135deg, #ffffff, #f7fafc),
		repeating-linear-gradient(135deg, rgba(18, 54, 83, 0.05) 0 1px, transparent 1px 16px);
	border: 1px solid var(--sipav-border);
	border-left: 5px solid var(--sipav-gold);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 18px;
}

.sipav-empty-state-compact {
	box-shadow: none;
	padding: 14px;
}

.sipav-empty-state strong {
	color: var(--sipav-navy);
	font-weight: 900;
}

.sipav-empty-state p {
	color: var(--sipav-muted);
	line-height: 1.55;
	margin: 0;
}

.sipav-empty-icon {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-blue));
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 900;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.sipav-notice-success {
	background: #eef8f4;
	border-left-color: var(--sipav-teal);
}

.sipav-notice-warning {
	background: #fff7e8;
	border-left-color: var(--sipav-gold);
}

.sipav-notice-error {
	background: #fff0ef;
	border-left-color: var(--sipav-red);
}

.sipav-form {
	background:
		linear-gradient(180deg, #fff, #f9fbfd);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow);
	display: grid;
	gap: 16px;
	max-width: 840px;
	padding: 22px;
	position: relative;
}

.sipav-form-flat {
	background: transparent;
	border: 0;
	box-shadow: none;
	max-width: none;
	padding: 0;
}

.sipav-form-flat::before {
	display: none;
}

.sipav-form::before {
	background: linear-gradient(90deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	height: 4px;
	inset: 0 0 auto 0;
	position: absolute;
}

.sipav-form label,
.sipav-inline-form,
.sipav-admin-inline-form {
	display: grid;
	gap: 7px;
}

.sipav-form span {
	color: var(--sipav-navy);
	font-weight: 800;
}

.sipav-form input,
.sipav-form select,
.sipav-form textarea,
.sipav-inline-form input,
.sipav-inline-form select,
.sipav-admin-inline-form input,
.sipav-admin-inline-form select {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 6px;
	box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.04);
	color: var(--sipav-ink);
	font: inherit;
	min-height: 40px;
	padding: 9px 11px;
	width: 100%;
}

.sipav-form input:focus,
.sipav-form select:focus,
.sipav-form textarea:focus,
.sipav-inline-form input:focus,
.sipav-inline-form select:focus,
.sipav-admin-inline-form input:focus,
.sipav-admin-inline-form select:focus {
	border-color: var(--sipav-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.15);
	outline: 0;
}

.sipav-form textarea {
	resize: vertical;
}

.sipav-form-row {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sipav-profile-head {
	align-items: center;
	background:
		linear-gradient(120deg, #fff, #f8fbfd 70%),
		repeating-linear-gradient(135deg, rgba(18, 54, 83, 0.05) 0 1px, transparent 1px 16px);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	display: grid;
	gap: 18px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	margin-bottom: 16px;
	padding: 22px;
	position: relative;
}

.sipav-profile-head::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 5px;
}

.sipav-profile-avatar {
	height: 112px;
	width: 112px;
}

.sipav-profile-avatar-fallback {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-teal));
	color: #fff;
	display: inline-flex;
	font-size: 2rem;
	font-weight: 900;
	justify-content: center;
}

.sipav-profile-head p {
	color: var(--sipav-muted);
	margin: 0;
	overflow-wrap: anywhere;
}

.sipav-definition-list {
	display: grid;
	gap: 8px 14px;
	grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
	margin: 0;
}

.sipav-definition-list dt {
	color: var(--sipav-muted);
	font-weight: 800;
}

.sipav-definition-list dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.sipav-table-wrap {
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	overflow-x: auto;
}

.sipav-table {
	background: #fff;
	border: 0;
	border-collapse: collapse;
	min-width: 780px;
	width: 100%;
}

.sipav-table th,
.sipav-table td {
	border-bottom: 1px solid var(--sipav-border);
	padding: 13px 12px;
	text-align: left;
	vertical-align: top;
}

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

.sipav-table th {
	background: var(--sipav-navy);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 900;
	text-transform: uppercase;
}

.sipav-table tbody tr:nth-child(even) td {
	background: #f9fbfd;
}

.sipav-table small {
	color: var(--sipav-muted);
	display: block;
	margin-top: 3px;
}

.sipav-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 14px;
}

.sipav-pagination span {
	color: var(--sipav-muted);
	font-size: 0.9rem;
	font-weight: 800;
}

.sipav-inline-form {
	align-items: center;
	grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1fr) auto;
}

.sipav-admin-page .sipav-dashboard-grid {
	margin-top: 20px;
}

.sipav-admin-page .sipav-panel {
	background: #fff;
}

.sipav-wp-table {
	border-color: var(--sipav-border);
	box-shadow: var(--sipav-shadow-soft);
}

.sipav-wp-table th {
	color: var(--sipav-navy);
	font-weight: 800;
}

.sipav-wp-table .sipav-table-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sipav-admin-inline-form {
	align-items: center;
	grid-template-columns: minmax(130px, 0.7fr) minmax(190px, 1fr) auto;
}

.sipav-settings-form {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow-soft);
	margin-top: 16px;
	max-width: 860px;
	padding: 10px 18px;
}

.sipav-public-hero {
	align-items: center;
	background:
		linear-gradient(120deg, rgba(8, 31, 52, 0.98), rgba(18, 54, 83, 0.96) 58%, rgba(23, 123, 113, 0.86)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 34px);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow);
	color: #fff;
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
	min-height: 360px;
	overflow: hidden;
	padding: clamp(26px, 4vw, 44px);
	position: relative;
}

.sipav-public-hero::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 7px;
}

.sipav-public-copy,
.sipav-public-card {
	position: relative;
	z-index: 1;
}

.sipav-public-copy h2 {
	color: #fff;
	font-size: 3.2rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin: 10px 0 16px;
}

.sipav-public-copy p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.04rem;
	line-height: 1.65;
	margin: 0 0 24px;
	max-width: 680px;
}

.sipav-public-card {
	background: rgba(255, 255, 255, 0.11);
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: var(--sipav-radius);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
	padding: 22px;
}

.sipav-public-card strong,
.sipav-public-card p,
.sipav-public-card a {
	display: block;
}

.sipav-public-card strong {
	color: #fff;
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.sipav-public-card p {
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.55;
	margin: 0 0 14px;
}

.sipav-public-card .sipav-inline-link {
	color: #ffd98a;
}

.sipav-public-mark {
	align-items: center;
	background: var(--sipav-gold);
	border-radius: 999px;
	color: #3b2506;
	display: inline-flex;
	font-weight: 900;
	height: 44px;
	justify-content: center;
	margin-bottom: 18px;
	width: 44px;
}

.sipav-login-shell {
	align-items: stretch;
	background:
		linear-gradient(120deg, rgba(8, 31, 52, 0.98), rgba(18, 54, 83, 0.96) 58%, rgba(23, 123, 113, 0.86)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 34px);
	border-radius: var(--sipav-radius);
	box-shadow: var(--sipav-shadow);
	color: #fff;
	display: grid;
	gap: clamp(20px, 4vw, 42px);
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	min-height: 520px;
	overflow: hidden;
	padding: clamp(24px, 4vw, 44px);
	position: relative;
}

.sipav-login-shell::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 7px;
}

.sipav-login-copy,
.sipav-login-card {
	position: relative;
	z-index: 1;
}

.sipav-login-copy {
	align-self: center;
	max-width: 680px;
}

.sipav-login-copy h2 {
	color: #fff;
	font-size: 3.1rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin: 10px 0 16px;
}

.sipav-login-copy p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.04rem;
	line-height: 1.65;
	margin: 0;
}

.sipav-login-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.sipav-login-facts span {
	background: rgba(255, 255, 255, 0.11);
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: 999px;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 9px 12px;
}

.sipav-login-card {
	align-self: center;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--sipav-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	color: var(--sipav-ink);
	display: grid;
	gap: 16px;
	padding: 26px;
}

.sipav-login-card-head {
	border-bottom: 1px solid var(--sipav-border);
	padding-bottom: 14px;
}

.sipav-login-card-head strong,
.sipav-login-card-head span {
	display: block;
}

.sipav-login-card-head strong {
	color: var(--sipav-navy);
	font-size: 1.2rem;
	font-weight: 900;
}

.sipav-login-card-head span {
	color: var(--sipav-muted);
	font-size: 0.9rem;
	margin-top: 3px;
}

.sipav-login-card label {
	display: grid;
	gap: 7px;
}

.sipav-login-card label span,
.sipav-checkbox span {
	color: var(--sipav-navy);
	font-weight: 800;
}

.sipav-login-card input[type="text"],
.sipav-login-card input[type="password"] {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 6px;
	box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.04);
	color: var(--sipav-ink);
	font: inherit;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.sipav-login-card input:focus {
	border-color: var(--sipav-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.15);
	outline: 0;
}

.sipav-login-options {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.sipav-checkbox {
	align-items: center;
	display: inline-flex !important;
	gap: 8px !important;
}

.sipav-checkbox input {
	accent-color: var(--sipav-navy);
}

.sipav-login-foot {
	border-top: 1px solid var(--sipav-border);
	display: grid;
	gap: 8px;
	padding-top: 14px;
}

.sipav-login-foot a,
.sipav-login-foot span {
	color: var(--sipav-muted);
	font-size: 0.88rem;
	line-height: 1.4;
}

.sipav-login-foot a {
	font-weight: 800;
	text-decoration: none;
}

.sipav-login-foot a:hover,
.sipav-login-foot a:focus {
	color: var(--sipav-blue);
	text-decoration: underline;
}

.sipav-status-layout {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.sipav-access-card .sipav-definition-list {
	margin-top: 18px;
}

.sipav-check-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sipav-check-list li {
	color: var(--sipav-muted);
	line-height: 1.5;
	padding-left: 26px;
	position: relative;
}

.sipav-check-list li::before {
	align-items: center;
	background: var(--sipav-teal);
	border-radius: 999px;
	color: #fff;
	content: "✓";
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 900;
	height: 18px;
	justify-content: center;
	left: 0;
	position: absolute;
	top: 2px;
	width: 18px;
}

.sipav-admin-home .sipav-dashboard-grid > .sipav-panel {
	grid-column: span 3;
}

.sipav-admin-home .sipav-panel-wide {
	grid-column: span 12;
}

.sipav-panel,
.sipav-dashboard-grid > .sipav-panel:nth-child(1),
.sipav-dashboard-grid > .sipav-panel:nth-child(2),
.sipav-content-card,
.sipav-form,
.sipav-profile-head,
.sipav-settings-form {
	background: #fff;
}

.sipav-section-head {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-left: 5px solid var(--sipav-gold);
	box-shadow: var(--sipav-shadow-soft);
}

body.sipav-intranet-page {
	background: #f4f7fa;
}

body.sipav-intranet-page .entry-header,
body.sipav-intranet-page .page-header,
body.sipav-intranet-page .hero-section,
body.sipav-intranet-page h1.entry-title,
body.sipav-intranet-page .page-title {
	display: none;
}

body.sipav-intranet-page .entry-content {
	margin-top: 0;
}

body.sipav-intranet-page .site-main,
body.sipav-intranet-page #main {
	background: linear-gradient(180deg, #f7f9fb, #eef3f7);
}

body.login {
	background:
		linear-gradient(135deg, rgba(8, 31, 52, 0.98), rgba(18, 54, 83, 0.95) 60%, rgba(23, 123, 113, 0.88)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 36px);
	min-height: 100vh;
}

body.login::before {
	background: linear-gradient(180deg, var(--sipav-gold), var(--sipav-teal));
	content: "";
	inset: 0 auto 0 0;
	position: fixed;
	width: 8px;
}

body.login #login {
	box-sizing: border-box;
	padding: 6vh 18px 0;
	width: min(430px, 100%);
}

body.login h1 a {
	background: none;
	color: #fff;
	font-size: 2rem;
	font-weight: 900;
	height: auto;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 auto 18px;
	text-indent: 0;
	width: auto;
}

body.login .sipav-login-intro {
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: var(--sipav-radius);
	color: #fff;
	margin: 0 0 14px;
	padding: 16px;
}

body.login .sipav-login-intro strong,
body.login .sipav-login-intro span {
	display: block;
}

body.login .sipav-login-intro strong {
	font-size: 1rem;
	margin-bottom: 6px;
}

body.login .sipav-login-intro span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	line-height: 1.5;
}

body.login form {
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--sipav-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	padding: 26px;
}

body.login label {
	color: var(--sipav-navy);
	font-weight: 800;
}

body.login form .input,
body.login input[type="text"] {
	border: 1px solid var(--sipav-border);
	border-radius: 6px;
	box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.05);
	min-height: 44px;
}

body.login .button-primary {
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-blue));
	border: 0;
	border-radius: 6px;
	font-weight: 800;
	min-height: 40px;
	padding: 0 16px;
}

body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link {
	color: rgba(255, 255, 255, 0.86);
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #ffd98a;
	font-weight: 700;
}

body.login .message,
body.login .notice,
body.login #login_error {
	border-left-color: var(--sipav-gold);
	border-radius: 6px;
}

body.login .sipav-register-note {
	background: #fff7e8;
	border-left: 4px solid var(--sipav-gold);
	border-radius: 6px;
	color: var(--sipav-navy);
	margin: 12px 0 0;
	padding: 10px 12px;
}

@media (max-width: 960px) {
	.sipav-hero,
	.sipav-profile-head {
		grid-template-columns: 1fr;
	}

	.sipav-public-hero,
	.sipav-login-shell,
	.sipav-status-layout {
		grid-template-columns: 1fr;
	}

	.sipav-score-strip {
		align-items: flex-start;
		flex-direction: row;
		justify-content: flex-start;
		min-width: 0;
	}

	.sipav-dashboard-grid > .sipav-panel,
	.sipav-panel,
	.sipav-panel-wide,
	.sipav-dashboard-grid > .sipav-panel-wide {
		grid-column: 1 / -1;
	}

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

	.sipav-admin-home .sipav-dashboard-grid > .sipav-panel {
		grid-column: span 6;
	}
}

@media (max-width: 700px) {
	.sipav-nav {
		align-items: stretch;
		position: static;
	}

	.sipav-nav,
	.sipav-nav-links {
		flex-direction: column;
	}

	.sipav-nav-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: stretch;
		width: 100%;
	}

	.sipav-nav a,
	.sipav-nav summary {
		justify-content: center;
		width: 100%;
	}

	.sipav-nav-brand {
		justify-content: center;
		width: 100%;
	}

	.sipav-nav-group {
		width: 100%;
	}

	.sipav-nav-group > div {
		box-shadow: none;
		margin-top: 6px;
		min-width: 0;
		position: static;
		width: 100%;
	}

	.sipav-wrap {
		padding: 12px;
	}

	.sipav-hero,
	.sipav-panel,
	.sipav-form,
	.sipav-profile-head,
	.sipav-section-head {
		padding: 16px;
	}

	.sipav-content-grid,
	.sipav-form-row {
		grid-template-columns: 1fr;
	}

	.sipav-public-hero {
		min-height: auto;
	}

	.sipav-login-shell {
		min-height: auto;
	}

	.sipav-public-copy h2 {
		font-size: 2.1rem;
	}

	.sipav-login-copy h2 {
		font-size: 2rem;
	}

	.sipav-login-card {
		padding: 18px;
	}

	.sipav-login-options {
		align-items: flex-start;
		flex-direction: column;
	}

	.sipav-rank-item {
		grid-template-columns: 34px 40px minmax(0, 1fr);
	}

	.sipav-rank-item .sipav-badge {
		grid-column: 3;
		justify-self: start;
	}

	.sipav-definition-list,
	.sipav-inline-form,
	.sipav-admin-inline-form {
		grid-template-columns: 1fr;
	}

	.sipav-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.sipav-tab {
		width: 100%;
	}

	.sipav-admin-home .sipav-dashboard-grid > .sipav-panel {
		grid-column: 1 / -1;
	}
}

/* SIPAV frontend shell fixes */
body.sipav-intranet-page #wpadminbar {
	display: none !important;
}

body.sipav-intranet-page header,
body.sipav-intranet-page .ct-header,
body.sipav-intranet-page #header,
body.sipav-intranet-page #masthead,
body.sipav-intranet-page .site-header {
	display: none !important;
}

body.sipav-intranet-page footer:not(.sipav-footer),
body.sipav-intranet-page .ct-footer,
body.sipav-intranet-page #footer,
body.sipav-intranet-page #colophon,
body.sipav-intranet-page .site-footer {
	display: none !important;
}

.sipav-nav-search {
	align-items: center;
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	display: flex;
	flex: 0 0 260px;
	gap: 6px;
	margin: 0;
	min-height: 38px;
	padding: 4px;
}

.sipav-nav-search input[type="search"] {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--sipav-navy-strong);
	font-size: 0.86rem;
	height: 30px;
	margin: 0 !important;
	min-height: 30px;
	outline: 0;
	padding: 4px 8px !important;
	width: 100%;
}

.sipav-nav-search button {
	background: var(--sipav-navy) !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	height: 30px;
	line-height: 1;
	margin: 0 !important;
	min-height: 30px;
	padding: 0 12px !important;
	white-space: nowrap;
}

.sipav-footer {
	color: var(--sipav-steel);
	display: block !important;
	font-size: 0.9rem;
	margin: 34px auto 22px;
	max-width: 1180px;
	padding: 0 12px;
}

@media (max-width: 900px) {
	.sipav-nav-search {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* SIPAV app icon integration */
.sipav-nav-brand {
	align-items: center;
	display: inline-flex;
	gap: 10px;
}

.sipav-brand-mark {
	align-items: center;
	background: #081f34;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(8, 31, 52, 0.16);
	display: inline-flex;
	height: 34px;
	justify-content: center;
	overflow: hidden;
	width: 34px;
}

.sipav-brand-mark img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sipav-brand-text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.05;
}

.sipav-brand-text span {
	color: #8fa0b0;
	font-size: 0.72rem;
	font-weight: 800;
	margin-top: 2px;
	text-transform: uppercase;
}

/* SIPAV 1.4.7 pending improvements */
.sipav-profile-avatar-image {
	object-fit: cover;
}

.sipav-choice-row {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: 10px 0 18px;
}

.sipav-radio-card {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	display: grid;
	gap: 4px;
	padding: 12px;
}

.sipav-radio-card input {
	margin-right: 8px;
}

.sipav-radio-card span {
	color: var(--sipav-navy-strong);
	font-weight: 850;
}

.sipav-radio-card small,
.sipav-muted {
	color: var(--sipav-muted);
}

.sipav-profile-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.sipav-profile-form fieldset:disabled {
	opacity: 0.68;
}

.sipav-ranking-period {
	display: none;
}

.sipav-ranking-period.is-active {
	display: block;
}

.sipav-filter-bar {
	align-items: end;
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 0 0 18px;
	padding: 12px;
}

.sipav-filter-bar label {
	display: grid;
	gap: 5px;
}

.sipav-filter-bar span {
	color: var(--sipav-navy);
	font-size: 0.82rem;
	font-weight: 850;
}

.sipav-checkbox-inline {
	align-items: center;
	display: inline-flex !important;
	gap: 8px !important;
}

.sipav-button-small {
	font-size: 0.82rem;
	min-height: 34px;
	padding: 8px 12px;
}

.sipav-guided-box,
.sipav-tool-card {
	background: linear-gradient(180deg, #ffffff, var(--sipav-surface));
	border: 1px solid var(--sipav-border);
	border-left: 4px solid var(--sipav-gold);
	border-radius: var(--sipav-radius);
	padding: 13px;
}

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

.sipav-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 8px;
}

.sipav-chip {
	background: var(--sipav-sky);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	color: var(--sipav-navy);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 850;
	padding: 5px 9px;
}

.sipav-training-list {
	display: grid;
	gap: 12px;
}

.sipav-training-item {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 14px;
}

.sipav-training-actions {
	align-items: end;
	display: grid;
	gap: 8px;
	justify-items: end;
}

.sipav-training-search {
	width: 100%;
}

.sipav-social-card {
	border-left: 4px solid var(--sipav-teal);
}

.sipav-social-actions {
	align-items: center;
	border-top: 1px solid var(--sipav-border);
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
}

.sipav-reaction-button {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	color: var(--sipav-navy);
	cursor: pointer;
	font-weight: 850;
	padding: 6px 10px;
}

.sipav-reaction-button.is-active {
	background: var(--sipav-navy);
	color: #fff;
}

.sipav-inline-moderation {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.sipav-inline-moderation select {
	max-width: 190px;
}

.sipav-content-card .sipav-card-meta {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.sipav-content-card .sipav-card-meta small {
	color: var(--sipav-muted);
	font-size: 0.76rem;
}

@media (max-width: 700px) {
	.sipav-training-item {
		grid-template-columns: 1fr;
	}

	.sipav-training-actions {
		justify-items: start;
	}
}


/* SIPAV 1.4.9 - attachments, tagging, location, and profile edit controls */
.sipav-attachment-box {
	margin-top: 12px;
}

.sipav-attachment-box input[type="file"] {
	background: #fff;
	border: 1px dashed var(--sipav-border);
	border-radius: 8px;
	padding: 10px;
	width: 100%;
}

.sipav-attachment-box select[multiple] {
	min-height: 118px;
}

.sipav-social-context {
	background: rgba(223, 234, 244, 0.55);
	border: 1px solid var(--sipav-border);
	border-radius: 8px;
	display: grid;
	gap: 5px;
	margin: 10px 0;
	padding: 9px 11px;
}

.sipav-social-context span {
	color: var(--sipav-steel);
	font-size: 0.84rem;
	line-height: 1.35;
}

.sipav-photo-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	margin: 12px 0;
}

.sipav-photo-grid a {
	border: 1px solid var(--sipav-border);
	border-radius: 8px;
	display: block;
	overflow: hidden;
}

.sipav-photo-grid img {
	aspect-ratio: 1 / 1;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sipav-file-list {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	margin: 12px 0;
	padding: 10px;
}

.sipav-file-list strong {
	color: var(--sipav-navy-strong);
	font-size: 0.85rem;
}

.sipav-file-list a {
	align-items: center;
	color: var(--sipav-blue);
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.sipav-file-list a::before {
	content: "📎";
	margin-right: 6px;
}

.sipav-profile-avatar-shell {
	display: inline-flex;
	flex: 0 0 auto;
	position: relative;
}

.sipav-profile-title {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sipav-icon-button {
	align-items: center;
	background: var(--sipav-paper);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	box-shadow: var(--sipav-shadow-soft);
	color: var(--sipav-navy);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 900;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 34px;
}

.sipav-icon-button:hover,
.sipav-icon-button:focus {
	background: var(--sipav-surface);
	color: var(--sipav-navy-strong);
	outline: 2px solid rgba(37, 99, 166, 0.16);
}

.sipav-profile-photo-edit {
	bottom: -2px;
	position: absolute;
	right: -4px;
}

.sipav-profile-actions {
	margin-top: 10px;
}

.sipav-profile-edit-panel[hidden] {
	display: none !important;
}

.sipav-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.sipav-button-secondary {
	background: #fff !important;
	border: 1px solid var(--sipav-border) !important;
	color: var(--sipav-navy) !important;
}

@media (max-width: 700px) {
	.sipav-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sipav-profile-title {
		align-items: flex-start;
	}
}


/* SIPAV 1.4.14 - composer, tag autocomplete, video/training and app access */
.sipav-composer-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.sipav-composer-fields {
	display: grid;
	gap: 12px;
}

.sipav-post-preview {
	position: sticky;
	top: 82px;
	align-self: start;
}

.sipav-preview-card {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 14px;
	box-shadow: var(--sipav-shadow-soft);
	overflow: hidden;
	padding: 14px;
}

.sipav-preview-head {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.sipav-preview-avatar {
	align-items: center;
	background: var(--sipav-navy);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 900;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.sipav-preview-head small {
	color: var(--sipav-steel);
	display: block;
	font-size: 0.78rem;
}

.sipav-preview-card h3 {
	font-size: 1.05rem;
	margin: 0 0 7px;
}

.sipav-preview-card p {
	color: var(--sipav-muted);
	line-height: 1.45;
	margin: 0 0 10px;
	white-space: pre-wrap;
}

.sipav-preview-context {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 10px;
	color: var(--sipav-steel);
	font-size: 0.84rem;
	margin: 10px 0;
	padding: 8px 10px;
}

.sipav-preview-media {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 10px;
}

.sipav-preview-media img {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--sipav-border);
	border-radius: 10px;
	object-fit: cover;
	width: 100%;
}

.sipav-preview-video {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-teal));
	border-radius: 10px;
	color: #fff;
	display: flex;
	font-weight: 800;
	min-height: 120px;
	justify-content: center;
	padding: 12px;
	text-align: center;
}

.sipav-preview-actions {
	border-top: 1px solid var(--sipav-border);
	display: flex;
	justify-content: space-around;
	margin-top: 12px;
	padding-top: 10px;
}

.sipav-preview-actions span {
	color: var(--sipav-steel);
	font-size: 0.82rem;
	font-weight: 800;
}

.sipav-tag-picker {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 10px;
	min-height: 46px;
	padding: 8px;
	position: relative;
}

.sipav-tag-picker input[type="text"] {
	border: 0 !important;
	box-shadow: none !important;
	min-height: 32px;
	outline: 0;
	padding: 4px !important;
	width: 100%;
}

.sipav-tag-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sipav-tag-chip {
	align-items: center;
	background: #e9f2fb;
	border: 1px solid #cbdff1;
	border-radius: 999px;
	color: var(--sipav-navy);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 800;
	gap: 6px;
	padding: 5px 8px 5px 10px;
}

.sipav-tag-chip button {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-weight: 900;
	line-height: 1;
	padding: 0;
}

.sipav-tag-results {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 10px;
	box-shadow: var(--sipav-shadow);
	left: 0;
	max-height: 260px;
	overflow: auto;
	padding: 6px;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 80;
}

.sipav-tag-result {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--sipav-navy);
	cursor: pointer;
	display: grid;
	padding: 8px 10px;
	text-align: left;
	width: 100%;
}

.sipav-tag-result:hover,
.sipav-tag-result:focus {
	background: var(--sipav-surface);
	outline: 0;
}

.sipav-tag-result small,
.sipav-tag-result-empty {
	color: var(--sipav-steel);
	font-size: 0.78rem;
}

.sipav-video-embed {
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	margin-top: 12px;
	overflow: hidden;
}

.sipav-video-embed iframe {
	height: 100% !important;
	width: 100% !important;
}

.sipav-badge-draft {
	background: #eef2f7;
	border-color: #d2d9e3;
	color: var(--sipav-steel);
	margin-bottom: 8px;
}

.sipav-app-access-form {
	align-items: end;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1fr) minmax(130px, 0.8fr);
	min-width: 520px;
}

.sipav-app-access-form label {
	display: grid;
	gap: 4px;
}

.sipav-app-access-form label span {
	font-size: 0.74rem;
	font-weight: 800;
}

.sipav-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	grid-column: 1 / -1;
}

@media (max-width: 980px) {
	.sipav-composer-grid {
		grid-template-columns: 1fr;
	}

	.sipav-post-preview {
		position: static;
	}

	.sipav-app-access-form {
		min-width: 0;
		grid-template-columns: 1fr;
	}
}


/* SIPAV 1.4.22 - profile badges and gamification settings */
.sipav-badge-collection-block {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.sipav-badge-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sipav-badge-card {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 800;
	border: 1px solid rgba(15, 46, 76, 0.12);
}

.sipav-badge-card-unlocked {
	background: #fff6d8;
	color: #7a4c00;
}

.sipav-badge-card-locked {
	background: #eef3f8;
	color: #5c6f83;
}

.sipav-profile-avatar-asset {
	display: block;
	margin-top: 6px;
}

.sipav-admin-check-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 3px 0;
}

.sipav-admin-user-checks {
	max-height: 280px;
	overflow: auto;
	padding: 10px 12px;
	border: 1px solid #ccd6e0;
	border-radius: 8px;
	background: #fff;
}


/* SIPAV 1.4.23 - visual gamification catalog */
.sipav-gamification-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.sipav-avatar-catalog-grid {
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}

.sipav-gamification-card {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(15, 46, 76, 0.12);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-height: 166px;
	padding: 12px 10px;
	text-align: center;
}

.sipav-gamification-card strong {
	color: var(--sipav-navy);
	font-size: 0.82rem;
	line-height: 1.18;
}

.sipav-gamification-card small {
	color: var(--sipav-muted);
	font-size: 0.72rem;
	line-height: 1.22;
}

.sipav-gamification-card span {
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 900;
	padding: 4px 8px;
}

.sipav-gamification-card-unlocked {
	background: linear-gradient(180deg, #fff9e7, #ffffff);
}

.sipav-gamification-card-unlocked span {
	background: #fff0bd;
	color: #7a4c00;
}

.sipav-gamification-card-locked {
	background: #f4f7fb;
	opacity: 0.62;
}

.sipav-gamification-card-locked span {
	background: #e3eaf2;
	color: #5c6f83;
}

.sipav-gamification-card-equipped {
	border-color: #ffc233;
	box-shadow: 0 10px 26px rgba(255, 194, 51, 0.18);
}

.sipav-gamification-image {
	height: 62px;
	object-fit: contain;
	width: 62px;
}

/* App presentation and unified user access panel */
.sipav-app-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, #062b61 0%, #0a4a9f 50%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
    margin-bottom: 22px;
}
.sipav-app-landing-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    color: #fff;
}
.sipav-app-landing-copy p {
    max-width: 720px;
    color: rgba(255,255,255,.86);
    font-size: 1.05rem;
}
.sipav-app-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.sipav-app-landing-card {
    border-radius: 26px;
    padding: 24px;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.sipav-app-landing-card img {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    display: block;
    margin: 0 auto 14px;
}
.sipav-app-landing-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.18rem;
}
.sipav-app-screenshot-section {
    margin: 22px 0;
}
.sipav-section-head-compact h3 {
    margin: 0;
}
.sipav-app-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.sipav-app-screenshot-card {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}
.sipav-app-screenshot-card img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #eef5fb;
}
.sipav-app-screenshot-card figcaption {
    padding: 12px 14px;
    font-weight: 800;
    color: #0f172a;
}
.sipav-admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.sipav-admin-summary-grid strong {
    display: block;
    font-size: 2rem;
    color: #062b61;
    line-height: 1;
}
.sipav-admin-summary-grid span {
    color: #64748b;
    font-weight: 700;
}
.sipav-user-access-table td {
    vertical-align: top;
}
.sipav-user-access-table small,
.sipav-user-access-table span {
    display: block;
}
.sipav-user-access-table select,
.sipav-user-access-table input[type="text"],
.sipav-user-access-table input[type="date"] {
    width: 100%;
    max-width: 260px;
}
.sipav-panel-flush {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.sipav-panel-flush .sipav-video-carousel-block {
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}
@media (max-width: 860px) {
    .sipav-app-landing-hero,
    .sipav-app-screenshot-grid,
    .sipav-admin-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Microsoft sign-in */
.sipav-microsoft-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .16);
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    margin: 12px 0 10px;
}
.sipav-microsoft-button:hover,
.sipav-microsoft-button:focus {
    color: #062b61;
    border-color: rgba(6, 43, 97, .35);
    box-shadow: 0 12px 28px rgba(6, 43, 97, .14);
}
.sipav-microsoft-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f25022 0%, #7fba00 34%, #00a4ef 68%, #ffb900 100%);
    color: #fff;
    font-size: 15px;
    line-height: 1;
}
.sipav-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 8px;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}
.sipav-login-divider::before,
.sipav-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(100, 116, 139, .24);
}

/* Google sign-in */
.sipav-google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .16);
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    margin: 12px 0 10px;
}
.sipav-google-button:hover,
.sipav-google-button:focus {
    color: #062b61;
    border-color: rgba(6, 43, 97, .35);
    box-shadow: 0 12px 28px rgba(6, 43, 97, .14);
}
.sipav-google-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4285f4;
    border: 1px solid rgba(15, 23, 42, .18);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}


.sipav-button-danger {
	background: #a83232 !important;
	border-color: #a83232 !important;
	color: #fff !important;
}

.sipav-button-danger:hover,
.sipav-button-danger:focus {
	background: #7f2424 !important;
	border-color: #7f2424 !important;
	color: #fff !important;
}

/* SIPAV 1.4.56 - mobile clarity and duplicate access request lock */
.sipav-access-request-locked {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: var(--sipav-radius);
	display: grid;
	gap: 12px;
	padding: 14px;
}

.sipav-request-summary {
	display: grid;
	gap: 8px 12px;
	grid-template-columns: max-content minmax(0, 1fr);
	margin: 0;
}

.sipav-request-summary dt {
	color: var(--sipav-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.sipav-request-summary dd {
	color: var(--sipav-navy-strong);
	font-weight: 800;
	margin: 0;
	overflow-wrap: anywhere;
}

.sipav-button:disabled,
.sipav-wrap .sipav-button:disabled {
	background: #eef3f8 !important;
	border-color: var(--sipav-border) !important;
	box-shadow: none !important;
	color: var(--sipav-muted) !important;
	cursor: not-allowed;
	transform: none !important;
}

@media (max-width: 700px) {
	body {
		overflow-x: hidden;
	}

	.sipav-wrap {
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 10px;
	}

	.sipav-nav {
		border-radius: 0;
		box-shadow: none;
		margin-bottom: 10px;
		padding: 8px;
	}

	body.sipav-intranet-page .sipav-nav,
	.sipav-nav {
		align-items: stretch;
		gap: 8px;
	}

	body.sipav-intranet-page .sipav-nav-links,
	.sipav-nav-links {
		display: grid;
		flex: 1 1 100%;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
		justify-content: stretch;
	}

	body.sipav-intranet-page .sipav-nav a,
	body.sipav-intranet-page .sipav-nav summary,
	.sipav-nav a,
	.sipav-nav summary {
		justify-content: center;
		font-size: 0.78rem;
		min-height: 38px;
		padding: 8px 6px;
		text-align: center;
		white-space: normal;
	}

	body.sipav-intranet-page .sipav-nav-search,
	.sipav-nav-search {
		display: none !important;
	}

	.sipav-nav-brand {
		flex: 1 1 100%;
		justify-content: center;
		min-height: 42px;
	}

	.sipav-hero,
	.sipav-public-hero,
	.sipav-login-shell,
	.sipav-app-landing-hero {
		border-radius: 0;
		gap: 14px;
		margin-left: -10px;
		margin-right: -10px;
		padding: 18px 16px;
	}

	.sipav-public-hero,
	.sipav-login-shell,
	.sipav-app-landing-hero {
		background: linear-gradient(135deg, #081f34, #123653 62%, #177b71);
	}

	.sipav-public-card,
	.sipav-login-facts,
	.sipav-app-screenshot-section {
		display: none;
	}

	.sipav-public-copy h2,
	.sipav-login-copy h2,
	.sipav-app-landing-copy h2,
	.sipav-hero h2,
	.sipav-section-head h2,
	.sipav-profile-head h2 {
		font-size: 1.55rem;
		line-height: 1.12;
		margin: 6px 0 8px;
	}

	.sipav-public-copy p,
	.sipav-login-copy p,
	.sipav-app-landing-copy p,
	.sipav-hero p,
	.sipav-section-head p,
	.sipav-muted {
		font-size: 0.9rem;
		line-height: 1.45;
	}

	.sipav-dashboard-grid,
	.sipav-profile-grid,
	.sipav-ranking-grid {
		gap: 10px;
	}

	.sipav-panel,
	.sipav-login-card,
	.sipav-access-request-panel,
	.sipav-profile-head,
	.sipav-section-head,
	.sipav-form {
		border-radius: 8px;
		box-shadow: none;
		padding: 14px;
	}

	.sipav-panel::before,
	.sipav-section-head {
		border-left-width: 4px;
	}

	.sipav-metric {
		font-size: 2rem;
		margin-bottom: 6px;
	}

	.sipav-button,
	.sipav-wrap .sipav-button,
	.sipav-google-button,
	.sipav-microsoft-button {
		border-radius: 8px;
		min-height: 44px;
		width: 100%;
	}

	.sipav-actions,
	.sipav-app-landing-actions,
	.sipav-form-actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.sipav-login-shell {
		grid-template-columns: 1fr;
	}

	.sipav-login-card {
		gap: 12px;
	}

	.sipav-login-card-head {
		padding-bottom: 10px;
	}

	.sipav-access-request-form {
		display: grid;
		gap: 10px;
	}

	.sipav-request-summary {
		grid-template-columns: 1fr;
	}

	.sipav-rank-item {
		grid-template-columns: 32px 38px minmax(0, 1fr);
		min-height: 64px;
		padding: 10px;
	}

	.sipav-rank-position {
		height: 32px;
		width: 32px;
	}

	.sipav-avatar,
	.sipav-profile-avatar {
		height: 38px;
		width: 38px;
	}

	.sipav-content-card,
	.sipav-mini-card,
	.sipav-empty-state {
		box-shadow: none;
	}

	.sipav-app-landing-card {
		align-items: center;
		border-radius: 10px;
		display: flex;
		gap: 12px;
		padding: 12px;
		text-align: left;
	}

	.sipav-app-landing-card img {
		border-radius: 10px;
		height: 54px;
		margin: 0;
		width: 54px;
	}

	.sipav-footer {
		font-size: 0.78rem;
		margin: 18px auto;
		text-align: center;
	}
}

/* SIPAV 1.4.57 - real mobile shell and compact intranet components */
.sipav-nav-current,
.sipav-mobile-more,
.sipav-bottom-nav {
	display: none;
}

.sipav-mobile-more {
	margin-left: auto;
	position: relative;
}

.sipav-mobile-more > summary {
	list-style: none;
}

.sipav-mobile-more > summary::-webkit-details-marker,
.sipav-bottom-content > summary::-webkit-details-marker {
	display: none;
}

.sipav-mobile-more > div {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 16px;
	box-shadow: var(--sipav-shadow);
	display: grid;
	gap: 6px;
	min-width: min(300px, calc(100vw - 32px));
	padding: 8px;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 90;
}

.sipav-mobile-more > div a {
	justify-content: flex-start;
	width: 100%;
}

.sipav-mobile-steps {
	display: none;
}

@media (max-width: 899px) {
	html {
		scroll-padding-bottom: 96px;
	}

	body.sipav-intranet-page {
		background: #eef4f8;
	}

	body.sipav-intranet-page {
		padding-bottom: 88px;
	}

	body.sipav-intranet-page .sipav-nav,
	.sipav-nav {
		align-items: center;
		background: rgba(255, 255, 255, 0.98);
		border-radius: 0 0 18px 18px;
		box-shadow: 0 8px 22px rgba(16, 24, 32, 0.10);
		gap: 10px;
		margin: 0 auto 12px;
		max-width: 100%;
		min-height: 68px;
		padding: 10px 16px;
		position: sticky;
		top: 0;
		z-index: 70;
	}

	body.sipav-intranet-page .sipav-nav-brand,
	.sipav-nav-brand {
		border-radius: 14px;
		flex: 0 0 auto;
		min-height: 46px;
		padding: 9px 12px;
	}

	.sipav-brand-text span {
		display: none;
	}

	.sipav-nav-current {
		color: var(--sipav-navy-strong);
		display: block;
		flex: 1 1 auto;
		font-size: 0.92rem;
		font-weight: 900;
		line-height: 1.15;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.sipav-intranet-page .sipav-nav-links,
	.sipav-nav-links,
	body.sipav-intranet-page .sipav-nav-search,
	.sipav-nav-search {
		display: none !important;
	}

	.sipav-mobile-more {
		display: block;
	}

	body.sipav-intranet-page .sipav-mobile-more > summary,
	.sipav-mobile-more > summary {
		background: var(--sipav-surface);
		border: 1px solid var(--sipav-border);
		border-radius: 14px;
		color: var(--sipav-navy);
		font-size: 0.82rem;
		min-height: 44px;
		padding: 10px 12px;
	}

	.sipav-bottom-nav {
		align-items: stretch;
		background: rgba(255, 255, 255, 0.98);
		border: 1px solid rgba(212, 221, 230, 0.92);
		border-radius: 20px;
		box-shadow: 0 18px 36px rgba(16, 24, 32, 0.18);
		display: grid;
		gap: 4px;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		left: 12px;
		padding: 6px;
		position: fixed;
		right: 12px;
		bottom: 12px;
		z-index: 80;
	}

	.sipav-bottom-nav a,
	.sipav-bottom-nav summary {
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 14px;
		color: var(--sipav-muted);
		cursor: pointer;
		display: flex;
		flex-direction: column;
		font-size: 0.72rem;
		font-weight: 900;
		gap: 3px;
		justify-content: center;
		line-height: 1.05;
		min-height: 54px;
		padding: 6px 4px;
		text-align: center;
		text-decoration: none;
	}

	.sipav-bottom-nav a > span,
	.sipav-bottom-nav summary > span {
		align-items: center;
		background: #eef4f8;
		border: 1px solid var(--sipav-border);
		border-radius: 999px;
		color: var(--sipav-navy);
		display: inline-flex;
		font-size: 0.68rem;
		height: 24px;
		justify-content: center;
		width: 24px;
	}

	.sipav-bottom-nav a.is-active,
	.sipav-bottom-content.is-active > summary,
	.sipav-bottom-nav a:focus,
	.sipav-bottom-nav summary:focus {
		background: #edf6f5;
		color: var(--sipav-navy-strong);
		outline: 0;
	}

	.sipav-bottom-nav a.is-active > span,
	.sipav-bottom-content.is-active > summary > span {
		background: var(--sipav-navy);
		border-color: var(--sipav-navy);
		color: #fff;
	}

	.sipav-bottom-content {
		position: relative;
	}

	.sipav-bottom-content > div {
		background: #fff;
		border: 1px solid var(--sipav-border);
		border-radius: 18px;
		box-shadow: 0 18px 42px rgba(16, 24, 32, 0.22);
		display: grid;
		gap: 6px;
		left: 50%;
		max-height: min(360px, calc(100vh - 150px));
		min-width: min(320px, calc(100vw - 32px));
		overflow: auto;
		padding: 8px;
		position: absolute;
		bottom: calc(100% + 12px);
		transform: translateX(-50%);
	}

	.sipav-bottom-content > div a {
		align-items: center;
		background: var(--sipav-surface);
		border: 1px solid var(--sipav-border);
		border-radius: 12px;
		color: var(--sipav-navy);
		display: flex;
		flex-direction: row;
		font-size: 0.88rem;
		justify-content: flex-start;
		min-height: 44px;
		padding: 10px 12px;
		text-align: left;
	}

	.sipav-wrap {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 12px 16px;
	}

	.sipav-hero,
	.sipav-public-hero,
	.sipav-login-shell,
	.sipav-app-landing-hero,
	.sipav-section-head {
		border-radius: 18px;
		margin-left: 0;
		margin-right: 0;
		padding: 18px;
	}

	.sipav-hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.sipav-score-strip {
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sipav-score-strip .sipav-badge {
		justify-content: center;
		min-height: 38px;
		white-space: normal;
	}

	.sipav-dashboard-grid,
	.sipav-profile-grid,
	.sipav-ranking-grid,
	.sipav-content-grid {
		display: grid;
		gap: 12px;
		grid-template-columns: 1fr;
	}

	.sipav-dashboard-grid > .sipav-panel,
	.sipav-panel,
	.sipav-panel-wide,
	.sipav-dashboard-grid > .sipav-panel-wide {
		border-radius: 18px;
		box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
		grid-column: 1 / -1;
		padding: 16px;
	}

	.sipav-dashboard-grid > .sipav-panel:nth-child(1),
	.sipav-dashboard-grid > .sipav-panel:nth-child(2) {
		min-height: 108px;
	}

	.sipav-dashboard-grid > .sipav-panel:nth-child(1),
	.sipav-dashboard-grid > .sipav-panel:nth-child(2),
	.sipav-mini-card {
		background: #fff;
	}

	.sipav-panel-head {
		margin-bottom: 8px;
	}

	.sipav-panel h3 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.sipav-metric {
		font-size: 2.15rem;
	}

	.sipav-list li {
		align-items: flex-start;
		display: grid;
		gap: 4px;
		min-height: 64px;
		padding: 10px 0;
	}

	.sipav-list li span,
	.sipav-mini-card strong,
	.sipav-content-card h2,
	.sipav-content-card h3 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.sipav-list small {
		justify-self: start;
	}

	.sipav-mini-grid,
	.sipav-actions {
		display: grid;
		gap: 10px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sipav-mini-card {
		border-radius: 16px;
		min-height: 86px;
		padding: 12px;
	}

	.sipav-actions .sipav-button,
	.sipav-actions .sipav-button-secondary {
		font-size: 0.86rem;
		min-height: 48px;
		padding-left: 10px;
		padding-right: 10px;
		width: 100%;
	}

	.sipav-tabs {
		display: flex;
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		padding: 4px;
		scrollbar-width: none;
		width: 100%;
	}

	.sipav-tabs::-webkit-scrollbar {
		display: none;
	}

	.sipav-tab {
		flex: 0 0 auto;
		min-width: max-content;
	}

	.sipav-ranking-grid .sipav-panel h3 {
		font-size: 0.95rem;
		margin-bottom: 10px;
	}

	.sipav-rank-list {
		gap: 8px;
	}

	.sipav-rank-item {
		border-radius: 16px;
		gap: 8px;
		grid-template-columns: 34px 38px minmax(0, 1fr) auto;
		min-height: 70px;
		padding: 10px;
	}

	.sipav-rank-item::after {
		display: none;
	}

	.sipav-rank-body strong {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
	}

	.sipav-rank-body small {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
	}

	.sipav-rank-item .sipav-badge {
		font-size: 0.76rem;
		padding: 7px 9px;
	}

	.sipav-form,
	.sipav-composer-grid {
		display: block;
	}

	.sipav-mobile-steps {
		display: grid;
		gap: 6px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin: 0 0 14px;
	}

	.sipav-mobile-steps span {
		background: #edf6f5;
		border: 1px solid var(--sipav-border);
		border-radius: 999px;
		color: var(--sipav-navy);
		font-size: 0.78rem;
		font-weight: 900;
		min-height: 34px;
		padding: 8px 6px;
		text-align: center;
	}

	.sipav-section-head p {
		display: none;
	}

	.sipav-composer-fields {
		gap: 14px;
	}

	.sipav-form label,
	.sipav-guided-box,
	.sipav-attachment-box,
	.sipav-tag-picker {
		border-radius: 16px;
	}

	.sipav-attachment-box input[type="file"],
	.sipav-form input[type="file"] {
		background: #f8fbfd;
		border: 1px dashed var(--sipav-border);
		border-radius: 14px;
		min-height: 54px;
		padding: 14px !important;
		width: 100%;
	}

	.sipav-post-preview {
		display: none;
	}

	.sipav-form-actions {
		background: rgba(238, 244, 248, 0.96);
		border-top: 1px solid var(--sipav-border);
		bottom: 82px;
		display: grid;
		gap: 8px;
		left: 0;
		padding: 10px 16px;
		position: sticky;
		right: 0;
		z-index: 50;
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.sipav-wrap {
		max-width: 760px;
		padding: 18px 20px;
	}

	.sipav-dashboard-grid,
	.sipav-profile-grid,
	.sipav-ranking-grid,
	.sipav-content-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.sipav-mobile-more,
	.sipav-bottom-nav {
		display: none !important;
	}
}

/* SIPAV 1.4.58 - social feed previews */
.sipav-home-feed {
	display: grid;
	gap: 12px;
}

.sipav-home-post {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
	display: grid;
	gap: 10px;
	padding: 14px;
}

.sipav-feed-author {
	align-items: center;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.sipav-feed-author img,
.sipav-feed-author > span {
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 1px var(--sipav-border);
	flex: 0 0 auto;
	height: 42px;
	width: 42px;
}

.sipav-feed-author img {
	display: block;
	object-fit: cover;
}

.sipav-feed-author > span {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-teal));
	color: #fff;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 900;
	justify-content: center;
}

.sipav-feed-author div {
	min-width: 0;
}

.sipav-feed-author strong,
.sipav-feed-author small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sipav-feed-author strong {
	color: var(--sipav-navy-strong);
	font-weight: 900;
}

.sipav-feed-author small {
	color: var(--sipav-muted);
	font-size: 0.78rem;
}

.sipav-home-post-copy h4 {
	color: var(--sipav-navy);
	display: -webkit-box;
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.22;
	margin: 0 0 4px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.sipav-home-post-copy p {
	color: var(--sipav-muted);
	display: -webkit-box;
	font-size: 0.88rem;
	line-height: 1.42;
	margin: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.sipav-home-post-media {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sipav-home-post-media img {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--sipav-border);
	border-radius: 14px;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sipav-home-post-media img:only-child {
	aspect-ratio: 16 / 9;
	grid-column: 1 / -1;
}

.sipav-home-post-foot {
	align-items: center;
	border-top: 1px solid rgba(212, 221, 230, 0.78);
	color: var(--sipav-muted);
	display: flex;
	font-size: 0.78rem;
	font-weight: 800;
	gap: 8px;
	justify-content: space-between;
	padding-top: 8px;
}

.sipav-social-card {
	border-left: 1px solid var(--sipav-border);
	border-radius: 18px;
}

.sipav-social-card::before {
	display: none;
}

.sipav-social-card .sipav-card-body {
	gap: 12px;
	padding: 16px;
}

.sipav-social-card .sipav-card-meta {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	padding: 6px 10px;
	text-transform: none;
}

.sipav-social-card .sipav-card-meta span,
.sipav-social-card .sipav-card-meta small {
	font-size: 0.78rem;
	font-weight: 850;
}

.sipav-social-card .sipav-card-body h3 {
	font-size: 1.08rem;
	font-weight: 900;
}

.sipav-social-card .sipav-card-body > p {
	color: var(--sipav-ink);
	font-size: 0.96rem;
	line-height: 1.5;
}

.sipav-social-card .sipav-photo-grid {
	border-radius: 16px;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 4px 0;
	overflow: hidden;
}

.sipav-social-card .sipav-photo-grid a {
	border-radius: 0;
}

.sipav-social-card .sipav-photo-grid a:first-child:nth-last-child(1) {
	grid-column: 1 / -1;
}

.sipav-social-card .sipav-photo-grid a:first-child:nth-last-child(1) img {
	aspect-ratio: 16 / 9;
}

.sipav-social-actions,
.sipav-preview-actions {
	align-items: center;
	border-top: 1px solid var(--sipav-border);
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	margin-top: 8px;
	padding-top: 10px;
}

.sipav-social-actions span,
.sipav-preview-actions span,
.sipav-reaction-button {
	align-items: center;
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	color: var(--sipav-navy);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 900;
	justify-content: center;
	min-height: 34px;
	padding: 7px 10px;
	text-align: center;
}

.sipav-reaction-button {
	cursor: pointer;
}

.sipav-reaction-button.is-active {
	background: #fff4dc;
	border-color: #ecc777;
	color: #734707;
}

.sipav-preview-card {
	border-radius: 18px;
	padding: 16px;
}

.sipav-preview-card h3 {
	color: var(--sipav-navy);
	font-size: 1.08rem;
	font-weight: 900;
	line-height: 1.22;
}

.sipav-preview-media {
	border-radius: 16px;
	overflow: hidden;
}

.sipav-preview-media img {
	border-radius: 0;
}

@media (max-width: 899px) {
	.sipav-post-preview {
		display: block;
		margin-top: 16px;
		position: static;
	}

	.sipav-home-feed {
		gap: 10px;
	}

	.sipav-home-post,
	.sipav-social-card .sipav-card-body {
		padding: 14px;
	}

	.sipav-home-post-foot,
	.sipav-social-card .sipav-card-meta {
		align-items: flex-start;
		display: grid;
		justify-content: stretch;
	}

	.sipav-social-actions,
	.sipav-preview-actions {
		grid-template-columns: 1fr;
	}
}

/* SIPAV 1.4.59 - polish desktop metrics, mobile appbar, app access and composer */
.sipav-dashboard-grid {
	align-items: start;
}

.sipav-dashboard-grid > .sipav-panel:nth-child(1),
.sipav-dashboard-grid > .sipav-panel:nth-child(2) {
	align-self: start;
	min-height: 150px;
}

@media (min-width: 900px) {
	.sipav-dashboard-grid > .sipav-panel:nth-child(1),
	.sipav-dashboard-grid > .sipav-panel:nth-child(2) {
		grid-column: span 3;
		max-width: 100%;
	}

	.sipav-dashboard-grid > .sipav-panel:nth-child(3),
	.sipav-dashboard-grid > .sipav-panel:nth-child(4),
	.sipav-dashboard-grid > .sipav-panel:nth-child(5),
	.sipav-dashboard-grid > .sipav-panel:nth-child(6) {
		align-self: stretch;
	}
}

.sipav-video-carousel-rail {
	display: flex !important;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 4px 14px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.sipav-video-carousel-card {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
	flex: 0 0 260px;
	overflow: hidden;
	scroll-snap-align: start;
}

.sipav-video-carousel-thumb {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--sipav-surface-strong), var(--sipav-surface));
	border: 0;
	cursor: pointer;
	display: block;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.sipav-video-carousel-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sipav-video-carousel-thumb > span {
	align-items: center;
	background: var(--sipav-gold);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 900;
	height: 42px;
	justify-content: center;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
}

.sipav-video-carousel-fallback {
	align-items: center;
	color: var(--sipav-navy);
	display: flex;
	font-size: 1.45rem;
	font-weight: 900;
	height: 100%;
	justify-content: center;
	letter-spacing: 0;
}

.sipav-video-carousel-body {
	display: grid;
	gap: 4px;
	padding: 12px 14px 14px;
}

.sipav-video-carousel-body strong {
	color: var(--sipav-navy-strong);
	display: -webkit-box;
	font-weight: 900;
	line-height: 1.24;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.sipav-video-carousel-body span {
	color: var(--sipav-muted);
	display: block;
	font-size: 0.82rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sipav-composer-shell {
	display: block;
}

.sipav-composer-shell > summary {
	align-items: center;
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 18px;
	box-shadow: 0 8px 22px rgba(16, 24, 32, 0.08);
	color: var(--sipav-muted);
	cursor: pointer;
	display: flex;
	gap: 12px;
	list-style: none;
	min-height: 62px;
	padding: 12px 14px;
}

.sipav-composer-shell > summary::-webkit-details-marker {
	display: none;
}

.sipav-composer-shell > summary span:last-child {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 999px;
	flex: 1;
	font-weight: 850;
	min-width: 0;
	padding: 12px 14px;
}

.sipav-composer-avatar {
	align-items: center;
	background: linear-gradient(135deg, var(--sipav-navy), var(--sipav-teal));
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	font-weight: 900;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.sipav-composer-expanded {
	margin-top: 14px;
}

.sipav-composer-shell[open] > summary {
	border-color: rgba(216, 155, 43, 0.55);
	box-shadow: 0 12px 28px rgba(16, 24, 32, 0.10);
}

.sipav-user-admin .sipav-section-head p,
.sipav-bulk-approval-panel p {
	max-width: 760px;
}

.sipav-admin-summary-grid {
	align-items: stretch;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 14px;
}

.sipav-admin-summary-grid .sipav-panel {
	align-content: center;
	display: grid;
	gap: 4px;
	grid-column: auto;
	min-height: 110px;
}

.sipav-admin-summary-grid strong {
	color: var(--sipav-navy-strong);
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.sipav-table-wrap {
	background: #fff;
	border: 1px solid var(--sipav-border);
	border-radius: 18px;
	box-shadow: var(--sipav-shadow-soft);
	overflow: auto;
}

.sipav-user-access-table {
	border-collapse: collapse;
	min-width: 980px;
	width: 100%;
}

.sipav-user-access-table th {
	background: var(--sipav-navy);
	color: #fff;
	font-size: 0.78rem;
	letter-spacing: 0;
	text-align: left;
	text-transform: uppercase;
}

.sipav-user-access-table th,
.sipav-user-access-table td {
	border-bottom: 1px solid var(--sipav-border);
	padding: 14px;
	vertical-align: top;
}

.sipav-user-access-table td > strong,
.sipav-user-access-table td > small {
	display: block;
}

.sipav-user-request-summary {
	background: var(--sipav-surface);
	border: 1px solid var(--sipav-border);
	border-radius: 12px;
	display: grid;
	gap: 3px;
	margin-top: 8px;
	padding: 8px 10px;
}

.sipav-app-access-form {
	align-items: stretch;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	min-width: 0;
}

.sipav-admin-actions {
	display: grid;
	gap: 7px;
	grid-template-columns: 1fr;
}

.sipav-app-status-page .sipav-app-landing-hero {
	align-items: center;
	grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
	min-height: 0;
}

.sipav-app-status-page .sipav-status-layout {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
}

@media (max-width: 899px) {
	body.sipav-intranet-page .sipav-nav,
	.sipav-nav {
		align-items: center !important;
		border-radius: 0 0 16px 16px !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 10px !important;
		margin-bottom: 12px !important;
		min-height: 58px !important;
		padding: 7px 12px !important;
	}

	body.sipav-intranet-page .sipav-nav-brand,
	.sipav-nav-brand {
		border-radius: 12px !important;
		flex: 0 0 42px !important;
		height: 42px !important;
		justify-content: center !important;
		min-height: 42px !important;
		padding: 0 !important;
		width: 42px !important;
	}

	.sipav-nav-brand .sipav-brand-text {
		display: none !important;
	}

	.sipav-brand-mark,
	.sipav-brand-mark img {
		height: 28px;
		width: 28px;
	}

	.sipav-nav-current {
		font-size: 0.92rem !important;
		text-align: left !important;
	}

	body.sipav-intranet-page .sipav-mobile-more > summary,
	.sipav-mobile-more > summary {
		border-radius: 12px !important;
		min-height: 42px !important;
		padding: 9px 12px !important;
	}

	.sipav-dashboard-grid > .sipav-panel:nth-child(1),
	.sipav-dashboard-grid > .sipav-panel:nth-child(2) {
		min-height: 118px;
	}

	.sipav-video-carousel-rail {
		gap: 12px;
		margin-left: 0;
		padding: 2px 18px 12px 2px;
	}

	.sipav-video-carousel-card {
		flex-basis: min(280px, calc(100vw - 88px));
		min-width: min(280px, calc(100vw - 88px));
	}

	.sipav-video-carousel-head {
		align-items: flex-start;
		display: grid;
		gap: 8px;
		margin-bottom: 12px;
	}

	.sipav-video-carousel-head p {
		display: none;
	}

	.sipav-video-carousel-head h3 {
		font-size: 1rem;
		line-height: 1.2;
	}

	.sipav-composer {
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.sipav-composer .sipav-form-actions {
		background: transparent;
		border-top: 0;
		bottom: auto;
		padding: 0;
		position: static;
	}

	.sipav-admin-summary-grid,
	.sipav-app-status-page .sipav-status-layout {
		grid-template-columns: 1fr;
	}

	.sipav-admin-summary-grid .sipav-panel {
		min-height: 86px;
	}

	.sipav-table-wrap {
		background: transparent;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}

	.sipav-user-access-table,
	.sipav-user-access-table thead,
	.sipav-user-access-table tbody,
	.sipav-user-access-table tr,
	.sipav-user-access-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.sipav-user-access-table thead {
		display: none;
	}

	.sipav-user-access-table tr {
		background: #fff;
		border: 1px solid var(--sipav-border);
		border-radius: 18px;
		box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
		margin-bottom: 12px;
		overflow: hidden;
	}

	.sipav-user-access-table td {
		border-bottom: 1px solid var(--sipav-border);
		padding: 13px 14px;
	}

	.sipav-user-access-table td:last-child {
		border-bottom: 0;
	}

	.sipav-user-access-table td::before {
		color: var(--sipav-muted);
		display: block;
		font-size: 0.72rem;
		font-weight: 900;
		margin-bottom: 7px;
		text-transform: uppercase;
	}

	.sipav-user-access-table td:nth-child(1)::before { content: "Usuario"; }
	.sipav-user-access-table td:nth-child(2)::before { content: "Acceso web"; }
	.sipav-user-access-table td:nth-child(3)::before { content: "Acceso app"; }
	.sipav-user-access-table td:nth-child(4)::before { content: "Dispositivo"; }
	.sipav-user-access-table td:nth-child(5)::before { content: "Acciones"; }

	.sipav-app-status-page .sipav-app-landing-hero {
		grid-template-columns: 1fr;
	}
}

/* SIPAV 1.4.60 - advanced community, training filters and stronger search UX */
.sipav-advanced-options {
	background: #f8fbfd;
	border: 1px solid rgba(148, 163, 184, 0.28);
	border-radius: 14px;
	padding: 10px 12px;
}

.sipav-advanced-options > summary {
	color: #0b2d4a;
	cursor: pointer;
	font-weight: 900;
	list-style: none;
}

.sipav-advanced-options > summary::-webkit-details-marker {
	display: none;
}

.sipav-advanced-options[open] > summary {
	margin-bottom: 12px;
}

.sipav-community-filter-bar {
	grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.6fr) auto auto;
}

.sipav-social-card.is-pinned {
	border-color: rgba(216, 155, 43, 0.72);
	box-shadow: 0 14px 32px rgba(216, 155, 43, 0.12);
}

.sipav-training-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 18px;
}

.sipav-training-filters button {
	background: #eef6f7;
	border: 1px solid #cddde5;
	border-radius: 999px;
	color: #0b2d4a;
	cursor: pointer;
	font: inherit;
	font-weight: 850;
	padding: 9px 12px;
}

.sipav-training-filters button.is-active {
	background: #0b2d4a;
	border-color: #0b2d4a;
	color: #fff;
}

.sipav-training-progress {
	background: #dce8ee;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	width: 100%;
}

.sipav-training-progress span {
	background: linear-gradient(90deg, #d89b2b, #177b71);
	display: block;
	height: 100%;
}

.sipav-training-more,
.sipav-training-card-context {
	background: #f8fbfd;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 12px;
	margin-top: 10px;
	padding: 9px 11px;
}

.sipav-training-more > summary {
	color: #123653;
	cursor: pointer;
	font-weight: 900;
}

.sipav-training-card-context {
	display: grid;
	gap: 6px;
}

.sipav-training-card-context span {
	color: #3b4a5c;
	font-size: 0.86rem;
	line-height: 1.35;
}

.sipav-training-item[hidden] {
	display: none;
}

.sipav-video-search-input small {
	color: #5f7488;
	display: block;
	font-size: 0.78rem;
	margin-top: 6px;
}

@media (max-width: 760px) {
	.sipav-community-filter-bar,
	.sipav-filter-bar {
		display: grid;
		grid-template-columns: 1fr;
	}

	.sipav-training-filters {
		flex-wrap: nowrap;
		margin-left: -4px;
		overflow-x: auto;
		padding: 2px 4px 10px;
		scroll-snap-type: x proximity;
	}

	.sipav-training-filters button {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.sipav-advanced-options {
		padding: 10px;
	}
}


/* SIPAV 1.4.62 - installed PWA app shell */
html.sipav-pwa-standalone,
body.sipav-pwa-standalone {
	background: #eef4f8 !important;
	min-height: 100%;
	overflow-x: hidden;
	overscroll-behavior-y: contain;
}

body.sipav-pwa-standalone.sipav-intranet-page {
	padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 calc(env(safe-area-inset-bottom, 0px) + 92px) !important;
	-webkit-tap-highlight-color: transparent;
}

body.sipav-pwa-standalone.sipav-intranet-page #wpadminbar,
body.sipav-pwa-standalone.sipav-intranet-page header,
body.sipav-pwa-standalone.sipav-intranet-page .site-header,
body.sipav-pwa-standalone.sipav-intranet-page footer:not(.sipav-footer),
body.sipav-pwa-standalone.sipav-intranet-page .site-footer {
	display: none !important;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-wrap {
	border: 0;
	border-radius: 22px;
	box-shadow: 0 16px 36px rgba(16, 24, 32, 0.08);
	margin-bottom: 14px;
	max-width: 100%;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-nav {
	border-radius: 0 0 22px 22px;
	box-shadow: 0 10px 28px rgba(16, 24, 32, 0.12);
	margin-top: calc(env(safe-area-inset-top, 0px) * -1);
	padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
	top: 0 !important;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-bottom-nav {
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(212, 221, 230, 0.78);
	border-radius: 24px 24px calc(20px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-bottom, 0px));
	bottom: 0;
	box-shadow: 0 -16px 32px rgba(16, 24, 32, 0.14);
	left: 0;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
	right: 0;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-bottom-nav a,
body.sipav-pwa-standalone.sipav-intranet-page .sipav-bottom-nav summary {
	min-height: 58px;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-hero {
	border-radius: 24px;
	margin-top: 4px;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-card,
body.sipav-pwa-standalone.sipav-intranet-page .sipav-section,
body.sipav-pwa-standalone.sipav-intranet-page .sipav-panel,
body.sipav-pwa-standalone.sipav-intranet-page .sipav-video-card,
body.sipav-pwa-standalone.sipav-intranet-page .sipav-content-card {
	border-radius: 20px;
}

body.sipav-pwa-standalone.sipav-intranet-page .sipav-footer {
	display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
	body.sipav-intranet-page {
		background: #eef4f8 !important;
	}
}

/* SIPAV 1.4.63 - offline/PWA support */
.sipav-offline-banner {
	background: #fff7e6;
	border: 1px solid rgba(216, 155, 43, 0.46);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
	color: #5d3a00;
	display: none;
	font-size: 0.92rem;
	font-weight: 750;
	line-height: 1.42;
	margin: 0 auto 12px;
	max-width: 1180px;
	padding: 12px 14px;
}

.sipav-is-offline .sipav-offline-banner {
	display: block;
}

.sipav-offline-banner strong {
	color: #7a4a00;
	display: block;
	font-size: 0.98rem;
	font-weight: 900;
	margin-bottom: 2px;
}

.sipav-offline-page .sipav-offline-hero {
	min-height: 180px;
}

.sipav-offline-grid .sipav-feature-grid {
	margin-top: 10px;
}

.sipav-offline-warning .sipav-notice {
	margin: 0;
}

.sipav-offline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.sipav-pwa-standalone.sipav-is-offline .sipav-offline-banner {
	border-radius: 18px;
	margin-left: 12px;
	margin-right: 12px;
}

@media (max-width: 760px) {
	.sipav-offline-banner {
		margin-left: 8px;
		margin-right: 8px;
	}
}

/* Android app module access controls. */
.sipav-access-control-guide {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
}

.sipav-access-control-guide h3,
.sipav-access-control-guide p {
	margin: 0;
}

.sipav-access-control-guide p {
	color: var(--sipav-muted);
	margin-top: 5px;
}

.sipav-access-control-note {
	background: #eef5fb;
	border: 1px solid #c7d9e9;
	border-radius: 12px;
	color: var(--sipav-navy);
	font-size: 0.86rem;
	font-weight: 800;
	padding: 11px 13px;
}

.sipav-user-access-table {
	min-width: 1480px;
}

.sipav-access-field {
	display: grid;
	gap: 5px;
	margin-top: 9px;
}

.sipav-access-field > span {
	font-size: 0.74rem;
	font-weight: 800;
}

.sipav-module-permissions {
	background: #f8fafc;
	border: 1px solid var(--sipav-border);
	border-radius: 14px;
	min-width: 340px;
	overflow: hidden;
}

.sipav-module-permissions summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	padding: 12px 14px;
}

.sipav-module-permissions summary::-webkit-details-marker {
	display: none;
}

.sipav-module-permissions summary::after {
	color: var(--sipav-blue);
	content: "+";
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1;
}

.sipav-module-permissions[open] summary::after {
	content: "−";
}

.sipav-module-permissions summary > span {
	font-weight: 900;
}

.sipav-module-permissions summary > strong {
	background: #e7f5f1;
	border: 1px solid #b8ddd6;
	border-radius: 999px;
	color: #0f6259;
	font-size: 0.72rem;
	padding: 5px 8px;
	white-space: nowrap;
}

.sipav-module-permissions-body {
	border-top: 1px solid var(--sipav-border);
	display: grid;
	gap: 12px;
	padding: 12px;
}

.sipav-module-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.sipav-module-permissions-grid {
	display: grid;
	gap: 7px;
}

.sipav-module-option {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #dbe3eb;
	border-radius: 10px;
	display: grid;
	gap: 9px;
	grid-template-columns: auto minmax(0, 1fr);
	padding: 9px 10px;
}

.sipav-module-option:hover {
	border-color: #a9bfd3;
}

.sipav-module-option input,
.sipav-screenshot-policy input {
	accent-color: var(--sipav-blue);
	height: 18px;
	margin: 1px 0 0;
	width: 18px;
}

.sipav-module-option strong {
	color: var(--sipav-navy);
	font-size: 0.84rem;
	line-height: 1.25;
}

.sipav-module-option small {
	color: var(--sipav-muted);
	font-size: 0.74rem;
	line-height: 1.35;
	margin-top: 2px;
}

.sipav-screenshot-policy {
	background: #fff;
	border: 1px solid #dbe3eb;
	border-radius: 12px;
	display: grid;
	gap: 8px;
	padding: 11px;
}

.sipav-screenshot-policy > strong {
	color: var(--sipav-navy);
	font-size: 0.82rem;
}

.sipav-screenshot-policy label {
	align-items: flex-start;
	display: grid;
	font-size: 0.78rem;
	gap: 8px;
	grid-template-columns: auto minmax(0, 1fr);
}

.sipav-screenshot-policy input:disabled + span {
	color: var(--sipav-muted);
	opacity: 0.65;
}

.sipav-screenshot-policy > small {
	color: var(--sipav-muted);
	font-size: 0.72rem;
	line-height: 1.4;
}

@media (max-width: 900px) {
	.sipav-access-control-guide {
		grid-template-columns: 1fr;
	}

	.sipav-module-permissions {
		min-width: 0;
		width: 100%;
	}

	.sipav-user-access-table td:nth-child(1)::before { content: "Usuario"; }
	.sipav-user-access-table td:nth-child(2)::before { content: "Acceso web"; }
	.sipav-user-access-table td:nth-child(3)::before { content: "Acceso app"; }
	.sipav-user-access-table td:nth-child(4)::before { content: "Dispositivo"; }
	.sipav-user-access-table td:nth-child(5)::before { content: "Módulos y capturas"; }
	.sipav-user-access-table td:nth-child(6)::before { content: "Acciones"; }
}

/* WordPress user profile and fallback app-access controls. */
.sipav-wp-module-permissions {
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 10px 0;
}

.sipav-wp-module-permissions label {
	align-items: center;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	display: flex;
	gap: 7px;
	padding: 7px 9px;
}

.sipav-wp-module-details {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 8px 0;
	padding: 8px 10px;
}

.sipav-wp-module-details summary {
	cursor: pointer;
	font-weight: 600;
}

.sipav-wp-module-details > label {
	display: block;
	margin-top: 7px;
}

/* SIPAV 1.4.68 - Android activity administration */
.sipav-usage-admin {
	max-width: 1500px;
}

.sipav-usage-filter-panel {
	margin: 18px 0 16px;
}

.sipav-usage-filters {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.sipav-usage-filters label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.sipav-usage-filters label > span {
	color: var(--sipav-navy-strong);
	font-size: 0.82rem;
	font-weight: 850;
}

.sipav-usage-filters input,
.sipav-usage-filters select {
	max-width: none;
	min-height: 40px;
	width: 100%;
}

.sipav-usage-filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	grid-column: 1 / -1;
}

.sipav-usage-summary-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sipav-usage-summary-grid .sipav-panel {
	min-height: 118px;
}

.sipav-usage-summary-grid small {
	line-height: 1.35;
}

.sipav-usage-table {
	border-collapse: collapse;
	min-width: 1040px;
	width: 100%;
}

.sipav-usage-table th,
.sipav-usage-table td {
	padding: 12px 14px;
	text-align: left;
	vertical-align: top;
}

.sipav-usage-table th {
	background: var(--sipav-navy);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 850;
}

@media (max-width: 1100px) {
	.sipav-usage-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

@media (max-width: 782px) {
	.sipav-usage-filters,
	.sipav-usage-summary-grid {
		grid-template-columns: 1fr;
	}

	.sipav-usage-filter-actions .button {
		justify-content: center;
		width: 100%;
	}

	.sipav-usage-table,
	.sipav-usage-table thead,
	.sipav-usage-table tbody,
	.sipav-usage-table tr,
	.sipav-usage-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.sipav-usage-table thead {
		display: none;
	}

	.sipav-usage-table tr {
		background: #fff;
		border: 1px solid var(--sipav-border);
		border-radius: 14px;
		box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
		margin-bottom: 12px;
		overflow: hidden;
	}

	.sipav-usage-table td {
		border-bottom: 1px solid var(--sipav-border);
		padding: 11px 13px 11px 42%;
		position: relative;
	}

	.sipav-usage-table td::before {
		color: var(--sipav-muted);
		content: attr(data-label);
		font-size: 0.76rem;
		font-weight: 850;
		left: 13px;
		position: absolute;
		top: 12px;
		width: 36%;
	}

	.sipav-usage-table td:last-child {
		border-bottom: 0;
	}
}
