:root {
	--ai-ink: #18304a;
	--ai-muted: #66778b;
	--ai-line: #dce5ef;
	--ai-surface: #ffffff;
	--ai-soft: #f5f8fc;
	--ai-blue: #2c81ff;
	--ai-blue-dark: #1768d1;
	--ai-blue-wash: #edf5ff;
	--ai-error: #a33128;
	--ai-error-wash: #fff3f1;
}

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	overscroll-behavior: none;
}

body.ai-page {
	color: var(--ai-ink);
	background: var(--ai-surface);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Microsoft YaHei", sans-serif;
}

#ai-app,
#ai-app * {
	box-sizing: border-box;
}

#ai-app [hidden] {
	display: none !important;
}

.ai-app {
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	margin: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	grid-template-columns: 276px minmax(0, 1fr);
	padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
	overflow: hidden;
	color: var(--ai-ink);
	background: var(--ai-surface);
	font-family: inherit;
}

.ai-app.uses-visual-viewport {
	position: fixed;
	top: var(--ai-visual-top, 0px);
	left: var(--ai-visual-left, 0px);
	width: var(--ai-visual-width, 100vw);
	height: var(--ai-visual-height, 100vh);
}

.ai-sidebar {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 18px 18px;
	background: #f6f9fd;
	border-right: 1px solid var(--ai-line);
}

.ai-sidebar-top {
	display: grid;
	gap: 24px;
}

.ai-sidebar-brand {
	min-height: 46px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ai-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ai-sidebar-brand:hover,
.ai-sidebar-bottom a:hover {
	color: var(--ai-blue-dark);
	text-decoration: none;
}

.ai-sidebar-brand img {
	width: 130px;
	max-height: 39px;
	object-fit: contain;
	object-position: left center;
}

.ai-new-chat,
.ai-sidebar-toggle,
.ai-send-button,
.ai-suggestions button,
.ai-session-button,
.ai-retry-button {
	min-width: 44px;
	min-height: 44px;
	font: inherit;
}

.ai-new-chat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 0 14px;
	border: 1px solid #bfd4ef;
	border-radius: 8px;
	color: #195da8;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.ai-new-chat:hover {
	border-color: var(--ai-blue);
	color: var(--ai-blue-dark);
	background: var(--ai-blue-wash);
}

.ai-new-chat svg,
.ai-sidebar-toggle svg,
.ai-context-icon svg,
.ai-empty-mark svg,
.ai-send-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.ai-history-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px;
	color: #64758a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
}

.ai-history-heading span:last-child {
	min-width: 24px;
	padding: 2px 7px;
	border-radius: 12px;
	color: #526a84;
	background: #e8eff7;
	font-size: 11px;
	text-align: center;
}

.ai-session-list {
	min-height: 0;
	display: grid;
	align-content: start;
	gap: 6px;
	overflow-x: hidden;
	overflow-y: auto;
}

.ai-session-empty {
	margin: 0;
	padding: 10px 5px;
	color: var(--ai-muted);
	font-size: 13px;
	line-height: 1.65;
}

.ai-session-button {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 7px;
	color: #43576e;
	background: transparent;
	font-size: 13px;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.ai-session-button:hover {
	background: #edf3fa;
}

.ai-session-button[aria-current="true"] {
	border-color: #d8e6f7;
	color: #15599f;
	background: #eaf3ff;
	font-weight: 600;
}

.ai-sidebar-bottom {
	margin-top: auto;
	display: grid;
	gap: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--ai-line);
}

.ai-sidebar-bottom a {
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 8px;
	border-radius: 6px;
	color: #52677f;
	font-size: 13px;
	text-decoration: none;
}

.ai-workspace {
	min-width: 0;
	max-width: 100%;
	min-height: 0;
	display: grid;
	grid-template-rows: auto auto auto minmax(0, 1fr) auto;
	background: #fff;
}

.ai-header {
	grid-row: 1;
	min-height: 78px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px clamp(18px, 3vw, 42px);
	border-bottom: 1px solid #e8edf3;
}

.ai-header-title {
	min-width: 0;
	flex: 1 1 0%;
	display: flex;
	align-items: center;
	gap: 13px;
}

.ai-header-title > div {
	min-width: 0;
	flex: 1 1 0%;
	overflow: hidden;
}

.ai-eyebrow,
.ai-empty-kicker {
	margin: 0 0 4px;
	color: #2c81ff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .13em;
}

.ai-header h1 {
	margin: 0;
	color: #173654;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.3;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.ai-products-link {
	min-height: 44px;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	padding: 0 13px;
	border: 1px solid #d5e1ee;
	border-radius: 7px;
	color: #285e92;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ai-products-link:hover {
	border-color: #98bee9;
	color: #15599f;
	background: #f4f9ff;
	text-decoration: none;
}

.ai-sidebar-toggle {
	width: 44px;
	height: 44px;
	display: none;
	place-items: center;
	padding: 0;
	border: 1px solid #d9e3ee;
	border-radius: 7px;
	color: #365977;
	background: #fff;
}

.ai-context-strip {
	grid-row: 2;
	min-width: 0;
	min-height: 66px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px clamp(18px, 3vw, 42px) 0;
	padding: 10px 13px;
	border: 1px solid #d7e7f9;
	border-radius: 9px;
	background: #f4f9ff;
}

.ai-context-icon {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: #2370bd;
	background: #e2f0ff;
}

.ai-context-icon svg {
	width: 19px;
	height: 19px;
}

.ai-context-copy {
	min-width: 0;
	flex: 1 1 0%;
	overflow: hidden;
	display: grid;
	gap: 2px;
}

.ai-context-copy > span,
.ai-context-copy small {
	color: #687b90;
	font-size: 11px;
}

.ai-context-copy strong {
	color: #173d62;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.ai-context-copy small {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.ai-context-open,
.ai-context-switch {
	min-height: 44px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	border-radius: 6px;
	color: #1c67ad;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.ai-context-open:hover,
.ai-context-switch:hover {
	color: #0f4b89;
	background: #e5f1ff;
	text-decoration: none;
}

.ai-status {
	grid-row: 3;
	min-height: 32px;
	margin: 0;
	padding: 9px clamp(18px, 3vw, 42px) 0;
	color: #667b91;
	font-size: 12px;
	line-height: 1.5;
}

.ai-status.is-error {
	color: var(--ai-error);
}

.ai-transcript-scroll {
	grid-row: 4;
	min-width: 0;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ai-transcript {
	width: min(calc(100% - 48px), 850px);
	max-width: 100%;
	min-width: 0;
	min-height: 100%;
	margin: 0 auto;
	padding: 28px 0 38px;
}

.ai-empty-state {
	width: min(100%, 670px);
	margin: clamp(26px, 7vh, 76px) auto 36px;
	text-align: center;
}

.ai-empty-mark {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	margin: 0 auto 18px;
	border: 1px solid #d7e8fa;
	border-radius: 16px;
	color: #2876c6;
	background: #f2f8ff;
}

.ai-empty-mark svg {
	width: 30px;
	height: 30px;
	stroke-width: 1.4;
}

.ai-empty-kicker {
	margin-bottom: 8px;
}

.ai-empty-state h2 {
	margin: 0;
	color: #173654;
	font-size: clamp(20px, 2.4vw, 27px);
	font-weight: 650;
	line-height: 1.4;
}

.ai-empty-description {
	max-width: 590px;
	margin: 11px auto 0;
	color: #65788e;
	font-size: 14px;
	line-height: 1.8;
}

.ai-suggestions {
	margin-top: 25px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	text-align: left;
}

.ai-suggestions button {
	min-width: 0;
	min-height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 9px;
	padding: 12px;
	border: 1px solid #dfe8f1;
	border-radius: 8px;
	color: #3e5975;
	background: #fff;
	font-size: 12px;
	line-height: 1.55;
	text-align: left;
	transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.ai-suggestions button span {
	flex: 0 0 auto;
	color: #2c81ff;
	font-size: 15px;
}

.ai-suggestions button:hover:not(:disabled) {
	border-color: #a8c9ec;
	color: #15599f;
	background: #f5faff;
}

.ai-message {
	max-width: 100%;
	margin: 0 0 25px;
	line-height: 1.75;
}

.ai-message-user {
	width: fit-content;
	max-width: min(82%, 650px);
	margin-left: auto;
	padding: 12px 16px;
	border: 1px solid #dce6f0;
	border-radius: 12px 12px 3px 12px;
	color: #23415d;
	background: #f4f7fb;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ai-message-assistant {
	padding-left: 48px;
}

.ai-message-label {
	margin: 0 0 7px;
	color: #61758b;
	font-size: 12px;
	font-weight: 700;
}

.ai-message-assistant .ai-message-label::before {
	content: "AI";
	width: 27px;
	height: 27px;
	position: absolute;
	margin-left: -42px;
	display: grid;
	place-items: center;
	border: 1px solid #d2e3f5;
	border-radius: 8px;
	color: #1e68ae;
	background: #eef6ff;
	font-size: 10px;
	font-weight: 700;
}

.ai-message-content {
	min-width: 0;
	color: #2c3f52;
	font-size: 14px;
	line-height: 1.8;
	overflow-wrap: anywhere;
	word-break: normal;
}

.ai-message-content > :first-child { margin-top: 0; }
.ai-message-content > :last-child { margin-bottom: 0; }
.ai-message-content p { margin: 0 0 12px; color: inherit; font-size: inherit; line-height: inherit; }
.ai-message-content h1,
.ai-message-content h2,
.ai-message-content h3 { margin: 18px 0 8px; color: #1c3e5e; font-weight: 650; line-height: 1.4; }
.ai-message-content h1 { font-size: 20px; }
.ai-message-content h2 { font-size: 18px; }
.ai-message-content h3 { font-size: 16px; }
.ai-message-content ul,
.ai-message-content ol { margin: 0 0 12px; padding-left: 23px; }
.ai-message-content li { margin: 4px 0; list-style: disc; }
.ai-message-content ol li { list-style: decimal; }
.ai-message-content strong { color: #1e3c58; }
.ai-message-content code { padding: 2px 5px; border-radius: 4px; color: #24527e; background: #eef3f8; font-family: Consolas, "Cascadia Code", monospace; font-size: .93em; }
.ai-message-content pre { max-width: 100%; margin: 10px 0 14px; padding: 13px 15px; overflow-x: auto; border: 1px solid #223446; border-radius: 7px; color: #f4f7fb; background: #1c2936; font-family: Consolas, "Cascadia Code", monospace; font-size: 12px; line-height: 1.65; white-space: pre; }
.ai-message-content pre code { padding: 0; color: inherit; background: transparent; }

.ai-source-list {
	margin-top: 14px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.ai-source-card {
	min-width: 0;
	max-width: 100%;
	min-height: 66px;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #dce7f2;
	border-radius: 7px;
	color: #2a557f;
	background: #fbfdff;
	text-decoration: none;
}

.ai-source-card:hover {
	border-color: #a9c9ec;
	color: #185b9f;
	background: #f2f8ff;
	text-decoration: none;
}

.ai-product-image {
	width: 64px;
	height: 56px;
	min-width: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid #e3ebf4;
	border-radius: 5px;
	background: #f5f8fc;
}

.ai-product-image-content {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.ai-product-image-placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 4px;
	color: #66778b;
	background: #f5f8fc;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
}

.ai-source-copy {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px;
}

.ai-source-copy strong,
.ai-source-copy span {
	min-width: 0;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.ai-source-copy strong { color: #244e76; font-size: 12px; font-weight: 650; }
.ai-source-copy span { color: #71839a; font-size: 11px; }
.ai-source-copy .ai-source-order-no {
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: anywhere;
	color: #526a82;
	font-size: 10px;
}
.ai-source-arrow { color: #2c81ff; font-size: 15px; }

.ai-comparison {
	min-width: 0;
	max-width: 100%;
	margin-top: 14px;
}

.ai-comparison-note,
.ai-comparison-truncation,
.ai-comparison-empty {
	margin: 0 0 8px;
	color: #536a82;
	font-size: 12px;
	line-height: 1.6;
}

.ai-comparison-truncation {
	margin: 8px 0 0;
	padding: 9px 11px;
	border-left: 3px solid #8ab5e6;
	color: #365a7d;
	background: #f3f8fe;
}

.ai-comparison-empty {
	margin: 8px 0 0;
	padding: 12px;
	border: 1px solid var(--ai-line);
	border-radius: 6px;
	background: #fbfdff;
}

.ai-comparison-scroll {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #dce5ef;
	border-radius: 7px;
	background: #fff;
}

.ai-comparison-scroll:focus-visible {
	outline: 2px solid var(--ai-blue);
	outline-offset: 2px;
}

.ai-comparison-table {
	width: max-content;
	min-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	color: #2c3f52;
	font-size: 12px;
	line-height: 1.55;
}

.ai-comparison-table caption {
	padding: 11px 13px;
	color: #183d61;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.ai-comparison-table th,
.ai-comparison-table td {
	min-width: 160px;
	max-width: 280px;
	padding: 10px 12px;
	border-top: 1px solid #e4ebf3;
	border-right: 1px solid #e4ebf3;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.ai-comparison-table th:first-child,
.ai-comparison-table td:first-child {
	min-width: 138px;
	max-width: 190px;
}

.ai-comparison-table tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

.ai-comparison-table tr > :last-child { border-right: 0; }

.ai-comparison-table thead th {
	min-width: 178px;
	border-top: 1px solid #dce5ef;
	color: #254b70;
	background: #f1f7fe;
	font-weight: 650;
}

.ai-comparison-table thead th:first-child {
	min-width: 138px;
	z-index: 3;
	background: #f1f7fe;
}

.ai-comparison-product-link {
	min-width: 0;
	display: grid;
	justify-items: start;
	gap: 6px;
	color: #245f99;
	text-decoration: none;
}

.ai-comparison-product-link:hover { color: #14558f; text-decoration: underline; }

.ai-product-image-compare {
	width: 128px;
	height: 88px;
	background: #fff;
}

.ai-comparison-model {
	max-width: 100%;
	color: #214d76;
	font-size: 12px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.ai-comparison-order-no {
	max-width: 100%;
	color: #526a82;
	font-size: 10px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.ai-comparison-brand {
	color: #687d92;
	font-size: 11px;
	font-weight: 400;
}

.ai-comparison-field-group {
	display: block;
	margin-bottom: 3px;
	color: #6c8196;
	font-size: 10px;
	font-weight: 600;
}

.ai-comparison-field-name {
	display: block;
	color: #36536f;
	font-size: 12px;
	font-weight: 650;
}

.ai-comparison-table tbody th[scope="row"] {
	color: #36536f;
	background: #fbfdff;
	font-weight: 600;
}

.ai-comparison-table td strong {
	color: #183c5e;
	font-weight: 750;
}

.ai-turn-status {
	margin: 9px 0 0;
	color: #6f8298;
	font-size: 12px;
}

.ai-turn-status.is-error { color: var(--ai-error); }

.ai-retry-button {
	min-height: 38px;
	margin-top: 9px;
	padding: 0 12px;
	border: 1px solid #c9d9ea;
	border-radius: 6px;
	color: #245f99;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
}

.ai-retry-button:hover:not(:disabled) { border-color: #8bb7e3; background: #f4f9ff; }

.ai-composer-wrap {
	grid-row: 5;
	width: min(calc(100% - 48px), 850px);
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 7px 0 16px;
}

.ai-data-note {
	margin: 0 0 8px;
	color: #75869a;
	font-size: 11px;
	line-height: 1.5;
}

.ai-data-note span {
	width: 15px;
	height: 15px;
	display: inline-grid;
	place-items: center;
	margin-right: 4px;
	border: 1px solid #c2d3e4;
	border-radius: 50%;
	color: #57718b;
	font-size: 10px;
	font-weight: 700;
}

.ai-composer {
	min-width: 0;
	min-height: 68px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 9px;
	border: 1px solid #cbd9e8;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 7px 22px rgba(33, 74, 116, .08);
}

.ai-composer:focus-within {
	border-color: #85b5e7;
	box-shadow: 0 0 0 3px rgba(44, 129, 255, .11), 0 7px 22px rgba(33, 74, 116, .08);
}

#chat-input {
	width: 100%;
	min-width: 0;
	min-height: 46px;
	max-height: 180px;
	flex: 1 1 auto;
	padding: 12px 10px;
	resize: none;
	border: 0;
	outline: 0;
	color: #253e57;
	background: transparent;
	font: inherit;
	font-size: 16px;
	line-height: 1.55;
}

#chat-input::placeholder { color: #91a0b1; }
#chat-input:disabled { cursor: not-allowed; opacity: .65; }

.ai-send-button {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	color: #fff;
	background: var(--ai-blue);
	transition: background-color .16s ease, opacity .16s ease;
}

.ai-send-button:hover:not(:disabled) { background: var(--ai-blue-dark); }
.ai-send-button:disabled { cursor: not-allowed; opacity: .52; }
.ai-send-button[data-mode="stop"] { background: #54728f; }
.ai-stop-icon { display: none; fill: currentColor !important; stroke: none !important; }
.ai-send-button[data-mode="stop"] .ai-send-icon { display: none; }
.ai-send-button[data-mode="stop"] .ai-stop-icon { display: block; }

.ai-composer-footer {
	min-height: 23px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 2px 0;
	color: #91a0b0;
	font-size: 10px;
}

.ai-sidebar-scrim { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
:focus-visible { outline: 2px solid #2c81ff; outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 960px) {
	.ai-app { grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
	.ai-sidebar {
		position: fixed;
		inset: env(safe-area-inset-top, 0px) auto env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		z-index: 30;
		width: min(86vw, 320px);
		max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
		padding: 20px 16px 16px;
		box-shadow: 12px 0 32px rgba(25, 52, 80, .13);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .2s ease, visibility .2s ease;
	}
	.ai-app.is-sidebar-open .ai-sidebar { transform: translateX(0); visibility: visible; }
	.ai-sidebar-scrim {
		position: fixed;
		inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		z-index: 20;
		padding: 0;
		border: 0;
		background: rgba(18, 40, 63, .38);
	}
	.ai-app.is-sidebar-open .ai-sidebar-scrim { display: block; }
	.ai-sidebar-toggle { display: grid; }
	.ai-workspace { width: 100%; min-width: 0; max-width: 100%; grid-template-rows: auto auto auto minmax(0, 1fr) auto; overflow-x: clip; }
	.ai-suggestions { grid-template-columns: 1fr; gap: 7px; }
	.ai-suggestions button { min-height: 48px; }
	.ai-message-user,
	.ai-message-content { font-size: 15px; }
}

@media (max-width: 767px) {
	.ai-app {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		height: 100vh;
		height: 100dvh;
		grid-template-columns: minmax(0, 1fr);
		overflow-x: clip;
	}
	.ai-sidebar {
		position: fixed;
		inset: env(safe-area-inset-top, 0px) auto env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		z-index: 30;
		width: min(86vw, 320px);
		max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
		padding: 20px 16px 16px;
		box-shadow: 12px 0 32px rgba(25, 52, 80, .13);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .2s ease, visibility .2s ease;
	}
	.ai-app.is-sidebar-open .ai-sidebar { transform: translateX(0); visibility: visible; }
	.ai-sidebar-scrim {
		position: fixed;
		inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
		z-index: 20;
		padding: 0;
		border: 0;
		background: rgba(18, 40, 63, .38);
	}
	.ai-app.is-sidebar-open .ai-sidebar-scrim { display: block; }
	.ai-sidebar-toggle { display: grid; }
	.ai-workspace { width: 100%; min-width: 0; max-width: 100%; grid-template-rows: auto auto auto minmax(0, 1fr) auto; overflow-x: clip; }
	.ai-header { width: 100%; min-width: 0; max-width: 100%; min-height: 68px; gap: 8px; padding: 8px 12px; }
	.ai-header-title { gap: 9px; }
	.ai-eyebrow { font-size: 9px; letter-spacing: .1em; }
	.ai-header h1 { font-size: 17px; }
	.ai-products-link { min-height: 44px; padding: 0 9px; font-size: 12px; }
	.ai-context-strip { width: auto; min-width: 0; max-width: calc(100% - 24px); min-height: 60px; gap: 8px; margin: 10px 12px 0; padding: 8px; }
	.ai-context-icon { width: 34px; height: 34px; flex-basis: 34px; }
	.ai-context-copy strong { font-size: 12px; }
	.ai-context-copy > span,
	.ai-context-copy small { font-size: 10px; }
	.ai-context-open,
	.ai-context-switch { min-height: 44px; padding: 0 6px; font-size: 11px; }
	.ai-status { width: 100%; min-width: 0; max-width: 100%; min-height: 30px; padding: 8px 14px 0; font-size: 11px; overflow-wrap: anywhere; }
	.ai-transcript-scroll { width: 100%; min-width: 0; max-width: 100%; }
	.ai-transcript { width: calc(100% - 28px); min-width: 0; max-width: 100%; padding: 18px 0 28px; }
	.ai-empty-state { margin: 26px auto 28px; }
	.ai-empty-mark { width: 48px; height: 48px; margin-bottom: 15px; border-radius: 14px; }
	.ai-empty-mark svg { width: 26px; height: 26px; }
	.ai-empty-description { max-width: 360px; font-size: 13px; }
	.ai-suggestions { margin-top: 20px; }
	.ai-suggestions button { min-height: 48px; padding: 10px 11px; font-size: 12px; }
	.ai-message { margin-bottom: 20px; }
	.ai-message-user { max-width: 90%; padding: 11px 13px; font-size: 15px; }
	.ai-message-assistant { padding-left: 38px; }
	.ai-message-assistant .ai-message-label::before { width: 25px; height: 25px; margin-left: -35px; }
	.ai-message-content { font-size: 15px; }
	.ai-source-list { grid-template-columns: minmax(0, 1fr); }
	.ai-composer-wrap { width: calc(100% - 24px); min-width: 0; max-width: 100%; padding: 5px 0 8px; }
	.ai-data-note { font-size: 10px; }
	.ai-composer { min-height: 64px; gap: 7px; padding: 7px; }
	#chat-input { min-height: 48px; padding: 12px 8px; font-size: 16px; }
	.ai-send-button { width: 46px; height: 46px; flex-basis: 46px; }
	.ai-composer-footer { font-size: 9px; }
}

@media (max-width: 380px) {
	.ai-header { padding-right: 9px; padding-left: 9px; }
	.ai-products-link { padding: 0 7px; font-size: 11px; }
	.ai-context-copy { flex: 1 1 auto; }
	.ai-context-open { display: none; }
	.ai-context-switch { padding: 0 5px; }
	.ai-empty-state h2 { font-size: 19px; }
}

@media (max-width: 420px) {
	.ai-context-strip {
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr);
		align-items: center;
	}
	.ai-context-switch {
		grid-column: 2;
		justify-self: start;
	}
	.ai-context-open { display: none; }
}

@media (max-height: 520px) {
	.ai-sidebar { gap: 12px; padding-top: 12px; padding-bottom: 10px; }
	.ai-sidebar-top { gap: 10px; }
	.ai-sidebar-brand { min-height: 40px; }
	.ai-sidebar-brand img { width: 112px; max-height: 32px; }
	.ai-sidebar-bottom { padding-top: 8px; }
	.ai-header { min-height: 54px; }
	.ai-context-strip { min-height: 48px; margin-top: 6px; padding-top: 5px; padding-bottom: 5px; }
	.ai-context-icon { width: 30px; height: 30px; flex-basis: 30px; }
	.ai-status { min-height: 22px; padding-top: 4px; }
	.ai-composer-wrap { padding-top: 3px; padding-bottom: 5px; }
	.ai-data-note { display: none; }
	.ai-composer { min-height: 54px; padding: 5px; }
	#chat-input { min-height: 44px; max-height: min(180px, 25vh); padding-top: 8px; padding-bottom: 8px; }
	.ai-send-button { width: 44px; height: 44px; flex-basis: 44px; }
	.ai-composer-footer { min-height: 18px; padding-top: 1px; }
}

.ai-app.is-visual-short .ai-sidebar { gap: 12px; padding-top: 12px; padding-bottom: 10px; }
.ai-app.is-visual-short .ai-sidebar-top { gap: 10px; }
.ai-app.is-visual-short .ai-sidebar-brand { min-height: 40px; }
.ai-app.is-visual-short .ai-sidebar-brand img { width: 112px; max-height: 32px; }
.ai-app.is-visual-short .ai-sidebar-bottom { padding-top: 8px; }
.ai-app.is-visual-short .ai-header { min-height: 54px; }
.ai-app.is-visual-short .ai-context-strip { min-height: 48px; margin-top: 6px; padding-top: 5px; padding-bottom: 5px; }
.ai-app.is-visual-short .ai-context-icon { width: 30px; height: 30px; flex-basis: 30px; }
.ai-app.is-visual-short .ai-status { min-height: 22px; padding-top: 4px; }
.ai-app.is-visual-short .ai-composer-wrap { padding-top: 3px; padding-bottom: 5px; }
.ai-app.is-visual-short .ai-data-note { display: none; }
.ai-app.is-visual-short .ai-composer { min-height: 54px; padding: 5px; }
.ai-app.is-visual-short #chat-input { min-height: 44px; max-height: var(--ai-short-input-max, min(180px, 25vh)); padding-top: 8px; padding-bottom: 8px; }
.ai-app.is-visual-short .ai-send-button { width: 44px; height: 44px; flex-basis: 44px; }
.ai-app.is-visual-short .ai-composer-footer { min-height: 18px; padding-top: 1px; }

@media (max-height: 380px) {
	.ai-header { min-height: 48px; padding-top: 2px; padding-bottom: 2px; }
	.ai-header h1 { font-size: 15px; }
	.ai-eyebrow { display: none; }
	.ai-context-strip { min-height: 42px; }
	.ai-context-icon { display: none; }
	.ai-status { min-height: 18px; padding-top: 2px; line-height: 1.3; }
	.ai-composer-footer > span:last-child { display: none; }
	.ai-composer-footer { display: none; }
	#chat-input { max-height: min(60px, 25vh); }
}

.ai-app.is-visual-very-short .ai-header { min-height: 48px; padding-top: 2px; padding-bottom: 2px; }
.ai-app.is-visual-very-short .ai-header h1 { font-size: 15px; }
.ai-app.is-visual-very-short .ai-eyebrow { display: none; }
.ai-app.is-visual-very-short .ai-context-strip { min-height: 42px; }
.ai-app.is-visual-very-short .ai-context-icon { display: none; }
.ai-app.is-visual-very-short .ai-context-strip { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; margin-top: 2px; padding: 0 4px; }
.ai-app.is-visual-very-short .ai-context-copy { grid-column: 1; }
.ai-app.is-visual-very-short .ai-context-copy > span,
.ai-app.is-visual-very-short .ai-context-copy small,
.ai-app.is-visual-very-short .ai-context-open { display: none; }
.ai-app.is-visual-very-short .ai-context-switch { grid-column: 2; justify-self: end; }
.ai-app.is-visual-very-short .ai-status:not(.is-error) { display: none; }
.ai-app.is-visual-very-short .ai-status { min-height: 18px; padding-top: 2px; line-height: 1.3; }
.ai-app.is-visual-very-short .ai-composer-footer > span:last-child { display: none; }
.ai-app.is-visual-very-short .ai-composer-footer { display: none; }
.ai-app.is-visual-very-short .ai-composer-wrap { padding-top: 2px; padding-bottom: 3px; }
.ai-app.is-visual-very-short #chat-input { max-height: min(60px, var(--ai-short-input-max, min(180px, 25vh))); }

@media (prefers-reduced-motion: reduce) {
	#ai-app *,
	#ai-app *::before,
	#ai-app *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
