/* MEDIA5 USER PROFILE — clean profile-only view */

/* Na profilu ukrywamy tylko duży baner forum. Górny pasek nawigacyjny pozostaje widoczny. */
body.section-memberlist .headerbar {
	display: none !important;
}

body.section-memberlist #page-header {
	display: block !important;
}

body.section-memberlist .breadcrumbs,
body.section-memberlist .page-header,
body.section-memberlist .action-bar:first-of-type {
	display: none !important;
}

body.section-memberlist #page-body > h2,
body.section-memberlist #page-body > .page-header,
body.section-memberlist #page-body > .topic-title {
	display: none !important;
}

/* Keep the compact forum navigation bar visible above the profile.
   The large forum header/banner remains hidden on the profile page. */
body.section-memberlist .navbar {
	display: flex !important;
	align-items: center;
	min-height: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border-radius: 0 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
	position: relative !important;
	z-index: 20 !important;
}

body.section-memberlist #page-header .navbar {
	margin-bottom: 18px !important;
}

body.section-memberlist .navbar a {
	text-decoration: none;
}


body.section-memberlist #page-body {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

#viewprofile {
	display: none !important;
}

.media5-userprofile {
	box-sizing: border-box;
	width: min(100%, 1180px);
	margin: 0 auto 30px;
	color: #173b69;
	font-family: Arial, Helvetica, sans-serif;
}

.media5-userprofile * { box-sizing: border-box; }

.m5up-cover {
	height: 285px;
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	background-image:
		linear-gradient(90deg, rgba(4,40,72,.98) 0%, rgba(7,65,105,.94) 42%, rgba(18,119,170,.55) 72%, rgba(27,145,201,.20) 100%),
		url('./images/profile-cover.jpg');
	background-size: cover, cover;
	background-position: center, right center;
	box-shadow: 0 7px 24px rgba(0,35,70,.15);
}

.m5up-cover-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,24,48,.12), transparent 60%);
}

.m5up-cover-content {
	position: absolute;
	left: 48px;
	top: 70px;
	color: #fff;
	text-shadow: 0 2px 9px rgba(0,0,0,.38);
}

.m5up-cover-title {
	font-family: "Segoe Script", "Brush Script MT", cursive;
	font-size: 66px;
	line-height: 1;
	font-weight: 400;
}

.m5up-cover-subtitle {
	margin-top: 13px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.6px;
}

.m5up-cover-button {
	position: absolute;
	right: 22px;
	bottom: 20px;
	border: 1px solid rgba(255,255,255,.65);
	background: rgba(20,60,100,.58);
	color: #fff;
	border-radius: 9px;
	padding: 10px 15px;
	font-weight: 700;
}

.m5up-layout {
	display: grid;
	grid-template-columns: 335px minmax(0, 1fr);
	gap: 14px;
	margin-top: 0;
}

.m5up-sidebar { position: relative; z-index: 3; }
.m5up-main { min-width: 0; }

.m5up-profile-card,
.m5up-side-box,
.m5up-tabs,
.m5up-board {
	background: #fff;
	border: 1px solid #dce6f0;
	box-shadow: 0 4px 18px rgba(25,70,110,.08);
	border-radius: 13px;
}

.m5up-profile-card {
	margin: -47px 10px 12px;
	padding: 18px 16px 15px;
	text-align: left;
}

.m5up-avatar-wrap {
	position: relative;
	width: 140px;
	margin: -80px auto 9px;
}

.m5up-avatar {
	width: 140px;
	height: 140px;
	border: 5px solid #fff;
	border-radius: 50%;
	overflow: hidden;
	background: #062b4b;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 45px;
	box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.m5up-avatar img,
.m5up-board-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.m5up-online-dot {
	position: absolute;
	right: 7px;
	bottom: 8px;
	width: 21px;
	height: 21px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #25c54a;
}

.m5up-profile-card h1 {
	margin: 4px 0 2px;
	text-align: center;
	font-size: 25px;
}

.m5up-rank { text-align: center; font-size: 14px; font-weight: 700; color: #607792; }
.m5up-motto { text-align: center; color: #6d8199; font-style: italic; margin: 7px 0 14px; }

.m5up-meta { border-top: 1px solid #edf1f5; padding-top: 10px; }
.m5up-meta div { display: flex; gap: 7px; align-items: center; padding: 6px 0; font-size: 13px; }
.m5up-meta span { width: 22px; }
.m5up-meta b { font-weight: 600; }
.m5up-meta strong { margin-left: auto; color: #e12525; }
.m5up-meta em { margin-left: auto; color: #176ec3; font-style: normal; }

.m5up-edit {
	width: 100%; border: 0; background: #1475dd; color: #fff;
	padding: 11px; border-radius: 7px; font-weight: 700; margin-top: 10px;
}

.m5up-friend-action { display: block; text-align: center; text-decoration: none !important; box-sizing: border-box; }
.m5up-friend-action.m5up-friend-remove { background: #eef3f8; color: #31527d; border: 1px solid #d5e0eb; }
.m5up-friend-action:hover { opacity: .92; }

.m5up-side-box { padding: 12px; margin: 0 10px 12px; }
.m5up-side-title { font-weight: 700; font-size: 13px; border-bottom: 1px solid #e5ebf2; padding-bottom: 9px; }
.m5up-side-title span { float: right; color: #1475dd; font-weight: 600; }

.m5up-reactions,
.m5up-gifts {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	padding-top: 10px;
}

.m5up-reactions div,
.m5up-gifts div {
	text-align: center;
	background: #f8fafc;
	border-radius: 8px;
	padding: 7px 1px;
	font-size: 20px;
}

.m5up-reactions b,
.m5up-gifts b { display: block; font-size: 11px; margin-top: 3px; }
.m5up-badge { display: inline-block; margin-top: 10px; padding: 7px 10px; border: 1px solid #dce6f0; border-radius: 18px; font-size: 12px; font-weight: 700; }

.m5up-tabs { display: flex; gap: 2px; padding: 5px; margin-bottom: 12px; }
.m5up-tabs a { flex: 1; text-align: center; padding: 13px 8px; color: #31527d; text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 8px; white-space: nowrap; }
.m5up-tabs a.active { background: #1475dd; color: #fff; }



.m5up-board { display: flex; gap: 13px; padding: 15px; margin-top: 10px; }
.m5up-board-avatar { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; background: #062b4b; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.m5up-board-body { flex: 1; }
.m5up-board textarea { width: 100%; height: 85px; resize: none; border: 1px solid #dce6f0; border-radius: 8px; padding: 12px; box-sizing: border-box; }
.m5up-board-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.m5up-board-actions button { border: 1px solid #dce6f0; background: #fff; border-radius: 7px; padding: 8px 10px; color: #31527d; font-size: 12px; }
.m5up-board-actions .publish { margin-left: auto; background: #1475dd; color: #fff; border-color: #1475dd; font-weight: 700; }

@media (max-width: 900px) {
	.media5-userprofile { width: 100%; }
	.m5up-layout { grid-template-columns: 1fr; }
	.m5up-profile-card { margin-top: -40px; }
	.m5up-tabs { overflow-x: auto; }
	.m5up-tabs a { min-width: 100px; }
	.m5up-cover-title { font-size: 50px; }
}

@media (max-width: 600px) {
	.m5up-cover { height: 205px; border-radius: 9px; }
	.m5up-cover-content { left: 25px; top: 50px; }
	.m5up-cover-title { font-size: 40px; }
	.m5up-cover-subtitle { font-size: 11px; letter-spacing: 1px; }
	.m5up-profile-card { margin-top: -35px; }
	.m5up-board { padding: 11px; }
	.m5up-board-actions .publish { margin-left: 0; }
}

/* v1.0.16 — dopracowanie układu zgodnie z makietą */
.m5up-cover-slogan{position:absolute;right:70px;top:42px;font-family:"Segoe Script","Brush Script MT",cursive;font-size:20px;line-height:1.45;color:rgba(255,255,255,.9);text-align:center;transform:rotate(-4deg);text-shadow:0 2px 8px rgba(0,0,0,.35)}
.m5up-profile-card{padding-top:15px}
.m5up-profile-card h1{color:#e12626}
.m5up-sidebar{min-width:0}
.m5up-side-box{background:rgba(255,255,255,.97)}
.m5up-user-stats .m5up-side-title{margin-bottom:4px}
.m5up-mini-stat{display:grid;grid-template-columns:22px 1fr auto;gap:5px;align-items:center;padding:5px 0;font-size:10px;border-bottom:1px solid #eef2f6}
.m5up-mini-stat:last-child{border-bottom:0}
.m5up-mini-stat span{font-size:11px;text-align:center}.m5up-mini-stat b{font-weight:600;color:#4a6480}.m5up-mini-stat em{font-style:normal;color:#75879a;text-align:right;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m5up-quote{text-align:center;color:#70829a;font-style:italic;font-size:11px;line-height:1.35;padding:16px 20px}.m5up-quote span{font-size:28px;color:#b8c6d5;line-height:.4;vertical-align:middle}.m5up-quote small{display:block;margin-top:5px;font-size:9px}
.m5up-posts{margin-top:12px;background:transparent}
.m5up-posts-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 9px}.m5up-posts-head h3{margin:0;font-size:17px;color:#0a376c}.m5up-posts-head a{font-size:11px;color:#1475dd;font-weight:700}
.m5up-post{display:flex;gap:12px;padding:14px;background:#fff;border:1px solid #dce6f0;border-radius:13px;box-shadow:0 4px 18px rgba(25,70,110,.07);margin-bottom:10px}.m5up-post-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;background:#062b4b;color:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.m5up-post-avatar img{width:100%;height:100%;object-fit:cover}.m5up-post-content{flex:1;min-width:0}.m5up-post-author{display:flex;align-items:center;gap:6px;font-size:12px}.m5up-post-author strong{color:#e12525}.m5up-post-author>span{color:#22b84b;font-size:8px}.m5up-post-author time{color:#8392a4;font-size:10px}.m5up-post-author b{margin-left:auto;font-size:18px;color:#718095}.m5up-post-rank{font-size:9px;color:#71839a;margin-top:1px}.m5up-post p{margin:8px 0;font-size:13px;line-height:1.55;color:#183b68}.m5up-post-placeholder{height:145px;border-radius:8px;background:linear-gradient(135deg,#78a8c9,#dbeaf5 55%,#557c9d);display:flex;align-items:flex-end;padding:12px;color:#fff;font-size:14px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.5);margin-top:8px}.m5up-post-actions{display:flex;gap:14px;align-items:center;padding-top:9px;font-size:10px;color:#526d8e}.m5up-post-actions a{margin-left:auto;color:#1475dd;font-weight:700}.m5up-post.compact p{margin-bottom:2px}.m5up-post.compact .m5up-post-actions{padding-top:5px}
.m5up-board-actions button{border:1px solid #dce6f0;background:#fff;color:#3c5d80;border-radius:6px;padding:7px 9px;font-size:10px;font-weight:600}.m5up-board-actions .publish{margin-left:auto;background:#1475dd;color:#fff;border-color:#1475dd;padding-left:13px;padding-right:13px}
@media (max-width:900px){.m5up-layout{grid-template-columns:280px minmax(0,1fr)}.m5up-cover-slogan{right:30px;font-size:16px}.m5up-cover-title{font-size:54px}.m5up-cover{height:250px}.m5up-tabs a{font-size:11px;padding-left:4px;padding-right:4px}}
@media (max-width:700px){.media5-userprofile{width:100%}.m5up-layout{display:block}.m5up-sidebar{display:block}.m5up-profile-card{margin:0 8px 10px}.m5up-side-box{margin-left:8px;margin-right:8px}.m5up-main{margin:0 8px}.m5up-cover{height:220px;border-radius:12px}.m5up-cover-content{left:25px;top:55px}.m5up-cover-title{font-size:45px}.m5up-cover-slogan{display:none}.m5up-tabs{overflow:auto}.m5up-tabs a{min-width:95px}}

/* FIX 1.0.17 — FarmingPro: profil ma korzystać z właściwego, ciemnego nagłówka serwisu. */
body.section-memberlist #page-header {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Ukrywamy biały, stary pasek pomocniczy widoczny na profilu. */
body.section-memberlist #page-header > .navbar,
body.section-memberlist #page-header .navbar {
	display: none !important;
}

/* Przywracamy właściwy nagłówek FarmingPro i nadajemy mu kompaktową wysokość. */
body.section-memberlist #page-header .headerbar {
	display: block !important;
	visibility: visible !important;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 0 !important;
	background-image: none !important;
	background-color: #0b2945 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.28) !important;
	position: relative !important;
	z-index: 50 !important;
}

body.section-memberlist #page-header .headerbar:before,
body.section-memberlist #page-header .headerbar:after {
	content: none !important;
}

/* Nie pozwalamy, aby elementy starego banera rozciągały nagłówek. */
body.section-memberlist #page-header .headerbar .inner {
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
}

body.section-memberlist #page-header .site-description {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	min-height: 52px !important;
	height: 52px !important;
	display: flex !important;
	align-items: center !important;
	background: none !important;
}

/* Jeżeli FarmingPro używa własnego logo, zachowujemy je w całości. */
body.section-memberlist #page-header .site-description a,
body.section-memberlist #page-header .site-description .logo,
body.section-memberlist #page-header .site-description img {
	max-height: 46px !important;
	width: auto !important;
}

/* Nawigacja FarmingPro znajdująca się w headerbarze. */
body.section-memberlist #page-header .headerbar ul,
body.section-memberlist #page-header .headerbar .linklist {
	margin: 0 !important;
	padding: 0 !important;
}

body.section-memberlist #page-header .headerbar a {
	text-decoration: none !important;
}

/* Profil zaczyna się bezpośrednio pod kompaktowym nagłówkiem. */
body.section-memberlist #page-body {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* === FIX 1.0.18: FarmingPro-style top navigation on the profile === */
body.section-memberlist .navbar,
body.section-memberlist #page-header .navbar {
	display: none !important;
}

body.section-memberlist .m5up-topbar {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 56px;
	height: 56px;
	margin: 0 0 8px;
	padding: 0 10px;
	background: linear-gradient(180deg, #102f50 0%, #09233e 100%);
	border-bottom: 2px solid #27a9e8;
	box-shadow: 0 2px 7px rgba(0,0,0,.24);
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	position: relative;
	z-index: 100;
}

body.section-memberlist .m5up-brand {
	width: 142px;
	min-width: 142px;
	padding: 7px 9px 4px;
	text-decoration: none;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
}
body.section-memberlist .m5up-brand strong {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.4px;
}
body.section-memberlist .m5up-brand small {
	font-size: 8px;
	margin-top: 3px;
	white-space: nowrap;
	opacity: .9;
}

body.section-memberlist .m5up-topnav {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
	min-width: 0;
}
body.section-memberlist .m5up-topnav a {
	width: 76px;
	min-width: 58px;
	padding: 5px 3px 3px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #fff;
	text-decoration: none;
	font-size: 8px;
	line-height: 1.05;
	border-left: 1px solid rgba(255,255,255,.045);
}
body.section-memberlist .m5up-topnav a:hover,
body.section-memberlist .m5up-topnav a:focus {
	background: rgba(31,151,224,.22);
}
body.section-memberlist .m5up-topnav i {
	font-size: 14px;
	line-height: 14px;
}
body.section-memberlist .m5up-topnav a:nth-child(4) { width: 92px; }

body.section-memberlist .m5up-toptools {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
}
body.section-memberlist .m5up-search {
	display: flex;
	width: 130px;
	height: 27px;
	margin: 0 2px 0 5px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 15px;
	overflow: hidden;
	background: rgba(3,18,34,.45);
}
body.section-memberlist .m5up-search input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	padding: 0 9px;
	font-size: 9px;
}
body.section-memberlist .m5up-search input::placeholder { color: rgba(255,255,255,.72); }
body.section-memberlist .m5up-search button {
	width: 30px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
body.section-memberlist .m5up-tool-icon {
	width: 24px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
}
body.section-memberlist .m5up-user-mini {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 110px;
	padding: 3px 5px;
	color: #fff;
	text-decoration: none;
	font-size: 9px;
	white-space: nowrap;
}
body.section-memberlist .m5up-user-avatar {
	width: 25px;
	height: 25px;
	border: 1px solid rgba(255,255,255,.8);
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #062b4b;
}
body.section-memberlist .m5up-user-avatar img {
	width: 100%; height: 100%; object-fit: cover;
}
body.section-memberlist .m5up-user-avatar .icon { font-size: 11px; }

/* Cover slogan: keep it in the right half, as in the reference. */
body.section-memberlist .m5up-cover-slogan {
	position: absolute;
	right: 52px;
	top: 42px;
	font-family: "Segoe Script", "Brush Script MT", cursive;
	font-size: 22px;
	line-height: 1.2;
	text-align: center;
	color: rgba(255,255,255,.9);
	text-shadow: 0 2px 7px rgba(0,0,0,.4);
	transform: rotate(-2deg);
}

@media (max-width: 900px) {
	body.section-memberlist .m5up-brand { width: 125px; min-width: 125px; }
	body.section-memberlist .m5up-topnav a { width: 62px; }
	body.section-memberlist .m5up-topnav a:nth-child(4) { width: 78px; }
	body.section-memberlist .m5up-search { width: 105px; }
	body.section-memberlist .m5up-user-mini > span:not(.m5up-user-avatar) { display: none; }
}

/* FIX 1.0.19 — profil ma mieć tylko JEDEN górny pasek.
   Ukrywamy natywny #page-header FarmingPro (w tym osobny pasek wyszukiwarki),
   a pozostawiamy nasz m5up-topbar z właściwą nawigacją. */
body.section-memberlist #page-header {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.section-memberlist .m5up-topbar {
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 10px !important;
	border-radius: 0 !important;
}

body.section-memberlist #page-body {
	padding-top: 0 !important;
	margin-top: 0 !important;
}


/* FIX 1.0.20 — profil i nagłówek mają wspólną szerokość; usuwamy białą ramę kontenera. */
body.section-memberlist #wrap,
body.section-memberlist .wrap {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.section-memberlist #page-body {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}
body.section-memberlist .m5up-topbar,
body.section-memberlist .media5-userprofile {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.section-memberlist .m5up-topbar {
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}
body.section-memberlist .m5up-cover {
	width: 100% !important;
	max-width: none !important;
}
body.section-memberlist .m5up-layout {
	width: 100% !important;
	max-width: none !important;
	grid-template-columns: 335px minmax(0, 1fr) !important;
	gap: 14px !important;
}
/* Slogan jest pozycjonowany względem całego banera, więc nie nachodzi na tytuł. */
body.section-memberlist .m5up-cover-content {
	position: absolute !important;
	inset: 0 !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
}
body.section-memberlist .m5up-cover-title {
	position: absolute !important;
	left: 48px !important;
	top: 70px !important;
}
body.section-memberlist .m5up-cover-subtitle {
	position: absolute !important;
	left: 48px !important;
	top: 143px !important;
	margin-top: 0 !important;
}
body.section-memberlist .m5up-cover-slogan {
	position: absolute !important;
	right: 55px !important;
	top: 88px !important;
	margin: 0 !important;
	z-index: 2 !important;
}
body.section-memberlist .media5-userprofile {
	padding: 0 !important;
}
@media (max-width: 900px) {
	body.section-memberlist .m5up-layout {
		grid-template-columns: 280px minmax(0, 1fr) !important;
	}
}
@media (max-width: 700px) {
	body.section-memberlist .m5up-layout { display: block !important; }
	body.section-memberlist .m5up-cover-title { left: 25px !important; top: 55px !important; }
	body.section-memberlist .m5up-cover-subtitle { left: 25px !important; top: 108px !important; }
}

/* FIX 1.0.21 — jasne tło strony profilu, jak w makiecie.
   Ciemne tło FarmingPro pozostaje poza głównym obszarem strony. */
body.section-memberlist {
	background: #eef5fa !important;
}

body.section-memberlist #wrap,
body.section-memberlist .wrap {
	background: #f7fbfe !important;
}

body.section-memberlist #page-body {
	background: #f7fbfe !important;
}

/* Profil ma tworzyć jeden spójny obszar pod górnym paskiem. */
body.section-memberlist .media5-userprofile {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.section-memberlist .m5up-cover,
body.section-memberlist .m5up-layout {
	width: 100% !important;
	max-width: none !important;
}

/* Usuwamy ewentualne tło/cień rodziców, które tworzy ciemne szczeliny między kolumnami. */
body.section-memberlist #page-body > * {
	background-color: transparent;
}

body.section-memberlist .m5up-cover,
body.section-memberlist .m5up-layout,
body.section-memberlist .m5up-main,
body.section-memberlist .m5up-sidebar {
	background: transparent;
}


/* FIX 1.0.22 — właściwe tło strony i wspólna szerokość nagłówka/profilu. */
body.section-memberlist {
	background: #111b24 !important;
}

/* Główny obszar strony pozostaje jasny, bez białej ramy i bez cienia. */
body.section-memberlist #wrap,
body.section-memberlist .wrap {
	background: #f5f9fc !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.section-memberlist #page-body {
	background: #f5f9fc !important;
}

/* Pasek i profil mają dokładnie tę samą szerokość i wspólne krawędzie. */
body.section-memberlist .m5up-topbar,
body.section-memberlist .media5-userprofile {
	width: calc(100% - 18px) !important;
	max-width: none !important;
	margin-left: 9px !important;
	margin-right: 9px !important;
}

body.section-memberlist .m5up-topbar {
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}

body.section-memberlist .media5-userprofile {
	background: transparent !important;
}

body.section-memberlist .m5up-cover,
body.section-memberlist .m5up-layout {
	width: 100% !important;
}

@media (max-width: 700px) {
	body.section-memberlist .m5up-topbar,
	body.section-memberlist .media5-userprofile {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}


/* FIX 1.0.23 — usuń jasną szczelinę nad i po lewej stronie górnego paska.
   Pasek dochodzi do górnej i lewej krawędzi jasnego obszaru, a prawa krawędź pozostaje bez zmian. */
body.section-memberlist .m5up-topbar {
	margin-top: -10px !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}
body.section-memberlist #page-body {
	padding-top: 0 !important;
}


/* FIX 1.0.24 — wyrównanie paska nawigacji do pełnej szerokości jasnego bloku.
   Usuwa lewą szczelinę i wysunięcie prawej krawędzi. */
body.section-memberlist .m5up-topbar {
	width: calc(100% + 18px) !important;
	max-width: none !important;
	margin-left: -9px !important;
	margin-right: -9px !important;
	margin-top: -9px !important;
}

@media (max-width: 700px) {
	body.section-memberlist .m5up-topbar {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0 !important;
	}
}


/* FIX 1.0.25 — finalny poziomy alignment paska nawigacji. */
body.section-memberlist .m5up-topbar {
	box-sizing: border-box !important;
	width: calc(100% - 20px) !important;
	max-width: none !important;
	margin-left: 10px !important;
	margin-right: 10px !important;
	margin-top: -10px !important;
	margin-bottom: 10px !important;
}

@media (max-width: 700px) {
	body.section-memberlist .m5up-topbar {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0 !important;
	}
}


/* FIX 1.0.26 — minimalne przesunięcie górnego paska w górę. */
body.section-memberlist .m5up-topbar { margin-top: -10px !important; }
@media (max-width: 700px) { body.section-memberlist .m5up-topbar { margin-top: 0 !important; } }


/* v1.0.28 — ranga i edycja profilu + 5 prezentów w jednym rzędzie */
.m5up-rank {
	display: block;
	text-align: center;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 700;
	color: #607792;
	margin: 2px 0 2px;
}
.m5up-rank-label {
	display: inline-block;
}
.m5up-edit {
	display: block;
	width: 100%;
	margin-top: 12px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.2;
}
.m5up-gifts {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 7px !important;
}
.m5up-gifts div {
	min-width: 0;
	padding: 10px 3px !important;
	font-size: 28px !important;
	line-height: 1.15;
}
.m5up-gifts b {
	font-size: 12px !important;
	margin-top: 5px !important;
}
@media (max-width: 600px) {
	.m5up-gifts { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	.m5up-gifts div { font-size: 23px !important; }
}

/* FIX 2.0.12 — responsywne menu profilu na telefonach */
@media (max-width: 700px) {
	body.section-memberlist {
		overflow-x: hidden !important;
	}

	body.section-memberlist .m5up-topbar {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-areas:
			"brand tools"
			"nav nav" !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	body.section-memberlist .m5up-brand {
		grid-area: brand !important;
		min-width: 0 !important;
		padding: 8px 10px !important;
		box-sizing: border-box !important;
	}

	body.section-memberlist .m5up-toptools {
		grid-area: tools !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		min-width: 0 !important;
		padding: 6px 8px !important;
		gap: 5px !important;
		box-sizing: border-box !important;
	}

	body.section-memberlist .m5up-search {
		width: 34px !important;
		min-width: 34px !important;
		margin: 0 !important;
	}

	body.section-memberlist .m5up-search input {
		display: none !important;
	}

	body.section-memberlist .m5up-search button {
		width: 34px !important;
		height: 32px !important;
		padding: 0 !important;
	}

	body.section-memberlist .m5up-user-mini > span:not(.m5up-user-avatar),
	body.section-memberlist .m5up-user-mini > .fa-caret-down {
		display: none !important;
	}

	body.section-memberlist .m5up-user-mini {
		padding: 0 !important;
		min-width: 32px !important;
	}

	body.section-memberlist .m5up-topnav {
		grid-area: nav !important;
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	body.section-memberlist .m5up-topnav a {
		min-width: 0 !important;
		width: 100% !important;
		box-sizing: border-box !important;
		padding: 7px 3px !important;
		font-size: 10px !important;
		line-height: 1.15 !important;
		text-align: center !important;
		white-space: normal !important;
		overflow: hidden !important;
	}

	body.section-memberlist .m5up-topnav a i {
		display: block !important;
		margin: 0 auto 2px !important;
	}

	body.section-memberlist .m5up-topnav a span {
		display: block !important;
		max-width: 100% !important;
		overflow-wrap: anywhere !important;
	}

	body.section-memberlist .media5-userprofile,
	body.section-memberlist .m5up-cover,
	body.section-memberlist .m5up-layout {
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* 2.1.0 — Tablica: prawdziwy formularz i wpisy */
.m5up-board-form textarea { min-height: 95px; height: 95px; resize: vertical; }
.m5up-board-message { margin-bottom: 8px; padding: 8px 10px; border-radius: 7px; font-size: 12px; }
.m5up-board-message.error { background: #fff0f0; border: 1px solid #f0b7b7; color: #a52a2a; }
.m5up-board-visibility { display: inline-flex; align-items: center; border: 1px solid #dce6f0; background: #f7faff; color: #3c5d80; border-radius: 6px; padding: 7px 9px; font-size: 10px; font-weight: 600; }
.m5up-board-readonly { padding: 14px; border: 1px dashed #d5e1ed; border-radius: 8px; color: #71839a; font-size: 12px; background: #f9fbfd; }
.m5up-post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.m5up-post-empty { padding: 20px; text-align: center; background: #fff; border: 1px dashed #dce6f0; border-radius: 12px; color: #7b8da2; font-size: 12px; }
.m5up-posts-head > span { font-size: 10px; color: #8392a4; }
@media (max-width: 700px) {
  .m5up-board-form textarea { min-height: 90px; height: 90px; }
  .m5up-board-visibility { flex: 1 1 auto; justify-content: center; }
  .m5up-board-actions .publish { flex: 1 1 100%; margin-left: 0 !important; }
}

/* 2.1.1 — widoczność wpisów Tablicy */
.m5up-board-visibility-select {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid #dce6f0;
  background: #f7faff;
  color: #3c5d80;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.m5up-board-groups {
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #f8fbfe;
}
.m5up-board-groups-title {
  margin-bottom: 7px;
  color: #274e78;
  font-size: 11px;
  font-weight: 700;
}
.m5up-board-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}
.m5up-board-group-list label {
  color: #526a82;
  font-size: 11px;
  cursor: pointer;
}
.m5up-board-group-list input { margin-right: 4px; }
.m5up-board-groups-empty { color: #7b8da2; font-size: 11px; }
@media (max-width: 700px) {
  .m5up-board-visibility-select { flex: 1 1 100%; width: 100%; justify-content: center; }
  .m5up-board-group-list { flex-direction: column; gap: 6px; }
}


/* FIX 2.1.13 — stabilizacja układu Tablicy po dodaniu przycisku znajomych */
.m5up-main { min-width: 0; }
.m5up-board { position: relative; width: 100%; min-width: 0; }
.m5up-posts { position: relative; width: 100%; min-width: 0; clear: both; margin-top: 12px; }
.m5up-posts-head { clear: both; }


/* 2.2.0 — zdjęcia na Tablicy */
.m5up-add-photos { cursor: pointer; }
.m5up-photo-preview { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.m5up-photo-preview:empty { display:none; }
.m5up-photo-preview-item { width:72px; height:72px; border:1px solid #dce6f0; border-radius:8px; overflow:hidden; background:#f5f8fb; }
.m5up-photo-preview-item img { width:100%; height:100%; object-fit:cover; display:block; }
.m5up-post-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:8px; max-width:620px; }
.m5up-post-images a { display:block; overflow:hidden; border-radius:9px; background:#f1f5f8; }
.m5up-post-images img { display:block; width:100%; height:220px; object-fit:cover; }
.m5up-post-images a:only-child img { height:auto; max-height:520px; object-fit:contain; }
@media (max-width:600px) {
  .m5up-post-images { grid-template-columns:1fr; }
  .m5up-post-images img { height:auto; max-height:420px; }
}


/* 2.2.23 — wszystkie grupy użytkownika pod nickiem. */
.m5up-user-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 auto 12px;
}
.m5up-user-groups .m5up-group-badge {
    margin: 0 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease;
}
.m5up-user-groups .m5up-group-badge:hover {
    transform: translateY(-1px);
    background: #eaf2f9;
}
.m5up-user-groups .m5up-group-badge-primary {
    font-weight: 700 !important;
}

/* 2.2.13 — moderny moduł profilu + galeria zdjęć w stylu Facebooka. */
.m5up-profile-card-modern {
    padding: 16px 14px 14px !important;
    text-align: center !important;
}
.m5up-avatar-wrap-modern {
    width: 124px !important;
    margin: -68px auto 10px !important;
}
.m5up-profile-card-modern .m5up-avatar {
    width: 124px !important;
    height: 124px !important;
    border-width: 5px !important;
}
.m5up-profile-card-modern h1 {
    margin: 2px 0 4px !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
}
.m5up-rank-modern {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 12px !important;
    margin: 0 auto 12px !important;
    border-radius: 999px;
    background: #f1f5fa;
    border: 1px solid #dce6f0;
    color: #4f6782 !important;
    font-size: 12px !important;
}
.m5up-profile-quickstats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e4ebf2;
    border-bottom: 1px solid #e4ebf2;
    margin: 2px 0 12px;
}
.m5up-profile-quickstats > div {
    min-width: 0;
    padding: 10px 3px 9px;
    border-right: 1px solid #e4ebf2;
}
.m5up-profile-quickstats > div:last-child { border-right: 0; }
.m5up-profile-quickstats b {
    display: block;
    color: #123f6d;
    font-size: 16px;
    line-height: 1.15;
}
.m5up-profile-quickstats span {
    display: block;
    margin-top: 3px;
    color: #8091a5;
    font-size: 9px;
    line-height: 1.1;
}
.m5up-profile-level {
    padding: 10px 10px 9px;
    margin-bottom: 11px;
    border-radius: 10px;
    background: #f7faff;
    border: 1px solid #e0e9f2;
    text-align: left;
}
.m5up-profile-level-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #49637f;
    font-size: 10px;
}
.m5up-profile-level-head strong { color: #1b5d91; }
.m5up-profile-level-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce7f0;
}
.m5up-profile-level-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #318bc8;
}
.m5up-profile-level-title {
    margin-top: 5px;
    color: #7a8ca0;
    font-size: 9px;
}
.m5up-profile-details {
    display: grid;
    gap: 0;
    text-align: left;
}
.m5up-profile-details > div {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 5px;
    align-items: center;
    min-width: 0;
    padding: 7px 1px;
    border-bottom: 1px solid #edf2f6;
    font-size: 10px;
}
.m5up-profile-details > div > span { text-align: center; }
.m5up-profile-details b { color: #365674; font-weight: 700; }
.m5up-profile-details em,
.m5up-profile-details strong,
.m5up-profile-details a {
    min-width: 0;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #71849a;
    font-style: normal;
    text-align: right;
}
.m5up-profile-details a { color: #2d73ad; }

.m5up-post-images {
    width: 100%;
    max-width: 720px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
}
.m5up-post-images-1 { grid-template-columns: minmax(0, 1fr) !important; max-width: 620px !important; }
.m5up-post-images-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.m5up-post-images-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.m5up-post-images-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.m5up-post-images a {
    cursor: zoom-in !important;
    position: relative;
}
.m5up-post-images img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}
.m5up-post-images-1 img {
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
}

.m5up-lightbox[hidden] { display: none !important; }
.m5up-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    color: #fff;
}
.m5up-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 20, .88);
    backdrop-filter: blur(5px);
}
.m5up-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 96vw);
    height: min(900px, 94vh);
    min-height: 520px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    grid-template-rows: 54px minmax(0, 1fr) 92px 82px;
    grid-template-areas:
        "top top top"
        "prev image next"
        "thumbs thumbs thumbs"
        "footer footer footer";
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: #05090e;
    box-shadow: 0 25px 90px rgba(0,0,0,.55);
}
.m5up-lightbox-top {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 20px;
}
.m5up-lightbox-counter { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.m5up-lightbox-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.m5up-lightbox-close:hover { background: rgba(255,255,255,.18); }
.m5up-lightbox-image-wrap {
    grid-area: image;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
}
.m5up-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}
.m5up-lightbox-nav {
    align-self: center;
    justify-self: center;
    z-index: 2;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-size: 44px;
    line-height: 42px;
    cursor: pointer;
}
.m5up-lightbox-nav:hover { background: rgba(255,255,255,.17); }
.m5up-lightbox-nav[hidden] { display: none; }
.m5up-lightbox-prev { grid-area: prev; }
.m5up-lightbox-next { grid-area: next; }
.m5up-lightbox-thumbs {
    grid-area: thumbs;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    overflow-x: auto;
}
.m5up-lightbox-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #151c24;
    opacity: .72;
    cursor: pointer;
}
.m5up-lightbox-thumb.active { border-color: #2e9cf0; opacity: 1; }
.m5up-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m5up-lightbox-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 22px 16px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.m5up-lightbox-author-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #082f51;
    display: flex;
    align-items: center;
    justify-content: center;
}
.m5up-lightbox-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m5up-lightbox-author-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m5up-lightbox-author-info strong { font-size: 13px; }
.m5up-lightbox-author-info span { font-size: 10px; opacity: .72; }
.m5up-lightbox-author-info small { font-size: 9px; opacity: .5; }
body.m5up-lightbox-open { overflow: hidden !important; }

@media (max-width: 700px) {
    .m5up-profile-quickstats > div { padding-left: 1px; padding-right: 1px; }
    .m5up-profile-quickstats b { font-size: 14px; }
    .m5up-profile-details > div { grid-template-columns: 18px 1fr auto; }
    .m5up-post-images { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .m5up-post-images-1 { grid-template-columns: 1fr !important; }
    .m5up-post-images img { height: 135px !important; }
    .m5up-post-images-1 img { height: auto !important; }
    .m5up-lightbox { padding: 0; }
    .m5up-lightbox-panel {
        width: 100vw;
        height: 100vh;
        min-height: 0;
        border-radius: 0;
        grid-template-columns: 48px minmax(0,1fr) 48px;
        grid-template-rows: 56px minmax(0,1fr) 78px 76px;
    }
    .m5up-lightbox-nav { width: 38px; height: 38px; font-size: 34px; line-height: 31px; }
    .m5up-lightbox-thumb { flex-basis: 62px; width: 62px; height: 50px; }
    .m5up-lightbox-thumbs { justify-content: flex-start; padding-left: 10px; padding-right: 10px; }
    .m5up-lightbox-footer { padding-left: 14px; padding-right: 14px; }
}

/* FIX 2.2.18 — przywrócenie stabilnego rozmiaru panelu „Podaruj prezent”. */
.m5up-gift-send {
	box-sizing: border-box;
	width: calc(100% - 20px);
	margin: 0 10px 12px;
	padding: 12px;
	background: #fff;
	border: 1px solid #dce6f0;
	border-radius: 13px;
	box-shadow: 0 4px 18px rgba(25,70,110,.07);
}
.m5up-gift-send .m5up-side-title {
	margin-bottom: 8px;
}
.m5up-gift-send-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.m5up-gift-send-row .m5up-gift-select {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
}
.m5up-gift-send-row .m5up-gift-send-button {
	flex: 0 0 auto;
}
.m5up-gift-message-option {
	margin-top: 8px;
}
@media (max-width: 700px) {
	.m5up-gift-send { width: calc(100% - 16px); margin-left: 8px; margin-right: 8px; }
	.m5up-gift-send-row { flex-wrap: wrap; }
	.m5up-gift-send-row .m5up-gift-select { flex-basis: 100%; }
}


/* FIX 2.2.24 — mobilny górny pasek: zawsze dwa pełne rzędy.
   Rząd 1: logo + narzędzia. Rząd 2: pełna nawigacja.
   Nadpisuje wcześniejsze height:56px, które ucinało drugi rząd. */
@media (max-width: 700px) {
	body.section-memberlist .m5up-topbar {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-rows: auto auto !important;
		grid-template-areas:
			"brand tools"
			"nav nav" !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		align-items: stretch !important;
		overflow: visible !important;
		padding: 0 !important;
	}

	body.section-memberlist .m5up-brand {
		grid-area: brand !important;
		min-width: 0 !important;
		width: auto !important;
		height: 54px !important;
		padding: 8px 12px !important;
		box-sizing: border-box !important;
	}

	body.section-memberlist .m5up-toptools {
		grid-area: tools !important;
		height: 54px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		padding: 5px 9px !important;
		gap: 6px !important;
		box-sizing: border-box !important;
	}

	body.section-memberlist .m5up-topnav {
		grid-area: nav !important;
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		min-height: 43px !important;
		border-top: 1px solid rgba(255,255,255,.08) !important;
		background: rgba(0,0,0,.10) !important;
	}

	body.section-memberlist .m5up-topnav a {
		width: 100% !important;
		min-width: 0 !important;
		height: 43px !important;
		padding: 5px 2px 4px !important;
		box-sizing: border-box !important;
		font-size: 9px !important;
		line-height: 1.05 !important;
		gap: 2px !important;
	}

	body.section-memberlist .m5up-topnav a i {
		display: block !important;
		margin: 0 auto 2px !important;
		font-size: 13px !important;
		line-height: 13px !important;
	}

	body.section-memberlist .m5up-topnav a span {
		display: block !important;
		max-width: 100% !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		white-space: nowrap !important;
	}
}

/* FIX 2.2.24 — zdjęcia na tablicy: ładowanie wszystkich od razu.
   Lazy loading powodował, że część galerii pozostawała niezaładowana
   do czasu przewinięcia strony. */
.m5up-post-images img {
	loading: eager;
}

/* FIX 2.2.26 — link „Zobacz wszystkie” zawsze po prawej stronie nagłówka prezentów. */
.m5up-side-title.m5up-gifts-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.m5up-side-title.m5up-gifts-title a {
	margin-left: auto;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 700;
	color: #176ec3;
	text-decoration: none !important;
}

/* FIX 2.2.26 — gwarantowane style strony prezentów również przy problemie z cache CSS. */

/* FIX 2.2.27 — pełny wygląd strony prezentów.
   Te style są celowo częścią głównego arkusza profilu, ponieważ
   strona kontrolera prezentów musi mieć ten sam wygląd co profil. */
.m5up-gifts-page{width:min(100%,1180px);margin:20px auto 40px;color:#173b69;font-family:Arial,Helvetica,sans-serif}
.m5up-gifts-page *{box-sizing:border-box}
.m5up-gifts-head{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#fff;border:1px solid #d9e5f0;border-radius:14px;padding:24px 28px;margin-bottom:14px;box-shadow:0 4px 14px rgba(0,35,70,.08)}
.m5up-gifts-head h1{margin:4px 0 6px;color:#0d4d88;font-size:27px}
.m5up-gifts-head p{margin:0;color:#647a91}
.m5up-gifts-back{background:#1479df;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:10px 15px;font-weight:700;white-space:nowrap}
.m5up-gift-row{display:flex;gap:18px;align-items:flex-start;background:#fff;border:1px solid #d9e5f0;border-radius:12px;padding:16px 20px;margin-bottom:10px;box-shadow:0 2px 9px rgba(0,35,70,.06)}
.m5up-gift-icon{width:70px;height:70px;flex:0 0 70px;border-radius:12px;background:#f4f8fc;display:flex;align-items:center;justify-content:center;font-size:42px}
.m5up-gift-main{min-width:0;flex:1}
.m5up-gift-main h2{margin:2px 0 5px;font-size:18px;color:#153f6d}
.m5up-gift-meta{font-size:13px;color:#71849a}.m5up-gift-meta a{color:#0876d1;text-decoration:none;font-weight:700}
.m5up-gift-message{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#f6f9fc;color:#324f6c;white-space:pre-wrap;overflow-wrap:anywhere}
.m5up-gift-private{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#f1f3f5;color:#687887;font-style:italic}
.m5up-gifts-empty{background:#fff;border:1px solid #d9e5f0;border-radius:12px;padding:35px;text-align:center;color:#71849a}
@media(max-width:700px){
 .m5up-gifts-page{width:100%;padding:0 10px}
 .m5up-gifts-head{display:block;padding:18px}
 .m5up-gifts-head h1{font-size:22px}
 .m5up-gifts-back{display:inline-block;margin-top:14px}
 .m5up-gift-row{padding:13px;gap:12px}
 .m5up-gift-icon{width:58px;height:58px;flex-basis:58px;font-size:34px}
}

/* 2.2.28 — widoki dodatkowe wewnątrz głównej kolumny profilu. */
.m5up-profile-view{background:#fff;border:1px solid #d9e5f0;border-radius:14px;padding:18px 20px;box-shadow:0 4px 16px rgba(0,35,70,.06)}
.m5up-profile-view-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #e2eaf2}
.m5up-profile-view-head>div:first-child{display:flex;align-items:center;gap:13px;min-width:0}
.m5up-profile-view-icon{width:48px;height:48px;border-radius:13px;background:#f1f6fb;display:flex;align-items:center;justify-content:center;font-size:27px;flex:0 0 48px}
.m5up-profile-view .m5up-section-kicker{font-size:10px;color:#7990a8;font-weight:700;letter-spacing:.04em;margin-bottom:2px}
.m5up-profile-view-head h2{margin:0;color:#153f6d;font-size:24px}
.m5up-profile-view-head p{margin:3px 0 0;color:#71869c;font-size:12px}
.m5up-profile-view-back{display:inline-flex;align-items:center;white-space:nowrap;background:#1479df;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700}
.m5up-gift-history{display:grid;gap:10px;margin-top:15px}
.m5up-gift-history-card{display:flex;gap:14px;align-items:flex-start;border:1px solid #dce6ef;border-radius:12px;padding:13px 15px;background:#fbfdff}
.m5up-gift-history-icon{width:58px;height:58px;border-radius:12px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-size:32px;flex:0 0 58px}
.m5up-gift-history-main{min-width:0;flex:1}
.m5up-gift-history-main h3{margin:1px 0 4px;color:#153f6d;font-size:18px}
.m5up-gift-history-meta{font-size:11px;color:#8495a7}.m5up-gift-history-meta a{color:#176ec3;text-decoration:none;font-weight:700}.m5up-gift-history-meta span{padding:0 5px;color:#b0bdc9}
.m5up-gift-history-message{margin:8px 0 0;padding:9px 11px;border-radius:8px;background:#f4f8fc;color:#45627f;font-size:12px;line-height:1.5}.m5up-gift-history-message.is-private{background:#fff7e8}
.m5up-gift-history-private{margin-top:8px;color:#8b6b2c;font-size:11px;background:#fff8e9;border-radius:8px;padding:8px 10px}
.m5up-gifts-profile-empty{margin-top:15px;border:1px dashed #cbd9e6;background:#f8fbfd;border-radius:10px;padding:22px;text-align:center;color:#7890a7}
@media(max-width:700px){.m5up-profile-view{padding:14px}.m5up-profile-view-head{align-items:flex-start;flex-direction:column}.m5up-profile-view-back{width:100%;justify-content:center}.m5up-profile-view-head h2{font-size:21px}.m5up-gift-history-card{padding:11px}.m5up-gift-history-icon{width:50px;height:50px;flex-basis:50px;font-size:27px}}


/* FIX 2.2.37 — edycja i usuwanie własnych wpisów na Tablicy. */
.m5up-post-author { position: relative; }
.m5up-post-menu-wrap { margin-left: auto; position: relative; flex: 0 0 auto; }
.m5up-post-menu-trigger { border: 0; background: transparent; color: #71869c; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; font-size: 21px; line-height: 24px; padding: 0; }
.m5up-post-menu-trigger:hover { background: #eef4f9; color: #176ec3; }
.m5up-post-menu { position: absolute; right: 0; top: 30px; z-index: 30; min-width: 150px; padding: 5px; background: #fff; border: 1px solid #d8e4ee; border-radius: 9px; box-shadow: 0 8px 24px rgba(0,35,70,.14); }
.m5up-post-menu button { display: block; width: 100%; border: 0; background: transparent; border-radius: 6px; padding: 8px 10px; text-align: left; font: inherit; font-size: 12px; color: #234967; cursor: pointer; }
.m5up-post-menu button:hover { background: #f1f6fa; }
.m5up-post-menu button.danger { color: #c0392b; }
.m5up-post-edit-form { margin: 7px 0 10px; }
.m5up-post-edit-form textarea { display: block; width: 100%; min-height: 85px; box-sizing: border-box; resize: vertical; border: 1px solid #cbdbe8; border-radius: 8px; padding: 10px 11px; background: #fff; color: #234967; font: inherit; font-size: 13px; line-height: 1.5; outline: none; }
.m5up-post-edit-form textarea:focus { border-color: #1479df; box-shadow: 0 0 0 2px rgba(20,121,223,.10); }
.m5up-post-edit-actions { display: flex; gap: 7px; margin-top: 7px; }
.m5up-post-edit-actions button { border: 1px solid #d2dfeb; border-radius: 7px; padding: 7px 11px; font-size: 11px; font-weight: 700; cursor: pointer; background: #fff; color: #45627d; }
.m5up-post-edit-actions button.save { background: #1479df; border-color: #1479df; color: #fff; }
.m5up-post-edit-actions button.cancel:hover { background: #f3f7fa; }
@media (max-width:700px) {
    .m5up-post-menu { right: -2px; min-width: 145px; }
    .m5up-post-edit-form textarea { min-height: 95px; }
}


/* FIX546 — przywrócenie stylowania istniejącego menu MÓJ PROFIL.
   Nie zmieniamy układu profilu; stylujemy wyłącznie globalny dropdown. */
.m5up-myprofile-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 2147483647 !important;
    width: 250px !important;
    max-width: calc(100vw - 16px) !important;
    margin: 0 !important;
    padding: 6px !important;
    display: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #cbd9e7 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    overflow: visible !important;
}
.m5up-myprofile-dropdown.is-open { display: block !important; visibility: visible !important; opacity: 1 !important; }
.m5up-myprofile-dropdown a {
    display: flex !important; align-items: center !important; gap: 9px !important;
    width: 100% !important; min-height: 34px !important; margin: 0 !important;
    padding: 7px 10px !important; box-sizing: border-box !important;
    border: 0 !important; border-radius: 6px !important; background: transparent !important;
    color: #123c63 !important; text-decoration: none !important;
    font-size: 12px !important; font-weight: 600 !important; line-height: 1.2 !important;
    white-space: nowrap !important;
}
.m5up-myprofile-dropdown a:hover { background: #edf5fc !important; }
.m5up-myprofile-dropdown .m5up-menu-icon {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    flex: 0 0 22px !important; width: 22px !important; min-width: 22px !important;
    font-size: 16px !important; line-height: 1 !important;
}
.m5up-myprofile-dropdown .m5up-logout { color: #c52222 !important; }
.m5up-myprofile-dropdown .m5up-menu-sep { display:block !important; height:1px !important; margin:5px 4px !important; padding:0 !important; background:#e1e7ed !important; }

/* FIX546 — stylowanie centrum powiadomień z dzwoneczka. */
.m5up-notification-trigger { position: relative !important; border:0 !important; background:transparent !important; cursor:pointer !important; padding:0 !important; font-family:inherit !important; }
.m5up-notification-count { position:absolute !important; top:2px !important; right:0 !important; min-width:15px !important; height:15px !important; padding:0 4px !important; border-radius:9px !important; background:#e53935 !important; color:#fff !important; font:bold 9px/15px Arial,sans-serif !important; text-align:center !important; box-sizing:border-box !important; border:1px solid rgba(255,255,255,.75) !important; }
.m5up-notification-dropdown { display:none !important; position:fixed !important; top:66px !important; right:12px !important; width:380px !important; max-width:calc(100vw - 24px) !important; background:#fff !important; border:1px solid #d7e3ee !important; border-radius:12px !important; box-shadow:0 12px 30px rgba(0,0,0,.22) !important; z-index:2147483646 !important; color:#173d63 !important; overflow:hidden !important; font-family:Arial,Helvetica,sans-serif !important; }
.m5up-notification-dropdown.is-open { display:block !important; }
.m5up-notification-head { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:8px !important; padding:11px 12px !important; border-bottom:1px solid #e2ebf3 !important; background:#f7faff !important; font-size:13px !important; }
.m5up-notification-head button { border:0 !important; background:transparent !important; color:#1474c9 !important; font-size:10px !important; cursor:pointer !important; padding:3px !important; }
.m5up-notification-list { max-height:430px !important; overflow:auto !important; }
.m5up-notification-item { position:relative !important; display:flex !important; gap:9px !important; align-items:flex-start !important; padding:10px 12px !important; text-decoration:none !important; color:#173d63 !important; border-bottom:1px solid #edf2f6 !important; background:#fff !important; }
.m5up-notification-item:hover { background:#f3f8fd !important; text-decoration:none !important; }
.m5up-notification-item.is-unread { background:#f7fbff !important; }
.m5up-notification-icon { width:30px !important; height:30px !important; min-width:30px !important; border-radius:50% !important; background:#edf5fc !important; display:flex !important; align-items:center !important; justify-content:center !important; font-size:16px !important; }
.m5up-notification-body { min-width:0 !important; display:flex !important; flex-direction:column !important; gap:2px !important; padding-right:8px !important; }
.m5up-notification-body strong { font-size:11px !important; color:#0b4f86 !important; line-height:1.25 !important; }
.m5up-notification-body span { font-size:10px !important; color:#496b8b !important; line-height:1.35 !important; overflow-wrap:anywhere !important; }
.m5up-notification-body small { font-size:9px !important; color:#8a9caf !important; }
.m5up-notification-dot { width:7px !important; height:7px !important; border-radius:50% !important; background:#e53935 !important; position:absolute !important; right:10px !important; top:14px !important; }
.m5up-notification-empty { padding:28px 14px !important; text-align:center !important; color:#8295a8 !important; font-size:11px !important; }
@media(max-width:700px){ .m5up-myprofile-dropdown{top:60px !important;right:5px !important;width:220px !important;max-width:calc(100vw - 10px) !important;} .m5up-notification-dropdown{right:6px !important;top:60px !important;width:360px !important;max-width:calc(100vw - 12px) !important;} }
/* FIX562 — GLOBALNY PASEK MEDIA5 NA CAŁYM PORTALU. */

/* FIX562 — GLOBALNY PASEK MEDIA5 NA CAŁYM PORTALU.
   Te same style, które dotychczas były ograniczone do body.section-memberlist.
   Profil zachowuje swoje istniejące reguły; poniższe reguły zapewniają identyczny
   pasek także na forum i pozostałych stronach. */

.m5up-topbar {
	display:flex;
	align-items:stretch;
	width:100%;
	min-height:56px;
	height:56px;
	margin:0 0 8px;
	padding:0 10px;
	background:linear-gradient(180deg,#102f50 0%,#09233e 100%);
	border-bottom:2px solid #27a9e8;
	box-shadow:0 2px 7px rgba(0,0,0,.24);
	color:#fff;
	font-family:Arial,Helvetica,sans-serif;
	position:relative;
	z-index:100;
	box-sizing:border-box;
}
.m5up-brand {
	width:142px;
	min-width:142px;
	padding:7px 9px 4px;
	text-decoration:none!important;
	color:#fff!important;
	display:flex;
	flex-direction:column;
	justify-content:center;
	line-height:1;
	box-sizing:border-box;
}
.m5up-brand strong {
	font-size:18px;
	font-weight:700;
	letter-spacing:-.4px;
}
.m5up-brand small {
	font-size:8px;
	margin-top:3px;
	white-space:nowrap;
	opacity:.9;
}
.m5up-topnav {
	display:flex;
	align-items:stretch;
	flex:1 1 auto;
	min-width:0;
}
.m5up-topnav a {
	width:76px;
	min-width:58px;
	padding:5px 3px 3px;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:2px;
	color:#fff!important;
	text-decoration:none!important;
	font-size:8px;
	line-height:1.05;
	border-left:1px solid rgba(255,255,255,.045);
	box-sizing:border-box;
}
.m5up-topnav a:hover,
.m5up-topnav a:focus {
	background:rgba(31,151,224,.22);
}
.m5up-topnav i {
	font-size:14px;
	line-height:14px;
}
.m5up-topnav a:nth-child(4){width:92px}
.m5up-toptools {
	display:flex;
	align-items:center;
	gap:5px;
	margin-left:auto;
}
.m5up-search {
	display:flex;
	width:130px;
	height:27px;
	margin:0 2px 0 5px;
	border:1px solid rgba(255,255,255,.2);
	border-radius:15px;
	overflow:hidden;
	background:rgba(3,18,34,.45);
}
.m5up-search input {
	width:100%;
	min-width:0;
	border:0;
	outline:0;
	background:transparent;
	color:#fff;
	padding:0 9px;
	font-size:9px;
}
.m5up-search input::placeholder{color:rgba(255,255,255,.72)}
.m5up-search button {
	width:30px;
	border:0;
	background:transparent;
	color:#fff;
	cursor:pointer;
}
.m5up-tool-icon {
	width:24px;
	height:34px;
	display:flex;
	align-items:center;
	justify-content:center;
	color:#fff!important;
	text-decoration:none!important;
	font-size:12px;
}
.m5up-user-mini {
	display:flex;
	align-items:center;
	gap:5px;
	max-width:110px;
	padding:3px 5px;
	color:#fff!important;
	text-decoration:none!important;
	font-size:9px;
	white-space:nowrap;
}
.m5up-user-avatar {
	width:25px;
	height:25px;
	border:1px solid rgba(255,255,255,.8);
	border-radius:50%;
	overflow:hidden;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#062b4b;
}
.m5up-user-avatar img {
	width:100%;
	height:100%;
	object-fit:cover;
}
.m5up-user-avatar .icon{font-size:11px}

@media(max-width:900px){
	.m5up-topnav a{width:62px}
	.m5up-topnav a:nth-child(4){width:78px}
}
@media(max-width:700px){
	.m5up-topbar{
		min-height:52px;
		height:52px;
		padding:0 5px;
	}
	.m5up-brand{
		width:115px;
		min-width:115px;
	}
	.m5up-brand strong{font-size:16px}
	.m5up-topnav a{
		width:58px;
		min-width:50px;
		font-size:7px;
	}
	.m5up-topnav a:nth-child(4){width:68px}
	.m5up-search{width:105px}
}
@media(max-width:560px){
	.m5up-topbar{overflow-x:auto}
	.m5up-brand{width:105px;min-width:105px}
	.m5up-topnav{flex:0 0 auto}
	.m5up-toptools{flex:0 0 auto}
}

/* FIX563 — ŻETONY W GLOBALNYM PASKU.
   Na forum element zachowywał się jak zwykły link, ponieważ brakowało
   globalnego stylowania .m5up-token-balance. */
.m5up-toptools .m5up-token-balance {
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	gap:7px !important;
	min-width:148px !important;
	height:46px !important;
	padding:0 12px !important;
	box-sizing:border-box !important;
	border:1px solid rgba(255,255,255,.34) !important;
	border-radius:24px !important;
	background:linear-gradient(180deg,#17395d 0%,#102f50 100%) !important;
	color:#fff !important;
	text-decoration:none !important;
	white-space:nowrap !important;
	font-size:15px !important;
	line-height:1 !important;
	box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.m5up-toptools .m5up-token-balance:hover {
	background:linear-gradient(180deg,#20486f 0%,#143958 100%) !important;
	color:#fff !important;
	text-decoration:none !important;
}
.m5up-toptools .m5up-token-balance img {
	display:block !important;
	flex:0 0 auto !important;
	width:28px !important;
	height:28px !important;
	object-fit:contain !important;
}
.m5up-toptools .m5up-token-balance .m5up-token-label {
	display:inline !important;
	max-width:none !important;
	overflow:visible !important;
	white-space:nowrap !important;
	font-size:15px !important;
	font-weight:700 !important;
	color:#fff !important;
}
.m5up-toptools .m5up-token-balance strong {
	display:inline !important;
	font-size:17px !important;
	font-weight:800 !important;
	color:#fff !important;
	line-height:1 !important;
}
@media(max-width:700px){
	.m5up-toptools .m5up-token-balance {
		min-width:126px !important;
		height:42px !important;
		padding:0 9px !important;
		gap:5px !important;
	}
	.m5up-toptools .m5up-token-balance img {
		width:25px !important;
		height:25px !important;
	}
	.m5up-toptools .m5up-token-balance .m5up-token-label {
		font-size:13px !important;
	}
	.m5up-toptools .m5up-token-balance strong {
		font-size:15px !important;
	}
}

/* Historia punktów ma być osobnym, pełnym widokiem profilu — tak jak
   historia żetonów/prezentów. Reguły obejmują kilka nazw klas używanych
   przez wcześniejsze warianty szablonu, żeby nie zależeć od jednego FIX-a. */
.m5up-points-history-profile-view,
.m5up-points-history-view,
.m5up-points-history {
    background:#fff;
    border:1px solid #d9e5f0;
    border-radius:14px;
    padding:18px 20px;
    box-shadow:0 4px 16px rgba(0,35,70,.06);
    color:#173b69;
    font-family:Arial,Helvetica,sans-serif;
}

.m5up-points-history-profile-view .m5up-profile-view-head,
.m5up-points-history-view .m5up-profile-view-head,
.m5up-points-history .m5up-profile-view-head,
.m5up-points-history-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding-bottom:16px;
    margin-bottom:14px;
    border-bottom:1px solid #e2eaf2;
}

.m5up-points-history-title,
.m5up-points-history-profile-view h2,
.m5up-points-history-view h2 {
    margin:0;
    color:#153f6d;
    font-size:24px;
    line-height:1.2;
}

.m5up-points-history-subtitle,
.m5up-points-history-profile-view p,
.m5up-points-history-view p {
    margin:4px 0 0;
    color:#71869c;
    font-size:12px;
    line-height:1.45;
}

.m5up-points-history-balance,
.m5up-points-history-total {
    margin-left:auto;
    padding:8px 12px;
    border:1px solid #d8e4ef;
    border-radius:18px;
    background:#f7fbfe;
    color:#315b7e;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.m5up-points-history-balance strong,
.m5up-points-history-total strong { color:#176ec3; font-size:15px; }

.m5up-points-history-feed,
.m5up-points-history-list {
    display:flex;
    flex-direction:column;
    gap:9px;
    margin-top:4px;
}

.m5up-points-history-card,
.m5up-points-history-item {
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 14px;
    background:#fbfdff;
    border:1px solid #dce6ef;
    border-radius:11px;
    box-shadow:0 2px 8px rgba(20,55,85,.04);
}

.m5up-points-history-icon,
.m5up-points-history-item-icon {
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eef6fd;
    color:#176ec3;
    font-size:20px;
    line-height:1;
}

.m5up-points-history-main,
.m5up-points-history-item-main { min-width:0; }

.m5up-points-history-meta,
.m5up-points-history-date,
.m5up-points-history-item-date {
    margin-bottom:3px;
    color:#8293a3;
    font-size:10px;
    line-height:1.3;
}

.m5up-points-history-text,
.m5up-points-history-description,
.m5up-points-history-item-text {
    color:#24435e;
    font-size:12px;
    line-height:1.45;
    overflow-wrap:anywhere;
}
.m5up-points-history-text strong,
.m5up-points-history-description strong,
.m5up-points-history-item-text strong { color:#173f5f; }
.m5up-points-history-detail { display:block; margin-top:2px; color:#7a8d9e; font-size:11px; }

.m5up-points-history-amount,
.m5up-points-history-item-amount {
    color:#159447;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
}
.m5up-points-history-card.is-negative .m5up-points-history-amount,
.m5up-points-history-item.is-negative .m5up-points-history-item-amount { color:#cf3d3d; }

.m5up-points-history-empty,
.m5up-points-history-profile-view .m5up-gifts-empty {
    margin-top:4px;
    padding:22px;
    border:1px dashed #cbd9e6;
    border-radius:10px;
    background:#f8fbfd;
    color:#7890a7;
    text-align:center;
    font-size:12px;
}

.m5up-points-history-back {
    display:inline-flex;
    align-items:center;
    margin-top:14px;
    background:#1479df;
    color:#fff !important;
    text-decoration:none !important;
    border-radius:8px;
    padding:9px 13px;
    font-size:12px;
    font-weight:700;
}

@media(max-width:700px){
    .m5up-points-history-profile-view,
    .m5up-points-history-view,
    .m5up-points-history { padding:14px; }
    .m5up-points-history-profile-view .m5up-profile-view-head,
    .m5up-points-history-view .m5up-profile-view-head,
    .m5up-points-history .m5up-profile-view-head,
    .m5up-points-history-head { align-items:flex-start; flex-direction:column; }
    .m5up-points-history-title,
    .m5up-points-history-profile-view h2,
    .m5up-points-history-view h2 { font-size:21px; }
    .m5up-points-history-balance,
    .m5up-points-history-total { margin-left:0; }
    .m5up-points-history-card,
    .m5up-points-history-item {
        grid-template-columns:38px minmax(0,1fr);
        padding:10px;
        gap:9px;
    }
    .m5up-points-history-icon,
    .m5up-points-history-item-icon { width:36px; height:36px; font-size:18px; }
    .m5up-points-history-amount,
    .m5up-points-history-item-amount { grid-column:2; margin-top:-2px; font-size:13px; }
}

/* =========================================================
   FIX 2.2.50 — MÓJ PROFIL: STABILNE MENU ROZWIJANE
   Menu jest niezależne od kontenera paska i zawsze renderuje
   się jako biały panel nad treścią strony.
   ========================================================= */
.m5up-myprofile-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 8px !important;
    left: auto !important;
    z-index: 2147483647 !important;
    width: 230px !important;
    max-width: calc(100vw - 16px) !important;
    margin: 0 !important;
    padding: 6px !important;
    display: none !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #cbd9e7 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    overflow: visible !important;
}
.m5up-myprofile-dropdown.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.m5up-myprofile-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #123c63 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.m5up-myprofile-dropdown a:hover { background: #edf5fc !important; }
.m5up-myprofile-dropdown .m5up-menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    font-size: 16px !important;
    line-height: 1 !important;
}
.m5up-myprofile-dropdown .m5up-logout { color: #c52222 !important; }
.m5up-myprofile-dropdown .m5up-menu-sep {
    display: block !important;
    height: 1px !important;
    margin: 5px 4px !important;
    padding: 0 !important;
    background: #e1e7ed !important;
}
@media (max-width: 600px) {
    .m5up-myprofile-dropdown {
        top: 60px !important;
        right: 5px !important;
        width: 210px !important;
        max-width: calc(100vw - 10px) !important;
    }
}


/* =========================================================
   FIX567 — PRZYWRÓCENIE WYGLĄDU ZAKŁADKI „AKTYWNOŚĆ”
   Tylko brakujące style dla istniejącego markupu aktywności.
   Nie zmienia danych, PHP, routingu ani innych zakładek.
   ========================================================= */

.m5up-activity-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 12px;
}

.m5up-activity-summary > div {
    min-width: 0;
    padding: 11px 7px 10px;
    text-align: center;
    background: #f7fafc;
    border: 1px solid #e1e9f1;
    border-radius: 9px;
}

.m5up-activity-summary b {
    display: block;
    font-size: 19px;
    line-height: 1.1;
}

.m5up-activity-summary strong {
    display: block;
    margin-top: 4px;
    color: #123f6d;
    font-size: 17px;
    line-height: 1.1;
}

.m5up-activity-summary span {
    display: block;
    margin-top: 3px;
    color: #8091a5;
    font-size: 9px;
    line-height: 1.1;
}

.m5up-activity-chart-card {
    margin: 0 0 12px;
    padding: 13px 14px 12px;
    background: #fff;
    border: 1px solid #dce6ef;
    border-radius: 11px;
}

.m5up-activity-card-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5ecf2;
}

.m5up-activity-card-title > span {
    font-size: 16px;
    line-height: 1.1;
}

.m5up-activity-card-title h3 {
    margin: 0;
    color: #123f6d;
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
}

.m5up-activity-card-title small {
    display: block;
    margin-top: 3px;
    color: #7c8fa3;
    font-size: 9px;
}

.m5up-activity-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    align-items: end;
    gap: 3px;
    height: 130px;
    padding: 12px 2px 0;
}

.m5up-activity-bar-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    min-width: 0;
}

.m5up-activity-bar-wrap span {
    display: block;
    width: 100%;
    max-width: 11px;
    min-height: 4px;
    background: #1479df;
    border-radius: 4px 4px 0 0;
}

.m5up-activity-bar-wrap small {
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: center;
    color: #7890a7;
    font-size: 7px;
    white-space: nowrap;
}

.m5up-activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    padding: 8px;
    background: #f7fafc;
    border: 1px solid #e0e8f0;
    border-radius: 9px;
}

.m5up-activity-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d7e2ec;
    border-radius: 7px;
    color: #31527d;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}

.m5up-activity-filters a.active {
    background: #1475dd;
    border-color: #1475dd;
    color: #fff;
}

.m5up-activity-timeline {
    display: grid;
    gap: 8px;
}

.m5up-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid #dce6ef;
    border-radius: 10px;
}

.m5up-activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: #f1f6fb;
    border-radius: 10px;
    font-size: 18px;
}

.m5up-activity-body {
    min-width: 0;
    flex: 1 1 auto;
}

.m5up-activity-description {
    color: #123f6d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.m5up-activity-detail {
    margin-top: 3px;
    color: #526c86;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.m5up-activity-detail a {
    color: #176ec3;
    text-decoration: none;
}

.m5up-activity-body time {
    display: block;
    margin-top: 5px;
    color: #8294a7;
    font-size: 9px;
}

.m5up-activity-points {
    color: #168b4d;
    font-weight: 700;
}

.m5up-activity-empty,
.m5up-activity-private {
    padding: 25px 15px;
    text-align: center;
    background: #f8fbfd;
    border: 1px dashed #d5e1ec;
    border-radius: 10px;
}

.m5up-activity-empty span,
.m5up-activity-private span {
    display: block;
    font-size: 25px;
    margin-bottom: 6px;
}

.m5up-activity-empty strong,
.m5up-activity-private strong {
    display: block;
    color: #365674;
    font-size: 13px;
}

.m5up-activity-empty small,
.m5up-activity-private small {
    display: block;
    margin-top: 4px;
    color: #7c8fa3;
    font-size: 10px;
}

.m5up-activity-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0;
}

.m5up-activity-pagination a {
    min-width: 28px;
    padding: 6px 8px;
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    border: 1px solid #d7e2ec;
    border-radius: 6px;
    color: #31527d;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
}

.m5up-activity-pagination a.active {
    background: #1475dd;
    border-color: #1475dd;
    color: #fff;
}

.m5up-activity-note {
    margin-top: 10px;
    padding: 8px 10px;
    background: #f7fafc;
    border: 1px solid #e1e9f1;
    border-radius: 7px;
    color: #70859b;
    font-size: 9px;
}

@media (max-width: 800px) {
    .m5up-activity-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .m5up-activity-chart {
        height: 115px;
    }
}

@media (max-width: 600px) {
    .m5up-activity-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m5up-activity-chart {
        grid-template-columns: repeat(15, minmax(0, 1fr));
        height: 105px;
        gap: 4px;
    }

    .m5up-activity-chart .m5up-activity-bar-wrap:nth-child(-n+15) {
        display: none;
    }

    .m5up-activity-item {
        padding: 9px;
    }

    .m5up-activity-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 16px;
    }
}

/* FIX572 — PRZYWROCENIE OPRAWY ZAKŁADEK „O MNIE” I „ZDJĘCIA”.
   Tylko CSS. Nie zmienia logiki PHP/Twig/JS ani danych. */

/* ===== O MNIE ===== */
.m5up-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    gap: 12px;
    margin-top: 12px;
}
.m5up-about-card {
    min-width: 0;
    box-sizing: border-box;
    padding: 15px 16px;
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 13px;
    box-shadow: 0 4px 18px rgba(25,70,110,.07);
    color: #183b68;
}
.m5up-about-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5edf4;
}
.m5up-about-card-head > span:first-child { flex: 0 0 auto; font-size: 18px; }
.m5up-about-card-head h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #0b4c86;
    font-size: 14px;
    line-height: 1.25;
}
.m5up-about-edit-trigger,
.m5up-motto-edit-trigger {
    flex: 0 0 auto;
    border: 1px solid #cfe0ef;
    border-radius: 7px;
    background: #f7fbff;
    color: #176ec3;
    padding: 6px 9px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.m5up-about-edit-trigger:hover,
.m5up-motto-edit-trigger:hover { background: #edf6ff; }
.m5up-about-display {
    color: #244a70;
    font-size: 13px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}
.m5up-about-empty {
    padding: 12px;
    border: 1px dashed #d5e3ef;
    border-radius: 9px;
    background: #f8fbfe;
    color: #71869b;
    font-size: 12px;
    line-height: 1.45;
}
.m5up-about-message {
    margin: 0 0 10px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 11px;
}
.m5up-about-message-error { background: #fff2f2; border: 1px solid #efc4c4; color: #a63131; }
.m5up-about-message-success { background: #effaf3; border: 1px solid #c6e8d0; color: #247545; }
.m5up-about-info { display: grid; gap: 0; }
.m5up-about-info > div {
    display: grid;
    grid-template-columns: 25px 135px minmax(0,1fr);
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 9px 2px;
    border-bottom: 1px solid #edf2f6;
    font-size: 12px;
}
.m5up-about-info > div:last-child { border-bottom: 0; }
.m5up-about-info > div > span { text-align: center; font-size: 14px; }
.m5up-about-info b { color: #42627f; font-weight: 700; }
.m5up-about-info em {
    min-width: 0;
    color: #6f8498;
    font-style: normal;
    text-align: right;
    overflow-wrap: anywhere;
}
.m5up-relationship-partner-link { color: #176ec3; font-weight: 700; text-decoration: none; }
.m5up-about-achievements { display: flex; flex-wrap: wrap; gap: 9px; }
.m5up-about-achievement {
    flex: 1 1 110px;
    min-width: 100px;
    padding: 10px 8px;
    border: 1px solid #e0e9f1;
    border-radius: 9px;
    background: #f8fbfe;
    text-align: center;
}
.m5up-about-achievement-icon { min-height: 25px; font-size: 20px; line-height: 1.2; }
.m5up-about-achievement > span { display: block; margin-top: 5px; color: #49647e; font-size: 10px; font-weight: 700; }
.m5up-about-no-achievements { width: 100%; padding: 12px; color: #7b8da2; font-size: 11px; text-align: center; }
.m5up-about-motto { padding: 5px 2px 2px; color: #526f89; font-size: 14px; line-height: 1.6; font-style: italic; }
.m5up-motto-edit-form textarea,
.m5up-about-editor textarea {
    display: block;
    width: 100%;
    min-height: 105px;
    box-sizing: border-box;
    resize: vertical;
    padding: 10px;
    border: 1px solid #d5e2ed;
    border-radius: 8px;
    background: #fff;
    color: #234563;
}
.m5up-about-editor-actions,
.m5up-motto-edit-actions { display: flex; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.m5up-about-save,
.m5up-about-cancel,
.m5up-motto-edit-cancel {
    border: 1px solid #cfe0ef;
    border-radius: 7px;
    padding: 7px 11px;
    background: #fff;
    color: #315b7e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.m5up-about-save { border-color: #1475dd; background: #1475dd; color: #fff; }
.m5up-about-location-box {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid #dce8f2;
    border-radius: 9px;
    background: #f8fbfe;
}
.m5up-about-location-icon { font-size: 23px; }
.m5up-about-location-box > div:last-child { min-width: 0; }
.m5up-about-location-box strong { display:block; color:#214f78; font-size:13px; }
.m5up-about-location-box span { display:block; margin-top:3px; color:#7a8ea2; font-size:10px; line-height:1.4; }
.m5up-about-website { display:block; color:#176ec3; font-size:12px; overflow-wrap:anywhere; }
.m5up-relationship-pending { margin-bottom:10px; padding:10px; border:1px solid #f0d4e0; border-radius:9px; background:#fff7fa; color:#7d4960; font-size:11px; line-height:1.45; }

/* ===== ZDJĘCIA / ALBUMY ===== */
.m5up-profile-photos-card { margin-top: 12px; }
.m5up-about-photo-note { flex:0 0 auto; color:#8396a9; font-size:10px; font-weight:600; }
.m5up-album-alert { margin-bottom:10px; padding:9px 11px; border-radius:8px; font-size:11px; }
.m5up-album-alert-error { background:#fff1f1; border:1px solid #efc3c3; color:#a52f2f; }
.m5up-album-alert-success { background:#effaf3; border:1px solid #c5e6cf; color:#247545; }
.m5up-album-actions { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.m5up-album-action {
    flex:1 1 220px;
    min-width:0;
    border:1px solid #dce6f0;
    border-radius:9px;
    background:#f8fbfe;
    overflow:hidden;
}
.m5up-album-action > summary {
    padding:10px 12px;
    color:#176ec3;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
    list-style:none;
}
.m5up-album-action > summary::-webkit-details-marker { display:none; }
.m5up-album-form { padding:0 12px 12px; }
.m5up-album-form label { display:block; margin-top:8px; color:#49647d; font-size:10px; font-weight:700; }
.m5up-album-form input[type="text"],
.m5up-album-form input[type="file"],
.m5up-album-form select {
    display:block;
    width:100%;
    box-sizing:border-box;
    margin-top:5px;
    padding:8px;
    border:1px solid #d3e0eb;
    border-radius:7px;
    background:#fff;
    color:#31516f;
    font-size:11px;
}
.m5up-album-form small { display:block; margin-top:5px; color:#8395a7; font-size:9px; }
.m5up-album-label { margin-top:9px; color:#49647d; font-size:10px; font-weight:700; }
.m5up-album-visibility { display:flex; flex-wrap:wrap; gap:7px 12px; margin-top:6px; }
.m5up-album-visibility label,
.m5up-album-groups label { margin:0; font-size:10px; font-weight:500; }
.m5up-album-groups { margin-top:8px; padding:8px; border-radius:7px; background:#fff; border:1px solid #e1eaf2; }
.m5up-album-submit,
.m5up-album-delete,
.m5up-album-manage summary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    min-height:30px;
    margin-top:9px;
    padding:6px 10px;
    border-radius:7px;
    font-size:10px;
    font-weight:700;
    cursor:pointer;
}
.m5up-album-submit { border:1px solid #1475dd; background:#1475dd; color:#fff; }
.m5up-album-list { display:flex; flex-direction:column; gap:11px; }
.m5up-album-folder { border:1px solid #dce6f0; border-radius:11px; background:#fff; overflow:hidden; }
.m5up-album-folder-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    background:#f7fbfe;
    border-bottom:1px solid #e5edf4;
}
.m5up-album-folder-head > div:first-child { min-width:0; }
.m5up-album-folder-head strong { display:block; color:#174f7d; font-size:12px; }
.m5up-album-folder-head > div:first-child span { display:block; margin-top:2px; color:#8798a9; font-size:9px; }
.m5up-album-folder-tools { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.m5up-album-visibility-pill { padding:4px 7px; border:1px solid #d7e4ee; border-radius:999px; background:#fff; color:#6b8196; font-size:9px; font-weight:700; }
.m5up-album-manage { position:relative; }
.m5up-album-manage summary { margin:0; border:1px solid #d5e2ec; background:#fff; color:#315b7e; list-style:none; }
.m5up-album-manage summary::-webkit-details-marker { display:none; }
.m5up-album-manage[open] .m5up-album-edit-form { position:absolute; right:0; top:34px; z-index:20; width:min(330px,85vw); padding:12px; border:1px solid #d7e4ee; border-radius:9px; background:#fff; box-shadow:0 8px 28px rgba(20,55,85,.15); }
.m5up-album-delete-form { margin:0; }
.m5up-album-delete { margin:0; border:1px solid #efc9c9; background:#fff5f5; color:#b33b3b; }
.m5up-album-photos {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
    padding:10px;
}
.m5up-album-photo-item {
    position:relative;
    min-width:0;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:8px;
    background:#edf3f7;
}
.m5up-album-photo-item > a { display:block; width:100%; height:100%; cursor:zoom-in; }
.m5up-album-photo-item > a > img { display:block; width:100%; height:100%; object-fit:cover; }
.m5up-album-photo-delete-form { position:absolute; top:5px; right:5px; margin:0; z-index:4; }
.m5up-album-photo-delete { width:25px; height:25px; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.68); color:#fff; font-size:17px; line-height:25px; cursor:pointer; }
.m5up-album-empty,
.m5up-about-no-photos { margin:10px; padding:18px 12px; border:1px dashed #d7e3ed; border-radius:9px; background:#f9fbfd; color:#7b8ea1; text-align:center; font-size:11px; }
.m5up-about-no-photos span { display:block; margin-bottom:5px; font-size:22px; }
.m5up-about-no-photos strong { display:block; color:#4e6c86; font-size:12px; }
.m5up-about-no-photos small { display:block; margin-top:3px; font-size:10px; }

/* ===== LIGHTBOX — wymuszenie prawidłowego obrazu i przycisków ===== */
.m5up-lightbox .m5up-lightbox-image-wrap img.m5up-lightbox-image {
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
}
.m5up-lightbox .m5up-lightbox-nav {
    appearance:none !important;
    -webkit-appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
}
.m5up-lightbox .m5up-lightbox-close {
    appearance:none !important;
    -webkit-appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 !important;
}

@media (max-width: 900px) {
    .m5up-about-grid { grid-template-columns:1fr; }
    .m5up-about-card { padding:13px 14px; }
    .m5up-album-photos { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .m5up-about-info > div { grid-template-columns:25px 115px minmax(0,1fr); font-size:11px; }
    .m5up-about-card-head { align-items:flex-start; }
    .m5up-about-photo-note { display:none; }
    .m5up-album-photos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:8px; }
    .m5up-album-folder-head { align-items:flex-start; }
    .m5up-album-folder-tools { justify-content:flex-start; }
    .m5up-album-visibility { flex-direction:column; }
}


/* FIX600 — przywrócenie czytelnej wielkości czcionki Tablicy.
   Poprzedni FIX599 celował w niewłaściwy element: treść wpisu jest DIV-em .m5up-post-text, nie <p>. */
.m5up-post .m5up-post-author { font-size: 14px !important; }
.m5up-post .m5up-post-author strong { font-size: 14px !important; }
.m5up-post .m5up-post-author time { font-size: 12px !important; }
.m5up-post .m5up-post-rank { font-size: 11px !important; }
.m5up-post .m5up-post-text { font-size: 15px !important; line-height: 1.6 !important; }
.m5up-post .m5up-post-actions { font-size: 12px !important; }
.m5up-post .m5up-post-actions a { font-size: 12px !important; }
.m5up-comment-meta { font-size: 12px !important; }
.m5up-comment-meta strong { font-size: 13px !important; }
.m5up-comment-text { font-size: 14px !important; line-height: 1.5 !important; }
.m5up-comments-disabled { font-size: 12px !important; }
.m5up-comments-empty { font-size: 12px !important; }


/* FIX704 — KONTO OFICJALNE: dokładnie ten sam znak i rozmiar co VIP, tylko zielony. */
.m5up-official-star{display:inline-block;color:#22a35a!important;font-size:.95em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 1px 1px rgba(0,0,0,.14);cursor:help;-webkit-text-stroke:.35px currentColor}
.m5up-post-author .m5up-official-star,.m5up-comment-meta .m5up-official-star{display:inline-block;color:#22a35a!important;font-size:.95em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 1px 1px rgba(0,0,0,.14);cursor:help;-webkit-text-stroke:.35px currentColor}

/* FIX 2.2.145 — album photo upload previews: same UX as MEDIA5 GROUPS. */
.m5up-photo-upload-wrap { margin-top:6px; }
.m5up-photo-upload-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.m5up-photo-upload-count { color:#506b82; font-size:11px; font-weight:700; }
.m5up-photo-upload-preview { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.m5up-photo-upload-thumb { position:relative; width:96px; height:72px; border:1px solid #d5e0ea; border-radius:8px; overflow:hidden; background:#edf3f7; box-shadow:0 2px 8px rgba(20,55,85,.08); }
.m5up-photo-upload-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.m5up-photo-upload-remove { position:absolute; top:4px; right:4px; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:rgba(10,27,44,.82); color:#fff; font-size:16px; line-height:22px; font-weight:800; text-align:center; cursor:pointer; }
.m5up-photo-upload-remove:hover { background:#c62828; }
.m5up-photo-upload-error { margin-top:7px; padding:7px 9px; border:1px solid #efc3c3; border-radius:7px; background:#fff4f4; color:#a52f2f; font-size:10px; font-weight:700; }
@media (max-width:700px) {
  .m5up-photo-upload-thumb { width:88px; height:66px; }
}

/* FIX 2.2.445 — wiele rang MEDIA5 obok siebie. */
.m5up-profile-ranks{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:0 auto 12px}
.m5up-profile-ranks .m5up-rank-modern{margin:0 !important;flex:0 0 auto}
.m5up-lightbox-ranks{display:block;margin-top:2px;font-size:11px;font-weight:700}

/* M5 SUPER VIP — czerwone wyróżnienie, odrębne od złotego VIP */
.m5up-avatar.m5up-avatar-supervip{border:3px solid #dc263f!important;box-shadow:0 0 0 2px rgba(220,38,63,.18),0 4px 16px rgba(160,20,45,.2)!important}
.m5up-supervip-star{display:inline-block;color:#dc263f!important;font-size:1.05em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 0 1px #fff;cursor:help;-webkit-text-stroke:.45px currentColor}
.m5up-admin-supervip-box{border-color:#efb6c0!important}

.m5up-avatar.m5up-avatar-vip.m5up-avatar-supervip{border-color:#dc263f!important;box-shadow:0 0 0 2px rgba(220,38,63,.18),0 4px 16px rgba(160,20,45,.2)!important}


/* MEDIA5 FIX — show the account handle below the profile display name. */
#media5-userprofile .m5up-profile-card-modern .m5up-profile-nick{
  margin:-5px 0 8px;
  color:#17212b;
  font-size:11px;
  line-height:1.35;
  font-weight:500;
  overflow-wrap:anywhere;
}
#media5-userprofile .m5up-cover-title{
  max-width:75%;
  overflow-wrap:anywhere;
}


/* FIX 45 — jednolite, pełne gwiazdy; kolor zależy od rangi/konta. */
.m5up-vip-star{display:inline-block;color:#e2ad00!important;font-size:.95em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 1px 1px rgba(0,0,0,.14);-webkit-text-stroke:.35px currentColor}
.m5up-official-star{display:inline-block;color:#22a35a!important;font-size:.95em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 1px 1px rgba(0,0,0,.14);-webkit-text-stroke:.35px currentColor}
.m5up-supervip-star{display:inline-block;color:#dc263f!important;font-size:.95em;font-weight:900;line-height:1;margin-left:4px;vertical-align:baseline;text-shadow:0 1px 1px rgba(0,0,0,.14);-webkit-text-stroke:.35px currentColor}
.m5up-avatar.m5up-avatar-vip.m5up-avatar-official{border-color:#f0c341!important;background:inherit!important;box-shadow:0 4px 16px rgba(240,195,65,.22)!important}
.m5up-avatar.m5up-avatar-supervip.m5up-avatar-official{border-color:#dc263f!important;background:inherit!important;box-shadow:0 0 0 2px rgba(220,38,63,.18),0 4px 16px rgba(160,20,45,.2)!important}

/* FIX 45 — ramki wyłącznie według rangi; konto oficjalne oznacza zielona gwiazda. */
.m5up-avatar.m5up-avatar-official{border-color:#fff!important}
.m5up-avatar.m5up-avatar-vip{border:5px solid #f0c341!important;box-shadow:0 4px 16px rgba(240,195,65,.22)!important}
.m5up-avatar.m5up-avatar-vip.m5up-avatar-official{border-color:#f0c341!important}
.m5up-avatar.m5up-avatar-supervip{border:5px solid #dc263f!important;box-shadow:0 0 0 2px rgba(220,38,63,.18),0 4px 16px rgba(160,20,45,.2)!important}
.m5up-avatar.m5up-avatar-supervip.m5up-avatar-official{border-color:#dc263f!important}


/* FIX 50 — jednolite gwiazdy i ramki rang; nadpisuje wcześniejsze, sprzeczne reguły. */
.m5up-vip-star,.m5up-official-star,.m5up-supervip-star{display:inline-block!important;font-family:Arial,sans-serif!important;font-size:1.05em!important;font-weight:900!important;line-height:1!important;margin-left:4px!important;vertical-align:baseline!important;text-decoration:none!important;transform:none!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))!important;-webkit-text-stroke:.45px currentColor!important}
.m5up-vip-star{color:#e2ad00!important}.m5up-official-star{color:#22a35a!important}.m5up-supervip-star{color:#dc263f!important}
/* Konto oficjalne nie dodaje zielonej ramki; kolor ramki określa wyłącznie ranga. */
.m5up-avatar.m5up-avatar-official{border:5px solid #fff!important;background:#062b4b!important;box-shadow:0 4px 16px rgba(0,0,0,.25)!important}
.m5up-avatar.m5up-avatar-vip,.m5up-avatar.m5up-avatar-vip.m5up-avatar-official{border:5px solid #f0c341!important;background:#062b4b!important;box-shadow:0 4px 16px rgba(240,195,65,.22)!important}
.m5up-avatar.m5up-avatar-supervip,.m5up-avatar.m5up-avatar-supervip.m5up-avatar-official{border:5px solid #dc263f!important;background:#062b4b!important;box-shadow:0 0 0 2px rgba(220,38,63,.18),0 4px 16px rgba(160,20,45,.2)!important}



/* MEDIA5 ACP polish — inline section icons and consistent cards in Panel główny */
.m5up-admin-profile-view .m5up-home-modules-card,
.m5up-admin-profile-view .m5up-admin-referral-reward-card,
.m5up-admin-profile-view .m5up-admin-regulation-card,
.m5up-admin-profile-view .m5up-backup-card {
  box-sizing: border-box !important;
  margin: 14px 0 18px !important;
  border: 1px solid #d5e3f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(18, 65, 105, .07) !important;
  overflow: hidden !important;
}

.m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head,
.m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head,
.m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head,
.m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 16px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #e0eaf3 !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%) !important;
  text-decoration: none !important;
}

.m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head > span,
.m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head > span,
.m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head > span,
.m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head > span {
  display: inline-flex !important;
  flex: 0 0 42px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dbeaff !important;
  border-radius: 12px !important;
  background: #eaf3ff !important;
  color: #175d9d !important;
  font-size: 22px !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head > div,
.m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head > div,
.m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head > div,
.m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head > div {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head h3,
.m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head h3,
.m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head h3,
.m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head h3 {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #124776 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head p,
.m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head p,
.m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head p,
.m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head p {
  display: block !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: #667e96 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.m5up-admin-profile-view .m5up-home-modules-form {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
  padding: 17px 20px 20px !important;
  box-sizing: border-box !important;
}
.m5up-admin-profile-view .m5up-home-modules-form > label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d9e6f2 !important;
  border-radius: 9px !important;
  background: #f8fbff !important;
  color: #244d76 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
}
.m5up-admin-profile-view .m5up-home-modules-form > label:hover {
  border-color: #a9cce9 !important;
  background: #f0f7ff !important;
}
.m5up-admin-profile-view .m5up-home-modules-form input[type="checkbox"] {
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #1678df !important;
}
.m5up-admin-profile-view .m5up-home-modules-form .m5up-settings-actions {
  grid-column: 1 / -1 !important;
  margin: 4px 0 0 !important;
  padding-top: 13px !important;
  border-top: 1px solid #e6eef6 !important;
}

.m5up-admin-profile-view .m5up-admin-referral-reward-form {
  display: flex !important;
  align-items: flex-end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
  padding: 17px 20px 20px !important;
}
.m5up-admin-profile-view .m5up-admin-referral-reward-form input[type="number"] {
  width: 240px !important;
  max-width: 100% !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  padding: 9px 12px !important;
  border: 1px solid #cbdced !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #173d68 !important;
  font-size: 13px !important;
}
.m5up-admin-profile-view .m5up-admin-referral-reward-form input[type="number"]:focus {
  outline: none !important;
  border-color: #1976d2 !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, .12) !important;
}

.m5up-admin-profile-view .m5up-admin-regulation-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  box-sizing: border-box !important;
  padding: 17px 20px 20px !important;
}
.m5up-admin-profile-view .m5up-admin-regulation-form > label {
  display: block !important;
  margin: 0 !important;
  color: #244d76 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.m5up-admin-profile-view .m5up-admin-regulation-form textarea {
  display: block !important;
  width: 100% !important;
  min-height: 300px !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  border: 1px solid #cbdced !important;
  border-radius: 9px !important;
  background: #fbfdff !important;
  color: #173d68 !important;
  font: 13px/1.6 Arial, sans-serif !important;
  resize: vertical !important;
}
.m5up-admin-profile-view .m5up-admin-regulation-form textarea:focus {
  outline: none !important;
  border-color: #1976d2 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, .1) !important;
}
.m5up-admin-profile-view .m5up-admin-regulation-form > small {
  color: #6b8095 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.m5up-admin-profile-view .m5up-admin-regulation-form .m5up-settings-actions {
  margin: 6px 0 0 !important;
  padding-top: 13px !important;
  border-top: 1px solid #e6eef6 !important;
}

.m5up-admin-profile-view .m5up-backup-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 17px 20px 20px !important;
}
.m5up-admin-profile-view .m5up-about-message {
  margin: 12px 20px 0 !important;
}
.m5up-admin-profile-view .m5up-home-modules-form .m5up-about-message,
.m5up-admin-profile-view .m5up-admin-referral-reward-form .m5up-about-message,
.m5up-admin-profile-view .m5up-admin-regulation-form .m5up-about-message {
  margin: 0 !important;
}

@media (max-width: 640px) {
  .m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head,
  .m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head,
  .m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head,
  .m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head {
    gap: 10px !important;
    padding: 14px !important;
  }
  .m5up-admin-profile-view .m5up-home-modules-card .m5up-settings-card-head > span,
  .m5up-admin-profile-view .m5up-admin-referral-reward-card .m5up-settings-card-head > span,
  .m5up-admin-profile-view .m5up-admin-regulation-card .m5up-settings-card-head > span,
  .m5up-admin-profile-view .m5up-backup-card .m5up-settings-card-head > span {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 19px !important;
  }
  .m5up-admin-profile-view .m5up-home-modules-form,
  .m5up-admin-profile-view .m5up-admin-referral-reward-form,
  .m5up-admin-profile-view .m5up-admin-regulation-form,
  .m5up-admin-profile-view .m5up-backup-actions {
    padding: 14px !important;
  }
  .m5up-admin-profile-view .m5up-home-modules-form { grid-template-columns: 1fr !important; }
  .m5up-admin-profile-view .m5up-admin-referral-reward-form { align-items: stretch !important; flex-direction: column !important; }
  .m5up-admin-profile-view .m5up-admin-referral-reward-form input[type="number"] { width: 100% !important; }
  .m5up-admin-profile-view .m5up-admin-referral-reward-form button,
  .m5up-admin-profile-view .m5up-admin-regulation-form button,
  .m5up-admin-profile-view .m5up-backup-actions button { width: 100% !important; }
}

/* ================================================================
   MEDIA5 ACP POLISH FIX002 — spójny wygląd wszystkich zakładek admina
   CSS-only: bez zmian routingu, logiki formularzy i zapisów do bazy.
   ================================================================ */
.m5up-admin-profile-view {
  --m5acp-blue: #176ec3;
  --m5acp-blue-dark: #104d83;
  --m5acp-ink: #183e62;
  --m5acp-muted: #6f8499;
  --m5acp-line: #d7e5f2;
  --m5acp-panel: #f6faff;
  color: var(--m5acp-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
.m5up-admin-profile-view,
.m5up-admin-profile-view * { box-sizing: border-box; }
.m5up-admin-profile-view .m5up-profile-view-head { margin-bottom: 16px; }
.m5up-admin-profile-view .m5up-profile-view-head h2 { letter-spacing: -.02em; line-height: 1.25; }
.m5up-admin-profile-view .m5up-profile-view-head p { line-height: 1.55; }

/* Nawigacja wszystkich zakładek — czytelna siatka, aktywna pozycja wyraźna. */
.m5up-admin-profile-view .m5up-admin-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e1eaf3;
}
.m5up-admin-profile-view .m5up-admin-tabs a {
  display: flex !important;
  min-width: 0;
  min-height: 42px;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 12px !important;
  border: 1px solid #cddfed !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #315779 !important;
  box-shadow: 0 1px 2px rgba(18, 59, 95, .03);
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left;
  white-space: normal;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.m5up-admin-profile-view .m5up-admin-tabs a > span { min-width: 0; }
.m5up-admin-profile-view .m5up-admin-tabs a:hover {
  background: #f0f7ff !important;
  border-color: #9fc8eb !important;
  box-shadow: 0 4px 10px rgba(23, 110, 195, .08);
  transform: translateY(-1px);
}
.m5up-admin-profile-view .m5up-admin-tabs a.active {
  background: linear-gradient(135deg, #1978d4, #125ca8) !important;
  border-color: #176ec3 !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(23, 110, 195, .2);
}

/* Wspólna powierzchnia i odstępy dla paneli w każdej zakładce. */
.m5up-admin-profile-view .m5up-settings-card,
.m5up-admin-profile-view .m5up-admin-user-settings-card,
.m5up-admin-profile-view .m5up-admin-activity-card,
.m5up-admin-profile-view .m5up-admin-ranks-card,
.m5up-admin-profile-view .m5up-admin-plugins-card,
.m5up-admin-profile-view .m5up-admin-events-card,
.m5up-admin-profile-view .m5up-admin-location-counties-card,
.m5up-admin-profile-view .m5up-admin-banners,
.m5up-admin-profile-view .m5up-vip-admin-card,
.m5up-admin-profile-view .m5up-mass-message-card,
.m5up-admin-profile-view .m5up-auto-message-card,
.m5up-admin-profile-view .m5up-promo-admin-card,
.m5up-admin-profile-view .m5up-promo-featured-card,
.m5up-admin-profile-view .m5up-promo-classified-card,
.m5up-admin-profile-view .m5up-promo-adjustments-card,
.m5up-admin-profile-view .m5up-gifts-admin-card,
.m5up-admin-profile-view .m5up-vouchers-admin-card,
.m5up-admin-profile-view .m5up-chat-admin-card,
.m5up-admin-profile-view .m5up-chat-module-card,
.m5up-admin-profile-view .m5up-chat-subcard,
.m5up-admin-profile-view .m5up-sticker-admin-card,
.m5up-admin-profile-view .m5up-backup-card,
.m5up-admin-profile-view .m5up-home-modules-card,
.m5up-admin-profile-view .m5up-admin-referral-reward-card,
.m5up-admin-profile-view .m5up-admin-regulation-card {
  border: 1px solid var(--m5acp-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(19, 61, 99, .055);
}
.m5up-admin-profile-view .m5up-settings-card,
.m5up-admin-profile-view .m5up-admin-user-settings-card,
.m5up-admin-profile-view .m5up-admin-activity-card,
.m5up-admin-profile-view .m5up-admin-ranks-card,
.m5up-admin-profile-view .m5up-admin-plugins-card,
.m5up-admin-profile-view .m5up-admin-events-card,
.m5up-admin-profile-view .m5up-admin-location-counties-card,
.m5up-admin-profile-view .m5up-admin-banners,
.m5up-admin-profile-view .m5up-vip-admin-card,
.m5up-admin-profile-view .m5up-mass-message-card,
.m5up-admin-profile-view .m5up-auto-message-card,
.m5up-admin-profile-view .m5up-promo-admin-card,
.m5up-admin-profile-view .m5up-promo-featured-card,
.m5up-admin-profile-view .m5up-promo-classified-card,
.m5up-admin-profile-view .m5up-promo-adjustments-card,
.m5up-admin-profile-view .m5up-gifts-admin-card,
.m5up-admin-profile-view .m5up-vouchers-admin-card,
.m5up-admin-profile-view .m5up-chat-admin-card,
.m5up-admin-profile-view .m5up-chat-module-card,
.m5up-admin-profile-view .m5up-chat-subcard,
.m5up-admin-profile-view .m5up-sticker-admin-card,
.m5up-admin-profile-view .m5up-backup-card,
.m5up-admin-profile-view .m5up-home-modules-card,
.m5up-admin-profile-view .m5up-admin-referral-reward-card,
.m5up-admin-profile-view .m5up-admin-regulation-card { margin: 14px 0 18px; }

/* Ikony i tytuły sekcji zawsze w jednym wierszu. */
.m5up-admin-profile-view .m5up-settings-card-head,
.m5up-admin-profile-view .m5up-promo-module-head,
.m5up-admin-profile-view .m5up-gifts-module-head,
.m5up-admin-profile-view .m5up-chat-module-head,
.m5up-admin-profile-view .m5up-chat-subhead,
.m5up-admin-profile-view .m5up-vip-admin-package-head,
.m5up-admin-profile-view .m5up-about-card-head,
.m5up-admin-profile-view .m5up-admin-vip-head,
.m5up-admin-profile-view .m5up-admin-activity-head,
.m5up-admin-profile-view .m5up-rank-permissions-head,
.m5up-admin-profile-view .m5up-rank-members-head,
.m5up-admin-profile-view .m5up-sticker-editor-control-head,
.m5up-admin-profile-view .m5up-activity-ranking-card-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  min-width: 0;
}
.m5up-admin-profile-view .m5up-settings-card-head > span,
.m5up-admin-profile-view .m5up-promo-module-head > span:first-child,
.m5up-admin-profile-view .m5up-gifts-module-head > span:first-child,
.m5up-admin-profile-view .m5up-chat-module-head > span:first-child,
.m5up-admin-profile-view .m5up-chat-subhead > span:first-child,
.m5up-admin-profile-view .m5up-about-card-head > span:first-child,
.m5up-admin-profile-view .m5up-admin-vip-head > span:first-child,
.m5up-admin-profile-view .m5up-admin-activity-head > span:first-child,
.m5up-admin-profile-view .m5up-rank-permissions-head > span:first-child,
.m5up-admin-profile-view .m5up-rank-members-head > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid #dceaff;
  border-radius: 11px;
  background: #edf5ff;
  font-size: 19px;
  line-height: 1;
}
.m5up-admin-profile-view .m5up-settings-card-head > div,
.m5up-admin-profile-view .m5up-promo-module-head > div,
.m5up-admin-profile-view .m5up-gifts-module-head > div,
.m5up-admin-profile-view .m5up-chat-module-head > div,
.m5up-admin-profile-view .m5up-about-card-head > div,
.m5up-admin-profile-view .m5up-admin-vip-head > div,
.m5up-admin-profile-view .m5up-admin-activity-head > div,
.m5up-admin-profile-view .m5up-rank-permissions-head > div,
.m5up-admin-profile-view .m5up-rank-members-head > div { min-width: 0; flex: 1 1 auto; }
.m5up-admin-profile-view .m5up-settings-card-head h2,
.m5up-admin-profile-view .m5up-settings-card-head h3,
.m5up-admin-profile-view .m5up-promo-module-head h2,
.m5up-admin-profile-view .m5up-promo-module-head h3,
.m5up-admin-profile-view .m5up-gifts-module-head h2,
.m5up-admin-profile-view .m5up-gifts-module-head h3,
.m5up-admin-profile-view .m5up-chat-module-head h2,
.m5up-admin-profile-view .m5up-chat-module-head h3,
.m5up-admin-profile-view .m5up-about-card-head h2,
.m5up-admin-profile-view .m5up-about-card-head h3,
.m5up-admin-profile-view .m5up-admin-vip-head h2,
.m5up-admin-profile-view .m5up-admin-vip-head h3,
.m5up-admin-profile-view .m5up-admin-activity-head h2,
.m5up-admin-profile-view .m5up-admin-activity-head h3,
.m5up-admin-profile-view .m5up-rank-permissions-head h2,
.m5up-admin-profile-view .m5up-rank-permissions-head h3,
.m5up-admin-profile-view .m5up-rank-members-head h2,
.m5up-admin-profile-view .m5up-rank-members-head h3 {
  margin: 0;
  color: #154d80;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.m5up-admin-profile-view .m5up-settings-card-head p,
.m5up-admin-profile-view .m5up-promo-module-head p,
.m5up-admin-profile-view .m5up-gifts-module-head p,
.m5up-admin-profile-view .m5up-chat-module-head p,
.m5up-admin-profile-view .m5up-about-card-head p,
.m5up-admin-profile-view .m5up-admin-vip-head p,
.m5up-admin-profile-view .m5up-admin-activity-head p {
  margin: 3px 0 0;
  color: var(--m5acp-muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Ogólna typografia i czytelniejsze nagłówki wewnątrz zakładek. */
.m5up-admin-profile-view h2,
.m5up-admin-profile-view h3,
.m5up-admin-profile-view h4 { color: #154d80; line-height: 1.35; }
.m5up-admin-profile-view h2 { font-size: 18px; }
.m5up-admin-profile-view h3 { font-size: 15px; }
.m5up-admin-profile-view p { line-height: 1.55; }
.m5up-admin-profile-view .m5up-section-kicker { letter-spacing: .08em; text-transform: uppercase; }
.m5up-admin-profile-view .m5up-about-message,
.m5up-admin-profile-view .m5up-admin-activity-message,
.m5up-admin-profile-view .m5up-admin-activity-error,
.m5up-admin-profile-view .m5plug-message,
.m5up-admin-profile-view .m5plug-error,
.m5up-admin-profile-view .m5r-message,
.m5up-admin-profile-view .m5r-error,
.m5up-admin-profile-view .m5seller-msg,
.m5up-admin-profile-view .m5ban-msg,
.m5up-admin-profile-view .m5ban-err,
.m5up-admin-profile-view .m5up-voucher-message,
.m5up-admin-profile-view .m5up-chat-note {
  padding: 11px 13px;
  border-radius: 9px;
  line-height: 1.5;
}

/* Formularze: równe pola, wyraźny focus, logiczne odstępy. */
.m5up-admin-profile-view input[type="text"],
.m5up-admin-profile-view input[type="number"],
.m5up-admin-profile-view input[type="email"],
.m5up-admin-profile-view input[type="password"],
.m5up-admin-profile-view input[type="search"],
.m5up-admin-profile-view input[type="url"],
.m5up-admin-profile-view input[type="date"],
.m5up-admin-profile-view input[type="datetime-local"],
.m5up-admin-profile-view input[type="time"],
.m5up-admin-profile-view select,
.m5up-admin-profile-view textarea {
  max-width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #ccdceb;
  border-radius: 8px;
  background: #fff;
  color: #214967;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(17, 59, 98, .025);
}
.m5up-admin-profile-view textarea { min-height: 94px; resize: vertical; }
.m5up-admin-profile-view input[type="text"]:focus,
.m5up-admin-profile-view input[type="number"]:focus,
.m5up-admin-profile-view input[type="email"]:focus,
.m5up-admin-profile-view input[type="password"]:focus,
.m5up-admin-profile-view input[type="search"]:focus,
.m5up-admin-profile-view input[type="url"]:focus,
.m5up-admin-profile-view input[type="date"]:focus,
.m5up-admin-profile-view input[type="datetime-local"]:focus,
.m5up-admin-profile-view input[type="time"]:focus,
.m5up-admin-profile-view select:focus,
.m5up-admin-profile-view textarea:focus {
  outline: none;
  border-color: #67a5e4;
  box-shadow: 0 0 0 3px rgba(23, 110, 195, .12);
}
.m5up-admin-profile-view input[type="checkbox"],
.m5up-admin-profile-view input[type="radio"] { accent-color: #176ec3; }
.m5up-admin-profile-view label { color: #31536f; line-height: 1.45; }
.m5up-admin-profile-view label > input[type="checkbox"],
.m5up-admin-profile-view label > input[type="radio"] { margin-right: 5px; vertical-align: middle; }

/* Spójne przyciski bez ingerencji w logikę; akcje usuwania zachowują czerwony charakter. */
.m5up-admin-profile-view button,
.m5up-admin-profile-view input[type="submit"],
.m5up-admin-profile-view input[type="button"],
.m5up-admin-profile-view .m5up-about-save,
.m5up-admin-profile-view .m5up-sticker-admin-btn,
.m5up-admin-profile-view .m5up-admin-vip-save,
.m5up-admin-profile-view .m5up-admin-user-search-form button,
.m5up-admin-profile-view .m5up-admin-activity-actions button,
.m5up-admin-profile-view .m5up-rank-actions button {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.m5up-admin-profile-view button:hover,
.m5up-admin-profile-view input[type="submit"]:hover,
.m5up-admin-profile-view input[type="button"]:hover,
.m5up-admin-profile-view .m5up-about-save:hover,
.m5up-admin-profile-view .m5up-sticker-admin-btn:hover {
  box-shadow: 0 3px 10px rgba(21, 91, 151, .12);
}
.m5up-admin-profile-view .m5up-about-save,
.m5up-admin-profile-view .m5up-admin-vip-save,
.m5up-admin-profile-view .m5up-sticker-admin-btn:not(.m5up-sticker-admin-btn-muted):not(.m5up-sticker-admin-btn-danger),
.m5up-admin-profile-view .m5up-admin-vip-revoke-row .m5up-admin-vip-revoke { padding: 8px 13px; }
.m5up-admin-profile-view .m5up-about-cancel,
.m5up-admin-profile-view .m5up-sticker-admin-btn-muted,
.m5up-admin-profile-view .m5up-rank-back-button,
.m5up-admin-profile-view .m5up-voucher-tabs a { border-radius: 8px; }
.m5up-admin-profile-view .m5up-sticker-admin-btn-danger,
.m5up-admin-profile-view .m5up-voucher-delete,
.m5up-admin-profile-view .m5up-gifts-delete,
.m5up-admin-profile-view .m5up-promo-delete,
.m5up-admin-profile-view .m5up-chat-danger,
.m5up-admin-profile-view .m5ban-btn-danger,
.m5up-admin-profile-view .m5up-admin-vip-revoke,
.m5up-admin-profile-view .m5up-album-delete {
  background: #fff2f2 !important;
  color: #af2525 !important;
  border: 1px solid #efb6b6 !important;
}
.m5up-admin-profile-view .m5up-sticker-admin-btn-danger:hover,
.m5up-admin-profile-view .m5up-voucher-delete:hover,
.m5up-admin-profile-view .m5up-gifts-delete:hover,
.m5up-admin-profile-view .m5up-promo-delete:hover,
.m5up-admin-profile-view .m5up-chat-danger:hover,
.m5up-admin-profile-view .m5ban-btn-danger:hover,
.m5up-admin-profile-view .m5up-admin-vip-revoke:hover,
.m5up-admin-profile-view .m5up-album-delete:hover { background: #ffe6e6 !important; border-color: #df8d8d !important; }

/* Tabele w panelach: wspólne nagłówki, odstępy, przewijanie i hover. */
.m5up-admin-profile-view .m5up-rank-table-wrap,
.m5up-admin-profile-view .m5up-chat-table-wrap,
.m5up-admin-profile-view .m5up-sticker-admin-table-wrap,
.m5up-admin-profile-view .m5up-promo-table-wrap,
.m5up-admin-profile-view .m5up-voucher-table-wrap,
.m5up-admin-profile-view .m5up-gifts-table-wrap,
.m5up-admin-profile-view .m5up-chat-mod-table-wrap,
.m5up-admin-profile-view .m5r-table-wrap,
.m5up-admin-profile-view .m5ban-table-wrap,
.m5up-admin-profile-view .m5plug-tablebox,
.m5up-admin-profile-view .m5up-chat-log-actions {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d8e5f0;
  border-radius: 10px;
  background: #fff;
}
.m5up-admin-profile-view table,
.m5up-admin-profile-view .m5up-rank-table,
.m5up-admin-profile-view .m5up-chat-table,
.m5up-admin-profile-view .m5up-sticker-admin-table,
.m5up-admin-profile-view .m5up-promo-table,
.m5up-admin-profile-view .m5up-voucher-table,
.m5up-admin-profile-view .m5up-gifts-table,
.m5up-admin-profile-view .m5up-chat-mod-table,
.m5up-admin-profile-view .m5r-table,
.m5up-admin-profile-view .m5ban-table,
.m5up-admin-profile-view .m5plug-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #294c6a;
  font-size: 12px;
}
.m5up-admin-profile-view table th,
.m5up-admin-profile-view table thead th,
.m5up-admin-profile-view .m5up-rank-table th,
.m5up-admin-profile-view .m5up-chat-table th,
.m5up-admin-profile-view .m5up-sticker-admin-table th,
.m5up-admin-profile-view .m5up-promo-table th,
.m5up-admin-profile-view .m5up-voucher-table th,
.m5up-admin-profile-view .m5up-gifts-table th,
.m5up-admin-profile-view .m5plug-table th {
  padding: 11px 12px;
  background: #edf5fc;
  border-bottom: 1px solid #d9e6f1;
  color: #325b7e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}
.m5up-admin-profile-view table td,
.m5up-admin-profile-view .m5up-rank-table td,
.m5up-admin-profile-view .m5up-chat-table td,
.m5up-admin-profile-view .m5up-sticker-admin-table td,
.m5up-admin-profile-view .m5up-promo-table td,
.m5up-admin-profile-view .m5up-voucher-table td,
.m5up-admin-profile-view .m5up-gifts-table td,
.m5up-admin-profile-view .m5plug-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eaf0f5;
  vertical-align: middle;
}
.m5up-admin-profile-view table tbody tr:last-child td { border-bottom: 0; }
.m5up-admin-profile-view table tbody tr:hover td { background: #f8fbff; }

/* Widoki formularzowe i specyficzne karty. */
.m5up-admin-profile-view .m5up-admin-user-search-form,
.m5up-admin-profile-view .m5up-admin-featured-form,
.m5up-admin-profile-view .m5up-admin-official-form,
.m5up-admin-profile-view .m5up-admin-seller-form,
.m5up-admin-profile-view .m5up-admin-support-form,
.m5up-admin-profile-view .m5up-admin-user-edit-form,
.m5up-admin-profile-view .m5up-vip-admin-form,
.m5up-admin-profile-view .m5up-mass-message-form,
.m5up-admin-profile-view .m5up-auto-message-form,
.m5up-admin-profile-view .m5up-promo-setting-form,
.m5up-admin-profile-view .m5up-gifts-add-form,
.m5up-admin-profile-view .m5up-voucher-add-form,
.m5up-admin-profile-view .m5up-chat-inline-form,
.m5up-admin-profile-view .m5up-chat-moderator-form,
.m5up-admin-profile-view .m5up-bot-channels-form,
.m5up-admin-profile-view .m5up-chat-points-form,
.m5up-admin-profile-view .m5loc-admin-form,
.m5up-admin-profile-view .m5r-form-grid {
  gap: 12px;
}
.m5up-admin-profile-view .m5up-admin-selected-user,
.m5up-admin-profile-view .m5up-admin-vip-box,
.m5up-admin-profile-view .m5up-admin-vip-status,
.m5up-admin-profile-view .m5up-admin-activity-grid,
.m5up-admin-profile-view .m5plug-stats,
.m5up-admin-profile-view .m5ban-stats-grid,
.m5up-admin-profile-view .m5up-vip-admin-grid,
.m5up-admin-profile-view .m5up-voucher-grid,
.m5up-admin-profile-view .m5up-gifts-grid,
.m5up-admin-profile-view .m5up-sticker-admin-grid {
  min-width: 0;
}
.m5up-admin-profile-view .m5up-admin-selected-user,
.m5up-admin-profile-view .m5up-admin-vip-box,
.m5up-admin-profile-view .m5up-admin-rank-users-link,
.m5up-admin-profile-view .m5up-admin-user-settings-card .m5up-admin-selected-user {
  border-radius: 11px;
}
.m5up-admin-profile-view .m5up-admin-vip-package,
.m5up-admin-profile-view .m5up-promo-module-card,
.m5up-admin-profile-view .m5up-gifts-module-card,
.m5up-admin-profile-view .m5up-chat-module-card,
.m5up-admin-profile-view .m5up-chat-subcard,
.m5up-admin-profile-view .m5up-chat-rules,
.m5up-admin-profile-view .m5up-sticker-editor-control-card,
.m5up-admin-profile-view .m5ban-card,
.m5up-admin-profile-view .m5plug-filter,
.m5up-admin-profile-view .m5plug-cache {
  border: 1px solid #dce7f1;
  border-radius: 11px;
  background: #fbfdff;
}
.m5up-admin-profile-view .m5up-rank-empty,
.m5up-admin-profile-view .m5up-chat-empty,
.m5up-admin-profile-view .m5up-gifts-empty,
.m5up-admin-profile-view .m5up-voucher-empty,
.m5up-admin-profile-view .m5up-promo-empty,
.m5up-admin-profile-view .m5up-activity-ranking-empty,
.m5up-admin-profile-view .m5up-sticker-admin-empty,
.m5up-admin-profile-view .m5plug-error {
  padding: 18px;
  border: 1px dashed #d2e0ec;
  border-radius: 10px;
  background: #f8fbfe;
  color: #73899d;
  text-align: center;
}
.m5up-admin-profile-view .m5up-settings-actions,
.m5up-admin-profile-view .m5up-admin-activity-actions,
.m5up-admin-profile-view .m5up-rank-actions,
.m5up-admin-profile-view .m5up-sticker-admin-actions,
.m5up-admin-profile-view .m5up-admin-vip-actions,
.m5up-admin-profile-view .m5up-mass-message-actions,
.m5up-admin-profile-view .m5up-auto-message-actions,
.m5up-admin-profile-view .m5up-chat-log-actions,
.m5up-admin-profile-view .m5up-promo-setting-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.m5up-admin-profile-view .m5up-about-message-success,
.m5up-admin-profile-view .m5up-admin-activity-message:not(.m5up-admin-activity-error) { background: #effaf3; border: 1px solid #c4e5ce; color: #267244; }
.m5up-admin-profile-view .m5up-about-message-error,
.m5up-admin-profile-view .m5up-admin-activity-error { background: #fff2f2; border: 1px solid #efc5c5; color: #a52c2c; }

@media (max-width: 760px) {
  .m5up-admin-profile-view { padding: 13px !important; }
  .m5up-admin-profile-view .m5up-admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .m5up-admin-profile-view .m5up-admin-tabs a { justify-content: flex-start !important; padding: 9px !important; font-size: 10px !important; }
  .m5up-admin-profile-view .m5up-profile-view-head { align-items: flex-start; }
  .m5up-admin-profile-view .m5up-profile-view-head h2 { font-size: 21px; }
  .m5up-admin-profile-view .m5up-settings-card-head,
  .m5up-admin-profile-view .m5up-promo-module-head,
  .m5up-admin-profile-view .m5up-gifts-module-head,
  .m5up-admin-profile-view .m5up-chat-module-head,
  .m5up-admin-profile-view .m5up-chat-subhead,
  .m5up-admin-profile-view .m5up-vip-admin-package-head,
  .m5up-admin-profile-view .m5up-about-card-head,
  .m5up-admin-profile-view .m5up-admin-vip-head,
  .m5up-admin-profile-view .m5up-admin-activity-head,
  .m5up-admin-profile-view .m5up-rank-permissions-head,
  .m5up-admin-profile-view .m5up-rank-members-head,
  .m5up-admin-profile-view .m5up-sticker-editor-control-head,
  .m5up-admin-profile-view .m5up-activity-ranking-card-head { gap: 9px; }
  .m5up-admin-profile-view .m5up-settings-card-head > span,
  .m5up-admin-profile-view .m5up-promo-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-gifts-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-chat-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-chat-subhead > span:first-child,
  .m5up-admin-profile-view .m5up-about-card-head > span:first-child,
  .m5up-admin-profile-view .m5up-admin-vip-head > span:first-child,
  .m5up-admin-profile-view .m5up-admin-activity-head > span:first-child,
  .m5up-admin-profile-view .m5up-rank-permissions-head > span:first-child,
  .m5up-admin-profile-view .m5up-rank-members-head > span:first-child { flex-basis: 34px; width: 34px; min-width: 34px; height: 34px; font-size: 17px; }
  .m5up-admin-profile-view .m5up-settings-card,
  .m5up-admin-profile-view .m5up-admin-user-settings-card,
  .m5up-admin-profile-view .m5up-admin-activity-card,
  .m5up-admin-profile-view .m5up-admin-ranks-card,
  .m5up-admin-profile-view .m5up-admin-plugins-card,
  .m5up-admin-profile-view .m5up-admin-events-card,
  .m5up-admin-profile-view .m5up-admin-location-counties-card,
  .m5up-admin-profile-view .m5up-admin-banners,
  .m5up-admin-profile-view .m5up-vip-admin-card,
  .m5up-admin-profile-view .m5up-mass-message-card,
  .m5up-admin-profile-view .m5up-auto-message-card,
  .m5up-admin-profile-view .m5up-promo-admin-card,
  .m5up-admin-profile-view .m5up-promo-featured-card,
  .m5up-admin-profile-view .m5up-promo-classified-card,
  .m5up-admin-profile-view .m5up-promo-adjustments-card,
  .m5up-admin-profile-view .m5up-gifts-admin-card,
  .m5up-admin-profile-view .m5up-vouchers-admin-card,
  .m5up-admin-profile-view .m5up-chat-admin-card,
  .m5up-admin-profile-view .m5up-chat-module-card,
  .m5up-admin-profile-view .m5up-chat-subcard,
  .m5up-admin-profile-view .m5up-sticker-admin-card,
  .m5up-admin-profile-view .m5up-backup-card,
  .m5up-admin-profile-view .m5up-home-modules-card,
  .m5up-admin-profile-view .m5up-admin-referral-reward-card,
  .m5up-admin-profile-view .m5up-admin-regulation-card { margin: 10px 0 14px; }
  .m5up-admin-profile-view .m5up-admin-user-search-form,
  .m5up-admin-profile-view .m5up-admin-featured-form,
  .m5up-admin-profile-view .m5up-admin-official-form,
  .m5up-admin-profile-view .m5up-admin-seller-form,
  .m5up-admin-profile-view .m5up-admin-support-form,
  .m5up-admin-profile-view .m5up-admin-user-edit-form { max-width: 100%; }
}
@media (max-width: 440px) {
  .m5up-admin-profile-view .m5up-admin-tabs { grid-template-columns: 1fr; }
  .m5up-admin-profile-view .m5up-settings-card-head > span,
  .m5up-admin-profile-view .m5up-promo-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-gifts-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-chat-module-head > span:first-child,
  .m5up-admin-profile-view .m5up-about-card-head > span:first-child { display: inline-flex; }
}


/* ==============================================================
   M5 ACP POLISH FIX003 — spójny wygląd WSZYSTKICH podzakładek.
   Same style prezentacyjne; nie zmieniają nazw pól ani obsługi POST.
   Wysoka specyficzność i !important są celowe: starsze formularze
   MEDIA5 mają miejscami style osadzone bezpośrednio w szablonach.
   ============================================================== */
.m5up-admin-profile-view,
.m5up-admin-profile-view * {
  box-sizing: border-box;
}
.m5up-admin-profile-view {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto 28px !important;
  padding: 22px !important;
  color: #214663 !important;
  background: #fff !important;
  border: 1px solid #d8e5f1 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(17, 55, 88, .07) !important;
}
.m5up-admin-profile-view .m5up-profile-view-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 18px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid #e0eaf3 !important;
}
.m5up-admin-profile-view .m5up-profile-view-head > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0 !important;
}
.m5up-admin-profile-view .m5up-profile-view-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  border: 1px solid #d6e7fb !important;
  border-radius: 13px !important;
  background: #eaf3ff !important;
  font-size: 23px !important;
  line-height: 1 !important;
}
.m5up-admin-profile-view .m5up-profile-view-head h2 {
  margin: 0 !important;
  color: #174c7c !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -.025em !important;
}
.m5up-admin-profile-view .m5up-profile-view-head p {
  margin: 5px 0 0 !important;
  color: #71869b !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
.m5up-admin-profile-view .m5up-profile-view-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 9px 13px !important;
  border: 1px solid #cbdff0 !important;
  border-radius: 9px !important;
  background: #f5faff !important;
  color: #176ec3 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Karty nadrzędne i nagłówki — emoji pozostają w jednym wierszu z tytułem. */
.m5up-admin-profile-view .m5up-settings-card,
.m5up-admin-profile-view .m5up-admin-user-settings-card,
.m5up-admin-profile-view .m5up-admin-activity-card,
.m5up-admin-profile-view .m5up-admin-ranks-card,
.m5up-admin-profile-view .m5up-admin-plugins-card,
.m5up-admin-profile-view .m5up-admin-events-card,
.m5up-admin-profile-view .m5up-admin-location-counties-card,
.m5up-admin-profile-view .m5up-promo-admin-card,
.m5up-admin-profile-view .m5up-admin-banners,
.m5up-admin-profile-view .m5seller-central-admin,
.m5up-admin-profile-view .m5r-admin,
.m5up-admin-profile-view .m5up-admin-vip-card,
.m5up-admin-profile-view .m5up-mass-admin-card,
.m5up-admin-profile-view .m5up-vouchers-admin-card,
.m5up-admin-profile-view .m5up-chat-admin-card,
.m5up-admin-profile-view .m5up-gifts-admin-card,
.m5up-admin-profile-view .m5up-sticker-admin-card {
  min-width: 0 !important;
  margin: 14px 0 0 !important;
  padding: 20px !important;
  border: 1px solid #d4e3f1 !important;
  border-radius: 14px !important;
  background: #fbfdff !important;
  box-shadow: 0 3px 12px rgba(18, 64, 101, .035) !important;
}
.m5up-admin-profile-view > .m5up-settings-card:first-of-type { margin-top: 0 !important; }
.m5up-admin-profile-view .m5up-settings-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 15px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #dce7f1 !important;
}
.m5up-admin-profile-view .m5up-settings-card-head > span {
  display: inline-flex !important;
  flex: 0 0 42px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d7e8fb !important;
  border-radius: 12px !important;
  background: #eaf3ff !important;
  font-size: 21px !important;
  line-height: 1 !important;
}
.m5up-admin-profile-view .m5up-settings-card-head > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.m5up-admin-profile-view .m5up-settings-card-head h2,
.m5up-admin-profile-view .m5up-settings-card-head h3 {
  margin: 0 !important;
  color: #174b78 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  border: 0 !important;
}
.m5up-admin-profile-view .m5up-settings-card-head p {
  margin: 5px 0 0 !important;
  color: #71869b !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}
.m5up-admin-profile-view .m5up-promo-module-card,
.m5up-admin-profile-view .m5up-gifts-module-card,
.m5up-admin-profile-view .m5up-chat-module-card,
.m5up-admin-profile-view .m5up-chat-subcard,
.m5up-admin-profile-view .m5ban-card,
.m5up-admin-profile-view .m5plug-filter,
.m5up-admin-profile-view .m5plug-cache {
  min-width: 0 !important;
  margin-top: 12px !important;
  padding: 16px !important;
  border: 1px solid #dce7f1 !important;
  border-radius: 12px !important;
  background: #fff !important;
}
.m5up-admin-profile-view .m5up-promo-module-head,
.m5up-admin-profile-view .m5up-gifts-module-head,
.m5up-admin-profile-view .m5up-chat-module-head,
.m5up-admin-profile-view .m5up-chat-subhead {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #e2ebf4 !important;
}
.m5up-admin-profile-view .m5up-promo-module-head h3,
.m5up-admin-profile-view .m5up-gifts-module-head h3,
.m5up-admin-profile-view .m5up-chat-module-head h3 {
  margin: 0 !important;
  color: #174b78 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}
.m5up-admin-profile-view .m5up-promo-module-head p,
.m5up-admin-profile-view .m5up-gifts-module-head p,
.m5up-admin-profile-view .m5up-chat-module-head p {
  margin: 4px 0 0 !important;
  color: #71869b !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* Formularze: kontrolki tej samej wysokości, niepozostawiane jako małe domyślne inputy. */
.m5up-admin-profile-view input[type="text"],
.m5up-admin-profile-view input[type="number"],
.m5up-admin-profile-view input[type="email"],
.m5up-admin-profile-view input[type="password"],
.m5up-admin-profile-view input[type="search"],
.m5up-admin-profile-view input[type="url"],
.m5up-admin-profile-view input[type="date"],
.m5up-admin-profile-view input[type="datetime-local"],
.m5up-admin-profile-view input[type="time"],
.m5up-admin-profile-view select,
.m5up-admin-profile-view textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin-top: 5px !important;
  padding: 9px 11px !important;
  border: 1px solid #cbddeb !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #214967 !important;
  font: inherit !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  box-shadow: 0 1px 2px rgba(17, 59, 98, .025) !important;
}
.m5up-admin-profile-view textarea { min-height: 100px !important; resize: vertical !important; }
.m5up-admin-profile-view label {
  min-width: 0 !important;
  color: #31536f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}
.m5up-admin-profile-view label:has(input[type="checkbox"]),
.m5up-admin-profile-view label:has(input[type="radio"]) {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}
.m5up-admin-profile-view label:has(input[type="checkbox"]) input,
.m5up-admin-profile-view label:has(input[type="radio"]) input {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.m5up-admin-profile-view input[type="text"]:focus,
.m5up-admin-profile-view input[type="number"]:focus,
.m5up-admin-profile-view input[type="email"]:focus,
.m5up-admin-profile-view input[type="password"]:focus,
.m5up-admin-profile-view input[type="search"]:focus,
.m5up-admin-profile-view select:focus,
.m5up-admin-profile-view textarea:focus {
  outline: none !important;
  border-color: #6ca7df !important;
  box-shadow: 0 0 0 3px rgba(23, 110, 195, .12) !important;
}

/* Siatka dla formularzy zarządzania punktami/żetonami i kosztami promocji. */
.m5up-admin-profile-view .m5up-promo-setting-form {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)) !important;
  align-items: end !important;
  gap: 12px !important;
  margin: 12px 0 0 !important;
  padding: 15px !important;
  border: 1px solid #e0eaf3 !important;
  border-radius: 11px !important;
  background: #f8fbff !important;
}
.m5up-admin-profile-view .m5up-promo-setting-form > label,
.m5up-admin-profile-view .m5up-promo-adjustments-card form > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #2c506c !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}
.m5up-admin-profile-view .m5up-promo-adjustments-card form {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  align-items: end !important;
  gap: 12px !important;
  margin: 12px 0 0 !important;
  padding: 15px !important;
  border: 1px solid #e0eaf3 !important;
  border-radius: 11px !important;
  background: #f8fbff !important;
}
.m5up-admin-profile-view .m5up-promo-setting-form .m5up-settings-actions,
.m5up-admin-profile-view .m5up-promo-adjustments-card form .m5up-settings-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
}
.m5up-admin-profile-view .m5up-promo-input-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  min-width: 0 !important;
}
.m5up-admin-profile-view .m5up-promo-input-row input {
  flex: 0 1 275px !important;
  width: 275px !important;
  max-width: 100% !important;
}
.m5up-admin-profile-view .m5up-promo-input-row span {
  display: inline-flex !important;
  align-items: center !important;
  color: #73889d !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
.m5up-admin-profile-view .m5up-promo-setting-form button,
.m5up-admin-profile-view .m5up-promo-adjustments-card form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1px solid #176ec3 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #1978d4, #1264b4) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
.m5up-admin-profile-view .m5up-promo-setting-form .m5up-promo-delete,
.m5up-admin-profile-view .m5up-promo-adjustments-card form .m5up-promo-delete {
  border-color: #efb6b6 !important;
  background: #fff2f2 !important;
  color: #b62d36 !important;
}

/* Przyciski, komunikaty i listy zachowują jeden system wizualny. */
.m5up-admin-profile-view button,
.m5up-admin-profile-view input[type="submit"],
.m5up-admin-profile-view input[type="button"] {
  min-height: 37px !important;
  padding: 9px 13px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
}
.m5up-admin-profile-view .m5up-about-save,
.m5up-admin-profile-view button.m5up-about-save,
.m5up-admin-profile-view input.m5up-about-save {
  border: 1px solid #176ec3 !important;
  background: linear-gradient(135deg, #1978d4, #1264b4) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(23, 110, 195, .12) !important;
}
.m5up-admin-profile-view .m5up-promo-delete,
.m5up-admin-profile-view .m5up-chat-danger,
.m5up-admin-profile-view .m5ban-btn-danger,
.m5up-admin-profile-view .m5up-admin-vip-revoke,
.m5up-admin-profile-view .m5up-voucher-delete,
.m5up-admin-profile-view .m5up-gifts-delete,
.m5up-admin-profile-view .m5up-album-delete {
  border: 1px solid #efb6b6 !important;
  border-radius: 9px !important;
  background: #fff2f2 !important;
  color: #b62d36 !important;
}
.m5up-admin-profile-view .m5up-about-message,
.m5up-admin-profile-view .m5up-about-message-success,
.m5up-admin-profile-view .m5up-about-message-error,
.m5up-admin-profile-view .m5up-admin-activity-message {
  margin: 10px 0 !important;
  padding: 11px 13px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.m5up-admin-profile-view .m5up-about-message-success { border: 1px solid #c5e7d0 !important; background: #effaf3 !important; color: #267244 !important; }
.m5up-admin-profile-view .m5up-about-message-error { border: 1px solid #f0c1c1 !important; background: #fff2f2 !important; color: #a52c2c !important; }
.m5up-admin-profile-view table { max-width: 100% !important; }
.m5up-admin-profile-view .m5up-events-admin-list article {
  margin-top: 9px !important;
  padding: 14px !important;
  border: 1px solid #e0eaf3 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

@media (max-width: 760px) {
  .m5up-admin-profile-view { padding: 13px !important; border-radius: 13px !important; }
  .m5up-admin-profile-view .m5up-profile-view-head { align-items: flex-start !important; flex-wrap: wrap !important; }
  .m5up-admin-profile-view .m5up-profile-view-head h2 { font-size: 20px !important; }
  .m5up-admin-profile-view .m5up-profile-view-back { margin-left: 59px !important; }
  .m5up-admin-profile-view .m5up-settings-card,
  .m5up-admin-profile-view .m5up-admin-user-settings-card,
  .m5up-admin-profile-view .m5up-admin-activity-card,
  .m5up-admin-profile-view .m5up-admin-ranks-card,
  .m5up-admin-profile-view .m5up-admin-plugins-card,
  .m5up-admin-profile-view .m5up-admin-events-card,
  .m5up-admin-profile-view .m5up-admin-location-counties-card,
  .m5up-admin-profile-view .m5up-promo-admin-card,
  .m5up-admin-profile-view .m5up-admin-banners,
  .m5up-admin-profile-view .m5seller-central-admin,
  .m5up-admin-profile-view .m5r-admin { padding: 13px !important; }
  .m5up-admin-profile-view .m5up-promo-setting-form,
  .m5up-admin-profile-view .m5up-promo-adjustments-card form { grid-template-columns: 1fr !important; padding: 12px !important; }
  .m5up-admin-profile-view .m5up-promo-input-row input { flex-basis: 100% !important; width: 100% !important; }
}

/* MEDIA5 / 2026-10-20 – OTRZYMANE PREZENTY (widok Mój Profil)
   W tym widoku karty używają .m5up-gift-history-*, nie .m5up-gift-*.
   Zgodny rozmiar obrazka z oknem "Podaruj prezent": 100 x 100 px. */
.m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  min-height: 150px;
}
.m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card > .m5up-gift-history-icon {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px !important;
  min-width: 120px !important;
  height: 120px !important;
  flex: 0 0 120px !important;
  overflow: hidden;
  border-radius: 14px;
  background: #f1f6fb;
  font-size: 60px !important;
  line-height: 1;
}
.m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card > .m5up-gift-history-icon img {
  box-sizing: border-box;
  display: block;
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  object-fit: contain !important;
}
.m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card > .m5up-gift-history-main {
  min-width: 0;
  flex: 1 1 auto;
}
@media (max-width: 560px) {
  .m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card {
    gap: 12px;
    padding: 12px;
    min-height: 144px;
  }
  .m5up-gifts-profile-view .m5up-gift-history > .m5up-gift-history-card > .m5up-gift-history-main h3 {
    overflow-wrap: anywhere;
    font-size: 16px;
  }
}

/* M5 2.2.483 — wyrównanie panelu użytkownika z górą zakładek „Tablica”.
   Poprzedni ujemny margines -47px nakładał kartę na baner profilu.
   Dotyczy jedynie pierwszej karty lewego panelu na stronie profilu.
   Widok Wiadomości nadal sam ukrywa panel, bez zmiany swojego layoutu. */
body.section-memberlist .media5-userprofile .m5up-layout:not(.m5up-layout-messages) {
    align-items: start;
}
body.section-memberlist .media5-userprofile .m5up-layout:not(.m5up-layout-messages)
    > .m5up-sidebar > .m5up-profile-card {
    margin-top: 0 !important;
    margin-bottom: 14px;
}
@media (max-width: 700px) {
    body.section-memberlist .media5-userprofile .m5up-layout:not(.m5up-layout-messages)
        > .m5up-sidebar > .m5up-profile-card {
        margin-top: 0 !important;
        margin-bottom: 12px;
    }
}


/* M5 USERPROFILE — 2026-11-13: jedna szerokosc kart w lewej kolumnie profilu.
   Jednolity odstep od krawedzi kolumny: 10px (mobilnie 8px).
   Zmiana dotyczy wylacznie prezentacji; nie modyfikuje HTML, JS ani danych. */
.media5-userprofile .m5up-layout:not(.m5up-layout-messages) > .m5up-sidebar > :is(
    .m5up-profile-card,
    .m5up-relation-card,
    .m5up-classified-profile,
    .m5up-side-box,
    .m5up-classified-profile-alert
) {
    box-sizing: border-box !important;
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    min-width: 0;
    margin-left: 10px !important;
    margin-right: 10px !important;
}
@media (max-width: 700px) {
    .media5-userprofile .m5up-layout:not(.m5up-layout-messages) > .m5up-sidebar > :is(
        .m5up-profile-card,
        .m5up-relation-card,
        .m5up-classified-profile,
        .m5up-side-box,
        .m5up-classified-profile-alert
    ) {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
}

/* M5 RELACJE 2.2.504 — blokada oczekujących/potwierdzonych statusów */
.m5up-relation-status{border:1px solid #c8d9ec;background:#f3f8ff;border-radius:14px;padding:16px;color:#133452;margin:12px 0;max-width:100%;box-sizing:border-box}
.m5up-relation-status p{margin:8px 0 10px;line-height:1.5}.m5up-relation-locked{border-radius:9px;padding:10px 12px;background:#e5edf8;font-weight:700}
.m5up-relation-cancel-btn,.m5up-relation-end-btn{border:0;border-radius:10px;padding:12px 18px;background:#c73f53;color:#fff;font-weight:800;cursor:pointer;max-width:100%}
.m5up-relation-cancel-btn:hover,.m5up-relation-end-btn:hover{background:#a82c3e}
.m5up-relation-end-dialog{border:1px solid #d0ddec;border-radius:18px;padding:24px;box-sizing:border-box;width:min(92vw,480px);max-height:85vh;box-shadow:0 20px 70px rgba(15,35,62,.4);color:#142c48;background:#fff}
.m5up-relation-end-dialog::backdrop{background:rgba(4,12,28,.67)}.m5up-relation-end-dialog h3{font-size:20px;line-height:1.3;margin:0 0 15px;color:#102b4c}
.m5up-relation-end-person{display:flex;align-items:center;gap:13px;background:#f2f7fe;padding:13px;border-radius:12px}.m5up-relation-end-person img{width:58px;height:58px;object-fit:cover;border-radius:50%}.m5up-relation-end-person small{display:block;color:#55708f;margin-top:4px}
.m5up-rel-star-red{color:#ed365a}.m5up-rel-star-green{color:#20a366}.m5up-relation-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.m5up-relation-dialog-actions button{flex:1 1 185px;border-radius:10px;padding:12px 10px;font-weight:800;cursor:pointer}.m5up-relation-end-confirm{background:#c62849;color:white;border:0}.m5up-relation-dialog-close{background:#fff;color:#194671;border:1px solid #bad2ed}

/* M5 ADM 2.2.509 — brak rejestracji modułu NEWS w natywnym ACP. */
.m5up-admin-profile-view .m5up-admin-tabs .m5up-admin-tab-pending {
  display:flex;align-items:center;min-height:42px;gap:8px;padding:9px 12px;
  border:1px dashed #c8d4e4;border-radius:10px;background:#f7f9fc;
  color:#687d96;font-weight:700;font-size:11px;cursor:help;
}

.m5up-admin-profile-view .m5up-admin-acp-diagnostic {
  margin: -8px 0 20px;padding: 10px 14px;background:#f7f9fc;
  border: 1px solid #d9e3ec;border-radius: 9px;color:#526a83;font-size:12px;
}
.m5up-admin-profile-view .m5up-admin-acp-diagnostic summary {cursor:pointer;font-weight:700;}
.m5up-admin-profile-view .m5up-admin-acp-diagnostic p {margin:8px 0 0;line-height:1.5;}
