:root {
	--bg: #030405;
	--panel: rgba(17, 19, 21, 0.94);
	--panel-soft: rgba(22, 25, 27, 0.86);
	--line: rgba(255, 255, 255, 0.11);
	--line-strong: rgba(255, 255, 255, 0.2);
	--text: #f7f7f4;
	--muted: #9da3a6;
	--muted-2: #6f777b;
	--lime: #d8ff00;
	--aqua: #42f5e8;
	--pink: #ff2f8f;
	--orange: #ff6a2a;
	--yellow: #ffe766;
	--blue: #5cb3ff;
	--radius: 8px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	overflow: hidden;
}

body {
	min-width: 320px;
}

button,
input {
	font: inherit;
}

button {
	color: inherit;
}

a,
a:visited {
	color: inherit;
	text-decoration: none;
}

canvas {
	display: block;
	vertical-align: top;
}

#canvas-container {
	position: relative;
	grid-row: 1;
	min-height: 0;
	z-index: 0;
	overflow: hidden;
	background:
		linear-gradient(rgba(20, 237, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(20, 237, 255, 0.055) 1px, transparent 1px),
		radial-gradient(circle at 52% 48%, rgba(66, 245, 232, 0.14), transparent 34%),
		#030405;
	background-size: 44px 44px, 44px 44px, auto, auto;
}

#canvas-container canvas {
	width: 100% !important;
	height: 100% !important;
}

#canvas-container::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 46%, transparent 0 25%, rgba(3, 4, 5, 0.18) 42%, rgba(3, 4, 5, 0.78) 76%),
		linear-gradient(90deg, rgba(3, 4, 5, 0.92), transparent 24%, transparent 72%, rgba(3, 4, 5, 0.92));
	pointer-events: none;
	z-index: 1;
}

#stats,
.dg.ac {
	display: none !important;
}

#loading {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: grid;
	place-items: center;
	background: #030405;
}

.spinner {
	display: flex;
	gap: 5px;
	width: 72px;
	height: 34px;
	justify-content: center;
	align-items: center;
}

.spinner > div {
	width: 7px;
	height: 100%;
	background: var(--lime);
	animation: stretchdelay 1.1s infinite ease-in-out;
}

.spinner .rect2 { animation-delay: -1s; }
.spinner .rect3 { animation-delay: -0.9s; }
.spinner .rect4 { animation-delay: -0.8s; }
.spinner .rect5 { animation-delay: -0.7s; }

@keyframes stretchdelay {
	0%, 40%, 100% { transform: scaleY(0.36); }
	20% { transform: scaleY(1); }
}

.app-shell {
	position: fixed;
	inset: 0;
	z-index: 5;
	display: grid;
	grid-template-rows: 72px 1fr;
	pointer-events: none;
}

.top-nav,
.left-panel,
.brain-stage-panel,
.right-panel,
.static,
.brain-chat-modal,
#arcontactus {
	pointer-events: auto;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 16px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 170px;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: #f7f7f4;
	color: #050607;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -1px;
}

.brand-copy strong {
	display: block;
	font-size: 15px;
	line-height: 1;
}

.brand-copy span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 18px;
	color: #c7cacc;
	font-size: 14px;
	font-weight: 650;
	white-space: nowrap;
}

.nav-links a.active {
	color: var(--text);
}

.new-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 20px;
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--lime);
	color: #050607;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.nav-spacer {
	flex: 1;
}

.search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(250px, 22vw);
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.045);
	color: var(--muted);
}

.search-box svg {
	width: 17px;
	height: 17px;
}

.search-box > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kbd {
	margin-left: auto;
	padding: 2px 7px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
	color: #b9bdc0;
	font-size: 12px;
}

.nav-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.045);
	font-weight: 800;
}

.user-status {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: radial-gradient(circle, #f7ff64 0 36%, #caff00 37% 52%, #ffffff 54% 67%, #292a44 70%);
	box-shadow: 0 0 16px rgba(216, 255, 0, 0.5);
}

.workspace {
	display: grid;
	grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr) minmax(340px, 0.98fr);
	gap: 24px;
	min-height: 0;
	padding: 24px 16px 88px;
	pointer-events: none;
}

.panel {
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(16px);
	overflow: hidden;
}

.left-panel,
.right-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.right-panel {
	overflow: auto;
}

.panel-scroll {
	min-width: 0;
	max-width: 100%;
	overflow: auto;
	padding: 28px 40px 26px;
}

.panel-scroll::-webkit-scrollbar,
.brain-chat-messages::-webkit-scrollbar {
	width: 7px;
}

.panel-scroll::-webkit-scrollbar-track,
.brain-chat-messages::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04);
}

.panel-scroll::-webkit-scrollbar-thumb,
.brain-chat-messages::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 8px;
}

.breadcrumb {
	margin-bottom: 28px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.breadcrumb strong {
	color: var(--text);
}

.hero-title {
	margin: 0;
	font-size: clamp(36px, 4vw, 56px);
	line-height: 0.96;
	letter-spacing: 0;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.lede {
	max-width: 650px;
	margin: 26px 0 30px;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.mode-tabs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	width: 100%;
	max-width: 100%;
	margin-bottom: 20px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.mode-tab {
	min-width: 0;
	height: 42px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	font-weight: 800;
	line-height: 1.15;
}

.mode-tab.active {
	background: var(--text);
	color: #050607;
}

.upload-card {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.028);
	overflow: hidden;
}

.upload-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 13px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.close-dot {
	width: 27px;
	height: 27px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted);
	cursor: pointer;
}

.drop-zone {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 260px;
	padding: 26px;
	background:
		linear-gradient(135deg, rgba(216, 255, 0, 0.14), rgba(66, 245, 232, 0.12)),
		radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.24), transparent 28%),
		#111416;
	cursor: pointer;
}

.drop-zone input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.drop-preview {
	position: relative;
	width: min(520px, 90%);
	min-height: 176px;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	background: rgba(6, 7, 8, 0.82);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.drop-preview.has-media {
	min-height: 250px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.drop-preview video,
.drop-preview img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.78;
}

.drop-preview.has-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.82));
}

.drop-preview > :not(video):not(img) {
	position: relative;
	z-index: 1;
}

.preview-top {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12px;
}

.preview-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 16px var(--lime);
}

.drop-preview h2 {
	margin: 30px 0 10px;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0;
}

.drop-preview p {
	margin: 0;
	color: var(--muted);
	line-height: 1.45;
}

.primary-cta {
	width: 100%;
	min-height: 58px;
	margin-top: 28px;
	border: 0;
	border-radius: 8px;
	background: var(--lime);
	color: #050607;
	cursor: pointer;
	font-size: 17px;
	font-weight: 900;
	box-shadow: 0 5px 0 rgba(141, 166, 0, 0.85);
}

.primary-cta:active {
	transform: translateY(2px);
	box-shadow: 0 3px 0 rgba(141, 166, 0, 0.85);
}

.research-note {
	margin: 16px auto 0;
	max-width: 460px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
}

.meta-card {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.meta-card h3,
.right-card h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.meta-stat {
	padding: 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.055);
}

.meta-stat strong {
	display: block;
	font-size: 22px;
}

.meta-stat span {
	color: var(--muted);
	font-size: 12px;
}

.brain-stage-panel {
	position: relative;
	min-height: 0;
	padding: 16px;
	pointer-events: auto;
}

.brain-stage-card {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	width: 100%;
	height: 100%;
	min-height: 560px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(7, 9, 11, 0.72);
	overflow: hidden;
}

.stage-hud {
	position: absolute;
	top: 14px;
	left: 50%;
	width: min(520px, 92%);
	transform: translateX(-50%);
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(4, 5, 6, 0.72);
	backdrop-filter: blur(12px);
	text-align: center;
	z-index: 2;
}

.stage-hud strong {
	display: block;
	font-size: 13px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.stage-hud span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.brain-badge {
	position: absolute;
	bottom: 48px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(4, 5, 6, 0.78);
	backdrop-filter: blur(10px);
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	z-index: 2;
	pointer-events: none;
}

.brain-status-bar {
	position: relative;
	grid-row: 2;
	z-index: 4;
	min-height: 32px;
	padding: 3px 10px;
	border-top: 1px solid rgba(216, 255, 0, 0.2);
	background: rgba(2, 4, 5, 0.92);
	color: rgba(216, 255, 0, 0.92);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
	letter-spacing: 0.04em;
	overflow: hidden;
	white-space: normal;
	overflow-wrap: anywhere;
	pointer-events: none;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 16px var(--lime);
}

.score-card {
	padding: 34px 40px 24px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
}

.potential-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.heat-scale {
	width: 215px;
	height: 8px;
	margin-top: 8px;
	background: linear-gradient(90deg, #f70000, #ff7a00, #fff27a);
}

.scale-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	color: #e5e5e5;
	font-size: 13px;
	font-weight: 900;
}

.potential-number {
	text-align: right;
	color: var(--muted);
	font-size: 15px;
}

.potential-number strong {
	display: block;
	color: var(--text);
	font-size: 32px;
	line-height: 1.05;
}

.potential-number span {
	color: var(--muted);
}

.micro-preview {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	align-items: end;
	margin-top: 78px;
}

.clip-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(216, 255, 0, 0.18), rgba(66, 245, 232, 0.1)),
		linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
		#293338;
	background-size: cover, 28px 100%, auto;
	background-position: center;
}

.clip-thumb video,
.clip-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.clip-thumb::after {
	content: attr(data-duration);
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.68);
	font-size: 12px;
	font-weight: 900;
}

.metric-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.metric {
	min-width: 0;
}

.metric label {
	display: block;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.25;
}

.metric strong {
	display: block;
	margin-top: 8px;
	font-size: 25px;
}

.right-card {
	margin: 16px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
}

.region-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.region {
	min-width: 0;
}

.region-wide {
	grid-column: 1 / -1;
}

.region-head {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 9px;
	font-weight: 850;
}

.region-head span {
	white-space: nowrap;
}

.bar {
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.bar > span {
	display: block;
	height: 100%;
	width: var(--value);
	border-radius: inherit;
	background: var(--lime);
}

.synthesis-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.synthesis-list li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	color: var(--muted);
}

.synthesis-list strong {
	color: var(--text);
	text-align: right;
}

.insight-copy {
	margin: 0;
	color: var(--muted);
	line-height: 1.45;
}

.chat-dock {
	position: fixed;
	left: 20px;
	bottom: 18px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 10px;
}

.static {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 47px;
	height: 47px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(15, 17, 19, 0.9);
	color: var(--text);
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(12px);
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.static:hover {
	transform: translateY(-2px);
	border-color: var(--lime);
	background: rgba(24, 27, 29, 0.94);
}

.static svg {
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
}

.static .chat-text {
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
}

.static.secondary {
	color: #d6dcdf;
}

#arcontactus {
	position: fixed;
	right: 20px;
	bottom: 18px;
	z-index: 20;
}

#arcontactus .arcu-button-icon {
	display: flex;
}

#arcontactus .tatic {
	width: 54px;
	height: 54px;
	padding: 0;
	border-color: var(--aqua);
	color: var(--aqua);
}

#arcontactus .tatic::before {
	content: "";
	width: 25px;
	height: 18px;
	border: 2px solid currentColor;
	border-radius: 999px;
}

#arcontactus .tatic::after {
	content: "";
	position: absolute;
	right: 15px;
	bottom: 14px;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(22deg);
}

.brain-chat-modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 76px 18px 18px;
	background: rgba(0, 0, 0, 0.46);
	backdrop-filter: blur(7px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.brain-chat-modal.active {
	opacity: 1;
	visibility: visible;
}

.brain-chat-container {
	width: min(480px, 100%);
	height: min(720px, 100%);
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: rgba(12, 14, 16, 0.98);
	box-shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
	overflow: hidden;
	transform: translateX(28px);
	transition: transform 0.22s ease;
}

.brain-chat-modal.active .brain-chat-container {
	transform: translateX(0);
}

.brain-chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.035);
}

.brain-avatar {
	width: 46px;
	height: 46px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: var(--lime);
	color: #050607;
}

.brain-info h3 {
	margin: 0;
	font-size: 16px;
}

.brain-status {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 14px var(--lime);
	animation: pulseDot 1.1s ease-in-out infinite;
}

@keyframes pulseDot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.75); }
}

.brain-chat-close {
	margin-left: auto;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted);
	cursor: pointer;
	font-size: 22px;
}

.chat-context {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
}

.context-pill {
	padding: 10px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.035);
}

.context-pill span {
	display: block;
	color: var(--muted);
	font-size: 11px;
}

.context-pill strong {
	display: block;
	margin-top: 3px;
	font-size: 14px;
}

.brain-chat-messages {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 16px;
}

.brain-message {
	max-width: 88%;
	animation: messageSlide 0.22s ease;
}

@keyframes messageSlide {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.brain-message.user {
	align-self: flex-end;
}

.brain-message.bot {
	align-self: flex-start;
}

.message-content {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
}

.brain-message.user .message-content {
	background: var(--lime);
	color: #050607;
	border-bottom-right-radius: 4px;
}

.brain-message.bot .message-content {
	background: rgba(255, 255, 255, 0.07);
	color: #f0f2f3;
	border: 1px solid var(--line);
	border-bottom-left-radius: 4px;
}

.neural-text .neural-glow {
	color: var(--lime);
}

.typing-indicator {
	display: flex;
	gap: 5px;
	padding: 6px 0;
}

.typing-indicator span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--lime);
	animation: typingBounce 1.2s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.24s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.12s; }

@keyframes typingBounce {
	0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
	40% { transform: scale(1); opacity: 1; }
}

.quick-prompts {
	display: flex;
	gap: 8px;
	padding: 0 16px 12px;
	overflow-x: auto;
}

.quick-prompts button {
	flex: 0 0 auto;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #d7dcdf;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
}

.brain-chat-input {
	display: flex;
	gap: 10px;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.035);
}

.brain-chat-input input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.42);
	color: var(--text);
	outline: none;
}

.brain-chat-input input:focus {
	border-color: var(--lime);
}

.brain-chat-input button {
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 8px;
	background: var(--lime);
	color: #050607;
	cursor: pointer;
	display: grid;
	place-items: center;
}

@media (max-width: 1240px) {
	.workspace {
		grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
	}

	.left-panel {
		order: 1;
	}

	.brain-stage-panel {
		grid-column: 1 / -1;
		order: 3;
	}

	.right-panel {
		order: 2;
	}
}

@media (max-width: 960px) {
	body {
		overflow: auto;
	}

	.app-shell {
		position: relative;
		min-height: 100vh;
		grid-template-rows: auto 1fr;
	}

	.top-nav {
		flex-wrap: wrap;
		gap: 12px;
		background: rgba(0, 0, 0, 0.86);
	}

	.nav-links,
	.search-box {
		display: none;
	}

	.workspace {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 100%;
		padding: 12px 12px 118px;
		gap: 16px;
		overflow-x: hidden;
	}

	.left-panel {
		order: 1;
	}

	.brain-stage-panel {
		order: 2;
		width: 100%;
		max-width: 100%;
		padding: 10px;
	}

	.right-panel {
		order: 3;
	}

	.left-panel,
	.right-panel {
		min-height: auto;
	}

	.left-panel {
		max-height: min(700px, 68svh);
		overflow: hidden;
	}

	.panel-scroll {
		overflow-x: hidden;
	}

	.brain-stage-card {
		height: auto;
		min-height: clamp(360px, 70vh, 620px);
	}

	#arcontactus {
		right: 18px;
		bottom: 18px;
	}

	.panel-scroll,
	.score-card {
		padding: 24px;
	}

	.micro-preview {
		grid-template-columns: 1fr;
		margin-top: 34px;
	}

	.metric-strip,
	.region-grid {
		grid-template-columns: 1fr;
	}

	.hero-title {
		font-size: 36px;
	}

	.lede {
		font-size: 16px;
	}
}

@media (max-width: 520px) {
	html,
	body {
		overflow-x: hidden;
	}

	.brand-copy,
	.nav-action,
	.top-nav .nav-action:last-of-type,
	.user-status,
	.static .chat-text {
		display: none;
	}

	.left-panel,
	.brain-stage-panel,
	.right-panel {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.panel {
		border-radius: 8px;
	}

	.drop-zone {
		min-height: 220px;
		padding: 18px;
	}

	.drop-preview {
		width: 100%;
		padding: 18px;
	}

	.drop-preview h2 {
		font-size: 24px;
	}

	.hero-title {
		font-size: 28px;
	}

	.panel-scroll,
	.score-card {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		padding: 20px;
	}

	.lede {
		font-size: 15px;
	}

	.left-panel {
		max-height: min(560px, 58svh);
	}

	.hero-title,
	.lede,
	.upload-card,
	.primary-cta,
	.research-note,
	.meta-card {
		width: 100%;
		max-width: 100%;
	}

	.brain-stage-panel {
		padding: 8px;
	}

	.brain-stage-card {
		min-height: clamp(340px, 64vh, 520px);
	}

	.stage-hud {
		top: 10px;
		right: 10px;
		left: 10px;
		width: auto;
		transform: none;
		padding: 10px 12px;
		border-radius: 8px;
	}

	.stage-hud strong {
		font-size: 11px;
	}

	.stage-hud span {
		font-size: 11px;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	.brain-badge {
		right: 10px;
		bottom: 44px;
		left: 10px;
		justify-content: center;
		transform: none;
		padding: 8px 10px;
		border-radius: 8px;
		font-size: 11px;
		line-height: 1.25;
		text-align: center;
		white-space: normal;
	}

	.brain-status-bar {
		padding: 0 8px;
		font-size: 9px;
		line-height: 12px;
		min-height: 28px;
	}

	.workspace {
		padding-bottom: 130px;
	}

	.chat-dock {
		left: 18px;
		bottom: 18px;
	}

	#arcontactus {
		right: 18px;
		bottom: 18px;
	}

	.drop-preview {
		width: 100%;
	}

	.mode-tab {
		min-height: 42px;
		height: auto;
		padding: 8px 6px;
		font-size: 12px;
		white-space: normal;
	}

	.meta-grid,
	.chat-context {
		grid-template-columns: 1fr;
	}

	.brain-chat-modal {
		align-items: stretch;
		padding: 12px;
	}

	.brain-chat-container {
		height: auto;
		min-height: calc(100vh - 24px);
	}
}
