.ahr-app {
	--ahr-bg: #08060f;
	--ahr-panel: #ffffff;
	--ahr-panel-dark: #111018;
	--ahr-ink: #17131f;
	--ahr-muted: #746d84;
	--ahr-line: rgba(114, 80, 184, .18);
	--ahr-green: #7c3aed;
	--ahr-blue: #a78bfa;
	--ahr-gold: #d8b4fe;
	--ahr-soft: #f4f0ff;
	--ahr-neutral: #eeeaf8;
	color: var(--ahr-ink);
	background: radial-gradient(circle at 18% 10%, rgba(124, 58, 237, .28), transparent 30%), linear-gradient(135deg, #08060f 0%, #151023 45%, #08060f 100%);
	border-radius: 0;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.45;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	min-height: 100vh;
	overflow: hidden;
	width: 100vw;
}

body.ahr-crm-mode,
html:has(.ahr-app) body {
	background: #08060f !important;
	overflow-x: hidden;
}

html:has(.ahr-app) {
	margin-top: 0 !important;
}

body.ahr-crm-mode #wpadminbar {
	display: none !important;
}

body.ahr-crm-mode .site-header,
body.ahr-crm-mode header.site-header,
body.ahr-crm-mode #masthead,
body.ahr-crm-mode .main-header,
body.ahr-crm-mode .page-header,
body.ahr-crm-mode .entry-header,
body.ahr-crm-mode .wp-block-post-title,
body.ahr-crm-mode h1.entry-title,
body.ahr-crm-mode .site-footer,
body.ahr-crm-mode footer.site-footer {
	display: none !important;
}

body.ahr-crm-mode .site,
body.ahr-crm-mode .site-content,
body.ahr-crm-mode .content-area,
body.ahr-crm-mode .entry-content,
body.ahr-crm-mode main:not(.ahr-content),
body.ahr-crm-mode article,
body.ahr-crm-mode .container,
body.ahr-crm-mode .wrap {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

.ahr-app * {
	box-sizing: border-box;
}

.ahr-loading {
	display: grid;
	gap: 8px;
	padding: 48px;
	text-align: center;
}

.ahr-shell {
	display: grid;
	grid-template-columns: 282px minmax(0, 1fr);
	min-height: 100vh;
}

.ahr-sidebar {
	background: linear-gradient(180deg, #100d18 0%, #09070f 100%);
	border-right: 1px solid rgba(255, 255, 255, .08);
	color: #ffffff;
	padding: 28px 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ahr-brand {
	display: grid;
	gap: 4px;
}

.ahr-brand strong {
	font-size: 21px;
	letter-spacing: 0;
}

.ahr-brand span,
.ahr-sidebar-note {
	color: rgba(248, 244, 236, .72);
	font-size: 13px;
}

.ahr-nav {
	display: grid;
	gap: 7px;
}

.ahr-nav button,
.ahr-icon-btn,
.ahr-btn,
.ahr-pill-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.ahr-nav button {
	background: transparent;
	color: rgba(255, 255, 255, .66);
	padding: 12px 14px;
	text-align: left;
}

.ahr-nav button:hover,
.ahr-nav button.is-active {
	background: rgba(124, 58, 237, .26);
	border-color: rgba(216, 180, 254, .22);
	color: #ffffff;
}

.ahr-content {
	padding: 26px;
	overflow: auto;
	min-width: 0;
}

.ahr-content > .ahr-topbar {
	color: #ffffff;
}

.ahr-content > .ahr-topbar .ahr-title {
	color: #ffffff;
}

.ahr-content > .ahr-topbar .ahr-kicker,
.ahr-content > .ahr-topbar .ahr-small {
	color: rgba(255, 255, 255, .68);
}

.ahr-topbar,
.ahr-section-head,
.ahr-row,
.ahr-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ahr-topbar {
	margin-bottom: 18px;
}

.ahr-kicker {
	color: var(--ahr-muted);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.ahr-title {
	font-size: clamp(25px, 3vw, 38px);
	line-height: 1.05;
	margin: 4px 0 8px;
}

.ahr-subtitle {
	color: var(--ahr-muted);
	margin: 0;
}

.ahr-grid {
	display: grid;
	gap: 14px;
}

.ahr-grid.two {
	grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.ahr-grid.three {
	grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.ahr-panel,
.ahr-card,
.ahr-modal-inner {
	background: var(--ahr-panel);
	border: 1px solid var(--ahr-line);
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
	color: var(--ahr-ink);
	min-width: 0;
}

.ahr-panel {
	padding: 18px;
}

.ahr-card {
	padding: 16px;
}

.ahr-identity {
	background: linear-gradient(135deg, #7c3aed 0%, #25123f 55%, #09070f 100%);
	color: #ffffff;
	border: 0;
}

.ahr-identity p {
	color: rgba(255, 253, 250, .8);
	margin: 8px 0 0;
}

.ahr-stat strong {
	display: block;
	font-size: 25px;
	line-height: 1.1;
}

.ahr-stat span,
.ahr-small {
	color: var(--ahr-muted);
	font-size: 13px;
}

.ahr-progress {
	background: rgba(124, 58, 237, .12);
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.ahr-progress span {
	background: linear-gradient(90deg, #7c3aed, #d8b4fe);
	display: block;
	height: 100%;
	width: 0;
}

.ahr-quest {
	align-items: center;
	background: var(--ahr-panel);
	border: 1px solid var(--ahr-line);
	border-radius: 8px;
	color: var(--ahr-ink) !important;
	display: grid;
	gap: 10px;
	grid-template-columns: 42px minmax(0, 1fr);
	min-height: 104px;
	padding: 14px;
	text-decoration: none !important;
	text-align: left;
	width: 100%;
	min-width: 0;
}

.ahr-quest > span {
	min-width: 0;
}

.ahr-quest strong,
.ahr-quest small {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.ahr-quest strong {
	color: var(--ahr-ink);
	font-size: 15px;
	line-height: 1.22;
}

.ahr-quest small {
	color: var(--ahr-muted);
	font-size: 12px;
	line-height: 1.25;
	margin-top: 4px;
}

.ahr-quest:hover,
.ahr-btn:hover,
.ahr-pill-btn:hover,
.ahr-icon-btn:hover {
	transform: translateY(-1px);
}

.ahr-check {
	align-items: center;
	background: var(--ahr-neutral);
	border-radius: 8px;
	display: flex;
	font-weight: 800;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.ahr-quest.is-done {
	border-color: rgba(124, 58, 237, .55);
	background: #faf7ff;
}

.ahr-quest.is-done .ahr-check {
	background: var(--ahr-green);
	color: #fff;
}

.ahr-quest.is-rest {
	background: #f5f1ff;
}

.ahr-xp {
	color: var(--ahr-green);
	font-weight: 800;
	white-space: nowrap;
	grid-column: 2;
}

.ahr-btn {
	background: var(--ahr-green);
	color: #ffffff;
	font-weight: 800;
	padding: 10px 13px;
}

.ahr-btn.secondary {
	background: #fffdfa;
	border-color: var(--ahr-line);
	color: var(--ahr-ink);
}

.ahr-btn.gold {
	background: #111018;
	border-color: rgba(216, 180, 254, .28);
	color: #ffffff;
}

.ahr-pill-btn {
	background: #fffdfa;
	border-color: var(--ahr-line);
	color: var(--ahr-ink);
	padding: 8px 11px;
}

.ahr-pill-btn.is-active {
	background: var(--ahr-green);
	border-color: var(--ahr-green);
	color: #fffdfa;
}

.ahr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ahr-form {
	display: grid;
	gap: 10px;
}

.ahr-form label {
	display: grid;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
}

.ahr-form input,
.ahr-form textarea,
.ahr-form select {
	background: #fffdfa;
	border: 1px solid var(--ahr-line);
	border-radius: 8px;
	color: var(--ahr-ink);
	font: inherit;
	padding: 10px 11px;
	width: 100%;
}

.ahr-form textarea {
	min-height: 82px;
	resize: vertical;
}

.ahr-calendar {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ahr-day-name,
.ahr-day {
	min-height: 76px;
}

.ahr-day-name {
	color: var(--ahr-muted);
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.ahr-day {
	background: #fffdfa;
	border: 1px solid var(--ahr-line);
	border-radius: 8px;
	cursor: pointer;
	padding: 8px;
	text-align: left;
}

.ahr-day.is-empty {
	opacity: .35;
}

.ahr-day.is-selected {
	outline: 2px solid var(--ahr-green);
}

.ahr-dot {
	border-radius: 999px;
	display: block;
	height: 6px;
	margin-top: 11px;
	width: 100%;
}

.ahr-rate-0 { background: #ddd8ce; }
.ahr-rate-1 { background: #d8cda9; }
.ahr-rate-2 { background: #98b6a0; }
.ahr-rate-3 { background: #25635b; }

.ahr-bars {
	display: grid;
	gap: 11px;
}

.ahr-bar-label {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	font-weight: 800;
}

.ahr-list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.ahr-list li {
	background: rgba(37, 99, 91, .06);
	border: 1px solid var(--ahr-line);
	border-radius: 8px;
	list-style: none;
	padding: 10px;
}

.ahr-chart {
	align-items: end;
	display: flex;
	gap: 8px;
	height: 180px;
	padding-top: 12px;
}

.ahr-chart-bar {
	background: linear-gradient(180deg, var(--ahr-green), #8fb29a);
	border-radius: 7px 7px 0 0;
	flex: 1;
	min-width: 18px;
	position: relative;
}

.ahr-chart-bar span {
	color: var(--ahr-muted);
	font-size: 11px;
	left: 50%;
	position: absolute;
	top: calc(100% + 5px);
	transform: translateX(-50%);
	white-space: nowrap;
}

.ahr-chart.weight .ahr-chart-bar {
	background: linear-gradient(180deg, var(--ahr-blue), #9db6cd);
}

.ahr-modal {
	align-items: center;
	background: rgba(18, 24, 22, .5);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 99999;
}

.ahr-modal.is-open {
	display: flex;
}

.ahr-modal-inner {
	max-height: 88vh;
	max-width: 720px;
	overflow: auto;
	padding: 18px;
	width: min(720px, 100%);
}

.ahr-toast {
	background: #17221f;
	border-radius: 8px;
	bottom: 18px;
	color: #fffdfa;
	left: 50%;
	opacity: 0;
	padding: 12px 16px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 16px);
	transition: opacity .18s ease, transform .18s ease;
	z-index: 100000;
}

.ahr-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ahr-celebrate {
	animation: ahr-pop .45s ease;
}

@keyframes ahr-pop {
	0% { transform: scale(.98); }
	55% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

@media (max-width: 900px) {
	.ahr-shell {
		grid-template-columns: 1fr;
	}

	.ahr-sidebar {
		position: sticky;
		top: 0;
		z-index: 3;
	}

	.ahr-nav {
		display: flex;
		overflow-x: auto;
	}

	.ahr-nav button {
		white-space: nowrap;
	}

	.ahr-grid.two,
	.ahr-grid.three {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 901px) and (max-width: 1220px) {
	.ahr-grid.three {
		grid-template-columns: repeat(2, minmax(240px, 1fr));
	}
}

@media (max-width: 560px) {
	.ahr-content,
	.ahr-sidebar {
		padding: 14px;
	}

	.ahr-topbar,
	.ahr-section-head,
	.ahr-row {
		align-items: stretch;
		flex-direction: column;
	}

	.ahr-calendar {
		gap: 5px;
	}

	.ahr-day {
		min-height: 58px;
		padding: 6px;
	}

	.ahr-quest {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.ahr-quest .ahr-xp {
		grid-column: 2;
	}
}
