/**
 * Design tokens live on :root, not on .am-dashboard, specifically because
 * some of this plugin's UI is appended directly to <body> and therefore
 * renders outside the dashboard container: the shared color-picker
 * popover (color-picker.js) and the unsaved-changes indicator
 * (dashboard.js). Scoped to .am-dashboard, every var() in those two
 * components resolved to nothing — transparent backgrounds and dropped
 * borders. Custom properties apply no styling on their own, so defining
 * them globally is safe.
 */
:root {
	--am-bg: #0d0d0f;
	--am-surface: #17171a;
	--am-border: #2a2a2e;
	--am-text: #f5f5f6;
	--am-text-muted: rgba(245, 245, 246, 0.62);
	--am-accent: #fe8b92;
	--am-accent-2: #fff662;
	--am-radius: 16px;
}

.am-dashboard {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	background: var(--am-bg);
	color: var(--am-text);
	border-radius: var(--am-radius);
	padding: 24px;
	font-family: "Lato", system-ui, -apple-system, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.am-dashboard *,
.am-dashboard *::before,
.am-dashboard *::after {
	box-sizing: border-box;
}

.am-dashboard--gate {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	padding: 48px 24px;
}

.am-dashboard__nav {
	flex: 0 0 220px;
}

.am-dashboard__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.am-dashboard__nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--am-text-muted);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-dashboard__nav a:hover {
	background: var(--am-surface);
	color: var(--am-text);
}

.am-dashboard__nav li.is-active a {
	background: var(--am-surface);
	color: var(--am-accent);
	font-weight: 700;
}

.am-dashboard__panel {
	flex: 1 1 auto;
	min-width: 0;
}

.am-dashboard__title {
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-weight: 800;
	font-size: 22px;
	margin: 0 0 20px;
}

.am-dashboard__button {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	border: 1px solid var(--am-accent);
	color: var(--am-accent);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.am-dashboard__button:hover {
	background: var(--am-accent);
	color: #151018;
}

.am-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.am-card {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.am-card--muted {
	opacity: 0.6;
}

.am-card__value {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 28px;
	font-weight: 700;
}

.am-card__label {
	font-size: 13px;
	color: var(--am-text-muted);
}

.am-empty-state {
	color: var(--am-text-muted);
}

.am-license-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.am-license-card {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	padding: 18px 20px;
}

.am-license-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.am-license-card__header h2 {
	font-size: 16px;
	margin: 0;
}

.am-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 246, 98, 0.15);
	color: var(--am-accent-2);
	text-transform: capitalize;
}

.am-license-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 12px 0;
	font-size: 13px;
}

.am-license-card__meta div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.am-license-card__meta dt {
	color: var(--am-text-muted);
}

.am-license-card__meta dd {
	margin: 0;
}

.am-license-card__key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	background: var(--am-bg);
	border-radius: 10px;
	padding: 8px 12px;
}

.am-license-card__key code {
	flex: 1 1 auto;
	overflow-wrap: anywhere;
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 13px;
}

.am-copy-button {
	background: transparent;
	border: 1px solid var(--am-border);
	color: var(--am-text);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 12px;
	cursor: pointer;
}

.am-copy-button:hover {
	border-color: var(--am-accent);
	color: var(--am-accent);
}

.am-license-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 12px;
}

.am-license-card__hint {
	margin: 0;
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-profile-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 20px;
}

.am-profile-meta div {
	display: flex;
	gap: 8px;
}

.am-profile-meta dt {
	color: var(--am-text-muted);
	min-width: 80px;
}

.am-profile-meta dd {
	margin: 0;
}

.am-dashboard__header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.am-dashboard__header-row .am-dashboard__title {
	margin: 0;
}

.am-dashboard__subtitle {
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 16px;
	margin: 24px 0 8px;
}

.am-dashboard__button--solid {
	background: var(--am-accent);
	color: #151018;
	border: none;
	cursor: pointer;
}

.am-dashboard__button--solid:hover {
	opacity: 0.9;
}

.am-license-card--link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.am-license-card--link:hover {
	border-color: var(--am-accent);
}

.am-license-card__meta--stacked {
	flex-direction: column;
	gap: 8px;
}

.am-badge--submitted { background: rgba(132, 123, 202, 0.18); color: #b3aaf0; }
.am-badge--in_review { background: rgba(59, 211, 255, 0.18); color: #3bd3ff; }
.am-badge--quote_sent { background: rgba(255, 246, 98, 0.15); color: var(--am-accent-2); }
.am-badge--approved,
.am-badge--in_progress { background: rgba(254, 139, 146, 0.18); color: var(--am-accent); }
.am-badge--delivered,
.am-badge--completed { background: rgba(120, 220, 150, 0.18); color: #78dc96; }
.am-badge--revision_requested { background: rgba(255, 140, 90, 0.18); color: #ff8c5a; }
.am-badge--archived,
.am-badge--active { background: rgba(120, 220, 150, 0.18); color: #78dc96; }

.am-back-link {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--am-text-muted);
	text-decoration: none;
	font-size: 13px;
}

.am-back-link:hover {
	color: var(--am-text);
}

.am-notice {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 16px;
}

.am-notice--success {
	background: rgba(120, 220, 150, 0.12);
	color: #78dc96;
}

.am-notice--error {
	background: rgba(255, 140, 90, 0.12);
	color: #ff8c5a;
}

.am-file-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.am-file-list a {
	color: var(--am-accent);
	text-decoration: none;
}

.am-file-list a:hover {
	text-decoration: underline;
}

.am-file-list__meta {
	color: var(--am-text-muted);
	font-size: 12px;
	margin-left: 6px;
}

.am-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 640px;
}

.am-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.am-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--am-text-muted);
}

.am-form__field input[type="text"],
.am-form__field input[type="email"],
.am-form__field input[type="date"],
.am-form__field input[type="number"],
.am-form__field input[type="file"],
.am-form__field select,
.am-form__field textarea {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 10px 12px;
	color: var(--am-text);
	font-family: inherit;
	font-size: 14px;
	max-width: 100%;
	width: 100%;
}

.am-form__field textarea {
	resize: vertical;
}

.am-unread-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--am-accent);
	color: #151018;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

.am-activity-feed {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.am-activity-item--system {
	color: var(--am-text-muted);
	font-size: 13px;
	margin: 0;
}

.am-activity-item--system .am-activity-item__time {
	margin-left: 8px;
}

.am-activity-item--message {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 12px;
	padding: 12px 14px;
	max-width: 80%;
}

.am-activity-item--message.am-activity-item--mine {
	margin-left: auto;
	border-color: var(--am-accent);
}

.am-activity-item--internal {
	background: rgba(255, 198, 92, 0.08);
	border-color: rgba(255, 198, 92, 0.35);
}

.am-badge--internal {
	background: rgba(255, 198, 92, 0.18);
	color: #ffc65c;
}

.am-activity-item--message p {
	margin: 6px 0 0;
}

.am-activity-item__meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
}

.am-activity-item__time {
	color: var(--am-text-muted);
	font-size: 12px;
}

.am-activity-item__attachment {
	display: inline-block;
	margin-top: 8px;
	color: var(--am-accent);
	text-decoration: none;
	font-size: 13px;
}

.am-activity-item__attachment:hover {
	text-decoration: underline;
}

.am-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.am-course-card {
	display: block;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.am-course-card:hover {
	border-color: var(--am-accent);
}

.am-course-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.am-course-card__body {
	padding: 14px 16px;
}

.am-course-card__body h2 {
	font-size: 15px;
	margin: 0 0 4px;
}

.am-course-card__meta {
	font-size: 12px;
	color: var(--am-text-muted);
	margin: 0 0 10px;
}

.am-progress {
	background: var(--am-bg);
	border-radius: 999px;
	height: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}

.am-progress__bar {
	height: 100%;
	background: var(--am-accent);
	border-radius: 999px;
}

.am-progress__label {
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-course-player {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.am-course-player__sidebar {
	flex: 0 0 240px;
}

.am-course-player__module {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--am-text-muted);
	margin: 16px 0 6px;
}

.am-course-player__module:first-child {
	margin-top: 0;
}

.am-course-player__sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-course-player__sidebar a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--am-text-muted);
	text-decoration: none;
	font-size: 13px;
}

.am-course-player__sidebar li.is-active a {
	background: var(--am-surface);
	color: var(--am-accent);
}

.am-course-player__check {
	flex: 0 0 auto;
}

.am-course-player__main {
	flex: 1 1 auto;
	min-width: 0;
}

.am-video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
}

.am-video-wrap video,
.am-video-wrap iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.am-lesson-notes {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
}

@media (max-width: 780px) {
	.am-course-player {
		flex-direction: column;
	}

	.am-course-player__sidebar {
		flex: 0 0 auto;
		width: 100%;
	}
}

@media (max-width: 780px) {
	.am-activity-item--message {
		max-width: 100%;
	}

	.am-dashboard {
		flex-direction: column;
	}

	.am-dashboard__nav {
		flex: 0 0 auto;
		width: 100%;
		overflow-x: auto;
	}

	.am-dashboard__nav ul {
		flex-direction: row;
	}

	.am-dashboard__nav a span:last-child {
		white-space: nowrap;
	}
}

.am-multiprogress {
	display: flex;
	width: 100%;
	height: 14px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--am-bg);
	margin-bottom: 8px;
}

.am-multiprogress--card {
	height: 8px;
	margin-bottom: 8px;
}

.am-multiprogress__segment {
	position: relative;
	height: 100%;
	border-right: 2px solid var(--am-surface);
}

.am-multiprogress__segment:last-child {
	border-right: none;
}

.am-multiprogress__fill {
	height: 100%;
}

.am-discipline-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 10px 0 20px;
}

.am-discipline-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.am-discipline-legend__swatch {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.am-discipline-legend__label {
	color: var(--am-text);
}

.am-discipline-legend__percent {
	color: var(--am-text-muted);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 12px;
}

.am-discipline-legend__status {
	font-style: italic;
}

.am-discipline-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.am-discipline-tag::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--am-discipline-color, currentColor);
}

/**
 * Compact task date-range calendar (assets/daterange.js).
 *
 * Every day cell is a <button>, and hello-elementor's reset.css — which
 * loads after this file — styles bare buttons at specificity (0,1,0) with
 * `padding: .5rem 1rem`, `font-size: 1rem`, `border: 1px solid #c36`,
 * `border-radius: 3px` and `background-color: transparent`. At equal
 * specificity that won, which shredded the seven-column grid and, worse,
 * erased the in-range background entirely: the selected range was tracked
 * correctly but drew as nothing, so the calendar looked like it could not
 * select a range at all. Every interactive rule below is therefore written
 * at (0,2,0) or higher. Do not drop one back to a single class.
 *
 * Layout note: the grid deliberately has no column gap. The range is drawn
 * as one continuous pill across a week, which a column gap would slice
 * into separate blocks; rows are separated by a row gap instead.
 */
.am-daterange {
	position: relative;
	display: inline-block;
	min-width: 200px;
	max-width: 100%;
}

.am-daterange__control {
	display: flex;
	align-items: center;
	gap: 6px;
}

.am-daterange .am-daterange__display {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 32px;
	padding: 0 10px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	color: var(--am-text);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.am-daterange .am-daterange__display:hover,
.am-daterange .am-daterange__display:focus {
	background: var(--am-surface);
	border-color: var(--am-accent);
	color: var(--am-text);
	outline: none;
}

/* The always-visible allocated-length badge beside the field. */
.am-daterange__badge {
	flex: 0 0 auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(254, 139, 146, 0.14);
	color: var(--am-accent);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 10px;
	white-space: nowrap;
}

.am-daterange__popover {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	width: 252px;
	max-width: calc(100vw - 24px);
	padding: 12px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
	font-size: 12px;
	user-select: none;
}

.am-daterange__popover,
.am-daterange__popover * {
	box-sizing: border-box;
}

/* Neutralises the theme's button styling inside the calendar; (0,1,1)
   beats the theme's (0,1,0) regardless of sheet order. */
.am-daterange__popover button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	width: auto;
	min-width: 0;
	min-height: 0;
	transition: none;
}

.am-daterange__popover button:hover,
.am-daterange__popover button:focus {
	background: none;
	color: inherit;
	outline: none;
}

/* ---- header ---- */

.am-daterange__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}

.am-daterange .am-daterange__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 8px;
	color: var(--am-text-muted);
	font-size: 15px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-daterange .am-daterange__nav:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-daterange .am-daterange__month {
	flex: 1 1 auto;
	padding: 3px 6px;
	border-radius: 8px;
	color: var(--am-text);
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease;
}

.am-daterange .am-daterange__month:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

/* ---- weekday header + day grid ---- */

.am-daterange__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 4px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--am-text-muted);
	text-align: center;
}

.am-daterange__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	/* Row gap only — a column gap would break the range pill apart. */
	gap: 2px 0;
}

.am-daterange .am-daterange__day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--am-text);
	font-family: inherit;
	font-size: 11px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.am-daterange .am-daterange__day:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-daterange .am-daterange__day--muted {
	color: rgba(245, 245, 246, 0.22);
}

.am-daterange .am-daterange__day--weekend {
	color: rgba(245, 245, 246, 0.42);
}

.am-daterange .am-daterange__day--muted.am-daterange__day--weekend {
	color: rgba(245, 245, 246, 0.16);
}

/* Today: a dot under the numeral, so it never competes with selection. */
.am-daterange .am-daterange__day--today::after {
	content: "";
	position: absolute;
	bottom: 3px;
	left: 50%;
	width: 3px;
	height: 3px;
	margin-left: -1.5px;
	border-radius: 999px;
	background: var(--am-accent-2);
}

/* ---- the range pill ---- */

.am-daterange .am-daterange__day--in-range {
	background: rgba(254, 139, 146, 0.15);
	border-radius: 0;
	color: var(--am-text);
}

.am-daterange .am-daterange__day--in-range.am-daterange__day--weekend {
	background: rgba(254, 139, 146, 0.09);
}

.am-daterange .am-daterange__day--start {
	border-radius: 8px 0 0 8px;
}

.am-daterange .am-daterange__day--end {
	border-radius: 0 8px 8px 0;
}

.am-daterange .am-daterange__day--single {
	border-radius: 8px;
}

/* Endpoints read as solid chips so the range boundaries are unmistakable. */
.am-daterange .am-daterange__day--start,
.am-daterange .am-daterange__day--end {
	background: var(--am-accent);
	color: #151018;
	font-weight: 700;
}

.am-daterange .am-daterange__day--start:hover,
.am-daterange .am-daterange__day--end:hover {
	background: var(--am-accent);
	color: #151018;
}

/* While a second click is still pending the fill is lighter, so an
   in-progress preview is visually distinct from a committed range. */
.am-daterange .am-daterange__day--previewing.am-daterange__day--in-range {
	background: rgba(254, 139, 146, 0.09);
}

.am-daterange .am-daterange__day--previewing.am-daterange__day--start,
.am-daterange .am-daterange__day--previewing.am-daterange__day--end {
	background: rgba(254, 139, 146, 0.55);
	color: var(--am-text);
}

.am-daterange .am-daterange__day--focused {
	outline: 2px solid var(--am-accent);
	outline-offset: -2px;
}

/* ---- duration presets ---- */

.am-daterange__presets {
	display: flex;
	gap: 4px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--am-border);
}

.am-daterange .am-daterange__preset {
	flex: 1 1 0;
	min-width: 0;
	padding: 4px 0;
	border-radius: 8px;
	background: var(--am-bg);
	color: var(--am-text-muted);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 10px;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-daterange .am-daterange__preset:hover {
	background: var(--am-accent);
	color: #151018;
}

/* ---- footer ---- */

.am-daterange__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
}

.am-daterange__duration {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 10px;
	color: var(--am-text);
}

.am-daterange .am-daterange__clear {
	flex: 0 0 auto;
	padding: 3px 9px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	color: var(--am-text-muted);
	font-family: inherit;
	font-size: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-daterange .am-daterange__clear:hover {
	background: none;
	border-color: var(--am-accent);
	color: var(--am-accent);
}

@media (max-width: 480px) {
	.am-daterange__popover {
		width: calc(100vw - 32px);
	}
}

@media (max-width: 480px) {
	.am-daterange__popover {
		left: 50%;
		transform: translateX(-50%);
	}
}

.am-milestone {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	padding: 16px 18px;
	margin-bottom: 16px;
}

.am-milestone__header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.am-task-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.am-task-card {
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 12px 14px;
}

.am-task-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.am-task-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--am-text-muted);
	margin-bottom: 8px;
}

.am-task-card__blocked {
	color: #ff6b6b;
	font-size: 12px;
	margin: 8px 0 0;
}

.am-task-card__dependency {
	font-size: 12px;
	color: #78dc96;
	margin: 8px 0 0;
}

.am-task-card__dependency--pending {
	color: #ffc65c;
}

.am-task-update-form {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--am-border);
}

.am-task-update-form select,
.am-task-update-form input {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	padding: 5px 8px;
	color: var(--am-text);
	font-size: 12px;
}

.am-release-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.am-release-card {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	padding: 14px 16px;
}

.am-release-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.am-release-file-picker {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 4px;
}

.am-badge--draft { background: rgba(179, 170, 240, 0.18); color: #b3aaf0; }
.am-badge--internal_review { background: rgba(59, 211, 255, 0.18); color: #3bd3ff; }
.am-badge--client_review { background: rgba(255, 198, 92, 0.18); color: #ffc65c; }
.am-badge--approved,
.am-badge--final { background: rgba(120, 220, 150, 0.18); color: #78dc96; }
.am-badge--rejected { background: rgba(255, 107, 107, 0.18); color: #ff6b6b; }
.am-badge--superseded { background: rgba(150, 150, 150, 0.18); color: var(--am-text-muted); }

.am-badge--low,
.am-badge--backlog { background: rgba(179, 170, 240, 0.18); color: #b3aaf0; }
.am-badge--medium,
.am-badge--todo { background: rgba(59, 211, 255, 0.18); color: #3bd3ff; }
.am-badge--high,
.am-badge--in_progress { background: rgba(255, 198, 92, 0.18); color: #ffc65c; }
.am-badge--urgent,
.am-badge--blocked { background: rgba(255, 107, 107, 0.18); color: #ff6b6b; }
.am-badge--in_review { background: rgba(254, 139, 146, 0.18); color: var(--am-accent); }
.am-badge--revision_required { background: rgba(255, 140, 90, 0.18); color: #ff8c5a; }
.am-badge--done { background: rgba(120, 220, 150, 0.18); color: #78dc96; }

.am-project-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.am-project-search-form {
	margin-left: auto;
	flex: 0 1 260px;
}

.am-project-search-form .am-project-toolbar__search {
	width: 100%;
}

.am-search-results {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.am-search-result {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 14px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	text-decoration: none;
	color: var(--am-text);
}

.am-search-result:hover {
	border-color: var(--am-accent);
}

.am-search-result__type {
	background: rgba(59, 211, 255, 0.18);
	color: #3bd3ff;
	flex: 0 0 auto;
}

.am-search-result__title {
	flex: 1 1 200px;
	font-weight: 600;
}

.am-search-result__meta {
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-project-header__thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 auto;
}

.am-project-header__thumb--placeholder {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.am-project-subnav {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--am-border);
	margin-bottom: 20px;
	padding-bottom: 2px;
}

.am-project-subnav a {
	padding: 8px 14px;
	border-radius: 999px 999px 0 0;
	color: var(--am-text-muted);
	text-decoration: none;
	font-size: 13px;
}

.am-project-subnav a.is-active {
	color: var(--am-accent);
	font-weight: 700;
	background: var(--am-surface);
}

.am-team-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.am-team-member {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 10px 14px;
}

.am-team-member__disciplines {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 10px 14px 14px;
	margin-top: -10px;
	margin-bottom: 2px;
}

.am-discipline-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 13px;
}

.am-discipline-checkboxes label {
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.am-team-member__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.am-team-member__meta {
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-deadline-tag {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}

.am-deadline-tag--overdue {
	background: rgba(255, 90, 90, 0.18);
	color: #ff6b6b;
}

.am-deadline-tag--due-soon {
	background: rgba(255, 198, 92, 0.18);
	color: #ffc65c;
}

.am-deadline-tag--on-track {
	background: rgba(120, 220, 150, 0.18);
	color: #78dc96;
}

.am-project-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.am-project-toolbar__search {
	flex: 1 1 220px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 999px;
	padding: 9px 16px;
	color: var(--am-text);
	font-size: 13px;
}

.am-project-toolbar__select {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 999px;
	padding: 9px 14px;
	color: var(--am-text);
	font-size: 13px;
}

.am-project-toolbar__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--am-text-muted);
	white-space: nowrap;
}

.am-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.am-project-card {
	display: block;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.am-project-card:hover {
	border-color: var(--am-accent);
}

.am-project-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.am-project-card__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--am-bg);
	font-size: 28px;
}

.am-project-card__body {
	padding: 14px 16px;
}

.am-project-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.am-project-card__code {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 11px;
	color: var(--am-text-muted);
}

.am-project-card__body h2 {
	font-size: 15px;
	margin: 0 0 8px;
}

.am-project-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.am-project-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.am-project-card__activity {
	font-size: 11px;
	color: var(--am-text-muted);
	white-space: nowrap;
}

.am-avatar-stack {
	display: inline-flex;
	align-items: center;
}

.am-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #151018;
	font-size: 11px;
	font-weight: 700;
	border: 2px solid var(--am-surface);
	margin-left: -8px;
	flex: 0 0 auto;
}

.am-avatar-stack .am-avatar:first-child {
	margin-left: 0;
}

.am-avatar--overflow {
	background: var(--am-border) !important;
	color: var(--am-text) !important;
}

.am-avatar--image {
	overflow: hidden;
	background: var(--am-surface);
	padding: 0;
}

.am-avatar--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.am-avatar--medium {
	width: 40px;
	height: 40px;
	font-size: 15px;
	margin-left: 0;
	border: none;
}

.am-avatar--xlarge {
	width: 96px;
	height: 96px;
	font-size: 32px;
	margin-left: 0;
	border: 3px solid var(--am-surface);
}

.am-avatar--large {
	width: 56px;
	height: 56px;
	font-size: 20px;
	margin-left: 0;
	border: none;
}

.am-color-picker-field {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/**
 * The color trigger is styled at two-class specificity (0,2,0) on purpose.
 * hello-elementor's reset.css loads *after* this stylesheet and styles
 * `[type=button], button` at (0,1,0) with `border: 1px solid #c36`,
 * `padding: .5rem 1rem`, `width: auto`, and a `button:hover` background of
 * #c36. At equal specificity the later sheet won, which is why this
 * control rendered as an empty dark pill that turned pink on hover: the
 * theme's `width: auto` collapsed the fill span and its hover background
 * painted over everything. Anything here that the theme also sets must
 * stay at (0,2,0) or higher.
 */
.am-dashboard .am-color-swatch-trigger {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	min-width: 0;
	border-radius: 50%;
	padding: 3px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.1s ease;
}

.am-dashboard .am-color-swatch-trigger:hover,
.am-dashboard .am-color-swatch-trigger:focus {
	background: var(--am-surface);
	border-color: var(--am-accent);
	color: inherit;
}

.am-dashboard .am-color-swatch-trigger:active {
	transform: scale(0.95);
}

.am-dashboard .am-color-swatch-trigger__fill {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	align-self: stretch;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.am-dashboard .am-color-swatch-trigger--small {
	width: 30px;
	height: 30px;
	padding: 2px;
}

.am-color-swatch-trigger__hex {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 12px;
	color: var(--am-text-muted);
	letter-spacing: 0.02em;
}

.am-color-field-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.am-color-field-grid__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.am-color-field-grid__label {
	color: var(--am-text);
}

.am-file-groups {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.am-file-group {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 10px 14px;
}

.am-file-group__current {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.am-file-group__current a {
	color: var(--am-accent);
	text-decoration: none;
}

.am-file-group__current a:hover {
	text-decoration: underline;
}

.am-file-group__history {
	list-style: none;
	margin: 8px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--am-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-file-group__history a {
	color: var(--am-text-muted);
}

.am-qa-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.am-qa-item {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
}

.am-qa-item__question {
	margin: 0 0 6px;
}

.am-qa-item__answer {
	margin: 0 0 0 16px;
	color: var(--am-text-muted);
}

.am-notification-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.am-notification-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 12px 14px;
	border-radius: 10px;
}

.am-notification-item.is-new {
	background: var(--am-surface);
}

.am-notification-item a {
	color: var(--am-text);
	text-decoration: none;
	font-size: 14px;
}

.am-notification-item.is-new a {
	color: var(--am-accent);
	font-weight: 700;
}

.am-notification-item a:hover {
	text-decoration: underline;
}

.am-notification-item__time {
	color: var(--am-text-muted);
	font-size: 12px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.am-dashboard {
		padding: 16px;
		gap: 16px;
		border-radius: 0;
	}

	.am-dashboard__title {
		font-size: 19px;
	}

	.am-license-card,
	.am-course-card__body {
		padding: 14px;
	}

	.am-cards {
		grid-template-columns: 1fr;
	}

	.am-dashboard__button,
	.am-dashboard__button--solid {
		width: 100%;
		text-align: center;
	}

	.am-video-wrap {
		border-radius: 8px;
	}
}

.am-health-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.am-health-badge--at_risk { color: #ffc65c; border-color: rgba(255, 198, 92, 0.4); }
.am-health-badge--delayed { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }
.am-health-badge--on_track { color: #78dc96; border-color: rgba(120, 220, 150, 0.4); }

.am-health-dot {
	display: inline-flex;
	font-size: 10px;
	line-height: 1;
	vertical-align: middle;
}

.am-card--warning { border-color: rgba(255, 198, 92, 0.4); }
.am-card--danger { border-color: rgba(255, 107, 107, 0.4); }

.am-at-risk-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.am-at-risk-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 12px 14px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius);
	text-decoration: none;
	color: var(--am-text);
}

.am-at-risk-row:hover {
	border-color: var(--am-accent);
}

.am-at-risk-row__title {
	flex: 1 1 160px;
	font-weight: 600;
}

.am-at-risk-row__progress {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-mention {
	color: var(--am-accent);
	font-weight: 600;
}

.am-field-hint {
	display: block;
	font-size: 12px;
	color: var(--am-text-muted);
	margin-top: 4px;
}

.am-activity-toolbar {
	margin-bottom: 14px;
}

.am-highlight-target {
	animation: am-highlight-flash 2.5s ease-out;
}

@keyframes am-highlight-flash {
	0% { box-shadow: 0 0 0 3px var(--am-accent); }
	100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 480px) {
	.am-at-risk-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

.am-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.am-timeline__connectors {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: none;
	overflow: visible;
}

.am-timeline__connector-line {
	fill: none;
	stroke: #ff8c5a;
	stroke-width: 1.5;
	stroke-dasharray: 4 3;
}

.am-timeline__connector-line--done {
	stroke: #78dc96;
	stroke-dasharray: none;
}

.am-timeline__connector-arrowhead--pending {
	fill: #ff8c5a;
}

.am-timeline__connector-arrowhead--done {
	fill: #78dc96;
}

.am-timeline__range {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--am-text-muted);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--am-border);
	min-width: 480px;
}

.am-timeline__lane {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 480px;
}

.am-timeline__lane-label {
	flex: 0 0 150px;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.am-timeline__track {
	position: relative;
	flex: 1 1 auto;
	height: 22px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 6px;
}

.am-timeline__lane--milestones .am-timeline__track {
	background: transparent;
	border: none;
}

.am-timeline__bar {
	position: absolute;
	top: 3px;
	height: 14px;
	border-radius: 4px;
	background: rgba(59, 211, 255, 0.35);
	border: 1px solid #3bd3ff;
}

.am-timeline__bar--done { background: rgba(120, 220, 150, 0.35); border-color: #78dc96; }
.am-timeline__bar--blocked { background: rgba(255, 107, 107, 0.35); border-color: #ff6b6b; }
.am-timeline__bar--in_review { background: rgba(254, 139, 146, 0.35); border-color: var(--am-accent); }
.am-timeline__bar--revision_required { background: rgba(255, 140, 90, 0.35); border-color: #ff8c5a; }

.am-timeline__milestone {
	position: absolute;
	top: 2px;
	transform: translateX(-50%);
	color: var(--am-accent-2);
	font-size: 13px;
}

.am-timeline__dependency {
	flex: 0 0 auto;
	font-size: 11px;
	color: var(--am-text-muted);
	white-space: nowrap;
}

.am-dashboard__button--danger {
	border-color: rgba(255, 107, 107, 0.5);
	color: #ff6b6b;
}

.am-dashboard__button--danger:hover {
	background: #ff6b6b;
	color: #151018;
}

.am-avatar-editor {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.am-avatar-editor__current {
	position: relative;
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
}

.am-avatar-editor__preview {
	position: absolute;
	inset: 0;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--am-surface);
}

.am-avatar-editor__forms {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 240px;
}

.am-mini-card {
	display: flex;
	align-items: center;
	gap: 10px;
}

.am-mini-card__info strong {
	display: block;
	font-size: 13px;
}

.am-mini-card__role {
	font-size: 11px;
	color: var(--am-text-muted);
}

.am-mini-card__bio {
	font-size: 12px;
	color: var(--am-text-muted);
	margin: 2px 0 0;
}

.am-team-member__bio {
	display: block;
	font-size: 12px;
	color: var(--am-text-muted);
	margin-top: 2px;
}

.am-password-strength {
	margin-top: 6px;
}

.am-password-strength__bar {
	height: 4px;
	border-radius: 2px;
	background: var(--am-border);
	overflow: hidden;
}

.am-password-strength__bar div {
	height: 100%;
	width: 0;
	transition: width 0.2s ease, background 0.2s ease;
}

.am-password-strength span {
	font-size: 11px;
	color: var(--am-text-muted);
}

.am-notification-prefs-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	font-size: 13px;
}

.am-notification-prefs-table th,
.am-notification-prefs-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid var(--am-border);
}

.am-notification-prefs-table th:not(:first-child),
.am-notification-prefs-table td:not(:first-child) {
	text-align: center;
	width: 80px;
}

.am-danger-zone {
	border: 1px solid rgba(255, 107, 107, 0.35);
	border-radius: var(--am-radius);
	padding: 16px;
	background: rgba(255, 107, 107, 0.05);
}

.am-danger-zone__title {
	color: #ff6b6b;
}

.am-unsaved-indicator {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: var(--am-surface);
	border: 1px solid var(--am-accent);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 12px;
	z-index: 50;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
	.am-notification-prefs-table {
		font-size: 12px;
	}

	.am-avatar-editor {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-dashboard__nav a,
	.am-dashboard__button,
	.am-copy-button {
		transition: none;
	}

	.am-highlight-target {
		animation: none;
		box-shadow: 0 0 0 3px var(--am-accent);
	}

	.am-cp,
	.am-cp *,
	.am-color-swatch-trigger {
		transition: none !important;
	}
}

/**
 * Shared professional color-picker popover (assets/color-picker.js).
 *
 * Two structural constraints drive the specificity used below, both learned
 * from real rendering bugs rather than assumed:
 *
 * 1. The popover is appended to <body>, so it sits outside .am-dashboard.
 *    Design tokens therefore live on :root (top of this file), and the
 *    border-box reset has to be repeated here.
 * 2. hello-elementor's reset.css loads *after* this stylesheet and styles
 *    `[type=button], [type=submit], button` at specificity (0,1,0) with a
 *    #c36 border, #c36 text, 3px radius, .5rem 1rem padding, 1rem font,
 *    `width: auto`, `white-space: nowrap`, and a #c36 hover background.
 *    A single component class ties that and loses on source order, so:
 *      - the neutralising reset is (0,1,1)   -> `.am-cp button`
 *      - every real control style is (0,2,0) -> `.am-cp .am-cp__thing`
 *    Keep that ordering. Dropping a control back to one class silently
 *    hands it back to the theme.
 *
 * Radii are deliberately uniform: 14px shell, 10px panels, 8px controls,
 * 999px tracks and thumbs. No 3px corners anywhere.
 */
.am-cp {
	position: fixed;
	z-index: 1000;
	width: 268px;
	max-width: calc(100vw - 16px);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
	font-family: "Lato", system-ui, -apple-system, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: var(--am-text);
	scrollbar-width: thin;
}

.am-cp,
.am-cp *,
.am-cp *::before,
.am-cp *::after {
	box-sizing: border-box;
}

/* Neutralises the theme button/input styling described in the docblock. */
.am-cp button,
.am-cp input {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	white-space: normal;
	width: auto;
	min-width: 0;
	min-height: 0;
	transition: none;
}

.am-cp button:hover,
.am-cp button:focus,
.am-cp input:hover,
.am-cp input:focus {
	background: none;
	color: inherit;
	outline: none;
}

/* ---- header ---- */

.am-cp__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.am-cp__label {
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.am-cp .am-cp__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 8px;
	color: var(--am-text-muted);
	font-size: 15px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-cp .am-cp__close:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

/* ---- saturation / value field + hue slider ---- */

.am-cp__sv {
	position: relative;
	width: 100%;
	height: 104px;
	border-radius: 10px;
	overflow: hidden;
	cursor: crosshair;
	touch-action: none;
	margin-bottom: 10px;
}

.am-cp__sv:focus-visible,
.am-cp__hue:focus-visible {
	outline: 2px solid var(--am-accent);
	outline-offset: 2px;
}

.am-cp__sv-cursor {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.am-cp__hue {
	position: relative;
	width: 100%;
	height: 12px;
	border-radius: 999px;
	margin-bottom: 12px;
	cursor: pointer;
	touch-action: none;
	background: linear-gradient(to right,
		#ff0000 0%, #ffff00 17%, #00ff00 33%,
		#00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

.am-cp__hue-thumb {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid var(--am-surface);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

/* ---- current/previous preview, hex field, favourite ---- */

.am-cp__preview-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.am-cp__preview {
	display: flex;
	flex: 0 0 auto;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--am-border);
}

.am-cp__preview-swatch {
	display: block;
	width: 17px;
	height: 28px;
}

.am-cp__hex-field {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 3px;
	height: 28px;
	padding: 0 8px;
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	transition: border-color 0.15s ease;
}

.am-cp__hex-field:focus-within {
	border-color: var(--am-accent);
}

.am-cp__hex-prefix {
	color: var(--am-text-muted);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 12px;
}

.am-cp .am-cp__hex-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	background: none;
	color: var(--am-text);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.am-cp .am-cp__fav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	color: var(--am-text-muted);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.am-cp .am-cp__fav-btn svg {
	display: block;
}

.am-cp .am-cp__fav-btn svg path {
	fill: currentColor;
}

.am-cp .am-cp__fav-btn:hover {
	background: var(--am-bg);
	color: var(--am-accent);
	border-color: var(--am-accent);
}

.am-cp .am-cp__fav-btn--active {
	color: var(--am-accent);
	border-color: var(--am-accent);
}

/* ---- legibility hint ---- */

.am-cp__contrast {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 8px;
	font-size: 11px;
	line-height: 1.3;
	color: #ffc65c;
}

.am-cp__contrast-dot {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

/* ---- advanced (RGB / HSL) ---- */

.am-cp .am-cp__advanced-toggle {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 3px 0;
	margin-bottom: 2px;
	color: var(--am-text-muted);
	font-size: 11px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.am-cp .am-cp__advanced-toggle:hover {
	background: none;
	color: var(--am-text);
}

.am-cp__chevron {
	display: inline-block;
	font-size: 9px;
	transition: transform 0.15s ease;
}

.am-cp .am-cp__advanced-toggle[aria-expanded="true"] .am-cp__chevron {
	transform: rotate(180deg);
}

.am-cp__advanced {
	margin-bottom: 6px;
}

.am-cp__num-row {
	display: flex;
	gap: 6px;
	margin-bottom: 5px;
}

.am-cp__num-row:last-child {
	margin-bottom: 0;
}

.am-cp__num-field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 9px;
	color: var(--am-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.am-cp .am-cp__num-field input {
	width: 100%;
	height: 24px;
	padding: 0 5px;
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	color: var(--am-text);
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 11px;
	text-align: center;
	transition: border-color 0.15s ease;
}

.am-cp .am-cp__num-field input:focus {
	background: var(--am-bg);
	border-color: var(--am-accent);
}

/* Native spinners would eat most of a 24px-tall field. */
.am-cp .am-cp__num-field input::-webkit-outer-spin-button,
.am-cp .am-cp__num-field input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- sections, group tabs, swatches ---- */

.am-cp__section {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--am-border);
}

.am-cp__section-title {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--am-text-muted);
	margin-bottom: 6px;
}

.am-cp__presets-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.am-cp__presets-header .am-cp__section-title {
	margin-bottom: 0;
}

.am-cp .am-cp__search {
	flex: 0 1 110px;
	min-width: 0;
	height: 24px;
	padding: 0 8px;
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 8px;
	color: var(--am-text);
	font-size: 11px;
	transition: border-color 0.15s ease;
}

.am-cp .am-cp__search:focus {
	background: var(--am-bg);
	border-color: var(--am-accent);
}

.am-cp .am-cp__search::placeholder {
	color: var(--am-text-muted);
}

.am-cp__tabs {
	display: flex;
	gap: 2px;
	margin-bottom: 7px;
	overflow-x: auto;
	scrollbar-width: none;
}

.am-cp__tabs::-webkit-scrollbar {
	display: none;
}

.am-cp .am-cp__tab {
	flex: 0 0 auto;
	padding: 3px 7px;
	border-radius: 8px;
	color: var(--am-text-muted);
	font-size: 10px;
	line-height: 1.5;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-cp .am-cp__tab:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-cp .am-cp__tab--active {
	background: var(--am-bg);
	color: var(--am-text);
	font-weight: 700;
}

.am-cp__swatch-grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 5px;
}

.am-cp .am-cp__swatch {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.am-cp .am-cp__swatch:hover {
	transform: scale(1.14);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.am-cp .am-cp__swatch:focus-visible {
	box-shadow: 0 0 0 2px var(--am-surface), 0 0 0 3px var(--am-accent);
}

.am-cp__swatch-check {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 10px;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.am-cp .am-cp__swatch--selected {
	box-shadow: 0 0 0 2px var(--am-surface), 0 0 0 3px var(--am-text);
}

.am-cp .am-cp__swatch--selected .am-cp__swatch-check {
	display: flex;
}

.am-cp__empty {
	font-size: 11px;
	color: var(--am-text-muted);
	padding: 6px 0;
}

@media (max-width: 480px) {
	.am-cp {
		width: calc(100vw - 16px);
	}
}

/**
 * Activity message management: selection, per-message action menu, inline
 * editor, edited/deleted states, status filters, bulk bar, and the version
 * history drawer.
 *
 * Every control here is a <button> or <input>, so the same theme override
 * documented on the color picker and the calendar applies: hello-elementor's
 * reset.css loads after this file and styles bare buttons at (0,1,0). All
 * interactive rules are therefore written at (0,2,0) or higher, with a
 * neutralising reset at (0,1,1) for the containers that hold them. Dropping
 * one back to a single class hands it to the theme.
 */

/* Neutralise theme button styling inside the feed, bulk bar, filters and
   history drawer. (0,1,1) beats the theme's (0,1,0) regardless of order. */
.am-activity-feed button,
.am-activity-filters button,
.am-activity-bulkbar button,
.am-activity-older button,
.am-mhist button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	white-space: normal;
	width: auto;
	min-width: 0;
	min-height: 0;
	transition: none;
}

.am-activity-feed button:hover,
.am-activity-feed button:focus,
.am-activity-filters button:hover,
.am-activity-filters button:focus,
.am-activity-bulkbar button:hover,
.am-activity-bulkbar button:focus,
.am-activity-older button:hover,
.am-activity-older button:focus,
.am-mhist button:hover,
.am-mhist button:focus {
	background: none;
	color: inherit;
	outline: none;
}

/* ---- status filters ---- */

.am-activity-filters {
	display: flex;
	gap: 3px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.am-activity-filters .am-activity-filter {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--am-surface);
	color: var(--am-text-muted);
	font-size: 11px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-activity-filters .am-activity-filter:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-activity-filters .am-activity-filter--active {
	background: var(--am-accent);
	color: #151018;
	font-weight: 700;
}

/* ---- selection + bulk bar ---- */

.am-activity-item {
	position: relative;
}

.am-activity-item__select {
	position: absolute;
	top: 10px;
	left: -22px;
	display: none;
	align-items: center;
	cursor: pointer;
}

.am-activity-item__select input {
	margin: 0;
	cursor: pointer;
	accent-color: var(--am-accent);
}

/* The checkbox stays out of the way until the message is hovered, focused,
   or already selected — so the feed reads as a conversation, not a form. */
.am-activity-item:hover .am-activity-item__select,
.am-activity-item:focus-within .am-activity-item__select,
.am-activity-item--selected .am-activity-item__select {
	display: flex;
}

.am-activity-item--selected {
	box-shadow: 0 0 0 2px var(--am-accent);
}

.am-activity-bulkbar {
	position: sticky;
	top: 8px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding: 8px 12px;
	background: var(--am-surface);
	border: 1px solid var(--am-accent);
	border-radius: 10px;
	font-size: 12px;
}

.am-activity-bulkbar__actions {
	display: flex;
	gap: 6px;
}

.am-activity-bulkbar .am-activity-bulkbar__btn {
	padding: 4px 12px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	color: var(--am-text-muted);
	font-size: 11px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-activity-bulkbar .am-activity-bulkbar__btn:hover {
	border-color: var(--am-text);
	color: var(--am-text);
}

.am-activity-bulkbar .am-activity-bulkbar__btn--danger {
	border-color: rgba(255, 107, 107, 0.5);
	color: #ff6b6b;
}

.am-activity-bulkbar .am-activity-bulkbar__btn--danger:hover {
	background: rgba(255, 107, 107, 0.12);
	border-color: #ff6b6b;
	color: #ff6b6b;
}

/* ---- per-message action menu ---- */

.am-activity-item__actions {
	position: relative;
	margin-left: auto;
}

.am-activity-feed .am-activity-item__menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 20px;
	border-radius: 6px;
	color: var(--am-text-muted);
	font-size: 15px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.am-activity-item:hover .am-activity-item__menu-btn,
.am-activity-item:focus-within .am-activity-item__menu-btn {
	opacity: 1;
}

.am-activity-feed .am-activity-item__menu-btn:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-activity-item__menu {
	position: absolute;
	z-index: 25;
	top: calc(100% + 4px);
	right: 0;
	min-width: 148px;
	padding: 4px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.am-activity-feed .am-activity-item__menu button {
	display: block;
	width: 100%;
	padding: 6px 10px;
	border-radius: 6px;
	color: var(--am-text);
	font-size: 12px;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-activity-feed .am-activity-item__menu button:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-activity-feed .am-activity-item__menu-danger {
	color: #ff6b6b;
}

.am-activity-feed .am-activity-item__menu-danger:hover {
	background: rgba(255, 107, 107, 0.12);
	color: #ff6b6b;
}

/* ---- edited label ---- */

.am-activity-item__edited {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
	font-size: 11px;
	color: var(--am-text-muted);
	font-style: italic;
}

.am-activity-feed .am-activity-item__history-link {
	padding: 0;
	color: var(--am-accent);
	font-size: 11px;
	font-style: normal;
	text-decoration: underline;
	cursor: pointer;
}

.am-activity-feed .am-activity-item__history-link:hover {
	color: var(--am-accent);
	text-decoration: none;
}

/* ---- deleted tombstone ---- */

.am-activity-item--deleted {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 2px 0;
	padding: 2px 0;
	background: none;
	border: none;
	opacity: 0.55;
}

.am-activity-item__tombstone {
	font-size: 11px;
	font-style: italic;
	color: var(--am-text-muted);
}

/* ---- inline editor ---- */

.am-activity-item__editor {
	margin-top: 6px;
}

.am-activity-feed .am-activity-item__editor-input {
	width: 100%;
	min-height: 64px;
	padding: 8px 10px;
	background: var(--am-bg);
	border: 1px solid var(--am-accent);
	border-radius: 8px;
	color: var(--am-text);
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
}

.am-activity-feed .am-activity-item__editor-input:focus {
	outline: none;
	border-color: var(--am-accent);
}

.am-activity-item__editor-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.am-activity-feed .am-activity-item__editor-save,
.am-activity-feed .am-activity-item__editor-cancel {
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.am-activity-feed .am-activity-item__editor-save {
	background: var(--am-accent);
	color: #151018;
	font-weight: 700;
}

.am-activity-feed .am-activity-item__editor-save:hover {
	background: var(--am-accent);
	color: #151018;
	opacity: 0.9;
}

.am-activity-feed .am-activity-item__editor-save[disabled] {
	opacity: 0.5;
	cursor: default;
}

.am-activity-feed .am-activity-item__editor-cancel {
	border: 1px solid var(--am-border);
	color: var(--am-text-muted);
}

.am-activity-feed .am-activity-item__editor-cancel:hover {
	border-color: var(--am-text);
	color: var(--am-text);
}

.am-activity-item__editor-hint {
	font-size: 10px;
	color: var(--am-text-muted);
}

/* ---- load earlier ---- */

.am-activity-older {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.am-activity-older .am-activity-older__btn {
	padding: 5px 16px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	background: var(--am-surface);
	color: var(--am-text-muted);
	font-size: 11px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-activity-older .am-activity-older__btn:hover {
	background: var(--am-surface);
	border-color: var(--am-accent);
	color: var(--am-accent);
}

/* ---- version history drawer ---- */

.am-mhist {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	justify-content: flex-end;
}

.am-mhist__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.am-mhist__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 380px;
	max-width: 100%;
	height: 100%;
	padding: 18px;
	overflow-y: auto;
	background: var(--am-surface);
	border-left: 1px solid var(--am-border);
	box-shadow: -18px 0 44px rgba(0, 0, 0, 0.5);
	font-family: "Lato", system-ui, -apple-system, sans-serif;
	color: var(--am-text);
}

.am-mhist__panel,
.am-mhist__panel * {
	box-sizing: border-box;
}

.am-mhist__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.am-mhist__title {
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	font-weight: 700;
}

.am-mhist .am-mhist__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	color: var(--am-text-muted);
	font-size: 19px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-mhist .am-mhist__close:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-mhist__status {
	margin-bottom: 10px;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12px;
}

.am-mhist__status--deleted {
	background: rgba(255, 107, 107, 0.12);
	color: #ff6b6b;
}

.am-mhist__audit {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--am-border);
	font-size: 12px;
}

.am-mhist__audit-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 2px 0;
	color: var(--am-text);
}

.am-mhist__audit-label {
	color: var(--am-text-muted);
}

.am-mhist__loading {
	font-size: 12px;
	color: var(--am-text-muted);
}

.am-mhist__versions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.am-mhist__version {
	padding: 10px 12px;
	background: var(--am-bg);
	border: 1px solid var(--am-border);
	border-radius: 10px;
}

.am-mhist__version--current {
	border-color: var(--am-accent);
}

.am-mhist__version-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.am-mhist__version-no {
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
}

.am-mhist__version--current .am-mhist__version-no {
	color: var(--am-accent);
}

.am-mhist__version-when {
	font-family: "Fragment Mono", "Source Code Pro", monospace;
	font-size: 10px;
	color: var(--am-text-muted);
}

.am-mhist__version-body {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.am-mhist .am-mhist__restore {
	margin-top: 8px;
	padding: 4px 12px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	color: var(--am-text-muted);
	font-size: 11px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-mhist .am-mhist__restore:hover {
	border-color: var(--am-accent);
	color: var(--am-accent);
}

.am-mhist__note {
	margin: 14px 0 0;
	font-size: 10px;
	color: var(--am-text-muted);
}

/* On a phone the drawer becomes a bottom sheet, which is the reachable
   position for a thumb and matches the action-sheet convention. */
@media (max-width: 600px) {
	.am-mhist {
		align-items: flex-end;
		justify-content: center;
	}

	.am-mhist__panel {
		width: 100%;
		height: auto;
		max-height: 82vh;
		border-left: none;
		border-top: 1px solid var(--am-border);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.5);
	}

	.am-activity-item__select {
		left: 0;
		top: -4px;
	}

	.am-activity-item__menu {
		right: auto;
		left: 0;
	}
}

body.am-mhist-open {
	overflow: hidden;
}

/**
 * Activity date grouping: day separators, the shared jump-to-date picker,
 * the sticky day indicator and "jump to latest".
 *
 * Same theme hazard as everything else here — these are all <button>
 * elements and hello-elementor's reset.css loads after this file at (0,1,0).
 * Interactive rules are at (0,2,0), with a (0,1,1) neutralising reset for
 * the picker.
 */

.am-datenav button,
.am-activity-datesep button,
.am-dashboard .am-activity-sticky,
.am-dashboard .am-activity-jumplatest {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	white-space: normal;
	width: auto;
	min-width: 0;
	min-height: 0;
	transition: none;
}

.am-datenav button:hover,
.am-datenav button:focus,
.am-activity-datesep button:hover,
.am-activity-datesep button:focus {
	background: none;
	color: inherit;
	outline: none;
}

/* ---- day separator ---- */

.am-activity-daygroup {
	display: contents;
}

.am-activity-datesep {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 14px 0 10px;
	/* A hairline behind the pill, so the date reads as a divider without
	   needing its own block of vertical space. */
	background-image: linear-gradient(var(--am-border), var(--am-border));
	background-size: 100% 1px;
	background-position: center;
	background-repeat: no-repeat;
}

.am-activity-datesep .am-activity-datesep__pill {
	padding: 3px 12px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	background: var(--am-bg);
	color: var(--am-text-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-activity-datesep .am-activity-datesep__pill:hover {
	background: var(--am-bg);
	border-color: var(--am-accent);
	color: var(--am-accent);
}

.am-activity-datesep--flash .am-activity-datesep__pill {
	border-color: var(--am-accent);
	color: var(--am-accent);
	animation: am-datesep-flash 2.2s ease-out;
}

@keyframes am-datesep-flash {
	0% { box-shadow: 0 0 0 4px rgba(254, 139, 146, 0.35); }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- inline edited marker ---- */

.am-activity-item__edited-flag {
	color: var(--am-text-muted);
	font-style: italic;
}

/* ---- sticky day indicator ---- */

.am-dashboard .am-activity-sticky {
	position: sticky;
	top: 8px;
	z-index: 18;
	align-self: center;
	width: fit-content;
	margin: 0 auto 6px;
	padding: 3px 12px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	background: var(--am-surface);
	color: var(--am-text-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

/* ---- jump to latest ---- */

.am-dashboard .am-activity-jumplatest {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 30;
	padding: 8px 16px;
	border: 1px solid var(--am-accent);
	border-radius: 999px;
	background: var(--am-surface);
	color: var(--am-accent);
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
	transition: background 0.15s ease, color 0.15s ease;
}

.am-dashboard .am-activity-jumplatest:hover {
	background: var(--am-accent);
	color: #151018;
}

/* ---- jump-to-date picker ---- */

.am-datenav {
	position: fixed;
	z-index: 1050;
	width: 236px;
	max-width: calc(100vw - 16px);
	padding: 12px;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
	font-family: "Lato", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	color: var(--am-text);
	user-select: none;
}

.am-datenav,
.am-datenav * {
	box-sizing: border-box;
}

.am-datenav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}

.am-datenav .am-datenav__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 8px;
	color: var(--am-text-muted);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.am-datenav .am-datenav__nav:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-datenav__month {
	flex: 1 1 auto;
	font-family: "Manrope", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.am-datenav__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 4px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--am-text-muted);
	text-align: center;
}

.am-datenav__days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.am-datenav .am-datenav__day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	color: var(--am-text);
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.am-datenav .am-datenav__day:hover {
	background: var(--am-bg);
	color: var(--am-text);
}

.am-datenav .am-datenav__day--muted {
	color: rgba(245, 245, 246, 0.22);
}

/* A day that actually has activity, marked before the user commits. */
.am-datenav .am-datenav__day--has::after {
	content: "";
	position: absolute;
	bottom: 3px;
	left: 50%;
	width: 3px;
	height: 3px;
	margin-left: -1.5px;
	border-radius: 999px;
	background: var(--am-accent);
}

/* Today is a ring; the selected day is filled. Deliberately different
   treatments so the two are never confused for one another. */
.am-datenav .am-datenav__day--today {
	box-shadow: inset 0 0 0 1px var(--am-accent-2);
}

.am-datenav .am-datenav__day--selected {
	background: var(--am-accent);
	color: #151018;
	font-weight: 700;
}

.am-datenav .am-datenav__day--selected:hover {
	background: var(--am-accent);
	color: #151018;
}

.am-datenav .am-datenav__day--selected.am-datenav__day--has::after {
	background: #151018;
}

.am-datenav__hint {
	margin: 8px 0 0;
	font-size: 10px;
	line-height: 1.4;
	color: #ffc65c;
}

.am-datenav__hint:empty {
	display: none;
}

.am-datenav__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--am-border);
}

.am-datenav__legend {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9px;
	color: var(--am-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.am-datenav__legend-dot {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: var(--am-accent);
}

.am-datenav .am-datenav__today {
	padding: 3px 10px;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	color: var(--am-text-muted);
	font-size: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.am-datenav .am-datenav__today:hover {
	background: none;
	border-color: var(--am-accent);
	color: var(--am-accent);
}

@media (max-width: 600px) {
	.am-dashboard .am-activity-jumplatest {
		right: 12px;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-activity-datesep--flash .am-activity-datesep__pill {
		animation: none;
	}
}
