:root {
	--motoriq-primary: #128000;
	--motoriq-primary-dark: #0d6200;
	--motoriq-ink: #172033;
	--motoriq-muted: #657084;
	--motoriq-line: #dfe7df;
	--motoriq-soft: #f2f7f1;
}

.motoriq-login,
.motoriq-profile,
.motoriq-history,
.motoriq-access-required {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 24px 0;
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--motoriq-line);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(48, 67, 52, .07);
	color: var(--motoriq-ink);
}

.motoriq-login h2,
.motoriq-profile h2,
.motoriq-history h2 { margin: 0 0 22px; color: var(--motoriq-ink); }
.motoriq-login form,
.motoriq-profile form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.motoriq-login form { grid-template-columns: 1fr; }
.motoriq-login p,
.motoriq-profile p { margin: 0; }
.motoriq-profile p:nth-of-type(1),
.motoriq-profile p:nth-of-type(6),
.motoriq-profile p:nth-of-type(7) { grid-column: 1 / -1; }
.motoriq-login label,
.motoriq-profile label { display: block; color: #344054; font-size: 14px; font-weight: 700; }
.motoriq-login small,
.motoriq-profile small { color: var(--motoriq-muted); font-weight: 500; }
.motoriq-login input,
.motoriq-profile input:not([type="checkbox"]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	margin-top: 7px;
	padding: 0 17px;
	border: 1px solid #cfd9cf;
	border-radius: 999px;
	background: #fff;
	color: var(--motoriq-ink);
	outline: none;
}
.motoriq-login input:focus,
.motoriq-profile input:focus { border-color: var(--motoriq-primary); box-shadow: 0 0 0 4px rgba(18, 128, 0, 0.12); }
.motoriq-login input[readonly],
.motoriq-profile input[readonly] { background: var(--motoriq-soft); color: var(--motoriq-muted); }
.motoriq-login button,
.motoriq-profile button {
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--motoriq-primary);
	box-shadow: 0 8px 20px rgba(18, 128, 0, 0.2);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
.motoriq-login button:hover,
.motoriq-profile button:hover { background: var(--motoriq-primary-dark); }
.motoriq-message,
.motoriq-key-status { padding: 13px 16px; border-radius: 18px; background: var(--motoriq-soft); color: #31522e; }

.motoriq-history { padding: clamp(18px, 3vw, 30px); }
.motoriq-history-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.motoriq-history-head span { color: var(--motoriq-primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.motoriq-history-head h2 { margin: 2px 0 0; }
.motoriq-history-head > strong { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--motoriq-soft); color: var(--motoriq-primary); }
.motoriq-empty { padding: 28px; border-radius: 22px; background: var(--motoriq-soft); text-align: center; color: var(--motoriq-muted); }
.motoriq-history-table-wrap { overflow: hidden; padding: 8px; border: 1px solid var(--motoriq-line); border-radius: 24px; background: #eef4ed; }
.motoriq-history-table { width: 100%; border-collapse: separate; border-spacing: 0 7px; }
.motoriq-history-table th { padding: 5px 16px 9px; color: var(--motoriq-muted); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.motoriq-history-table td { padding: 17px 16px; border-top: 1px solid var(--motoriq-line); border-bottom: 1px solid var(--motoriq-line); background: #fff; color: var(--motoriq-ink); font-size: 14px; vertical-align: middle; }
.motoriq-history-table td:first-child { border-left: 1px solid var(--motoriq-line); border-radius: 18px 0 0 18px; }
.motoriq-history-table td:last-child { border-right: 1px solid var(--motoriq-line); border-radius: 0 18px 18px 0; text-align: right; }
.motoriq-history-table td strong,
.motoriq-history-table td small { display: block; }
.motoriq-history-table td > strong { font-size: 13px; }
.motoriq-history-table td small { margin-top: 4px; color: var(--motoriq-muted); font-size: 11px; }
.motoriq-history-table td[data-label="Saved"] > strong { white-space: nowrap; }
.motoriq-history-kicker { display: block; margin-bottom: 4px; color: var(--motoriq-primary); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.motoriq-history-table td:first-child > strong { font-size: 15px; }
.motoriq-history-mode { display: inline-block; padding: 7px 11px; border: 1px solid #cde1c9; border-radius: 999px; background: #edf7eb; color: var(--motoriq-primary-dark); font-size: 11px; font-weight: 900; }
.motoriq-history-na { color: var(--motoriq-muted); font-size: 12px; }
.motoriq-history-open { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 999px; background: var(--motoriq-primary); box-shadow: 0 7px 16px rgba(18, 128, 0, .18); color: #fff !important; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.motoriq-history-open:hover { background: var(--motoriq-primary-dark); color: #fff !important; transform: translateY(-1px); }
.motoriq-history-processing { display: inline-flex; align-items: center; gap: 9px; color: var(--motoriq-muted); font-size: 12px; }
.motoriq-history-spinner { width: 14px; height: 14px; flex: none; border: 2px solid #dfe3de; border-top-color: var(--motoriq-primary); border-radius: 50%; animation: motoriq-history-spin 0.9s linear infinite; }
@keyframes motoriq-history-spin { to { transform: rotate(360deg); } }
.motoriq-history-failed-note { color: #b91c1c; font-size: 12px; }
.motoriq-history-table td.motoriq-history-action { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.motoriq-history-delete-form { display: inline-flex; }
.motoriq-history-delete { padding: 7px 12px; border: 1px solid #f3c9c9; border-radius: 999px; background: #fff5f5; color: #b91c1c; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.motoriq-history-delete:hover { background: #fde8e8; border-color: #e8a9a9; }
.motoriq-saved-report { padding: 22px; border-top: 1px solid var(--motoriq-line); background: #fbfcfb; }
.motoriq-saved-report section { margin-top: 18px; padding: 18px; border-radius: 20px; background: #fff; }
.motoriq-saved-report h4 { margin: 0 0 8px; }
.motoriq-saved-report p { margin: 0; color: #465268; line-height: 1.65; }
.motoriq-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.motoriq-report-stat { padding: 17px; border-radius: 20px; background: var(--motoriq-soft); }
.motoriq-report-stat span { display: block; margin-bottom: 5px; color: var(--motoriq-muted); font-size: 12px; }
.motoriq-report-stat strong { color: var(--motoriq-primary-dark); font-size: 17px; }
.motoriq-report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.motoriq-table-wrap { overflow-x: auto; }
.motoriq-saved-report table { width: 100%; border-collapse: collapse; }
.motoriq-saved-report th,
.motoriq-saved-report td { padding: 10px; border-bottom: 1px solid var(--motoriq-line); text-align: left; font-size: 13px; }
.motoriq-cell-note { display: block; margin-top: 5px; color: var(--motoriq-muted); line-height: 1.45; }
.motoriq-saved-report a { color: var(--motoriq-primary); }
.motoriq-disclaimer { margin-top: 18px !important; font-size: 12px; }

/*
 * The app renders into a shadow root on this element — no iframe, no height syncing.
 * A shadow boundary blocks selectors but NOT inheritance, so a theme or Elementor rule setting
 * letter-spacing, text-transform, line-height and friends on an ancestor would still reach the
 * app. `all: initial` cuts that inheritance at the host; everything after it re-declares the
 * few properties the host itself needs.
 */
.motoriq-app-host {
	all: initial;
	display: block;
	width: 100%;
	overflow: visible;
	background: transparent;
	box-shadow: none;
}
.motoriq-app-host > template { display: none; }

/*
 * Printing the report. app.js tags the host and every ancestor up to <html> with
 * .motoriq-print-branch, so hiding each branch element's other children leaves only the app —
 * whatever wrappers the theme or Elementor put around it.
 */
@media print {
	.motoriq-printing,
	.motoriq-printing .motoriq-print-branch {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
	}
	.motoriq-printing .motoriq-print-branch > *:not(.motoriq-print-branch):not(.motoriq-app-host) { display: none !important; }
	.motoriq-printing .motoriq-app-host { overflow: visible !important; border-radius: 0 !important; }
}

.motoriq-profile { background: #f5f8f4; }
.motoriq-profile form { display: block; }
.motoriq-profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.motoriq-profile-head span,
.motoriq-card-title > span { color: var(--motoriq-primary); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.motoriq-profile-head h2 { margin: 3px 0 5px; }
.motoriq-profile-head p,
.motoriq-card-title p { color: var(--motoriq-muted); }
.motoriq-signout { padding: 11px 18px; border: 1px solid #b91c1c; border-radius: 999px; background: #fff5f5; color: #b91c1c; font-weight: 800; text-decoration: none; }
.motoriq-signout:hover { border-color: #991b1b; background: #b91c1c; color: #fff; }
.motoriq-profile-card { margin-top: 16px; padding: 24px; border: 1px solid var(--motoriq-line); border-radius: 24px; background: #fff; }
.motoriq-card-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.motoriq-card-title > span { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 50%; background: var(--motoriq-soft); }
.motoriq-card-title h3 { margin: 0 0 3px; color: var(--motoriq-ink); font-size: 18px; }
.motoriq-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.motoriq-field-grid .motoriq-wide { grid-column: 1 / -1; }
.motoriq-key-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: end; gap: 18px; }
.motoriq-key-status { display: flex; min-height: 50px; flex-direction: column; justify-content: center; padding: 8px 17px; }
.motoriq-key-status strong,
.motoriq-key-status span { display: block; }
.motoriq-key-status span { margin-top: 2px; color: var(--motoriq-muted); font-size: 12px; }
.motoriq-clear-key { margin-top: 14px; font-weight: 600 !important; }
.motoriq-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.motoriq-profile-actions span { color: var(--motoriq-muted); font-size: 13px; }

/* ---- Member dashboard: left menu + right content pane ---- */

.motoriq-dash {
	box-sizing: border-box;
	display: grid;
	width: 100%;
	max-width: none;
	margin: 24px 0;
	grid-template-columns: 276px minmax(0, 1fr);
	align-items: start;
	gap: 22px;
	color: var(--motoriq-ink);
}
.motoriq-dash *,
.motoriq-dash *::before,
.motoriq-dash *::after { box-sizing: border-box; }

.motoriq-dash-nav {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 20px;
	border: 1px solid var(--motoriq-line);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(48, 67, 52, .07);
}
.motoriq-dash-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.motoriq-dash-avatar {
	display: grid;
	width: 44px;
	height: 44px;
	flex: none;
	place-items: center;
	border-radius: 50%;
	background: var(--motoriq-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .02em;
}
.motoriq-dash-identity { min-width: 0; }
.motoriq-dash-identity strong { display: block; overflow: hidden; color: var(--motoriq-ink); font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.motoriq-dash-identity small { display: block; overflow: hidden; margin-top: 2px; color: var(--motoriq-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.motoriq-dash-menu { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--motoriq-line); }
.motoriq-dash-tab {
	display: flex;
	width: 100%;
	min-height: 0;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: transparent;
	box-shadow: none;
	color: var(--motoriq-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.motoriq-dash-tab:hover { border-color: var(--motoriq-line); background: var(--motoriq-soft); color: var(--motoriq-ink); }
.motoriq-dash-tab:focus-visible { outline: 3px solid rgba(18, 128, 0, .35); outline-offset: 2px; }
.motoriq-dash-tab.is-active { border-color: #cde1c9; background: var(--motoriq-soft); color: var(--motoriq-primary-dark); }
.motoriq-dash-icon { width: 20px; height: 20px; flex: none; color: var(--motoriq-muted); }
.motoriq-dash-tab.is-active .motoriq-dash-icon { color: var(--motoriq-primary); }
.motoriq-dash-tab-text { min-width: 0; flex: 1; }
.motoriq-dash-tab-text strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.motoriq-dash-tab-text small { display: block; overflow: hidden; margin-top: 2px; color: var(--motoriq-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.motoriq-dash-count {
	display: grid;
	min-width: 26px;
	height: 24px;
	flex: none;
	padding: 0 7px;
	border-radius: 999px;
	background: #e7efe5;
	place-items: center;
	color: var(--motoriq-primary-dark);
	font-size: 11px;
	font-style: normal;
	font-weight: 900;
}
.motoriq-dash-tab.is-active .motoriq-dash-count { background: var(--motoriq-primary); color: #fff; }
.motoriq-dash-nav .motoriq-signout { margin-top: auto; text-align: center; }

.motoriq-dash-body { min-width: 0; display: grid; gap: 16px; }
.motoriq-dash-panel {
	min-width: 0;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--motoriq-line);
	border-radius: 26px;
	background: #f5f8f4;
	box-shadow: 0 10px 28px rgba(48, 67, 52, .07);
}
.motoriq-dash-panel:focus { outline: none; }
.motoriq-dash-panel-head { margin-bottom: 20px; }
.motoriq-dash-panel-head span { color: var(--motoriq-primary); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.motoriq-dash-panel-head h2 { margin: 3px 0 0; color: var(--motoriq-ink); }

/* Panels host the existing profile/history markup, so strip its standalone card chrome. */
.motoriq-dash-panel .motoriq-profile,
.motoriq-dash-panel .motoriq-history {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.motoriq-dash-panel .motoriq-profile-card:first-of-type { margin-top: 0; }
.motoriq-dash-panel .motoriq-message { margin-bottom: 16px; }
.motoriq-dash-body > .motoriq-message { margin: 0; }

@media (max-width: 980px) {
	.motoriq-dash { grid-template-columns: 1fr; gap: 16px; }
	.motoriq-dash-nav { position: static; padding: 16px; }
	.motoriq-dash-menu { flex-direction: row; overflow-x: auto; padding-bottom: 4px; gap: 8px; -webkit-overflow-scrolling: touch; }
	.motoriq-dash-tab { width: auto; flex: 1 0 auto; }
	.motoriq-dash-tab-text small { display: none; }
	.motoriq-dash-nav .motoriq-signout { margin-top: 0; }
}

@media (max-width: 700px) {
	.motoriq-login form,
	.motoriq-profile form,
	.motoriq-report-grid,
	.motoriq-report-columns { grid-template-columns: 1fr; }
	.motoriq-profile form > * { grid-column: 1; }
	.motoriq-profile-head,
	.motoriq-profile-actions { align-items: stretch; flex-direction: column; }
	.motoriq-field-grid,
	.motoriq-key-row { grid-template-columns: 1fr; }
	.motoriq-field-grid .motoriq-wide { grid-column: 1; }
	/* Stack the history table into cards instead of a 690px horizontal scroller.
	   Every cell already carries a data-label, which becomes its row heading. */
	.motoriq-history-table-wrap { overflow: visible; padding: 8px; }
	.motoriq-history-table,
	.motoriq-history-table tbody,
	.motoriq-history-table tr,
	.motoriq-history-table td { display: block; width: auto; }
	.motoriq-history-table { min-width: 0; border-spacing: 0; }
	.motoriq-history-table thead { display: none; }
	.motoriq-history-row {
		margin-bottom: 10px;
		border: 1px solid var(--motoriq-line);
		border-radius: 18px;
		background: #fff;
	}
	.motoriq-history-row.has-range { margin-bottom: 0; border-bottom: 0; border-radius: 18px 18px 0 0; }
	.motoriq-history-table .motoriq-history-row > td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding: 11px 14px !important;
		border: 0 !important;
		border-radius: 0 !important;
		text-align: right !important;
	}
	.motoriq-history-table .motoriq-history-row > td + td { border-top: 1px solid #edf0ec !important; }
	.motoriq-history-table .motoriq-history-row > td::before {
		flex: none;
		color: var(--motoriq-muted);
		content: attr(data-label);
		font-size: 10px;
		font-weight: 900;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	.motoriq-history-table .motoriq-history-row > td.motoriq-history-action { justify-content: stretch; }
	.motoriq-history-table .motoriq-history-row > td.motoriq-history-action::before { content: none; }
	.motoriq-history-open { width: 100%; justify-content: center; }
	.motoriq-history-table td[data-label="Vehicle"] { flex-direction: column; align-items: flex-start; text-align: left !important; }
	.motoriq-history-table td[data-label="Vehicle"] .motoriq-history-kicker { margin-bottom: 2px; }
	.motoriq-history-range-tr {
		margin-bottom: 10px;
		border: 1px solid var(--motoriq-line);
		border-top: 0;
		border-radius: 0 0 18px 18px;
		background: #fff;
	}
	.motoriq-history-table .motoriq-history-range-tr > td {
		padding: 0 10px 10px !important;
		border: 0 !important;
	}
	.motoriq-dash { margin: 16px 0; }
	.motoriq-dash-panel { border-radius: 22px; }
}

/* =======================================================================
   Standard container surface — 1.7.0
   Matches the app: rounded member containers are solid white with a gray
   border and one shadow. No tinted fills.
   ======================================================================= */
.motoriq-dash-panel,
.motoriq-history-table-wrap,
.motoriq-profile-card,
.motoriq-empty,
.motoriq-login,
.motoriq-profile,
.motoriq-history,
.motoriq-access-required,
.motoriq-saved-report section,
.motoriq-report-stat {
	border: 1px solid var(--motoriq-line);
	background: #fff;
	box-shadow: 0 10px 28px rgba(48, 67, 52, .07);
}
/* Nested surfaces stay flat inside their parent. */
.motoriq-dash-panel .motoriq-profile-card,
.motoriq-dash-panel .motoriq-empty,
.motoriq-history-table-wrap,
.motoriq-report-stat,
.motoriq-saved-report section {
	box-shadow: none;
}
.motoriq-history-table td { background: #fff; }
.motoriq-saved-report { background: #fff; }
.motoriq-key-status,
.motoriq-message { border: 1px solid var(--motoriq-line); background: #fff; }

/* =======================================================================
   Report visibility, history range map, public report page — 1.7.0
   ======================================================================= */

/* --- Public / private pill. A button for the owner, a badge for everyone else. --- */
.motoriq-visibility-form { margin: 0; display: inline-block; }
.motoriq-visibility {
	display: inline-flex;
	min-height: 0;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--motoriq-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--motoriq-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .02em;
	cursor: default;
}
button.motoriq-visibility { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
button.motoriq-visibility:hover { border-color: #9eb69a; background: var(--motoriq-soft); }
button.motoriq-visibility:focus-visible { outline: 3px solid rgba(18, 128, 0, .35); outline-offset: 2px; }
.motoriq-visibility svg { width: 14px; height: 14px; flex: none; }
.motoriq-visibility.is-public { border-color: #cde1c9; background: #edf7eb; color: var(--motoriq-primary-dark); }
.motoriq-visibility.is-private { border-color: #dfe1e6; background: #f4f5f7; color: #5b6472; }

/* --- History mini range map --- */
.motoriq-history-range-tr > td {
	padding: 0 16px 16px !important;
	border-top: 0 !important;
	border-radius: 0 0 18px 18px !important;
	text-align: left !important;
}
.motoriq-history-row.has-range > td { border-bottom: 0 !important; }
.motoriq-history-row.has-range > td:first-child { border-radius: 18px 0 0 0 !important; }
.motoriq-history-row.has-range > td:last-child { border-radius: 0 18px 0 0 !important; }
.motoriq-history-range-tr > td:first-child { border-left: 1px solid var(--motoriq-line) !important; border-right: 1px solid var(--motoriq-line) !important; }
.motoriq-history-range {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--motoriq-line);
	border-radius: 16px;
	background: #fff;
}
.motoriq-history-range-rows { display: grid; gap: 6px; min-width: 0; }
.motoriq-history-range-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 132px; align-items: center; gap: 12px; }
.motoriq-history-range-label { display: inline-flex; align-items: center; gap: 7px; color: var(--motoriq-muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.motoriq-swatch { width: 9px; height: 9px; flex: none; border-radius: 3px; }
.motoriq-swatch.buy { background: #b91c1c; }
.motoriq-swatch.auction { background: #7047b8; }
.motoriq-swatch.book { background: #b78600; }
.motoriq-swatch.retail { background: #2457d6; }
.motoriq-swatch.profit { background: #117f00; }
.motoriq-history-range-track { position: relative; display: block; height: 9px; border-radius: 999px; background: #eceee9; }
.motoriq-history-range-bar { position: absolute; top: 0; height: 9px; min-width: 4px; border-radius: 999px; }
.motoriq-history-range-bar.buy { background: #b91c1c; }
.motoriq-history-range-bar.auction { background: #7047b8; }
.motoriq-history-range-bar.book { background: #b78600; }
.motoriq-history-range-bar.retail { background: #2457d6; }
.motoriq-history-range-value { color: var(--motoriq-ink); font-size: 11px; font-weight: 800; text-align: right; white-space: nowrap; }
.motoriq-history-range-axis { display: flex; justify-content: space-between; padding-left: 120px; color: var(--motoriq-muted); font-size: 10px; font-weight: 700; }
.motoriq-history-range-axis span:last-child { padding-right: 144px; }
.motoriq-history-range-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.motoriq-history-callout.wholesale { border-left-color: #7047b8; }
.motoriq-history-callout.retail { border-left-color: #2457d6; }
.motoriq-history-callout { padding: 10px 12px; border: 1px solid var(--motoriq-line); border-left-width: 5px; border-radius: 14px; background: #fff; }
.motoriq-history-callout.buy { border-left-color: #b91c1c; }
.motoriq-history-callout.profit { border-left-color: #117f00; }
.motoriq-history-callout span { display: block; color: var(--motoriq-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.motoriq-history-callout strong { display: block; margin-top: 3px; color: var(--motoriq-ink); font-size: 14px; }

/* Confidence callout: the report's three-stop meter, shrunk to fit the row. */
.motoriq-history-callout.confidence { border-left-color: var(--motoriq-line); }
.motoriq-history-callout.confidence.is-low { border-left-color: #c1121f; }
.motoriq-history-callout.confidence.is-medium { border-left-color: #e1c400; }
.motoriq-history-callout.confidence.is-high { border-left-color: #117f00; }
.motoriq-history-confidence { display: block; margin-top: 8px; }
.motoriq-history-confidence-track {
	position: relative;
	display: block;
	height: 7px;
	border-radius: 999px;
	background: linear-gradient(90deg, #c1121f 0%, #e1c400 52%, #117f00 100%);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.motoriq-history-confidence-track i {
	position: absolute;
	top: 50%;
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #263028;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	transform: translate(-50%, -50%);
}


/* --- Public /report/{token}/ page --- */
.motoriq-report-main { width: 100%; }
.motoriq-report-page { box-sizing: border-box; width: 100%; max-width: 1600px; margin: 0 auto; padding: 20px; }
.motoriq-report-locked {
	box-sizing: border-box;
	max-width: 560px;
	margin: 48px auto;
	padding: 40px 32px;
	border: 1px solid var(--motoriq-line);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(48, 67, 52, .07);
	text-align: center;
	color: var(--motoriq-ink);
}
.motoriq-report-locked svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--motoriq-muted); }
.motoriq-report-locked h2 { margin: 0 0 8px; }
.motoriq-report-locked p { margin: 0; color: var(--motoriq-muted); line-height: 1.6; }

@media (max-width: 700px) {
	.motoriq-history-range-callouts { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.motoriq-report-page { padding: 14px; }
	/* Label and value share the first line; the track gets the full width below it. */
	.motoriq-history-range-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
	.motoriq-history-range-label { grid-column: 1; grid-row: 1; }
	.motoriq-history-range-value { grid-column: 2; grid-row: 1; text-align: right; }
	.motoriq-history-range-track { grid-column: 1 / -1; grid-row: 2; }
	.motoriq-history-range-rows { gap: 10px; }
	.motoriq-history-range-axis { padding-left: 0; }
	.motoriq-history-range-axis span:last-child { padding-right: 0; }
}

/* The owner bar and locked card are page chrome, not report content. */
@media print {
	.motoriq-report-page { max-width: none !important; padding: 0 !important; }
}

/* =======================================================================
   Header account button and dropdown — 1.8.0
   Same surface language as the app: green pill actions, white cards with a
   gray border and one shadow, 999px pills and 18–20px card radii.
   ======================================================================= */
.motoriq-account { position: relative; display: inline-block; font-size: 14px; line-height: 1.4; }

/* Signed out: solid green pill, matching the app's primary button. */
.motoriq-account-login {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--motoriq-primary);
	box-shadow: none;
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s ease;
}
.motoriq-account-login:hover { background: var(--motoriq-primary-dark); color: #fff !important; }
.motoriq-account-login:focus-visible { outline: 3px solid rgba(18, 128, 0, .35); outline-offset: 2px; }

/* Signed in: white pill with the initials avatar. */
.motoriq-account-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 9px;
	padding: 0 14px 0 7px;
	border: 1px solid var(--motoriq-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: var(--motoriq-ink);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: border-color .15s ease;
}
.motoriq-account-button:hover { border-color: #9eb69a; }
.motoriq-account-button:focus-visible { outline: 3px solid rgba(18, 128, 0, .35); outline-offset: 2px; }
.motoriq-account-avatar {
	display: grid;
	width: 32px;
	height: 32px;
	flex: none;
	place-items: center;
	border-radius: 50%;
	background: var(--motoriq-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}
.motoriq-account-name { white-space: nowrap; }
.motoriq-account-icon { width: 16px; height: 16px; flex: none; }
.motoriq-account-button > .motoriq-account-icon { width: 15px; height: 15px; color: var(--motoriq-muted); transition: transform .18s ease; }
.motoriq-account.is-open .motoriq-account-button > .motoriq-account-icon { transform: rotate(180deg); }
.motoriq-account.is-open .motoriq-account-button { border-color: #9eb69a; }

/* Dropdown card. */
.motoriq-account-menu {
	position: absolute;
	z-index: 999;
	top: calc(100% + 8px);
	right: 0;
	display: grid;
	min-width: 232px;
	padding: 7px;
	border: 1px solid var(--motoriq-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: none;
}
.motoriq-account-menu[hidden] { display: none; }
.motoriq-account-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 13px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: transparent;
	color: var(--motoriq-ink) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.motoriq-account-item .motoriq-account-icon { color: var(--motoriq-muted); }
.motoriq-account-item:hover,
.motoriq-account-item:focus-visible {
	border-color: #cde1c9;
	background: var(--motoriq-soft);
	color: var(--motoriq-primary-dark) !important;
	outline: none;
}
.motoriq-account-item:hover .motoriq-account-icon,
.motoriq-account-item:focus-visible .motoriq-account-icon { color: var(--motoriq-primary); }
.motoriq-account-foot { display: grid; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--motoriq-line); }
.motoriq-account-item.is-signout { color: #b91c1c !important; }
.motoriq-account-item.is-signout .motoriq-account-icon { color: #b91c1c; }
.motoriq-account-item.is-signout:hover,
.motoriq-account-item.is-signout:focus-visible { border-color: #f0c9c9; background: #fff5f5; color: #991b1b !important; }
.motoriq-account-item.is-signout:hover .motoriq-account-icon,
.motoriq-account-item.is-signout:focus-visible .motoriq-account-icon { color: #991b1b; }

@media (max-width: 700px) {
	.motoriq-account-name { display: none; }
	.motoriq-account-button { padding: 0 10px 0 7px; }
	.motoriq-account-menu { min-width: 208px; }
}

/* Zero gridline on the history scale, shown only when the range crosses zero. */
.motoriq-history-range-bar.profit { background: #117f00; }
.motoriq-history-range-bar.profit.is-negative { background: #b91c1c; }
.motoriq-swatch.profit.is-negative { background: #b91c1c; }
