:root {
	color-scheme: dark;
	--bg: #111316;
	--surface-1: #171a1f;
	--surface-2: #1d2127;
	--surface-3: #242a32;
	--border: #303640;
	--border-strong: #414957;
	--text: #f2f4f7;
	--text-secondary: #aeb6c2;
	--text-tertiary: #7f8998;
	--accent: #4daafc;
	--accent-hover: #72bcff;
	--accent-muted: rgba(77, 170, 252, 0.12);
	--success: #5cc88a;
	--warning: #e2b85b;
	--danger: #f27a7a;
	--focus: #75beff;
	--shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
	--radius-small: 4px;
	--radius-medium: 8px;
	--radius-large: 12px;
	--sidebar-width: 268px;
	--content-max: 1480px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg);
}

body {
	margin: 0;
	min-width: 320px;
	background:
		radial-gradient(circle at 76% -12%, rgba(77, 170, 252, 0.08), transparent 34rem),
		var(--bg);
	color: var(--text);
	line-height: 1.5;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
select {
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

button {
	color: inherit;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 0;
	font-size: 0.95rem;
	font-weight: 650;
}

h2 {
	margin-bottom: 6px;
	font-size: clamp(1.65rem, 3vw, 2.4rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

h3 {
	margin-bottom: 4px;
	font-size: 1rem;
	line-height: 1.3;
}

.skip-link {
	position: fixed;
	z-index: 100;
	top: 8px;
	left: 8px;
	padding: 8px 12px;
	border-radius: var(--radius-small);
	background: var(--accent);
	color: #06111a;
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

.app-header {
	position: sticky;
	z-index: 20;
	top: 0;
	display: flex;
	min-height: 68px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 24px;
	border-bottom: 1px solid var(--border);
	background: rgba(17, 19, 22, 0.92);
	backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.page-heading,
.panel-heading.horizontal,
.inventory-toolbar,
.inventory-summary,
.dialog-header,
.dialog-footer {
	display: flex;
	align-items: center;
}

.brand {
	min-width: 0;
}

.header-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.button {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid transparent;
	border-radius: var(--radius-small);
	cursor: pointer;
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
}

.button-primary {
	background: var(--accent);
	color: #05121d;
}

.button-primary:hover {
	background: var(--accent-hover);
}

.button-secondary {
	border-color: var(--border-strong);
	background: transparent;
	color: var(--text-secondary);
}

.button-secondary:hover {
	border-color: #596475;
	background: var(--surface-2);
	color: var(--text);
}

.button-danger {
	border-color: rgba(242, 122, 122, 0.45);
	background: rgba(242, 122, 122, 0.08);
	color: var(--danger);
}

.button-danger:hover {
	background: rgba(242, 122, 122, 0.16);
}

.app-shell {
	display: grid;
	min-height: calc(100vh - 68px);
	grid-template-columns: var(--sidebar-width) 8px minmax(0, 1fr);
}

.sidebar {
	position: sticky;
	top: 68px;
	display: flex;
	height: calc(100vh - 68px);
	flex-direction: column;
	gap: 24px;
	overflow-y: auto;
	padding: 24px 18px;
	background: rgba(23, 26, 31, 0.64);
}

.sidebar-resizer {
	position: relative;
	z-index: 2;
	cursor: col-resize;
	touch-action: none;
}

.sidebar-resizer::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 3px;
	width: 1px;
	background: var(--border);
	content: '';
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.is-resizing-sidebar .sidebar-resizer::before {
	left: 2px;
	width: 3px;
	background: var(--accent);
}

.sidebar-resizer:focus-visible {
	outline: none;
}

.is-resizing-sidebar {
	cursor: col-resize;
	user-select: none;
}

.supporting-text {
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.82rem;
}

.section-nav {
	display: grid;
	gap: 4px;
}

.nav-item {
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--radius-small);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	text-align: left;
}

.nav-item:hover {
	background: var(--surface-2);
	color: var(--text);
}

.nav-item.active {
	background: var(--accent-muted);
	color: var(--accent-hover);
}

.main-content {
	min-width: 0;
	padding: clamp(24px, 4vw, 52px);
}

.view {
	width: min(100%, var(--content-max));
	margin: 0 auto;
}

.view[hidden] {
	display: none;
}

.page-heading {
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.page-heading > div {
	min-width: 0;
}

.page-heading p:last-child {
	max-width: 720px;
	margin-bottom: 0;
	color: var(--text-secondary);
}

.heading-with-tooltip,
.label-with-tooltip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.heading-with-tooltip h2,
.heading-with-tooltip h3 {
	margin-bottom: 0;
}

.tooltip-trigger {
	position: relative;
	display: inline-grid;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--text-tertiary);
	cursor: help;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1;
}

.tooltip-trigger::after {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: 0;
	width: min(280px, calc(100vw - 40px));
	padding: 10px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-medium);
	background: var(--surface-3);
	box-shadow: var(--shadow);
	color: var(--text);
	content: attr(data-tooltip);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	text-transform: none;
	visibility: hidden;
}

.tooltip-trigger:hover,
.tooltip-trigger:focus {
	border-color: var(--accent);
	color: var(--accent);
}

.tooltip-trigger:hover::after,
.tooltip-trigger:focus::after {
	opacity: 1;
	visibility: visible;
}

.table-wrap .tooltip-trigger::after {
	right: 0;
	left: auto;
}

.notice {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 12px;
	margin-bottom: 24px;
	padding: 14px 16px;
	border: 1px solid rgba(77, 170, 252, 0.28);
	border-radius: var(--radius-medium);
	background: rgba(77, 170, 252, 0.07);
}

.notice.neutral {
	border-color: var(--border);
	background: var(--surface-1);
}

.notice-icon {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: var(--accent-muted);
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
}

.notice p {
	margin: 2px 0 0;
	color: var(--text-secondary);
	font-size: 0.86rem;
}

.panel {
	border: 1px solid var(--border);
	border-radius: var(--radius-large);
	background: linear-gradient(145deg, rgba(29, 33, 39, 0.9), rgba(23, 26, 31, 0.9));
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
	gap: 16px;
	margin-bottom: 16px;
}

.panel {
	padding: 20px;
}

.panel-heading {
	margin-bottom: 18px;
}

.panel-heading.horizontal {
	justify-content: space-between;
	gap: 16px;
}

.audit-path {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.audit-path li {
	position: relative;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	padding-bottom: 18px;
}

.audit-path li:not(:last-child)::before {
	position: absolute;
	top: 26px;
	bottom: 0;
	left: 13px;
	width: 1px;
	background: var(--border);
	content: "";
}

.audit-path li:last-child {
	padding-bottom: 0;
}

.step-number {
	position: relative;
	z-index: 1;
	display: grid;
	width: 27px;
	height: 27px;
	place-items: center;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: var(--surface-1);
	color: var(--text-secondary);
	font-size: 0.7rem;
	font-weight: 700;
}

.audit-path p {
	margin: 3px 0 0;
	color: var(--text-secondary);
	font-size: 0.82rem;
}

.review-list {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.review-item {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid transparent;
	border-radius: var(--radius-medium);
	background: var(--surface-2);
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.review-item:hover {
	border-color: var(--border-strong);
}

.review-item strong,
.review-item span {
	display: block;
}

.review-item strong {
	margin-bottom: 2px;
	font-size: 0.84rem;
}

.review-item span {
	overflow: hidden;
	color: var(--text-tertiary);
	font-size: 0.72rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 600;
}

.text-button:hover {
	color: var(--accent-hover);
	text-decoration: underline;
}

.category-strip {
	display: grid;
	grid-template-columns: repeat(7, minmax(120px, 1fr));
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.category-strip-item {
	min-width: 120px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.category-strip-item strong,
.category-strip-item span {
	display: block;
}

.category-strip-item strong {
	margin-bottom: 10px;
	font-size: 0.78rem;
}

.category-strip-item span {
	color: var(--accent);
	font-size: 1.25rem;
	font-weight: 700;
}

.inventory-toolbar {
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.inventory-toolbar label {
	min-width: 190px;
	flex: 1 1 190px;
}

.inventory-toolbar .search-field {
	flex-basis: 280px;
}

input,
select,
textarea {
	width: 100%;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-small);
	background: #111419;
	color: var(--text);
}

input,
select {
	min-height: 36px;
	padding: 7px 10px;
}

textarea {
	min-height: 72px;
	padding: 9px 10px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: #6f7988;
}

.inventory-summary {
	justify-content: space-between;
	padding: 14px 2px 10px;
	color: var(--text-tertiary);
	font-size: 0.8rem;
}

.inventory-summary-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
}

table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(23, 26, 31, 0.72);
	font-size: 0.8rem;
}

th,
td {
	padding: 12px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--surface-2);
	color: var(--text-tertiary);
	font-size: 0.68rem;
	letter-spacing: 0;
}

tbody tr:last-child td {
	border-bottom: 0;
}

tbody tr:hover {
	background: rgba(77, 170, 252, 0.04);
}

.component-cell {
	max-width: 250px;
}

.preview-cell {
	width: 196px;
	min-width: 196px;
}

.preview-shell {
	position: relative;
	display: grid;
	width: 180px;
	height: 112px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #0d0f12;
}

.preview-frame {
	width: 360px;
	height: 224px;
	border: 0;
	background: #0d0f12;
	pointer-events: none;
	transform: scale(0.5);
	transform-origin: top left;
}

.preview-trigger {
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 0.78rem;
}

.preview-trigger:hover {
	background: var(--accent-muted);
	color: var(--accent);
}

.preview-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 5px;
}

.preview-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-tertiary);
	cursor: pointer;
	font-size: 0.68rem;
	text-decoration: none;
}

.preview-link:hover {
	color: var(--accent);
	text-decoration: underline;
}

.inventory-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 16px;
}

.inventory-pagination[hidden] {
	display: none;
}

.inventory-pagination span {
	min-width: 96px;
	color: var(--text-secondary);
	font-size: 0.78rem;
	text-align: center;
}

.component-cell strong,
.component-cell span {
	display: block;
}

.component-cell strong {
	margin-bottom: 3px;
	color: var(--text);
}

.component-cell span {
	overflow: hidden;
	color: var(--text-tertiary);
	font-size: 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.understanding-cell {
	min-width: 260px;
	max-width: 440px;
	color: var(--text-secondary);
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 7px;
	border-radius: 999px;
	font-size: 0.68rem;
	line-height: 1.3;
	white-space: nowrap;
}

.tag {
	border: 1px solid var(--border-strong);
	color: var(--text-secondary);
}

.row-action {
	padding: 4px 7px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
}

.row-action:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.empty-state {
	padding: 56px 24px;
	text-align: center;
}

.empty-state p {
	color: var(--text-secondary);
}

.category-table {
	min-width: 780px;
}

.category-name-cell {
	width: 180px;
}

.category-purpose-cell {
	min-width: 220px;
	color: var(--text-secondary);
}

.category-examples-cell {
	min-width: 200px;
	color: var(--text-tertiary);
}

.category-record-count {
	width: 72px;
	text-align: center;
}

.findings-table {
	min-width: 900px;
}

.finding-title-cell {
	min-width: 220px;
}

.finding-evidence-cell {
	min-width: 190px;
	color: var(--text-tertiary);
}

.finding-evidence-link {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.finding-evidence-link:hover {
	text-decoration-thickness: 2px;
}

.finding-evidence-state {
	color: var(--text-tertiary);
	font-size: 0.85em;
}

.finding-importance-cell,
.finding-next-cell {
	min-width: 220px;
	color: var(--text-secondary);
}

.reference-page {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 100vh;
	margin: 0;
	background: var(--app-bg);
}

.reference-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}

.reference-header h1 {
	margin: 0;
	font-size: 1rem;
}

.reference-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reference-status {
	color: var(--text-tertiary);
	font-size: 0.8rem;
}

.reference-open-link {
	color: var(--accent);
	font-size: 0.8rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.reference-main {
	min-height: 0;
}

.reference-frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #0d0f12;
}

.summary-section + .summary-section {
	margin-top: 40px;
}

.summary-section-heading {
	margin-bottom: 12px;
}

.summary-section-heading h3 {
	margin-bottom: 4px;
}

.summary-section-heading p {
	max-width: 760px;
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.84rem;
}

.component-comparison-heading > div {
	min-width: 0;
}

.motion-component-comparison {
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.motion-component-comparison + .motion-component-comparison {
	margin-top: 20px;
}

.motion-verification-queue {
	margin-top: 20px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.motion-verification-queue-heading {
	margin-bottom: 16px;
}

.motion-verification-queue-heading h4,
.motion-verification-queue-heading p,
.motion-verification-item-heading h5,
.motion-verification-queue li > p {
	margin-top: 0;
}

.motion-verification-queue-heading h4 {
	margin-bottom: 4px;
	font-size: 0.95rem;
}

.motion-verification-queue-heading p {
	max-width: 760px;
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.84rem;
}

#source-preview-cards {
	margin-top: 20px;
}

.source-preview-badge {
	flex-shrink: 0;
	padding: 3px 8px;
	border: 1px solid rgba(226, 184, 91, 0.35);
	border-radius: var(--radius-small);
	color: var(--warning);
	font-size: 0.68rem;
	font-weight: 600;
}

.source-preview-citation {
	margin: 0;
	color: var(--text-tertiary);
	font-size: 0.7rem;
}

.source-motion-stage {
	position: relative;
	display: grid;
	min-height: 180px;
	align-content: center;
	justify-content: center;
	gap: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #181818;
	color: #cccccc;
}

.source-motion-voice {
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	padding: 24px;
}

.source-voice-composer {
	position: relative;
	width: 100%;
	max-width: 560px;
	height: 104px;
	overflow: hidden;
	border: 1px solid rgba(59, 161, 205, 0.9);
	border-radius: 14px;
	background: #191919;
	box-shadow: inset 0 0 0 1px rgba(67, 203, 187, 0.22);
	isolation: isolate;
}

.source-voice-composer::before {
	content: '';
	position: absolute;
	inset: -12%;
	background:
		radial-gradient(ellipse 30% 42% at 8% 18%, rgba(48, 193, 190, 0.5), transparent 72%),
		radial-gradient(ellipse 36% 40% at 92% 10%, rgba(67, 167, 224, 0.48), transparent 72%),
		radial-gradient(ellipse 34% 40% at 18% 96%, rgba(53, 151, 182, 0.42), transparent 72%),
		radial-gradient(ellipse 38% 36% at 82% 100%, rgba(42, 132, 222, 0.4), transparent 74%);
	filter: blur(10px);
	opacity: 0.78;
	transform: translate3d(-2%, -1%, 0) scale(1.02);
}

.source-voice-composer::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid rgba(72, 197, 209, 0.72);
	border-radius: inherit;
	box-shadow:
		inset 0 0 20px rgba(47, 185, 187, 0.16),
		inset 0 0 24px rgba(47, 132, 211, 0.12);
}

.source-voice-composer span {
	position: relative;
	z-index: 1;
	display: block;
	padding: 20px 24px;
	color: #696969;
	font-size: 20px;
}

.source-voice-composer i {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	box-shadow:
		inset 24px 0 28px rgba(47, 185, 187, 0.12),
		inset -24px 0 28px rgba(47, 132, 211, 0.12);
}

.source-preview-card.is-playing .source-voice-composer::before {
	animation: source-voice-rim 3.2s ease-in-out infinite alternate;
}

.source-motion-countdown {
	justify-content: stretch;
	padding: 28px;
}

.source-motion-countdown > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px;
	border: 1px solid #3a3a3a;
	border-radius: var(--radius-medium);
	background: #202020;
	font-size: 12px;
}

.source-motion-countdown > div span {
	color: var(--accent);
}

.source-motion-countdown > span {
	display: block;
	height: 2px;
	border-radius: var(--radius-circle);
	background: #333333;
}

.source-motion-countdown > span i {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
}

.source-preview-card.is-playing .source-motion-countdown > span i {
	animation: source-countdown 10s linear forwards;
}

.source-motion-image-glyph,
.source-motion-image-reveal,
.source-motion-image-status {
	place-items: center;
}

.source-motion-image-glyph {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 24px;
}

.source-image-glyph-content {
	display: grid;
	width: 100%;
	max-width: 320px;
	gap: 16px;
}

.source-image-glyph-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #969696;
	font-size: 13px;
	line-height: 20px;
}

.source-image-glyph-heading svg {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	fill: currentColor;
}

.source-image-glyph-band {
	position: relative;
	width: 100%;
	height: 50px;
	overflow: hidden;
	border-radius: 8px;
}

.source-image-glyph-band pre {
	position: absolute;
	inset: 0;
	margin: 0;
	color: rgba(204, 204, 204, 0.13);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 4px;
	line-height: 10px;
	white-space: pre;
}

.source-image-glyph-band .source-image-glyph-wave {
	color: #4b819c;
	-webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.35) 18%, #000 44%, #000 56%, rgba(0, 0, 0, 0.35) 82%, transparent);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 120px 100%;
	mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.35) 18%, #000 44%, #000 56%, rgba(0, 0, 0, 0.35) 82%, transparent);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: 120px 100%;
}

.source-preview-card.is-playing .source-image-glyph-wave {
	animation: source-image-glyph-wave 3s linear infinite;
}

.source-motion-image-status span {
	color: #969696;
	font-size: 12px;
}

.source-motion-image-reveal > div {
	position: relative;
	display: grid;
	width: min(72%, 260px);
	aspect-ratio: 16 / 9;
	place-items: center;
	overflow: hidden;
	border-radius: var(--radius-medium);
	background: linear-gradient(135deg, #17324d, #286f6c 48%, #b47c4b);
}

.source-motion-image-reveal span {
	position: relative;
	z-index: 1;
	font-size: 12px;
}

.source-motion-image-reveal i {
	position: absolute;
	inset: 0;
	background: #2a2a2a;
	transform: translateX(35%);
}

.source-preview-card.is-playing .source-motion-image-reveal i {
	animation: source-image-reveal 1.2s ease-out forwards;
}

.source-motion-image-status span {
	position: absolute;
	opacity: 0;
}

.source-motion-image-status span:first-child {
	opacity: 1;
}

.source-preview-card.is-playing .source-motion-image-status span {
	animation: source-status-phrase 4.5s linear infinite;
}

.source-preview-card.is-playing .source-motion-image-status span:nth-child(2) {
	animation-delay: 1.5s;
}

.source-preview-card.is-playing .source-motion-image-status span:nth-child(3) {
	animation-delay: 3s;
}

.motion-verification-queue ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding-left: 28px;
}

.motion-verification-queue li {
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface-2);
}

.motion-verification-queue li::marker {
	color: var(--text-tertiary);
	font-weight: 600;
}

.motion-verification-item-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.motion-verification-item-heading h5 {
	margin-bottom: 8px;
	font-size: 0.84rem;
}

.motion-verification-item-heading span {
	flex-shrink: 0;
	padding: 2px 6px;
	border: 1px solid rgba(226, 184, 91, 0.35);
	border-radius: var(--radius-small);
	color: var(--warning);
	font-size: 0.68rem;
	font-weight: 600;
}

.motion-verification-queue li > p {
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.78rem;
	line-height: 1.5;
}

.motion-component-comparison-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.motion-component-comparison-header h4,
.motion-component-comparison-header p {
	margin-top: 0;
}

.motion-component-comparison-header h4 {
	margin-bottom: 4px;
	font-size: 0.95rem;
}

.motion-component-comparison-header p {
	margin-bottom: 0;
	color: var(--text-secondary);
	font-size: 0.84rem;
}

.motion-component-comparison-header .component-explorer-reference {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin-top: 8px;
	font-size: 0.72rem;
}

.component-explorer-reference > span:first-child {
	color: var(--text-tertiary);
	font-weight: 600;
}

.component-explorer-reference a {
	color: var(--accent);
	text-decoration: none;
}

.component-explorer-reference a:hover {
	text-decoration: underline;
}

.component-explorer-reference a:focus-visible {
	outline: 1px solid var(--accent);
	outline-offset: 2px;
}

.component-explorer-reference em {
	color: var(--text-tertiary);
	font-style: normal;
}

.component-explorer-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.component-explorer-separator {
	color: var(--text-tertiary);
}

.audit-pixel-spinner {
	display: inline-grid;
	grid-template-columns: repeat(2, 2px);
	grid-template-rows: repeat(3, 2px);
	width: 16px;
	height: 16px;
	column-gap: 2px;
	row-gap: 2px;
	place-content: center;
	contain: layout style size paint;
	isolation: isolate;
	pointer-events: none;
	transform: translateZ(0);
}

.audit-pixel-spinner-grid {
	color: var(--accent);
}

.audit-pixel-spinner > i {
	display: block;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.28;
	transform: none;
}

.audit-pixel-spinner-grid > i:nth-child(5) {
	opacity: 1;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i {
	animation: audit-pixel-spinner-grid-cycle 1820ms steps(6, jump-none) infinite;
	opacity: 0;
	transform: translateY(-4px);
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(1) {
	animation-delay: 520ms;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(2) {
	animation-delay: 650ms;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(3) {
	animation-delay: 260ms;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(4) {
	animation-delay: 390ms;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(5) {
	animation-name: audit-pixel-spinner-grid-cycle-long;
}

.motion-component-comparison.is-playing .audit-pixel-spinner-grid > i:nth-child(6) {
	animation-name: audit-pixel-spinner-grid-cycle-short;
	animation-delay: 130ms;
}

.motion-component-evidence {
	margin: 20px 0 0;
	padding: 12px 14px;
	border-left: 2px solid var(--warning);
	border-radius: 0 var(--radius-small) var(--radius-small) 0;
	background: rgba(226, 184, 91, 0.08);
	color: var(--text-secondary);
}

.motion-component-evidence strong {
	color: var(--text);
}

.motion-component-evidence p {
	margin: 0;
}

.motion-component-evidence p + p {
	margin-top: 8px;
}

.motion-example-stack {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.motion-example-group {
	display: grid;
	gap: 16px;
	padding: 16px;
	border-radius: var(--radius-medium);
}

.motion-example-group-component {
	border: 1px solid var(--border-strong);
	background: var(--surface-2);
	box-shadow: inset 3px 0 0 var(--accent);
}

.motion-example-group-scenario {
	border: 1px solid var(--border);
	background: transparent;
}

.motion-example-group-heading {
	width: 100%;
	margin: 0 auto;
}

.motion-example-group-heading-action {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.motion-example-group-heading-action > div {
	min-width: 0;
}

.motion-example-group-heading-action .button {
	width: auto;
	flex-shrink: 0;
}

.motion-example-group-heading p,
.motion-example-group-heading h5 {
	margin: 0;
}

.motion-example-group-heading p {
	margin-bottom: 4px;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 600;
}

.motion-example-group-scenario .motion-example-group-heading p {
	color: var(--text-tertiary);
}

.motion-example-group-heading h5 {
	font-size: 0.88rem;
}

.live-motion-capture {
	display: grid;
	align-content: start;
	gap: 10px;
	width: 100%;
	margin: 0;
}

.live-motion-capture img,
.live-motion-capture video {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: #181818;
}

.live-motion-capture figcaption {
	color: var(--text-tertiary);
	font-size: 0.72rem;
	line-height: 1.5;
}

.live-motion-capture-strip {
	overflow: hidden;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #181818;
}

.live-motion-capture-strip img {
	width: auto;
	max-width: none;
	height: 22px;
	border: 0;
	border-radius: 0;
}

.live-motion-capture-composer img {
	aspect-ratio: 9.2 / 1;
	object-fit: cover;
}

.live-motion-capture-window img,
.live-motion-capture-window video {
	aspect-ratio: 16 / 9;
	object-fit: contain;
	object-position: center;
}

.motion-production-placeholder {
	display: grid;
	min-height: 220px;
	place-items: center;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-medium);
	color: var(--text-tertiary);
	font-size: 0.78rem;
}

.audit-chat-progress-example {
	display: grid;
	width: min(100%, 620px);
	gap: 20px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #181818;
	color: #cccccc;
}

.audit-chat-user-message {
	max-width: 78%;
	justify-self: end;
	padding: 8px 12px;
	border-radius: var(--radius-medium);
	background: #2b2d31;
	color: #e7e7e7;
	font-size: 13px;
	line-height: 1.45;
}

.audit-chat-response {
	display: grid;
	align-items: start;
}

.audit-chat-response-label {
	color: #e7e7e7;
	font-size: 12px;
	font-weight: 600;
}

.audit-chat-progress-row {
	margin: 8px 0 0;
	color: #969696;
	font-size: 12px;
}

.audit-chat-progress-text {
	background:
		linear-gradient(
			90deg,
			#969696 0%,
			#969696 30%,
			#e7e7e7 50%,
			#969696 70%,
			#969696 100%
		);
	background-position: 50% 0;
	background-size: 400% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.motion-component-comparison.is-playing .audit-chat-progress-text {
	animation: audit-chat-progress-shimmer 2s linear infinite;
}

.audit-agents-motion-case {
	display: grid;
	width: min(100%, 760px);
	grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #181818;
	color: #cccccc;
}

.audit-agents-case-sidebar {
	display: grid;
	align-content: start;
	gap: 2px;
	padding: 12px 8px;
	border-right: 1px solid #303030;
	background: #161616;
}

.audit-agents-case-title {
	padding: 4px 10px 10px;
	color: #e7e7e7;
	font-size: 13px;
}

.audit-agents-case-sidebar .session-list-example-row {
	min-height: 48px;
	padding: 6px 8px;
}

.session-list-example-row-selected {
	background: #252526;
}

.audit-agents-case-chat {
	display: grid;
	align-content: start;
	gap: 24px;
	min-height: 220px;
	padding: 20px;
}

.motion-scenario-evidence {
	display: grid;
	width: min(100%, 452px);
	gap: 10px;
	margin: 0 auto;
}

.motion-scenario-evidence video {
	display: block;
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #000000;
}

.motion-scenario-evidence figcaption {
	color: var(--text-secondary);
	font-size: 0.84rem;
	line-height: 1.5;
}

.motion-scenario-evidence figcaption strong {
	color: var(--text);
}

.session-list-situation {
	width: min(100%, 520px);
	margin: 0 auto;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: #181818;
	color: #cccccc;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.session-list-section-heading {
	display: flex;
	height: 32px;
	align-items: center;
	gap: 8px;
	padding: 0 8px;
	color: #cccccc;
	font-size: 12px;
}

.session-list-section-heading strong {
	flex: 1;
	font-weight: 600;
}

.session-list-section-heading > span:last-child {
	color: #969696;
}

.session-list-example-row {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	min-height: 54px;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: var(--radius-small);
}

.session-list-example-row-progress {
	background: rgba(77, 170, 252, 0.05);
}

.session-list-example-row > div {
	display: grid;
	min-width: 0;
	gap: 2px;
}

.session-list-example-row strong,
.session-list-example-row span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.session-list-example-row strong {
	color: #e7e7e7;
	font-size: 13px;
	font-weight: 400;
}

.session-list-example-row > div > span {
	color: #969696;
	font-size: 11px;
}

.session-list-example-row .audit-pixel-spinner {
	justify-self: center;
}

.session-list-static-icon {
	width: 7px;
	height: 7px;
	justify-self: center;
	border-radius: 50%;
	background: #8c8c8c;
}

.audit-session-title-shimmer {
	background:
		linear-gradient(
			90deg,
			#e7e7e7 0%,
			#e7e7e7 30%,
			#8c8c8c 50%,
			#e7e7e7 70%,
			#e7e7e7 100%
		);
	background-position: 50% 0;
	background-size: 400% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.motion-component-comparison.is-playing .audit-session-title-shimmer {
	animation: audit-session-title-shimmer 6s steps(90, jump-none) infinite;
}

@keyframes audit-pixel-spinner-grid-cycle {
	0% {
		opacity: 0;
		transform: translateY(-4px);
	}
	9.34%, 57.14% {
		opacity: 1;
		transform: translateY(0);
	}
	66.48%, 100% {
		opacity: 0;
		transform: translateY(7px);
	}
}

@keyframes audit-pixel-spinner-grid-cycle-long {
	0% {
		opacity: 0;
		transform: translateY(-4px);
	}
	9.34%, 64.29% {
		opacity: 1;
		transform: translateY(0);
	}
	73.63%, 100% {
		opacity: 0;
		transform: translateY(7px);
	}
}

@keyframes audit-pixel-spinner-grid-cycle-short {
	0% {
		opacity: 0;
		transform: translateY(-4px);
	}
	9.34%, 50% {
		opacity: 1;
		transform: translateY(0);
	}
	59.34%, 100% {
		opacity: 0;
		transform: translateY(7px);
	}
}

@keyframes audit-session-title-shimmer {
	0% {
		background-position: 120% 0;
	}

	50%,
	100% {
		background-position: -120% 0;
	}
}

@keyframes audit-chat-progress-shimmer {
	0% {
		background-position: 120% 0;
	}

	100% {
		background-position: -120% 0;
	}
}

@keyframes source-voice-rim {
	0% {
		filter: blur(10px) saturate(0.9);
		opacity: 0.56;
		transform: translate3d(-6%, -4%, 0) scale(1.02);
	}

	50% {
		filter: blur(8px) saturate(1.18);
		opacity: 0.94;
		transform: translate3d(5%, 2%, 0) scale(1.08);
	}

	100% {
		filter: blur(11px) saturate(1);
		opacity: 0.68;
		transform: translate3d(-3%, 6%, 0) scale(1.04);
	}
}

@keyframes source-countdown {
	from {
		width: 100%;
	}

	to {
		width: 0;
	}
}

@keyframes source-image-glyph-wave {
	from {
		-webkit-mask-position: -120px 0;
		mask-position: -120px 0;
	}

	to {
		-webkit-mask-position: calc(100% + 120px) 0;
		mask-position: calc(100% + 120px) 0;
	}
}

@keyframes source-image-reveal {
	from {
		opacity: 1;
		transform: translateX(0);
	}

	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

@keyframes source-status-phrase {
	0%, 28% {
		opacity: 1;
	}

	33%, 100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motion-component-comparison.is-playing .audit-pixel-spinner > i {
		animation: none;
		transform: none;
	}

	.motion-component-comparison.is-playing .audit-session-title-shimmer {
		animation: none;
	}

	.motion-component-comparison.is-playing .audit-chat-progress-text {
		animation: none;
	}

	.source-preview-card.is-playing * {
		animation: none !important;
	}
}

@media (max-width: 760px) {
	.motion-component-comparison-header {
		align-items: stretch;
		flex-direction: column;
	}

	.motion-example-stack {
		grid-template-columns: 1fr;
	}

	.motion-verification-queue ol {
		grid-template-columns: 1fr;
	}

	.audit-agents-motion-case {
		grid-template-columns: 1fr;
	}

	.audit-agents-case-sidebar {
		border-right: 0;
		border-bottom: 1px solid #303030;
	}
}

.principles-heading {
	margin-bottom: 16px;
}

.principles-reference-heading {
	margin-bottom: 12px;
}

.principles-reference-heading h3,
.principles-reference-heading p {
	margin: 0;
}

.principles-reference-heading h3 {
	font-size: 1rem;
}

.principles-reference-heading p {
	margin-top: 2px;
	color: var(--text-secondary);
	font-size: 0.8rem;
}

.principle-buckets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.principle-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

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

.principle-bucket-title {
	margin: 0 0 8px;
	font-size: 0.9rem;
}

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

.principle-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
	align-items: baseline;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.principle-card h5 {
	grid-row: 1;
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.3;
}

.principle-card > p {
	grid-row: 2;
	max-width: 640px;
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.74rem;
	line-height: 1.4;
}

.principles-connection {
	margin-top: 24px;
}

.principles-connection p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.8rem;
}

.principles-connection a {
	color: var(--accent);
	text-underline-offset: 3px;
}

.principles-connection a:hover {
	color: var(--accent-hover);
}

.next-steps-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: next-step;
}

.next-steps-list li {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
	counter-increment: next-step;
}

.next-steps-list li::before {
	color: var(--accent);
	content: counter(next-step, decimal-leading-zero);
	font-size: 0.72rem;
	font-weight: 700;
}

.next-steps-list span {
	color: var(--text-secondary);
	font-size: 0.78rem;
}

.questions-table {
	min-width: 900px;
	table-layout: fixed;
}

.questions-table th:nth-child(1) {
	width: 28%;
}

.questions-table th:nth-child(2) {
	width: 42%;
}

.questions-table th:nth-child(3) {
	width: 18%;
}

.questions-table th:nth-child(4) {
	width: 12%;
}

.question-purpose-cell {
	white-space: normal;
}

.question-text-cell {
	color: var(--text);
	line-height: 1.45;
}

.question-component-cell {
	overflow-wrap: anywhere;
	color: var(--text-tertiary);
}

.question-action-cell {
	white-space: nowrap;
}

.overlap-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 20px;
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.overlap-scope {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 16px;
	padding: 10px 12px;
	border: 1px solid rgba(226, 184, 91, 0.5);
	border-radius: var(--radius-small);
	background: rgba(226, 184, 91, 0.06);
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.overlap-scope strong {
	flex: 0 0 auto;
	color: var(--warning);
}

.overlap-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.overlap-legend-swatch {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	border-radius: 2px;
}

.overlap-legend-swatch-confirmed {
	border: 1px solid var(--success);
}

.overlap-legend-swatch-production {
	background: var(--success);
}

.overlap-legend-swatch-candidate {
	border: 1px dashed var(--warning);
}

.overlap-board {
	display: grid;
	gap: 16px;
}

.overlap-scenario {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-medium);
	background: var(--surface-1);
}

.overlap-scenario-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid var(--border);
}

.overlap-scenario-header h3 {
	margin-bottom: 2px;
}

.overlap-count {
	color: var(--text-tertiary);
	font-size: 0.72rem;
}

.overlap-observation {
	max-width: 520px;
	margin: 6px 0 0;
	color: var(--text-secondary);
	font-size: 0.72rem;
}

.overlap-validation-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--text-secondary);
	font-size: 0.68rem;
}

.overlap-validation-meta div {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px;
	min-width: 0;
}

.overlap-validation-meta div:nth-child(n + 3) {
	flex-basis: 100%;
}

.overlap-validation-meta dt {
	color: var(--text-tertiary);
	font-weight: 600;
}

.overlap-validation-meta dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.overlap-verification {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: var(--radius-small);
	font-size: 0.68rem;
}

.overlap-verification-confirmed {
	border: 1px solid rgba(92, 200, 138, 0.42);
	color: var(--success);
}

.overlap-verification-production {
	background: rgba(92, 200, 138, 0.12);
	color: var(--success);
}

.overlap-verification-candidate {
	border: 1px dashed rgba(224, 178, 77, 0.72);
	color: var(--warning);
}

.overlap-timeline-scroll {
	overflow-x: auto;
}

.overlap-timeline {
	min-width: 800px;
	padding: 12px 16px 16px;
}

.overlap-recorded-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.overlap-analysis {
	min-width: 0;
	border-right: 1px solid var(--border);
}

.overlap-scenario-recorded .overlap-timeline {
	position: relative;
	min-width: 0;
}

.overlap-scenario-recorded .overlap-axis,
.overlap-scenario-recorded .overlap-lane {
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 8px;
}

.overlap-scenario-recorded .overlap-scenario-header {
	flex-direction: column;
}

.overlap-scenario-recorded .overlap-scenario-header > div {
	min-width: 0;
}

.overlap-scenario-recorded .overlap-validation-meta {
	display: grid;
	grid-template-columns: 1fr;
}

.overlap-scenario-recorded .overlap-validation-meta div,
.overlap-scenario-recorded .overlap-validation-meta div:nth-child(n + 3) {
	grid-template-columns: max-content minmax(0, 1fr);
}

.overlap-scenario-recorded .overlap-verification {
	align-self: flex-start;
}

.overlap-playhead {
	position: absolute;
	z-index: 3;
	top: 36px;
	bottom: 16px;
	width: 1px;
	background: rgba(242, 244, 247, 0.72);
	pointer-events: none;
}

.overlap-playhead i {
	position: absolute;
	top: -5px;
	left: 50%;
	width: 9px;
	height: 9px;
	border: 2px solid var(--surface-1);
	border-radius: 50%;
	background: var(--text);
	box-shadow: 0 0 0 2px rgba(77, 170, 252, 0.38);
	transform: translateX(-50%);
}

.overlap-recording {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 16px;
	flex-direction: column;
	gap: 12px;
	background: var(--surface-2);
}

.overlap-recording-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.overlap-recording-header > div {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.overlap-recording-kicker {
	color: var(--success);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.overlap-recording-header strong {
	overflow: hidden;
	font-size: 0.78rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.overlap-recording-toggle {
	flex: 0 0 auto;
}

.overlap-recording video {
	display: block;
	width: 100%;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-small);
	aspect-ratio: 16 / 9;
	background: #090b0d;
	object-fit: cover;
}

.overlap-recording figcaption {
	color: var(--text-tertiary);
	font-size: 0.68rem;
	line-height: 1.45;
}

.overlap-recording-summary {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface-1);
}

.overlap-recording-summary strong {
	font-size: 0.75rem;
	font-weight: 600;
}

.overlap-recording-summary ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: var(--text-secondary);
	font-size: 0.68rem;
	list-style: none;
}

.overlap-recording-summary li {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 8px;
}

.overlap-recording-summary span {
	color: var(--text-tertiary);
}

.motion-coverage-section {
	margin-top: 28px;
}

.summary-section-heading p {
	margin: 4px 0 0;
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.coverage-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.coverage-metric {
	display: grid;
	gap: 2px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface-1);
}

.coverage-metric strong {
	font-size: 1rem;
}

.coverage-metric span,
.coverage-trigger {
	color: var(--text-tertiary);
	font-size: 0.68rem;
}

.coverage-table {
	min-width: 1260px;
}

.coverage-table th:nth-child(1) {
	width: 10%;
}

.coverage-table th:nth-child(2) {
	width: 18%;
}

.coverage-table th:nth-child(3) {
	width: 13%;
}

.coverage-table th:nth-child(4) {
	width: 18%;
}

.coverage-table th:nth-child(5),
.coverage-table th:nth-child(6) {
	width: 12%;
}

.coverage-table td {
	vertical-align: top;
}

.coverage-table code {
	overflow-wrap: anywhere;
	color: var(--text-secondary);
	font-size: 0.68rem;
}

.coverage-trigger {
	display: block;
	margin-top: 3px;
	line-height: 1.35;
}

.coverage-status {
	display: inline-block;
	padding: 2px 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface-2);
	font-size: 0.68rem;
	line-height: 1.35;
}

@media (max-width: 900px) {
	.coverage-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.overlap-recorded-layout {
		grid-template-columns: 1fr;
	}

	.overlap-analysis {
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}
}

.overlap-axis,
.overlap-lane {
	display: grid;
	grid-template-columns: 140px minmax(620px, 1fr);
	gap: 12px;
}

.overlap-axis {
	align-items: end;
	margin-bottom: 8px;
}

.overlap-axis-phases {
	position: relative;
	height: 20px;
	border-bottom: 1px solid var(--border);
	color: var(--text-tertiary);
	font-size: 0.68rem;
}

.overlap-axis-phases span {
	position: absolute;
	bottom: 4px;
	transform: translateX(-50%);
	white-space: nowrap;
}

.overlap-axis-phases span:first-child {
	transform: none;
}

.overlap-axis-phases span:last-child {
	transform: translateX(-100%);
}

.overlap-lane {
	align-items: stretch;
	padding: 4px 0;
}

.overlap-lane-label {
	align-self: start;
	padding-top: 4px;
	color: var(--text-secondary);
	font-size: 0.72rem;
}

.overlap-track {
	position: relative;
	min-height: calc(var(--motion-row-count) * 32px);
	overflow: hidden;
	border-radius: var(--radius-small);
	background:
		linear-gradient(to right, transparent calc(25% - 1px), var(--border) 25%, transparent calc(25% + 1px)),
		linear-gradient(to right, transparent calc(50% - 1px), var(--border) 50%, transparent calc(50% + 1px)),
		linear-gradient(to right, transparent calc(75% - 1px), var(--border) 75%, transparent calc(75% + 1px)),
		var(--surface-2);
}

.overlap-motion {
	position: absolute;
	height: 24px;
	padding: 3px 8px;
	overflow: hidden;
	border-radius: var(--radius-small);
	color: #0d1117;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.overlap-motion-sessions-list {
	background: var(--warning);
}

.overlap-motion-session-chat {
	background: var(--accent-hover);
}

.overlap-motion-editor {
	background: var(--success);
}

.overlap-motion-details {
	background: #c99cff;
}

.overlap-motion-panel-terminal {
	background: #78d6df;
}

.overlap-empty {
	position: absolute;
	top: 4px;
	left: 8px;
	color: var(--text-tertiary);
	font-size: 0.68rem;
}

.dialog {
	width: min(860px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-large);
	background: var(--surface-1);
	color: var(--text);
	box-shadow: var(--shadow);
}

.dialog::backdrop {
	background: rgba(4, 6, 9, 0.72);
	backdrop-filter: blur(3px);
}

.dialog form {
	display: flex;
	max-height: calc(100vh - 32px);
	flex-direction: column;
}

.dialog-header,
.dialog-footer {
	flex: 0 0 auto;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
}

.dialog-header {
	border-bottom: 1px solid var(--border);
}

.dialog-header h2 {
	margin: 0;
	font-size: 1.2rem;
	letter-spacing: 0;
}

.dialog-body {
	display: grid;
	gap: 18px;
	overflow-y: auto;
	padding: 20px;
}

.dialog-footer {
	border-top: 1px solid var(--border);
}

.dialog-footer-spacer {
	flex: 1;
}

.icon-button {
	display: grid;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-small);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 1.3rem;
}

.icon-button:hover {
	border-color: var(--border);
	background: var(--surface-2);
	color: var(--text);
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

fieldset + fieldset {
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

legend {
	margin-bottom: 12px;
	padding: 0;
	font-weight: 650;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.form-grid label {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
	color: var(--text-secondary);
	font-size: 0.78rem;
}

.form-grid label strong {
	color: var(--accent);
}

.full-width {
	grid-column: 1 / -1;
}

.toast {
	position: fixed;
	z-index: 80;
	right: 20px;
	bottom: 20px;
	max-width: min(380px, calc(100vw - 40px));
	padding: 10px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-medium);
	background: var(--surface-3);
	box-shadow: var(--shadow);
	font-size: 0.82rem;
}

.toast[hidden] {
	display: none;
}

.visually-hidden {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (max-width: 1050px) {
	.next-steps-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.content-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 780px) {
	.app-header {
		position: static;
		align-items: flex-start;
	}

	.app-shell {
		display: block;
	}

	.sidebar-resizer {
		display: none;
	}

	.sidebar {
		position: static;
		width: 100%;
		height: auto;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

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

	.nav-item {
		width: auto;
		white-space: nowrap;
	}

	.main-content {
		padding: 24px 16px 40px;
	}

	.principle-buckets {
		grid-template-columns: 1fr;
		gap: 32px;
	}

}

@media (max-width: 580px) {
	.app-header,
	.page-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.header-actions {
		justify-content: stretch;
	}

	.header-actions .button {
		flex: 1;
	}

	.next-steps-list,
	.form-grid {
		grid-template-columns: 1fr;
	}

	.full-width {
		grid-column: auto;
	}

	.dialog-footer {
		flex-wrap: wrap;
	}

	.dialog-footer-spacer {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.overlap-playhead {
		display: none;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto;
	}
}
