/* Learnaroo resource Actions menu — presentation only; existing action handlers remain authoritative. */
.lh-rp .lh-actwrap {
	display: flex;
	justify-content: flex-end;
	position: relative;
	margin: 12px 0 18px;
}

.lh-rp .lh-actbtn {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: min(100%, 320px);
	min-height: 50px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 14px;
	background: linear-gradient(135deg, #43159e 0%, #6a23ce 100%);
	box-shadow: 0 10px 24px rgba(67, 21, 158, .20);
	color: #fff;
	font: 800 1rem/1.2 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.lh-rp .lh-actbtn:hover {
	filter: brightness(1.06);
	box-shadow: 0 13px 28px rgba(67, 21, 158, .26);
	transform: translateY(-1px);
}

.lh-rp .lh-actbtn:focus-visible,
.lh-rp .lh-actwrap > .lhrp2-toolbar a:focus-visible,
.lh-rp .lh-actwrap > .lhrp2-toolbar button:focus-visible {
	outline: 3px solid #ffc400 !important;
	outline-offset: 3px !important;
}

.lh-rp .lh-actbtn__c {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #ffc400;
	font-size: 1rem;
	transition: transform .18s ease, background-color .18s ease;
}

.lh-rp .lh-actbtn[aria-expanded="true"] .lh-actbtn__c {
	background: rgba(255, 255, 255, .22);
	transform: rotate(180deg);
}

/* Override the later Resource Viewer toolbar rule that otherwise forces display:flex. */
.lh-rp.lhrp2-on .lh-actwrap > .lh-toolbar.lhrp2-toolbar,
.lh-rp .lh-actwrap > .lh-toolbar.lhrp2-toolbar {
	display: none !important;
	position: absolute !important;
	top: calc(100% + 8px) !important;
	right: 0 !important;
	left: auto !important;
	z-index: 120;
	width: min(420px, 100%);
	max-height: min(560px, calc(100vh - 150px));
	margin: 0 !important;
	padding: 10px !important;
	overflow-x: hidden;
	overflow-y: auto;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 7px !important;
	border: 1px solid rgba(67, 21, 158, .16);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 44px rgba(26, 26, 46, .20), 0 4px 12px rgba(67, 21, 158, .09);
}

.lh-rp.lhrp2-on .lh-actwrap > .lh-toolbar.lhrp2-toolbar.open,
.lh-rp .lh-actwrap > .lh-toolbar.lhrp2-toolbar.open {
	display: flex !important;
}

.lh-rp .lh-actwrap > .lhrp2-toolbar .lh-toolbar__btn,
.lh-rp .lh-actwrap > .lhrp2-toolbar .lhrp2-back {
	box-sizing: border-box !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 50px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	overflow: visible !important;
	flex: 0 0 auto !important;
	justify-content: flex-start !important;
	white-space: normal !important;
	text-align: left !important;
	border-radius: 12px !important;
}

.lh-rp .lh-actwrap > .lhrp2-toolbar #lh-fullscreen-btn {
	margin-left: 0 !important;
}

.lh-rp .lh-actwrap > .lhrp2-toolbar .lh-locked {
	flex-wrap: wrap !important;
	border-color: #d7d7df !important;
	background: #f3f3f6 !important;
	box-shadow: none !important;
	color: #686875 !important;
	cursor: pointer;
	transform: none !important;
}

.lh-rp .lh-actwrap > .lhrp2-toolbar .lh-locked:hover {
	border-color: #bdbdc8 !important;
	background: #ececf1 !important;
}

.lh-rp .lh-actwrap > .lhrp2-toolbar .lh-locked__tip {
	display: none !important;
}

.lh-rp .lh-action-auth-note {
	display: block;
	flex: 0 0 100%;
	margin: 2px 0 0 29px;
	color: #777784;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.25;
}

@media (max-width: 680px) {
	.lh-rp .lh-actwrap {
		justify-content: stretch;
	}

	.lh-rp .lh-actbtn {
		width: 100%;
	}

	.lh-rp.lhrp2-on .lh-actwrap > .lh-toolbar.lhrp2-toolbar,
	.lh-rp .lh-actwrap > .lh-toolbar.lhrp2-toolbar {
		left: 0 !important;
		right: 0 !important;
		width: auto;
		max-height: min(520px, calc(100vh - 140px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.lh-rp .lh-actbtn,
	.lh-rp .lh-actbtn__c {
		transition: none;
	}
}

