:root {
	--rsmar-orange: #efb11c;
	--rsmar-orange-dark: #d99a08;
	--rsmar-ink: #17191b;
	--rsmar-text: #202732;
	--rsmar-muted: #657080;
	--rsmar-border: #dce2e9;
	--rsmar-surface: #ffffff;
	--rsmar-soft: #f4f6f8;
	--rsmar-green: #176b57;
	--rsmar-green-soft: #e8f3ef;
	--rsmar-red: #bd3434;
	--rsmar-navy: #121a2a;
	--rsmar-blue: #1e2a3d;
	--rsmar-blue-mid: #2f4057;
	--rsmar-blue-light: #3a4d66;
	--rsmar-shadow: 0 14px 36px rgba(23, 25, 27, 0.09);
	--rsmar-creative-col: 330px;
	--rsmar-metric-col: 156px;
	--rsmar-total-col: 132px;
}

body.rsmar-report-page,
body.rsmar-login-page {
	margin: 0 !important;
	min-width: 320px;
	background: var(--rsmar-soft) !important;
	color: var(--rsmar-text) !important;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
}

body.rsmar-report-page *,
body.rsmar-report-page *::before,
body.rsmar-report-page *::after,
body.rsmar-login-page *,
body.rsmar-login-page *::before,
body.rsmar-login-page *::after {
	box-sizing: border-box;
}

body.rsmar-report-page a,
body.rsmar-login-page a {
	color: inherit;
	text-decoration: none;
}

body.rsmar-report-page button,
body.rsmar-report-page input,
body.rsmar-report-page select,
body.rsmar-login-page button,
body.rsmar-login-page input {
	font: inherit;
	letter-spacing: 0;
}

body.rsmar-report-page button,
body.rsmar-login-page button {
	cursor: pointer;
}

body.rsmar-report-page h1,
body.rsmar-report-page h2,
body.rsmar-report-page h3,
body.rsmar-report-page p,
body.rsmar-login-page h1,
body.rsmar-login-page p {
	margin-top: 0;
}

body.rsmar-report-page [hidden],
body.rsmar-login-page [hidden] {
	display: none !important;
}

.rsmar-icon {
	display: inline-block;
	flex: 0 0 auto;
}

.rsmar-header {
	position: sticky;
	z-index: 50;
	top: 0;
	background: var(--rsmar-ink);
	color: #ffffff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rsmar-header-inner {
	display: grid;
	grid-template-columns: minmax(190px, 1fr) auto minmax(250px, 1fr);
	align-items: center;
	width: min(1600px, calc(100% - 48px));
	min-height: 76px;
	margin: 0 auto;
	gap: 28px;
}

.rsmar-header-brand,
.rsmar-login-brand,
.rsmar-footer-brand {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	gap: 11px;
}

.rsmar-brand-image {
	display: block;
	width: auto;
	max-width: 190px;
	height: 42px;
	object-fit: contain;
}

.rsmar-brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	border-radius: 6px;
	background: var(--rsmar-orange);
	color: var(--rsmar-ink);
	font-size: 25px;
	font-weight: 900;
	place-items: center;
}

.rsmar-brand-name {
	color: currentColor;
	font-size: 17px;
	font-weight: 850;
	line-height: 0.92;
}

.rsmar-nav {
	display: flex;
	align-items: stretch;
	height: 76px;
	gap: 6px;
}

.rsmar-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0 18px;
	color: #d7dce2;
	font-weight: 700;
	gap: 9px;
}

.rsmar-nav a::after {
	position: absolute;
	right: 18px;
	bottom: 0;
	left: 18px;
	height: 3px;
	content: "";
	background: transparent;
}

.rsmar-nav a:hover,
.rsmar-nav a.is-active {
	color: #ffffff;
}

.rsmar-nav a.is-active::after {
	background: var(--rsmar-orange);
}

.rsmar-user-menu {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 10px;
}

.rsmar-avatar {
	display: grid;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rsmar-orange);
	color: var(--rsmar-ink);
	font-size: 15px;
	font-weight: 900;
	place-items: center;
}

.rsmar-user-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.1;
}

.rsmar-user-copy strong {
	max-width: 180px;
	overflow: hidden;
	color: #ffffff;
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rsmar-user-copy small {
	margin-top: 3px;
	color: #aeb6c1;
	font-size: 11px;
}

.rsmar-main {
	width: min(1600px, calc(100% - 48px));
	min-height: calc(100vh - 210px);
	margin: 0 auto;
	padding: 42px 0 62px;
}

.rsmar-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 22px;
}

.rsmar-page-head h1 {
	margin-bottom: 9px;
	color: var(--rsmar-ink);
	font-size: 42px;
	font-weight: 900;
	line-height: 1.04;
}

.rsmar-page-head p:last-child {
	margin-bottom: 0;
	color: var(--rsmar-muted);
	font-size: 16px;
}

.rsmar-eyebrow {
	margin-bottom: 8px;
	color: var(--rsmar-orange-dark);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.rsmar-page-actions,
.rsmar-upload-actions,
.rsmar-filter-actions,
.rsmar-report-counts {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rsmar-dashboard-tabs {
	display: inline-flex;
	align-items: center;
	margin-bottom: 18px;
	padding: 4px;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(18, 25, 38, 0.06);
	gap: 4px;
}

.rsmar-dashboard-tabs button {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 9px 15px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--rsmar-muted);
	font-size: 13px;
	font-weight: 900;
	gap: 8px;
}

.rsmar-dashboard-tabs button:hover,
.rsmar-dashboard-tabs button.is-active {
	background: var(--rsmar-ink);
	color: #ffffff;
}

.rsmar-button,
.rsmar-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 6px;
	font-weight: 850;
	line-height: 1.2;
	gap: 8px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rsmar-button {
	min-height: 46px;
	padding: 11px 18px;
}

.rsmar-icon-button {
	width: 42px;
	height: 42px;
	padding: 0;
}

.rsmar-button:hover,
.rsmar-icon-button:hover {
	transform: translateY(-1px);
}

.rsmar-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
}

.rsmar-button-primary {
	background: var(--rsmar-orange);
	color: var(--rsmar-ink);
}

.rsmar-button-primary:hover {
	background: var(--rsmar-orange-dark);
}

.rsmar-button-dark {
	background: var(--rsmar-ink);
	color: #ffffff !important;
}

.rsmar-button-dark:hover {
	background: #000000;
}

.rsmar-button-ghost,
.rsmar-icon-button-light {
	border-color: var(--rsmar-border);
	background: #ffffff;
	color: var(--rsmar-text);
}

.rsmar-button-ghost:hover,
.rsmar-icon-button-light:hover {
	border-color: var(--rsmar-orange);
}

.rsmar-icon-button {
	background: rgba(255, 255, 255, 0.09);
	color: #ffffff;
}

.rsmar-icon-button-light {
	background: #ffffff;
	color: var(--rsmar-text);
}

.rsmar-upload-panel,
.rsmar-filter-panel,
.rsmar-report-panel {
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--rsmar-shadow);
}

.rsmar-upload-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	padding: 18px 20px;
	gap: 18px;
}

.rsmar-upload-panel.is-dragover {
	border-color: var(--rsmar-orange);
	background: #fffaf0;
}

.rsmar-upload-copy {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 13px;
}

.rsmar-upload-icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 7px;
	background: #fff8e4;
	color: #875f00;
	place-items: center;
}

.rsmar-upload-copy strong {
	display: block;
	color: var(--rsmar-ink);
	font-size: 15px;
}

.rsmar-upload-copy span:last-child {
	display: block;
	margin-top: 2px;
	color: var(--rsmar-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.rsmar-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 18px;
	gap: 14px;
}

.rsmar-lead-kepler-panel {
	margin-bottom: 18px;
	overflow: hidden;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--rsmar-shadow);
}

.rsmar-lead-kepler-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 18px 20px 6px;
	gap: 14px;
}

.rsmar-lead-card {
	display: flex;
	flex-direction: column;
	min-height: 104px;
	padding: 18px;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(18, 25, 38, 0.06);
}

.rsmar-lead-card-total {
	background: #fffaf0;
}

.rsmar-lead-card span {
	color: var(--rsmar-muted);
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
}

.rsmar-lead-card strong {
	margin-top: 8px;
	color: var(--rsmar-ink);
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
}

.rsmar-lead-card small {
	margin-top: auto;
	color: var(--rsmar-muted);
	font-size: 13px;
	font-weight: 850;
}

.rsmar-lead-table-shell {
	margin: 14px 20px 20px;
	overflow: auto;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
}

.rsmar-lead-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	table-layout: fixed;
}

.rsmar-lead-table th,
.rsmar-lead-table td {
	height: 46px;
	padding: 10px 12px;
	border-bottom: 1px solid #d9e0e8;
	color: var(--rsmar-text);
	font-size: 13px;
	text-align: left;
	vertical-align: middle;
}

.rsmar-lead-table thead th {
	position: sticky;
	z-index: 2;
	top: 0;
	background: var(--rsmar-navy);
	color: #ffffff;
	font-weight: 900;
}

.rsmar-lead-table th:first-child,
.rsmar-lead-table td:first-child {
	width: 30%;
}

.rsmar-lead-table th:nth-child(2),
.rsmar-lead-table td:nth-child(2) {
	width: 12%;
}

.rsmar-lead-table tbody tr:hover td {
	background: #fffaf0;
}

.rsmar-lead-file-cell {
	font-weight: 850;
	overflow-wrap: anywhere;
}

.rsmar-lead-number {
	font-weight: 900;
	text-align: center !important;
}

.rsmar-lead-a {
	color: var(--rsmar-green) !important;
}

.rsmar-lead-b {
	color: #a46d00 !important;
}

.rsmar-lead-c {
	color: var(--rsmar-red) !important;
}

.rsmar-lead-empty {
	min-height: 260px;
	box-shadow: none;
}

.rsmar-stat {
	display: flex;
	flex-direction: column;
	min-height: 104px;
	padding: 18px;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(18, 25, 38, 0.06);
}

.rsmar-stat span {
	color: var(--rsmar-muted);
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
}

.rsmar-stat strong {
	margin-top: 8px;
	color: var(--rsmar-ink);
	font-size: 30px;
	font-weight: 900;
	line-height: 1;
	overflow-wrap: anywhere;
}

.rsmar-stat small {
	margin-top: auto;
	color: var(--rsmar-muted);
	font-size: 12px;
}

.rsmar-filter-panel {
	margin-bottom: 18px;
	padding: 18px;
}

.rsmar-filter-title {
	display: flex;
	align-items: center;
	margin-bottom: 16px;
	color: var(--rsmar-ink);
	gap: 9px;
}

.rsmar-filter-title strong {
	font-size: 16px;
}

.rsmar-filter-title span {
	margin-left: auto;
	color: var(--rsmar-muted);
	font-size: 12px;
}

.rsmar-filter-grid {
	display: grid;
	align-items: end;
	grid-template-columns: 170px 170px minmax(280px, 1fr);
	justify-content: start;
	gap: 12px;
}

.rsmar-field {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 7px;
}

.rsmar-field > span {
	color: var(--rsmar-text);
	font-size: 12px;
	font-weight: 850;
}

.rsmar-field input,
.rsmar-field select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cdd5de;
	border-radius: 6px;
	outline: 0;
	background: #ffffff;
	color: var(--rsmar-text);
}

.rsmar-search-field i {
	position: absolute;
	bottom: 11px;
	left: 12px;
	display: inline-flex;
	color: var(--rsmar-muted);
}

.rsmar-search-field input {
	padding-left: 38px;
}

.rsmar-week-controls {
	display: flex;
	grid-column: 1 / -1;
	flex-wrap: wrap;
	gap: 8px;
}

.rsmar-week-controls .rsmar-button {
	min-height: 38px;
	padding: 8px 12px;
	font-size: 13px;
}

.rsmar-field input:focus,
.rsmar-field select:focus {
	border-color: var(--rsmar-orange);
	box-shadow: 0 0 0 3px rgba(239, 177, 28, 0.17);
}

.rsmar-creative-filter,
.rsmar-metric-filter {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #edf0f4;
}

.rsmar-creative-filter summary,
.rsmar-metric-filter summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--rsmar-border);
	border-radius: 6px;
	background: #fbfcfd;
	color: var(--rsmar-text);
	cursor: pointer;
	gap: 12px;
	list-style: none;
}

.rsmar-creative-filter summary::-webkit-details-marker,
.rsmar-metric-filter summary::-webkit-details-marker {
	display: none;
}

.rsmar-creative-filter summary::after,
.rsmar-metric-filter summary::after {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: var(--rsmar-ink);
	color: #ffffff;
	content: "+";
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.rsmar-creative-filter[open] summary::after,
.rsmar-metric-filter[open] summary::after {
	content: "-";
}

.rsmar-creative-filter summary span,
.rsmar-creative-filter summary strong,
.rsmar-metric-filter summary span,
.rsmar-metric-filter summary strong {
	font-size: 12px;
	font-weight: 850;
}

.rsmar-creative-filter summary strong,
.rsmar-metric-filter summary strong {
	margin-left: auto;
	color: var(--rsmar-muted);
}

.rsmar-selected-creatives {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 34px;
	margin: 10px 0;
	gap: 8px;
}

.rsmar-selected-chip,
.rsmar-selected-clear {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.25;
}

.rsmar-selected-chip {
	max-width: min(360px, 100%);
	background: var(--rsmar-ink);
	color: #ffffff;
	text-align: left;
	white-space: normal;
}

.rsmar-selected-chip:hover {
	border-color: var(--rsmar-orange);
}

.rsmar-selected-clear {
	border-color: var(--rsmar-border);
	background: #ffffff;
	color: var(--rsmar-text);
}

.rsmar-selected-clear:hover {
	border-color: var(--rsmar-orange);
}

.rsmar-creative-helper {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--rsmar-muted);
	font-size: 12px;
	font-weight: 800;
}

.rsmar-creative-picker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	max-height: 176px;
	overflow: auto;
	padding: 10px;
	border: 1px solid var(--rsmar-border);
	border-radius: 6px;
	background: #fbfcfd;
	gap: 8px;
	scrollbar-color: #8a929c #e8edf2;
	scrollbar-width: thin;
}

.rsmar-creative-option {
	display: flex;
	align-items: flex-start;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid #d9e0e8;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
	gap: 8px;
}

.rsmar-creative-option:hover {
	border-color: var(--rsmar-orange);
	background: #fff8e4;
}

.rsmar-creative-option input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--rsmar-orange-dark);
}

.rsmar-creative-option span {
	display: -webkit-box;
	overflow: hidden;
	color: var(--rsmar-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rsmar-creative-option input:checked + span {
	color: var(--rsmar-ink);
	font-weight: 900;
}

.rsmar-filter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	gap: 14px;
}

.rsmar-day-selector,
.rsmar-metric-selector {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.rsmar-metric-selector {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #edf0f4;
}

.rsmar-metric-filter .rsmar-metric-selector {
	margin-top: 10px;
	padding-top: 0;
	border-top: 0;
}

.rsmar-day-selector label,
.rsmar-metric-selector label {
	position: relative;
	display: inline-flex;
}

.rsmar-day-selector input,
.rsmar-metric-selector input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.rsmar-day-selector span,
.rsmar-metric-selector span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 11px;
	border: 1px solid var(--rsmar-border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--rsmar-muted);
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
	white-space: nowrap;
}

.rsmar-metric-selector span {
	min-height: 32px;
}

.rsmar-day-selector input:checked + span,
.rsmar-metric-selector input:checked + span {
	border-color: var(--rsmar-ink);
	background: var(--rsmar-ink);
	color: #ffffff;
}

.rsmar-report-panel {
	overflow: hidden;
}

.rsmar-report-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #edf0f4;
	gap: 18px;
}

.rsmar-report-toolbar h2 {
	margin: 0;
	color: var(--rsmar-ink);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.12;
}

.rsmar-report-counts span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: 6px;
	background: #f0f3f6;
	color: var(--rsmar-text);
	font-size: 12px;
	font-weight: 850;
}

.rsmar-table-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #edf0f4;
	background: #fbfcfd;
	gap: 16px;
}

.rsmar-date-window-controls,
.rsmar-creative-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.rsmar-compact-field {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rsmar-compact-field span,
.rsmar-date-window-controls > span,
.rsmar-creative-controls > span {
	color: var(--rsmar-muted);
	font-size: 12px;
	font-weight: 800;
}

.rsmar-compact-field select {
	height: 38px;
	padding: 0 34px 0 11px;
	border: 1px solid #cdd5de;
	border-radius: 6px;
	background: #ffffff;
	color: var(--rsmar-text);
	font-size: 13px;
	font-weight: 800;
}

.rsmar-table-controls .rsmar-button {
	min-height: 38px;
	padding: 8px 12px;
	font-size: 13px;
}

.rsmar-table-controls .rsmar-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.rsmar-table-shell {
	position: relative;
	width: 100%;
	min-height: 520px;
	max-height: calc(100vh - 340px);
	overflow: auto;
	background: #ffffff;
	scrollbar-color: #8a929c #e8edf2;
	scrollbar-width: thin;
}

.rsmar-table-shell::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

.rsmar-table-shell::-webkit-scrollbar-track {
	background: #e8edf2;
}

.rsmar-table-shell::-webkit-scrollbar-thumb {
	border: 3px solid #e8edf2;
	border-radius: 999px;
	background: #8a929c;
}

.rsmar-empty {
	display: grid;
	min-height: 520px;
	padding: 48px 24px;
	color: var(--rsmar-muted);
	text-align: center;
	place-content: center;
	place-items: center;
}

.rsmar-empty h2 {
	margin: 14px 0 6px;
	color: var(--rsmar-ink);
	font-size: 22px;
}

.rsmar-empty p {
	max-width: 560px;
	margin: 0;
}

.rsmar-report-table {
	width: max-content;
	min-width: 100%;
	border-spacing: 0;
	border-collapse: separate;
	table-layout: fixed;
	color: var(--rsmar-text);
	font-size: 13px;
}

.rsmar-report-table th,
.rsmar-report-table td {
	height: 42px;
	padding: 10px 12px;
	border-right: 1px solid #d7dde5;
	border-bottom: 1px solid #d7dde5;
	vertical-align: middle;
	white-space: nowrap;
}

.rsmar-report-table thead th {
	position: sticky;
	z-index: 9;
	top: 0;
	background: var(--rsmar-navy);
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
	text-align: center;
}

.rsmar-report-table thead th span,
.rsmar-report-table thead th small {
	display: block;
	line-height: 1.15;
}

.rsmar-report-table thead th small {
	margin-top: 3px;
	color: #aeb8c5;
	font-size: 10px;
	font-weight: 800;
}

.rsmar-report-table .rsmar-col-creative,
.rsmar-report-table .rsmar-col-metric,
.rsmar-report-table .rsmar-col-total {
	position: sticky;
	color: #ffffff;
}

.rsmar-report-table .rsmar-col-creative {
	left: 0;
	z-index: 7;
	width: var(--rsmar-creative-col);
	min-width: var(--rsmar-creative-col);
	max-width: var(--rsmar-creative-col);
	background: var(--rsmar-blue);
}

.rsmar-report-table .rsmar-col-metric {
	left: var(--rsmar-creative-col);
	z-index: 7;
	width: var(--rsmar-metric-col);
	min-width: var(--rsmar-metric-col);
	max-width: var(--rsmar-metric-col);
	background: var(--rsmar-blue);
	font-weight: 850;
}

.rsmar-report-table .rsmar-col-total {
	left: calc(var(--rsmar-creative-col) + var(--rsmar-metric-col));
	z-index: 7;
	width: var(--rsmar-total-col);
	min-width: var(--rsmar-total-col);
	max-width: var(--rsmar-total-col);
	background: var(--rsmar-blue-light);
	font-weight: 900;
	text-align: center;
}

.rsmar-report-table thead .rsmar-col-creative,
.rsmar-report-table thead .rsmar-col-metric,
.rsmar-report-table thead .rsmar-col-total {
	z-index: 12;
	background: var(--rsmar-navy);
}

.rsmar-report-table thead .rsmar-col-total {
	background: #0e1625;
}

.rsmar-report-table .rsmar-date-col {
	width: 116px;
	min-width: 116px;
	max-width: 116px;
	text-align: center;
}

.rsmar-report-table .rsmar-creative-cell {
	position: relative;
	padding: 14px 16px 14px 48px;
	background: #1b2638;
	font-weight: 900;
	line-height: 1.25;
	white-space: normal;
}

.rsmar-report-table .rsmar-creative-spacer {
	background: #1b2638;
}

.rsmar-group-row {
	cursor: pointer;
}

.rsmar-group-row .rsmar-day-cell {
	background: #fbfcfd;
}

.rsmar-group-row.is-alt .rsmar-day-cell {
	background: #eef3f8;
}

.rsmar-group-row:hover .rsmar-day-cell {
	background: #fff8e4;
}

.rsmar-group-row.is-expanded .rsmar-creative-cell,
.rsmar-group-row.is-expanded .rsmar-kpi-cell,
.rsmar-group-row.is-expanded .rsmar-total-cell {
	background: #142034 !important;
}

.rsmar-creative-toggle {
	position: absolute;
	top: 50%;
	left: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	line-height: 1;
	transform: translateY(-50%);
}

.rsmar-creative-toggle:hover {
	border-color: var(--rsmar-orange);
	background: rgba(239, 177, 28, 0.18);
}

.rsmar-toggle-mark {
	display: block;
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
	transition: transform 160ms ease;
}

.rsmar-group-row.is-expanded .rsmar-toggle-mark {
	transform: translateY(1px) rotate(225deg);
}

.rsmar-summary-cell {
	line-height: 1.15;
	white-space: normal !important;
}

.rsmar-summary-cell strong,
.rsmar-summary-cell small {
	display: block;
}

.rsmar-summary-cell small {
	margin-top: 4px;
	color: currentColor;
	font-size: 11px;
	opacity: 0.78;
}

.rsmar-detail-row .rsmar-day-cell {
	font-size: 12px;
	font-weight: 850;
}

.rsmar-detail-row .rsmar-total-cell {
	font-weight: 900;
}

.rsmar-creative-name {
	display: block;
	display: -webkit-box;
	overflow: hidden;
	padding-top: 2px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.rsmar-kpi-cell {
	background: var(--rsmar-blue) !important;
	color: #ffffff;
}

.rsmar-total-cell {
	background: var(--rsmar-blue-mid) !important;
	color: #ffffff;
}

.rsmar-day-cell {
	background: #ffffff;
	text-align: center;
}

.rsmar-report-table tbody tr.is-alt .rsmar-day-cell {
	background: #edf2f7;
}

.rsmar-report-table tbody tr:hover .rsmar-day-cell {
	background: #fff8e4;
}

.rsmar-value-zero {
	color: #8a93a1;
}

.rsmar-value-good {
	color: var(--rsmar-green);
	font-weight: 850;
}

.rsmar-value-warn {
	color: #9a6100;
	font-weight: 850;
}

.rsmar-toast {
	position: fixed;
	z-index: 100;
	right: 22px;
	bottom: 22px;
	max-width: 420px;
	padding: 14px 17px;
	border-radius: 6px;
	background: var(--rsmar-ink);
	box-shadow: var(--rsmar-shadow);
	color: #ffffff;
	font-size: 14px;
	font-weight: 750;
}

.rsmar-toast.is-error {
	background: var(--rsmar-red);
}

.rsmar-footer {
	border-top: 1px solid #d9e0e8;
	background: #ffffff;
}

.rsmar-footer-inner {
	display: flex;
	align-items: center;
	width: min(1600px, calc(100% - 48px));
	margin: 0 auto;
	padding: 24px 0;
	color: var(--rsmar-muted);
	font-size: 13px;
	gap: 18px;
}

.rsmar-footer-inner p {
	margin: 0;
}

.rsmar-footer-brand .rsmar-brand-image {
	max-width: 168px;
	height: 36px;
}

.rsmar-login-shell {
	display: grid;
	min-height: 100vh;
	padding: 28px;
	background: var(--rsmar-soft);
	place-items: center;
}

.rsmar-login-panel {
	width: min(480px, 100%);
	padding: 40px;
	border: 1px solid var(--rsmar-border);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--rsmar-shadow);
}

.rsmar-login-brand {
	margin-bottom: 34px;
	color: var(--rsmar-ink);
}

.rsmar-login-panel h1 {
	margin-bottom: 12px;
	color: var(--rsmar-ink);
	font-size: 32px;
	font-weight: 900;
	line-height: 1.08;
}

.rsmar-login-panel p:not(.rsmar-eyebrow) {
	margin-bottom: 24px;
	color: var(--rsmar-muted);
}

.rsmar-login-panel .rsmar-button {
	width: 100%;
}

@media (max-width: 1120px) {
	.rsmar-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rsmar-search-field {
		grid-column: 1 / -1;
	}

	.rsmar-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rsmar-lead-kepler-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	:root {
		--rsmar-creative-col: 250px;
		--rsmar-metric-col: 128px;
		--rsmar-total-col: 112px;
	}

	.rsmar-header-inner {
		grid-template-columns: auto 1fr auto;
		width: calc(100% - 28px);
		min-height: 66px;
		gap: 12px;
	}

	.rsmar-brand-name,
	.rsmar-user-copy,
	.rsmar-nav a span {
		display: none;
	}

	.rsmar-nav {
		justify-content: center;
		height: 66px;
	}

	.rsmar-nav a {
		padding: 0 12px;
	}

	.rsmar-main {
		width: calc(100% - 28px);
		padding: 30px 0 48px;
	}

	.rsmar-page-head {
		align-items: stretch;
		flex-direction: column;
	}

	.rsmar-page-head h1 {
		font-size: 34px;
	}

	.rsmar-page-actions,
	.rsmar-upload-panel,
	.rsmar-filter-row,
	.rsmar-report-toolbar,
	.rsmar-table-controls,
	.rsmar-footer-inner {
		align-items: stretch;
		flex-direction: column;
	}

	.rsmar-dashboard-tabs {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
	}

	.rsmar-dashboard-tabs button {
		width: 100%;
	}

	.rsmar-page-actions .rsmar-button,
	.rsmar-upload-actions .rsmar-button,
	.rsmar-filter-actions .rsmar-button {
		width: 100%;
	}

	.rsmar-upload-actions,
	.rsmar-filter-actions {
		width: 100%;
	}

	.rsmar-filter-grid,
	.rsmar-stats,
	.rsmar-lead-kepler-summary {
		grid-template-columns: 1fr;
	}

	.rsmar-search-field {
		grid-column: auto;
	}

	.rsmar-week-controls .rsmar-button,
	.rsmar-selected-clear {
		width: 100%;
	}

	.rsmar-creative-picker {
		grid-template-columns: 1fr;
	}

	.rsmar-filter-title {
		align-items: flex-start;
		flex-direction: column;
	}

	.rsmar-filter-title span {
		margin-left: 0;
	}

	.rsmar-report-counts {
		flex-wrap: wrap;
	}

	.rsmar-date-window-controls,
	.rsmar-creative-controls,
	.rsmar-compact-field {
		align-items: stretch;
		flex-direction: column;
	}

	.rsmar-table-controls .rsmar-button,
	.rsmar-compact-field select {
		width: 100%;
	}

	.rsmar-table-shell,
	.rsmar-empty {
		min-height: 460px;
	}

	.rsmar-report-table {
		font-size: 12px;
	}

	.rsmar-report-table th,
	.rsmar-report-table td {
		height: 40px;
		padding: 9px 10px;
	}
}

@media (max-width: 560px) {
	:root {
		--rsmar-creative-col: 220px;
		--rsmar-metric-col: 116px;
		--rsmar-total-col: 104px;
	}

	.rsmar-header-brand .rsmar-brand-image {
		max-width: 48px;
	}

	.rsmar-avatar {
		width: 38px;
		height: 38px;
	}

	.rsmar-upload-panel,
	.rsmar-filter-panel {
		padding: 16px;
	}

	.rsmar-stat {
		min-height: 92px;
	}

	.rsmar-stat strong {
		font-size: 26px;
	}

	.rsmar-day-selector,
	.rsmar-metric-selector {
		gap: 6px;
	}

	.rsmar-day-selector span,
	.rsmar-metric-selector span {
		min-height: 32px;
		padding: 7px 9px;
	}

	.rsmar-login-shell {
		padding: 16px;
	}

	.rsmar-login-panel {
		padding: 28px 20px;
	}

	.rsmar-login-panel h1 {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rsmar-button,
	.rsmar-icon-button {
		transition: none;
	}
}
