/* Rankovate client app — Profile pop-up polish (v2.28.498) */
body.rk-app-body {
	--rk-pf-line: rgba(255, 255, 255, 0.1);
	--rk-pf-soft: rgba(255, 255, 255, 0.03);
	--rk-pf-fg: #f4f5f1;
	--rk-pf-muted: rgba(244, 245, 241, 0.58);
}
body.rk-app-body.rk-theme-light {
	--rk-pf-line: #eaecf0;
	--rk-pf-soft: #f9fafb;
	--rk-pf-fg: #101828;
	--rk-pf-muted: #667085;
}

/* Helper text under a field */
body.rk-app-body .rk-profile-help-v497:not(#rk-p):not(#rk-p) {
	display: block !important;
	margin-top: 6px !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: var(--rk-pf-muted) !important;
}

/* Profile photo row inside Account Information */
body.rk-app-body .rk-profile-photo-row-v497:not(#rk-p) {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: 16px !important;
	padding: 12px !important;
	border: 1px solid var(--rk-pf-line) !important;
	border-radius: 12px !important;
	background: var(--rk-pf-soft) !important;
}
body.rk-app-body .rk-profile-photo-thumb-v497:not(#rk-p) {
	display: grid !important;
	place-items: center !important;
	width: 44px !important;
	height: 44px !important;
	flex: 0 0 44px !important;
	overflow: hidden !important;
	border-radius: 50% !important;
	border: 1px solid var(--rk-pf-line) !important;
	color: var(--rk-pf-muted) !important;
}
body.rk-app-body .rk-profile-photo-thumb-v497 img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
body.rk-app-body .rk-profile-photo-thumb-v497 svg { width: 20px !important; height: 20px !important; }
body.rk-app-body .rk-profile-photo-copy-v497:not(#rk-p) {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}
body.rk-app-body .rk-profile-photo-copy-v497 strong:not(#rk-p):not(#rk-p) { font-size: 14px !important; font-weight: 600 !important; color: var(--rk-pf-fg) !important; }
body.rk-app-body .rk-profile-photo-copy-v497 small:not(#rk-p):not(#rk-p) { font-size: 12px !important; color: var(--rk-pf-muted) !important; }
body.rk-app-body .rk-profile-photo-actions-v497:not(#rk-p) {
	display: flex !important;
	gap: 8px !important;
	flex: 0 0 auto !important;
}
body.rk-app-body .rk-profile-photo-actions-v497 label { cursor: pointer !important; }

/* Footer buttons of the Account pop-up: Cancel + Save on the right */
body.rk-app-body .rk-profile-modal-v261 .rk-profile-actions-v260:not(#rk-p):not(#rk-p) {
	display: flex !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 8px !important;
	margin-top: 18px !important;
	padding-top: 16px !important;
	border-top: 1px solid var(--rk-pf-line) !important;
}

/* Two equal info tiles (Security) */
body.rk-app-body .rk-profile-info-grid-2-v497:not(#rk-p):not(#rk-p) {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
	margin-top: 12px !important;
}
body.rk-app-body .rk-profile-inline-actions-v260:not(#rk-p) {
	display: flex !important;
	justify-content: flex-start !important;
	margin-top: 14px !important;
}

/* "Add your company" in the profile header */
body.rk-app-body .rk-profile-company-add-link-v497:not(#rk-p):not(#rk-p) {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rk-lime-ink, #bff747) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
}
body.rk-app-body:not(.rk-theme-light) .rk-profile-company-add-link-v497:not(#rk-p):not(#rk-p) { color: #bff747 !important; }

/* Account Activity: When · Device · (Location) · Signed in with */
body.rk-app-body .rk-profile-login-v497 .rk-profile-login-grid-v266:not(#rk-p):not(#rk-p) {
	display: grid !important;
	grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.4fr) minmax(90px, .7fr) !important;
	gap: 12px !important;
	align-items: center !important;
}
body.rk-app-body .rk-profile-login-v497.has-place .rk-profile-login-grid-v266:not(#rk-p):not(#rk-p) {
	grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(90px, .7fr) !important;
}
body.rk-app-body .rk-profile-login-v497 .rk-profile-login-grid-v266 > span:not(#rk-p):not(#rk-p) {
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}
body.rk-app-body .rk-profile-login-latest-v497:not(#rk-p):not(#rk-p) {
	display: inline-flex !important;
	align-items: center !important;
	height: 20px !important;
	margin-left: 6px !important;
	padding: 0 8px !important;
	border-radius: 999px !important;
	background: var(--rk-tone-success-bg, rgba(191,247,71,.1)) !important;
	border: 1px solid var(--rk-tone-success-bd, rgba(191,247,71,.34)) !important;
	color: var(--rk-tone-success-fg, #bff747) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	font-style: normal !important;
}

@media (max-width: 620px) {
	body.rk-app-body .rk-profile-photo-row-v497:not(#rk-p) { flex-wrap: wrap !important; }
	body.rk-app-body .rk-profile-info-grid-2-v497:not(#rk-p):not(#rk-p) { grid-template-columns: 1fr !important; }
}

/* Name and email fields line up */
body.rk-app-body .rk-profile-modal-v261 .rk-profile-fields-v260:not(#rk-p):not(#rk-p) {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px !important;
	align-items: start !important;
}
body.rk-app-body .rk-profile-modal-v261 .rk-profile-field-v260:not(#rk-p):not(#rk-p) {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin: 0 !important;
}
body.rk-app-body .rk-profile-modal-v261 .rk-profile-field-v260.is-wide:not(#rk-p):not(#rk-p) { grid-column: 1 / -1 !important; }
body.rk-app-body .rk-profile-modal-v261 .rk-profile-field-v260 > :is(label, .rk-profile-label-v260):not(#rk-p):not(#rk-p) {
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: var(--rk-pf-muted) !important;
}
body.rk-app-body .rk-profile-modal-v261 .rk-profile-field-v260 > input:not(#rk-p):not(#rk-p):not(#rk-p):not(#rk-p) { margin: 0 !important; }
body.rk-app-body .rk-profile-modal-v261 .rk-profile-field-v260 > .rk-profile-help-v497:not(#rk-p):not(#rk-p) { margin-top: -2px !important; }

/* "Add company": a normal small secondary button */
body.rk-app-body .rk-profile-company-add-v262:not(#rk-p):not(#rk-p):not(#rk-p) {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 14px !important;
	border: 1px solid var(--rk-pf-line) !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: var(--rk-pf-fg) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	box-shadow: none !important;
}
body.rk-app-body .rk-profile-company-add-v262:not(#rk-p):not(#rk-p):not(#rk-p):hover { border-color: var(--rk-chip-border-hover, rgba(255,255,255,.24)) !important; }
body.rk-app-body .rk-profile-company-add-v262 svg { width: 14px !important; height: 14px !important; }

/* Light theme: soft avatar ring instead of a thick black circle */
body.rk-app-body.rk-theme-light .rk-profile-avatar-v260:not(#rk-p):not(#rk-p):not(#rk-p) {
	border: 1px solid #e4e7ec !important;
	box-shadow: 0 0 0 4px #f2f4f7 !important;
}

@media (max-width: 620px) {
	body.rk-app-body .rk-profile-modal-v261 .rk-profile-fields-v260:not(#rk-p):not(#rk-p) { grid-template-columns: 1fr !important; }
}
body.rk-app-body .rk-profile-company-add-v262:not(#rk-p):not(#rk-p):not(#rk-p) :is(span, svg) {
	color: inherit !important;
	opacity: 1 !important;
}

/* Account details live only in the "Edit Profile" pop-up */
body.rk-app-body .rk-profile-section-v260.is-panel-only-v498:not(#rk-p):not(#rk-p) { display: none !important; }

/* ---------- Company editor: one step at a time ---------- */
body.rk-app-body .rk-profile-company-editor-v262[data-mode="search"] :is(.rk-profile-company-selected-v262, .rk-profile-company-edit-fields-v262, .rk-profile-company-check-v262, .rk-profile-company-editor-actions-v262 [data-rk-company-save]):not(#rk-p):not(#rk-p),
body.rk-app-body .rk-profile-company-editor-v262[data-mode="selected"] :is(.rk-profile-company-search-wrap-v262, .rk-profile-company-edit-fields-v262):not(#rk-p):not(#rk-p),
body.rk-app-body .rk-profile-company-editor-v262[data-mode="manual"] :is(.rk-profile-company-search-wrap-v262, .rk-profile-company-selected-v262):not(#rk-p):not(#rk-p) {
	display: none !important;
}
body.rk-app-body .rk-profile-company-editor-v262[data-mode="selected"] .rk-profile-company-selected-v262:not(#rk-p):not(#rk-p) {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 10px 12px !important;
	border: 1px solid var(--rk-pf-line) !important;
	border-radius: 10px !important;
	background: var(--rk-pf-soft) !important;
}
body.rk-app-body .rk-profile-company-selected-v262 img:not(#rk-p) { width: 32px !important; height: 32px !important; border-radius: 8px !important; object-fit: contain !important; flex: 0 0 32px !important; }
body.rk-app-body .rk-profile-company-selected-v262 > div:not(#rk-p) { display: flex !important; flex-direction: column !important; gap: 2px !important; flex: 1 1 auto !important; min-width: 0 !important; }
body.rk-app-body .rk-profile-company-selected-v262 strong:not(#rk-p):not(#rk-p) { font-size: 14px !important; font-weight: 600 !important; color: var(--rk-pf-fg) !important; }
body.rk-app-body .rk-profile-company-selected-v262 > div > span:not(#rk-p):not(#rk-p) { font-size: 12px !important; color: var(--rk-pf-muted) !important; }
body.rk-app-body .rk-profile-company-change-v498:not(#rk-p):not(#rk-p) {
	flex: 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--rk-pf-muted) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
	cursor: pointer !important;
}
body.rk-app-body .rk-profile-company-change-v498:not(#rk-p):not(#rk-p):hover { color: var(--rk-pf-fg) !important; }
/* "Add it yourself" row at the end of suggestions */
body.rk-app-body .rk-profile-company-option-v262.is-manual:not(#rk-p):not(#rk-p) {
	border-top: 1px solid var(--rk-pf-line) !important;
	border-radius: 0 0 8px 8px !important;
}
body.rk-app-body .rk-profile-company-option-v262.is-manual strong:not(#rk-p):not(#rk-p) { color: var(--rk-lime-ink, #bff747) !important; }
body.rk-app-body:not(.rk-theme-light) .rk-profile-company-option-v262.is-manual strong:not(#rk-p):not(#rk-p) { color: #bff747 !important; }
/* Editor spacing */
body.rk-app-body .rk-profile-company-editor-v262:not(#rk-p):not(#rk-p) { display: flex !important; flex-direction: column !important; gap: 12px !important; }
body.rk-app-body .rk-profile-company-editor-v262[hidden]:not(#rk-p):not(#rk-p) { display: none !important; }
body.rk-app-body .rk-profile-company-editor-actions-v262:not(#rk-p):not(#rk-p) { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 10px !important; }
body.rk-app-body .rk-profile-company-status-v262:not(#rk-p):not(#rk-p) { margin-right: auto !important; font-size: 12px !important; color: var(--rk-pf-muted) !important; }
body.rk-app-body .rk-profile-company-status-v262.is-error:not(#rk-p):not(#rk-p) { color: #ff8a94 !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-status-v262.is-error:not(#rk-p):not(#rk-p) { color: #b42335 !important; }
body.rk-app-body .rk-profile-company-option-v262.is-manual:not(#rk-p):not(#rk-p) {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	padding: 10px 12px !important;
	text-align: left !important;
}
body.rk-app-body .rk-profile-company-option-v262.is-manual > span:not(#rk-p):not(#rk-p) {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
	min-width: 0 !important;
	white-space: normal !important;
}
body.rk-app-body .rk-profile-company-option-v262.is-manual small:not(#rk-p):not(#rk-p) { font-size: 12px !important; color: var(--rk-pf-muted) !important; }

/* Suggestions sit in the flow (no clipped dropdown inside the pop-up) */
body.rk-app-body .rk-profile-company-suggestions-v262:not(#rk-p):not(#rk-p) {
	position: static !important;
	inset: auto !important;
	margin-top: 8px !important;
	max-height: 260px !important;
	overflow-y: auto !important;
	padding: 4px !important;
	border: 1px solid var(--rk-pf-line) !important;
	border-radius: 10px !important;
	background: var(--rk-pf-soft) !important;
	box-shadow: none !important;
}
body.rk-app-body .rk-profile-company-suggestions-v262[hidden]:not(#rk-p):not(#rk-p) { display: none !important; }
/* Long pop-ups scroll inside instead of running off screen */
body.rk-app-body .rk-profile-modal-dialog-v261:not(#rk-p):not(#rk-p) {
	max-height: calc(100vh - 48px) !important;
	display: flex !important;
	flex-direction: column !important;
}
body.rk-app-body .rk-profile-modal-body-v261:not(#rk-p):not(#rk-p) {
	overflow-y: auto !important;
	min-height: 0 !important;
}
/* Light theme: editor box */
body.rk-app-body.rk-theme-light .rk-profile-company-editor-v262:not(#rk-p):not(#rk-p) {
	background: #f9fafb !important;
	border-color: #e4e7ec !important;
}
body.rk-app-body.rk-theme-light .rk-profile-company-editor-v262 :is(strong, .rk-profile-company-cancel-v262):not(#rk-p):not(#rk-p) { color: #101828 !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-editor-v262 .rk-profile-company-cancel-v262:not(#rk-p):not(#rk-p) { color: #667085 !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-selected-v262:not(#rk-p):not(#rk-p),
body.rk-app-body.rk-theme-light .rk-profile-company-suggestions-v262:not(#rk-p):not(#rk-p) { background: #ffffff !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-option-v262:not(#rk-p):not(#rk-p) { background: transparent !important; color: #101828 !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-option-v262:not(#rk-p):not(#rk-p):hover { background: #f2f4f7 !important; }
body.rk-app-body.rk-theme-light .rk-profile-company-option-v262.is-manual strong:not(#rk-p):not(#rk-p):not(#rk-p) { color: #4f7d00 !important; }

/* Account Activity table fits the pop-up */
body.rk-app-body .rk-profile-login-table-v266:not(#rk-p):not(#rk-p){overflow-x:hidden!important;max-width:100%!important}
body.rk-app-body .rk-profile-login-grid-v266:not(#rk-p):not(#rk-p){min-width:0!important;width:100%!important}
