@import url('/css/tokens.css');
@import url('/css/avatar.css');
* {
	box-sizing: border-box;
}
html {
	color-scheme: light;
}
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font:
		15px/1.55 -apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	-webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
	font: inherit;
}
button,
a,
input,
select,
textarea {
	-webkit-tap-highlight-color: transparent;
}
button {
	touch-action: manipulation;
}
button,
a {
	transition:
		background 160ms ease-out,
		color 160ms ease-out,
		transform 160ms ease-out;
}
button {
	cursor: pointer;
}
button:disabled {
	opacity: 0.55;
	cursor: wait;
}
a {
	color: inherit;
	text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}
::selection {
	background: #d8deff;
	color: #171b37;
}
[hidden] {
	display: none !important;
}
h1,
h2,
h3,
p {
	margin-top: 0;
}
h1 {
	font-size: clamp(30px, 3.2vw, 48px);
	line-height: 1.12;
	font-weight: 650;
	letter-spacing: -0.035em;
	text-wrap: balance;
	margin-bottom: 14px;
}
h2 {
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -0.025em;
	font-weight: 650;
	margin-bottom: 8px;
}
h3 {
	font-size: 17px;
	margin-bottom: 8px;
}
p {
	color: var(--muted);
}
.skip {
	position: fixed;
	top: -100px;
	left: 20px;
	background: white;
	z-index: 50;
	padding: 10px;
}
.skip:focus {
	top: 10px;
}
.sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	width: 220px;
	background: var(--paper);
	border-right: 1px solid var(--line);
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	z-index: 10;
}
.wordmark {
	font-size: 21px;
	font-weight: 750;
	letter-spacing: -0.04em;
	display: flex;
	align-items: center;
	gap: 10px;
}
.brand-symbol {
	width: 26px;
	height: 26px;
	display: inline-block;
	border: 1px solid #aeb8ed;
	border-radius: 9px;
	background: conic-gradient(from 20deg, #d1eaff, #d1caff, #efb8dc, #c6e8f6, #d1eaff);
	box-shadow: inset 0 0 8px #fff;
}
.brand-caption {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 9px 0 45px 36px;
}
.sidebar nav {
	display: grid;
	gap: 7px;
}
.sidebar nav a {
	font-size: 14px;
	font-weight: 550;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--muted);
}
.sidebar nav a[aria-current] {
	background: #eef0ff;
	color: var(--accent);
	box-shadow: inset 2px 0 var(--accent);
}
nav svg {
	width: 19px;
	height: 19px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}
.sidebar-bottom {
	margin-top: auto;
}
.powered {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 10px;
	margin-top: 26px;
}
.powered img {
	width: 80px;
	height: 20px;
	object-fit: contain;
}
.account {
	font-size: 11px;
	overflow-wrap: anywhere;
	color: var(--muted);
	margin-bottom: 8px;
}
.text-button {
	background: none;
	border: 0;
	padding: 4px 0;
	font-size: 12px;
	color: var(--muted);
}
.page {
	margin-left: 220px;
	max-width: 1900px;
	padding: 38px clamp(24px, 4vw, 68px) 40px;
}
.topline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 42px;
}
.page-label {
	font-size: 13px;
	font-weight: 600;
}
.status {
	display: flex;
	gap: 7px;
	align-items: center;
	font-size: 12px;
	color: var(--muted);
}
.status::before {
	content: '';
	height: 6px;
	width: 6px;
	border-radius: 50%;
	background: #3e8070;
}
.notice {
	position: relative;
	z-index: 20;
	margin: 16px 24px;
	padding: 14px 18px;
	background: #fff1ee;
	color: #913e2d;
	border-radius: 12px;
	font-size: 14px;
}
.demo-banner {
	padding: 10px 20px;
	background: #eee9ff;
	color: #514384;
	text-align: center;
	font-size: 12px;
}
.login {
	min-height: 100svh;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: 80px;
	max-width: 1200px;
	margin: auto;
	padding: 50px;
}
.login-story {
	max-width: 480px;
}
.login-story .wordmark {
	margin-bottom: 70px;
}
.login-story h1 {
	font-size: clamp(40px, 5vw, 64px);
}
.login-story p {
	max-width: 38ch;
	font-size: 18px;
}
.login-form {
	padding: 40px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 20px 80px #2733570c;
	max-width: 420px;
	width: 100%;
}
label.field {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 550;
}
.field input,
.field select,
.field textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 12px 14px;
	background: #fff;
	color: var(--ink);
	min-width: 0;
}
.field input::placeholder,
textarea::placeholder {
	color: #6c748a;
}
.primary {
	background: var(--ink);
	color: white;
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	font-weight: 550;
}
.secondary {
	background: white;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 10px 15px;
	color: var(--ink);
	font-size: 13px;
}
.login-form .primary {
	width: 100%;
}
.small {
	font-size: 12px;
	color: var(--muted);
}
.intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 38px;
}
.intro p {
	margin-bottom: 0;
	max-width: 65ch;
}
.composer-shell {
	max-width: 1000px;
	margin: 0 auto;
}
.composer-shell > .intro {
	position: sticky;
	top: 0;
	z-index: 4;
	padding-block: 12px;
	background: var(--ground);
}
.suggestions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 24px 0 38px;
}
.suggestions button {
	background: white;
	border: 1px solid var(--line);
	border-radius: 10px;
	text-align: left;
	padding: 13px 16px;
	font-size: 13px;
	color: #4d5671;
}
.chat-log {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 30px;
	min-height: 100px;
}
.chat-log:empty {
	min-height: clamp(32px, 7vh, 76px);
	margin-bottom: 20px;
}
.message {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}
.message.user {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 85%;
}
.user-message-text {
	min-width: 0;
	background: #e8ecf7;
	border-radius: 15px 15px 3px 15px;
	padding: 14px 20px;
	white-space: pre-wrap;
}
.user-message-icon {
	position: relative;
	flex: 0 0 var(--chat-profile-size);
	width: var(--chat-profile-size);
	height: var(--chat-profile-size);
	border-radius: 50%;
	border: 1px solid var(--line);
	background: color-mix(in srgb, var(--accent) 12%, var(--paper));
	color: var(--accent);
}
.user-message-icon::before,
.user-message-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	background: currentColor;
}
.user-message-icon::before {
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
}
.user-message-icon::after {
	top: 17px;
	width: 13px;
	height: 8px;
	border-radius: 9px 9px 5px 5px;
}
@media (prefers-reduced-motion: no-preference) {
	.user-message-icon {
		animation: user-message-arrival 360ms ease-out both;
	}
}
@keyframes user-message-arrival {
	from {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent);
	}
	to {
		box-shadow: 0 0 0 6px transparent;
	}
}
.message.bot {
	padding: 0 3px;
}
.message-label {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.03em;
	color: #626d86;
	margin-bottom: 9px;
}
.answer-coverage {
	margin: 0 0 12px;
	padding: 7px 0;
	color: var(--muted);
	font-size: 12px;
}
.answer-coverage summary {
	cursor: pointer;
}
.answer-coverage p {
	margin: 8px 0 0;
	color: inherit;
}
.chat-period {
	margin-bottom: 8px;
	font-size: 13px;
}
.chat-response-details {
	margin-top: 12px;
	font-size: 12px;
	color: var(--muted);
}
.chat-response-details summary {
	width: fit-content;
	cursor: pointer;
}
.chat-response-details p {
	margin: 6px 0 0;
}
.analytics-unit-link {
	color: #4559a3;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.analytics-unit-scope {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 14px;
	font-size: 13px;
}
.chat-chart {
	max-width: 740px;
	margin: 14px 0 0;
	padding: clamp(14px, 2.5vw, 22px);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(155deg, #f0f3ff 0%, #fff 42%);
	box-shadow: 0 12px 30px #1b2b5910;
}
.chat-chart figcaption {
	font-size: 20px;
	font-weight: 650;
}
.chat-chart-count {
	display: block;
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}
.chat-chart-rows {
	display: grid;
	gap: 13px;
	max-height: 55vh;
	overflow-y: auto;
	margin: 16px 0 0;
	padding: 0 4px 4px 0;
	list-style: none;
}
.chat-chart-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	font-size: 13px;
}
.chat-chart-row strong {
	font-variant-numeric: tabular-nums;
}
.chat-chart-track {
	position: relative;
	grid-column: 1 / -1;
	height: 9px;
	overflow: hidden;
	border-radius: 6px;
	background: #edf0f9;
}
.chat-chart-bar {
	position: absolute;
	inset-block: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #6251bc, #3979b7);
}
.chat-chart-bar-leading {
	background: linear-gradient(90deg, #b85478, #6d4ac2 47%, #327ab6);
}
.chat-peak {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	width: fit-content;
	margin: 8px 0 12px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}
.chat-peak dt {
	color: var(--muted);
	font-size: 12px;
}
.chat-peak dd {
	margin: 0;
	font-weight: 650;
}
.markdown {
	line-height: 1.7;
	max-width: 78ch;
	overflow-x: auto;
}
.markdown p {
	color: var(--ink);
	margin-bottom: 14px;
}
.markdown table {
	border-collapse: collapse;
	min-width: 100%;
	font-size: 13px;
}
.markdown td,
.markdown th {
	padding: 9px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.markdown h2,
.markdown h3 {
	margin-top: 20px;
}
.chat-dock {
	position: sticky;
	bottom: 20px;
	z-index: 3;
}
.composer {
	position: relative;
	background: white;
	border-radius: 18px;
	padding: 14px 16px 11px;
	box-shadow: 0 8px 28px #20315c12;
	border: 1px solid #dce1ef;
}
.composer::before {
	content: '';
	position: absolute;
	top: -2px;
	left: 50%;
	width: min(48%, 360px);
	height: 4px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: linear-gradient(90deg, #f8ad72, #eb91bb 18%, #a581ed 42%, #758bfa 64%, #55c9f4);
	box-shadow: 0 1px 10px #8a8df650;
	opacity: 0.74;
	pointer-events: none;
	transition: width 260ms ease, opacity 180ms ease, box-shadow 260ms ease;
}
.composer:focus-within::before,
#progress:not([hidden]) + .composer::before {
	width: min(76%, 600px);
	opacity: 0.94;
}
.composer textarea {
	display: block;
	resize: vertical;
	min-height: 68px;
	max-height: 200px;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--ink);
	padding: 6px 4px 10px;
	font-size: 16px;
	line-height: 1.55;
}
.composer:focus-within {
	border-color: #7a87b7;
	box-shadow:
		0 12px 40px #20315c14,
		0 0 0 2px #788acb29;
}
.composer textarea:focus-visible {
	outline: none;
}
.composer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid #edf0f6;
}
.composer-bottom span {
	font-size: 11px;
	color: var(--muted);
}
.composer button {
	flex: 0 0 auto;
	min-height: 40px;
	margin-inline-start: auto;
	border-radius: 10px;
	padding: 8px 14px;
}
.composer button span {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-inline-start: 3px;
	border-radius: 6px;
	background: #ffffff1f;
	color: inherit;
	font-size: 13px;
}
.footnote {
	text-align: center;
	font-size: 11px;
	color: var(--muted);
	margin-top: 14px;
}
.toolbar {
	display: flex;
	align-items: end;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.toolbar .field {
	margin: 0;
}
.toolbar input {
	padding: 9px 12px;
}
.group-picker {
	padding: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(140deg, #fff 55%, #f7fbfa);
	border-radius: 12px;
	margin-bottom: 26px;
}
.group-picker summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.group-picker > .toolbar {
	margin: 18px 0 0;
}
.group-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(100%, 24rem);
	margin-top: 14px;
	padding-inline: 11px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--paper);
	color: var(--muted);
}
.group-search:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.group-search svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}
.group-search input {
	min-width: 0;
	width: 100%;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 13px;
}
.group-search input:focus-visible {
	outline: none;
}
.group-matches {
	margin: 7px 0 0;
}
.group-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 18px;
	margin-top: 16px;
	padding: 9px 12px;
	background: #eef3f6;
	border-radius: 10px;
}
.group-count {
	color: var(--muted);
	font-size: 12px;
}
.groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
	gap: 8px;
	padding-top: 12px;
}
.group-option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	min-height: 43px;
	padding: 7px 9px;
	border-radius: 9px;
	border: 1px solid var(--line);
	background: white;
	font-size: 12px;
	cursor: pointer;
}
.group-option:has(:checked) {
	background: #f7fbfa;
	border-color: #cfe4df;
}
.group-option:hover {
	border-color: #8ab5aa;
}
.group-name {
	overflow-wrap: anywhere;
}
.group-units {
	padding: 2px 6px;
	border-radius: 5px;
	background: #e9f1f0;
	color: #345d55;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}
.group-picker input[type='checkbox'] {
	accent-color: #387e71;
	margin: 0;
	width: 16px;
	height: 16px;
}
.kpi-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: white;
	border-radius: 14px;
	margin-bottom: 28px;
	padding: 24px 6px;
}
.kpi {
	padding: 0 24px;
	min-width: 0;
	border-right: 1px solid var(--line);
}
.kpi:last-child {
	border: 0;
}
.kpi-label,
.kpi-detail {
	display: block;
	color: var(--muted);
	font-size: 12px;
}
.kpi-value {
	overflow-wrap: anywhere;
	display: block;
	font-size: clamp(25px, 2.7vw, 38px);
	font-weight: 600;
	letter-spacing: -0.035em;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	margin: 9px 0;
}
.kpi-detail {
	font-size: 11px;
}
.panel {
	background: var(--paper);
	border-radius: 14px;
	padding: 28px;
	margin-bottom: 24px;
}
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 18px;
	margin-bottom: 20px;
}
.section-head p {
	font-size: 13px;
	margin-bottom: 0;
}
.chart-tools {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.chart-tools input,
.chart-tools select {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 9px 12px;
	background: white;
	color: var(--ink);
	max-width: 100%;
}
.legend {
	display: flex;
	gap: 20px;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 24px;
}
.legend span:before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 3px;
	background: var(--accent);
	margin-right: 6px;
}
.legend span:last-child:before {
	background: #aab5d1;
}
.bar-row {
	display: grid;
	grid-template-columns: minmax(120px, 180px) 1fr 80px;
	align-items: center;
	gap: 16px;
	min-height: 42px;
	border-bottom: 1px solid #f0f2f8;
	font-size: 12px;
}
.bar-name {
	overflow-wrap: anywhere;
	font-weight: 550;
}
.bar-track {
	display: flex;
	height: 12px;
	border-radius: 3px;
	overflow: hidden;
	background: #f0f2f8;
}
.bar {
	background: var(--accent);
	height: 100%;
	min-width: 0;
}
.bar.residual {
	background: #aab5d1;
}
.bar-value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-top: 24px;
	font-size: 12px;
	color: var(--muted);
}
.pagination div {
	display: flex;
	gap: 8px;
}
.pagination button:disabled {
	cursor: default;
}
.table-scroll {
	min-width: 0;
	max-width: 100%;
	overflow: auto;
	overscroll-behavior-inline: contain;
}
table.data {
	border-collapse: collapse;
	width: 100%;
	white-space: nowrap;
	font-size: 12px;
}
table.data th {
	text-align: left;
	color: var(--muted);
	font-weight: 550;
	background: #f8f9fc;
}
table.data th,
table.data td {
	padding: 13px 12px;
	border-bottom: 1px solid var(--line);
}
table.data td {
	font-variant-numeric: tabular-nums;
}
table.data tbody tr:hover {
	background: #fafbff;
}
.quality {
	font-size: 11px;
	color: #8b623d;
}
.empty {
	text-align: center;
	padding: 50px 20px;
	color: var(--muted);
}
.progress {
	padding: 16px 20px;
	background: #edf0fc;
	border-radius: 10px;
	font-size: 13px;
	color: #43558e;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.chat-progress {
	gap: 13px;
	margin-bottom: 10px;
	padding: 12px 16px;
	background: #f0f2fc;
}
.thinking-glow {
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background:
		radial-gradient(ellipse at 55% 43%, #fcfbff 6%, #f0e7ffab 32%, transparent 67%),
		radial-gradient(ellipse at 29% 66%, #ffb77e 5%, #e88bc8 29%, transparent 65%),
		radial-gradient(ellipse at 72% 66%, #6bd6fa 5%, #8492fa 35%, #a07bed 60%, transparent 77%);
	box-shadow: 0 3px 13px #9294f36b, -3px 1px 10px #f6ad8940;
}
@media (prefers-reduced-motion: no-preference) {
	.thinking-glow {
		animation: thinking-float 2.4s ease-in-out infinite;
	}
}
@keyframes thinking-float {
	50% {
		transform: translateY(-3px) scale(1.13);
	}
}
.spinner {
	height: 14px;
	width: 14px;
	display: inline-block;
	border: 2px solid #c7cfe8;
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
.daily-chart {
	display: flex;
	align-items: end;
	gap: 8px;
	min-height: 160px;
	border-bottom: 1px solid var(--line);
	padding: 15px 0 7px;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}
.daily-chart:focus-visible,
.table-scroll:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
.chart-scroll-hint {
	margin: 8px 0 0;
}
.daily-column {
	min-width: 32px;
	flex: 1;
	text-align: center;
	font-size: 10px;
	color: var(--muted);
}
.daily-column .column {
	height: 100px;
	display: flex;
	align-items: end;
	justify-content: center;
}
.daily-column .column span {
	width: 65%;
	background: #657bbd;
	border-radius: 4px 4px 0 0;
	min-height: 2px;
}
.new-user {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
}
.new-user .field {
	margin: 0;
}
.admin-app-tag {
	padding: 3px 7px;
	border-radius: 5px;
	background: #eef0ff;
	color: #46588f;
	font-size: 10px;
}
.footer-line {
	display: flex;
	justify-content: space-between;
	color: var(--muted);
	font-size: 11px;
	margin-top: 35px;
}
.snapshot {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 20px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-thumb {
	background: #c1c8d9;
	border-radius: 8px;
}
::-webkit-scrollbar-track {
	background: var(--ground);
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
@media (hover: hover) and (pointer: fine) {
	.primary:hover {
		background: #303d66;
		transform: translateY(-1px);
	}
	.secondary:hover,
	.suggestions button:hover {
		background: #f1f3fc;
	}
	.sidebar nav a:hover {
		background: #f1f3fc;
		color: var(--ink);
	}
}
@media (max-width: 1050px) {
	.sidebar {
		width: 185px;
		padding: 25px 14px;
	}
	.page {
		margin-left: 185px;
		padding: 28px;
	}
	.kpi {
		padding: 0 15px;
	}
	.new-user {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 700px) {
	.sidebar {
		position: sticky;
		top: 0;
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.brand-caption,
	.sidebar-bottom {
		display: none;
	}
	.wordmark {
		font-size: 17px;
		gap: 7px;
	}
	.brand-symbol {
		width: 22px;
		height: 22px;
	}
	.sidebar nav {
		display: flex;
		gap: 2px;
	}
	.sidebar nav a {
		font-size: 11px;
		padding: 8px;
		gap: 5px;
	}
	.sidebar nav svg {
		display: none;
	}
	.page {
		margin-left: 0;
		padding: 24px 18px;
	}
	.topline {
		margin-bottom: 28px;
	}
	.topline .status {
		font-size: 10px;
	}
	.intro {
		gap: 18px;
		margin-bottom: 28px;
	}
	.intro h1 {
		font-size: 31px;
	}
	.intro p {
		font-size: 13px;
	}
	.composer-shell > .intro {
		top: var(--chat-menu-height, 87px);
		padding-block: 8px;
	}
	.composer-shell > .intro h1 {
		font-size: clamp(23px, 6vw, 28px);
		margin-bottom: 8px;
	}
	.suggestions {
		display: grid;
		gap: 8px;
		margin-bottom: 26px;
	}
	.suggestions button {
		padding: 11px 14px;
	}
	.chat-dock {
		bottom: 10px;
	}
	.composer {
		padding-inline: 12px;
	}
	.composer-shortcuts {
		display: none;
	}
	.chat-log:empty {
		min-height: 24px;
	}
	.login {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 35px 22px;
	}
	.login-story .wordmark {
		margin-bottom: 30px;
	}
	.login-story h1 {
		font-size: 40px;
	}
	.login-story p {
		font-size: 15px;
	}
	.login-form {
		padding: 25px;
		max-width: none;
	}
	.kpi-strip {
		grid-template-columns: 1fr 1fr;
		gap: 25px 0;
		padding: 22px 0;
	}
	.kpi:nth-child(2) {
		border-right: 0;
	}
	.kpi {
		padding: 0 18px;
	}
	.kpi-value {
		font-size: 27px;
	}
	.panel {
		padding: 20px 16px;
	}
	.section-head {
		flex-direction: column;
		gap: 15px;
	}
	.chart-tools {
		width: 100%;
	}
	.chart-tools input {
		min-width: 0;
		flex: 1;
		width: 120px;
	}
	.bar-row {
		grid-template-columns: 100px 1fr 55px;
		gap: 10px;
		font-size: 11px;
		min-height: 46px;
	}
	.bar-track {
		height: 10px;
	}
	.legend {
		flex-wrap: wrap;
		font-size: 10px;
		gap: 10px;
	}
	.toolbar {
		gap: 12px;
	}
	.toolbar .field {
		width: calc(50% - 6px);
	}
	.toolbar button {
		flex: 1;
	}
	.new-user {
		grid-template-columns: 1fr;
	}
	.pagination {
		align-items: start;
		flex-wrap: wrap;
	}
	.footer-line {
		flex-direction: column;
		gap: 7px;
	}
	.footnote {
		font-size: 10px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.mobile-only {
	display: none;
}
@media (max-width: 700px) {
	.mobile-only {
		display: block;
		align-self: flex-start;
	}
}

/* Original Analytics sections, using the same visual system as the redesigned workspace. */
.brand-logo {
	width: 160px;
	height: 88px;
	object-fit: contain;
	background: #192c3b;
	border-radius: 12px;
	padding: 6px 10px;
}
.sidebar .wordmark {
	justify-content: center;
}
.sidebar .brand-caption {
	margin: 12px 0 30px;
	text-align: center;
}
.login-story .brand-logo {
	width: 208px;
	height: 114px;
}
.footer-powered {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.footer-powered img {
	width: 80px;
	height: 20px;
	object-fit: contain;
}
.select-all {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	cursor: pointer;
}
.rankings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.eyebrow {
	display: block;
	color: var(--accent);
	font-size: 10px;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
	font-weight: 650;
}
.ranking {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ranking li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.ranking li:last-child {
	border-bottom: 0;
}
.ranking-number {
	color: var(--muted);
	font-size: 11px;
}
.ranking-name,
.series-name {
	overflow-wrap: anywhere;
}
.ranking strong {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.section-metric {
	display: grid;
	max-width: 45%;
	overflow-wrap: anywhere;
	gap: 6px;
	text-align: right;
	flex-shrink: 0;
	font-size: 11px;
	color: var(--muted);
}
.section-metric strong {
	font-size: 26px;
	color: var(--ink);
	letter-spacing: -0.03em;
	font-weight: 600;
}
.legend.complete {
	flex-wrap: wrap;
	gap: 12px 20px;
}
.legend.complete .off-key:before,
.series-part.off {
	background: #329b84;
}
.legend.complete .mini-key:before,
.series-part.mini {
	background: #596cbb;
}
.legend.complete .waste-key:before,
.series-part.waste {
	background: #c68076;
}
.comparison-row {
	display: grid;
	grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
	gap: 20px;
	border-bottom: 1px solid #f0f2f8;
	padding: 10px 0;
	font-size: 12px;
	align-items: center;
}
.series-pair {
	display: grid;
	gap: 10px;
}
.series-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 225px;
	align-items: center;
	gap: 16px;
}
.series-line > span {
	text-align: right;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	font-size: 11px;
}
.series-track {
	display: flex;
	background: #f0f2f8;
	height: 10px;
	border-radius: 3px;
	overflow: hidden;
}
.series-part {
	height: 100%;
}
.cost-detail {
	display: grid;
	gap: 8px;
}
.cost-detail > span {
	color: var(--muted);
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-size: 11px;
}
.state-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}
.state-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 11px;
	color: var(--muted);
}
.state-summary strong {
	color: var(--ink);
	font-size: 17px;
}
.vehicle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.vehicle-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
	min-width: 0;
}
.vehicle-card-head {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 12px;
	margin-bottom: 24px;
}
.vehicle-card h3 {
	margin: 0;
	font-size: 16px;
	overflow-wrap: anywhere;
}
.state-badge {
	font-size: 10px;
	border-radius: 6px;
	padding: 5px 8px;
	background: #eef0f5;
	color: #626e87;
	text-align: center;
}
.state-badge.moving {
	background: #e9f5ef;
	color: #236e5c;
}
.state-badge.idle {
	background: #fff4df;
	color: #8b652b;
}
.vehicle-saving {
	display: block;
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.035em;
	margin-bottom: 4px;
}
.vehicle-details {
	margin: 24px 0 16px;
	display: grid;
	gap: 12px;
}
.vehicle-details > div {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	font-size: 11px;
}
.vehicle-details dt {
	color: var(--muted);
}
.vehicle-details dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.vehicle-event {
	border-top: 1px solid var(--line);
	padding-top: 14px;
	margin: 0;
	color: var(--muted);
	font-size: 11px;
}
.quality-note {
	font-size: 12px;
	color: var(--muted);
	margin: 10px 0 0;
}
.quality-notices {
	margin-top: 8px;
	font-size: 11px;
	color: #765420;
}
.quality-notices summary {
	cursor: pointer;
}
.quality-notices ul {
	margin: 6px 0 0;
	padding-left: 18px;
}
@media (max-width: 1100px) {
	.series-line {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
	}
}
@media (max-width: 700px) {
	.brand-logo {
		width: 112px;
		height: 62px;
		padding: 4px 8px;
	}
	.rankings-grid,
	.vehicle-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.rankings-grid .panel {
		margin-bottom: 0;
	}
	.rankings-grid {
		margin-bottom: 24px;
	}
	.comparison-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.section-metric {
		max-width: 100%;
		text-align: left;
		flex-shrink: 1;
	}
	.section-head:has(.section-metric) {
		flex-direction: column;
	}
	.vehicle-card {
		padding: 18px;
	}
	.vehicle-card-head {
		flex-wrap: wrap;
	}
	.footer-powered {
		display: flex;
	}
}

.admin-table-scroll {
	max-height: min(55vh, 24rem);
}
.admin-table-scroll th {
	position: sticky;
	top: 0;
	z-index: 1;
	box-shadow: 0 1px var(--line);
}
.log-level.error {
	color: #9e384d;
}
.log-level.warning {
	color: #765420;
}
.log-level.info {
	color: #286858;
}

.appearance-panel {
	border: 1px solid var(--line);
}
.appearance-panel h2 {
	margin-bottom: 22px;
}
#appearanceForm fieldset {
	min-width: 0;
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}
#appearanceForm legend {
	font-size: 15px;
	font-weight: 650;
	padding: 0;
	margin-bottom: 10px;
}
.theme-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 160px));
	gap: 10px;
}
.theme-option {
	display: grid;
	gap: 9px;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 8px;
	cursor: pointer;
}
.theme-option:has(:checked) {
	border-color: #66a291;
	background: #f1faf7;
}
:is(.avatar-option, .theme-option):has(:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
:is(.avatar-option, .theme-option) input:focus-visible {
	outline: none;
}
@media (hover: hover) and (pointer: fine) {
	:is(.avatar-option, .theme-option):hover {
		border-color: #66a291;
	}
}
.theme-option-label {
	display: flex;
	align-items: center;
	gap: 5px;
	padding-inline: 4px;
	font-size: 13px;
}
.theme-option input {
	margin: 0;
	accent-color: #387e71;
}
.theme-preview {
	--preview-ground: #ecf0f9;
	--preview-paper: #fff;
	--preview-line: #a8b7d6;
	display: grid;
	grid-template-columns: 24% 1fr;
	gap: 8%;
	height: 49px;
	border-radius: 7px;
	overflow: hidden;
	background: var(--preview-ground);
	border: 1px solid var(--line);
}
.theme-preview[data-preview='dark'] {
	--preview-ground: #0d111c;
	--preview-paper: #26314b;
	--preview-line: #a4aff9;
}
.theme-preview::before {
	content: '';
	background: var(--preview-paper);
}
.theme-preview > span {
	align-self: center;
	width: 78%;
	height: 56%;
	border-radius: 4px;
	background:
		linear-gradient(var(--preview-line), var(--preview-line)) 6px 7px / 42% 3px no-repeat,
		linear-gradient(var(--preview-line), var(--preview-line)) 6px 14px / 27% 2px no-repeat,
		var(--preview-paper);
}
#appearanceForm .avatar-actions {
	flex-wrap: wrap;
}
#appearanceForm button:disabled {
	cursor: default;
}

@media (max-width: 390px) {
	.sidebar {
		padding-inline: 12px;
	}
	.sidebar .brand-logo {
		width: 92px;
		height: 54px;
	}
	.sidebar nav a {
		padding-inline: 6px;
	}
	.appearance-panel {
		padding: 18px;
	}
}

.section-help-heading {
	display: flex;
	align-items: start;
	gap: 8px;
	margin-bottom: 8px;
}
.section-help-heading :is(h1, h2) {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}
.section-help-button {
	flex: 0 0 26px;
	height: 26px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--accent);
	font-size: 14px;
	font-weight: 650;
}
.group-scope-help {
	margin-top: 12px;
}
.section-help-button:hover {
	border-color: var(--accent);
}
.section-guide {
	width: min(30rem, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 24px 75px #0b152c50;
}
.section-guide::backdrop {
	background: #0b152c70;
}
.section-guide-content {
	padding: clamp(20px, 5vw, 34px);
	text-align: center;
}
.section-guide-avatar {
	width: clamp(82px, 25vw, 118px);
	aspect-ratio: 1;
	margin: 0 auto 18px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--line), 0 12px 34px #6274b24d;
}
.section-guide p {
	margin: 0 0 20px;
}
@media (prefers-reduced-motion: no-preference) {
	.section-guide[open] .section-guide-avatar {
		animation: section-guide-appear 380ms cubic-bezier(.2, .8, .25, 1.2) both;
	}
}
@keyframes section-guide-appear {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.55);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.coverage-days {
	display: grid;
	gap: 10px;
	margin-top: 12px;
	max-height: 24rem;
	overflow: auto;
}
.coverage-day {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: 5px 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}
.coverage-day details {
	grid-column: 1 / -1;
	overflow-wrap: anywhere;
}
.coverage-day details p {
	margin: 5px 0 0;
}

.admin-sections {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
}
.admin-sections a {
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--muted);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}
.admin-sections a:hover {
	background: color-mix(in srgb, var(--accent) 9%, var(--paper));
	color: var(--ink);
}
.admin-sections a[aria-current='location'] {
	background: color-mix(in srgb, var(--accent) 14%, var(--paper));
	color: var(--accent);
}
@media (max-width: 600px) {
	.admin-sections a {
		flex: 1 0 calc((100% - 12px) / 3);
		padding-inline: 8px;
	}
}
