.daab-ia-gate {
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fafafa;
}

.daab-ia-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 4px;
	background: #1e3a5f;
	color: #fff;
	cursor: pointer;
}

.daab-ia-button:hover {
	background: #152a45;
}

.daab-ia-cv-widget label,
.daab-ia-cv-fields label {
	display: block;
	margin: 0.75rem 0 0.25rem;
	font-weight: 600;
}

.daab-ia-cv-widget input[type="file"],
.daab-ia-cv-widget textarea,
.daab-ia-cv-fields input,
.daab-ia-cv-fields textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.daab-ia-cv-preview {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e5e5;
}

.daab-ia-status {
	min-height: 1.25rem;
	color: #555;
}

.daab-ia-chat-widget {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1rem;
	max-width: 640px;
}

.daab-ia-chat-widget .daab-ia-helper-quick {
	margin: 0 0 0.5rem;
	padding: 0;
	border-bottom: 0;
}

.daab-ia-chat-widget .daab-ia-helper-uploads {
	margin-bottom: 0.75rem;
	border-radius: 6px;
}

.daab-ia-chat-messages {
	height: 280px;
	overflow-y: auto;
	margin-bottom: 0.75rem;
	padding: 0.5rem;
	background: #f7f7f7;
	border-radius: 6px;
}

.daab-ia-chat-msg {
	margin: 0.35rem 0;
	padding: 0.5rem 0.65rem;
	border-radius: 6px;
	white-space: pre-wrap;
}

.daab-ia-chat-msg.is-user {
	background: #dbeafe;
	margin-left: 2rem;
}

.daab-ia-chat-msg.is-assistant {
	background: #fff;
	border: 1px solid #e5e7eb;
	margin-right: 2rem;
}

.daab-ia-chat-msg.is-loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #64748b;
	font-size: 0.9rem;
	min-height: 2.25rem;
}

.daab-ia-chat-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.daab-ia-chat-dots span {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1e3a5f;
	animation: daab-ia-dot 1.2s infinite ease-in-out both;
}

.daab-ia-chat-dots span:nth-child(1) {
	animation-delay: -0.32s;
}

.daab-ia-chat-dots span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes daab-ia-dot {
	0%,
	80%,
	100% {
		transform: scale(0.55);
		opacity: 0.45;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

.daab-ia-helper.is-busy .daab-ia-helper-toggle,
.daab-ia-chat-widget.is-busy .daab-ia-button[type="submit"] {
	cursor: wait;
}

.daab-ia-helper.is-busy .daab-ia-helper-chip:disabled,
.daab-ia-helper.is-busy .daab-ia-helper-input:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.daab-ia-helper-uploads {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	flex-shrink: 0;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.daab-ia-button--ghost {
	background: transparent;
	color: #1e3a5f;
	border: 1px solid #cbd5e1;
}

.daab-ia-button--ghost:hover {
	background: #1e3a5f0D;
}

.daab-ia-button--sm {
	padding: 0.35rem 0.65rem;
	font-size: 0.82rem;
}

.daab-ia-chat-upload-prompt {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed #e2e8f0;
}

.daab-ia-chat-instructions {
	font-size: 0.88rem;
	color: #475569;
	margin: 0 0 0.5rem;
	white-space: pre-wrap;
}

.daab-ia-chat-notice.is-success {
	color: #166534;
}

.daab-ia-chat-photo-preview {
	display: block;
	margin-top: 0.5rem;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.daab-ia-chat-form {
	display: flex;
	gap: 0.5rem;
}

.daab-ia-chat-input {
	flex: 1;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}


.daab-ia-employer-match {
	max-width: 720px;
}

.daab-ia-employer-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
	margin-bottom: 1rem;
}

.daab-ia-employer-toolbar label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.daab-ia-employer-job-select {
	min-width: 220px;
	padding: 0.45rem;
}

.daab-ia-employer-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.daab-ia-employer-card {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.daab-ia-employer-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.daab-ia-employer-avatar--placeholder {
	display: inline-block;
	background: #e5e7eb;
}

.daab-ia-employer-card-body {
	flex: 1;
	min-width: 0;
}

.daab-ia-employer-card-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.daab-ia-employer-score-bar {
	height: 6px;
	background: #e5e7eb;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.daab-ia-employer-score-bar span {
	display: block;
	height: 100%;
	background: #1e3a5f;
}

.daab-ia-employer-ai {
	margin: 0.35rem 0 0.75rem;
	color: #374151;
	font-size: 0.95rem;
}

.daab-ia-employer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.daab-ia-button--ghost {
	background: transparent;
	color: #1e3a5f;
	border: 1px solid #1e3a5f;
	text-decoration: none;
}

.daab-ia-button--ghost:hover {
	background: #eef2f7;
}

.daab-ia-button--sm {
	padding: 0.25rem 0.55rem;
	font-size: 0.85rem;
}

/* Global floating helper */
.daab-ia-helper {
	position: fixed;
	z-index: 99999;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
}

.daab-ia-helper--bottom-right {
	right: 24px;
	bottom: 24px;
}

.daab-ia-helper--bottom-left {
	left: 24px;
	bottom: 24px;
}

.daab-ia-helper-toggle {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: #1e3a5f;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}

.daab-ia-helper-toggle:hover {
	background: #152a45;
	transform: scale(1.05);
}

.daab-ia-helper-toggle-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.daab-ia-helper-panel {
	position: absolute;
	bottom: 68px;
	right: 0;
	width: 380px;
	max-width: calc(100vw - 32px);
	max-height: 480px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.daab-ia-helper--bottom-left .daab-ia-helper-panel {
	right: auto;
	left: 0;
}

.daab-ia-helper.is-open .daab-ia-helper-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.daab-ia-helper-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #1e3a5f;
	color: #fff;
}

.daab-ia-helper-title {
	font-size: 0.95rem;
}

.daab-ia-helper-header-actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.daab-ia-helper-clear {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.2;
	cursor: pointer;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
}

.daab-ia-helper-clear:hover {
	background: rgba(255, 255, 255, 0.22);
}

.daab-ia-helper-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.25rem;
}

.daab-ia-chat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #eee;
	background: #f8fafc;
}

.daab-ia-chat-brand {
	font-size: 0.9rem;
	color: #1e3a5f;
}

.daab-ia-chat-toolbar .daab-ia-helper-clear {
	color: #1e3a5f;
	border-color: #cbd5e1;
	background: #fff;
}

.daab-ia-helper-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0.65rem 0.75rem 0;
	border-bottom: 1px solid #eee;
}

.daab-ia-helper-chip {
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
	font-size: 0.8rem;
	cursor: pointer;
	color: #1e3a5f;
}

.daab-ia-helper-chip:hover {
	background: #eef2f7;
}

.daab-ia-helper-messages {
	flex: 1 1 auto;
	min-height: 120px;
	max-height: none;
	height: auto;
	margin: 0;
	border-radius: 0;
	overflow-y: auto;
}

.daab-ia-helper-form {
	flex-shrink: 0;
	padding: 0.65rem 0.75rem 0.75rem;
	border-top: 1px solid #eee;
}

.daab-ia-chat-cards {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.daab-ia-chat-card {
	padding: 0.45rem 0.55rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 0.9rem;
}

.daab-ia-chat-cards__title {
	margin: 0.5rem 0 0.25rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #475569;
}

.daab-ia-chat-card--job-draft,
.daab-ia-chat-card--interview,
.daab-ia-chat-card--ranked {
	padding: 0.65rem 0.75rem;
}

.daab-ia-chat-score-bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin: 0.35rem 0 0.5rem;
}

.daab-ia-chat-score-bar span {
	display: block;
	height: 100%;
	background: #1e3a5f;
	border-radius: 999px;
}

.daab-ia-chat-dimension {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.85rem;
	margin-bottom: 0.15rem;
}

.daab-ia-chat-card--job-draft ul,
.daab-ia-chat-card--interview ul {
	margin: 0.35rem 0 0;
	padding-left: 1.1rem;
}

.daab-ia-chat-meta {
	color: #64748b;
	font-size: 0.85rem;
}

.daab-ia-chat-summary {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: #475569;
}

.daab-ia-chat-links {
	margin-top: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.daab-ia-chat-gaps {
	margin: 0.35rem 0 0 1rem;
	padding: 0;
	font-size: 0.9rem;
}

.daab-ia-chat-notice {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: #166534;
}

@media (max-width: 480px) {
	.daab-ia-helper-panel {
		width: calc(100vw - 24px);
		max-height: 70vh;
		bottom: 68px;
	}

	.daab-ia-helper--bottom-right,
	.daab-ia-helper--bottom-left {
		right: 12px;
		left: 12px;
		bottom: 12px;
	}

	.daab-ia-helper--bottom-left .daab-ia-helper-panel,
	.daab-ia-helper--bottom-right .daab-ia-helper-panel {
		right: 0;
		left: 0;
	}
}

.daab-ia-compat-widget {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8fafc;
}

.daab-ia-compat-score {
	text-align: center;
	margin-bottom: 0.75rem;
}

.daab-ia-compat-score__value {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: #1e3a5f;
	line-height: 1.1;
}

.daab-ia-compat-score__label {
	display: block;
	font-size: 0.85rem;
	color: #64748b;
	margin-top: 0.15rem;
}

.daab-ia-compat-bars {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0.75rem 0;
}

.daab-ia-compat-bar__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.85rem;
	margin-bottom: 0.2rem;
}

.daab-ia-compat-bar__label {
	color: #334155;
	font-weight: 600;
}

.daab-ia-compat-bar__value {
	color: #64748b;
	font-weight: 600;
}

.daab-ia-compat-bar__track {
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.daab-ia-compat-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	transition: width 0.35s ease;
}

.daab-ia-compat-bar__fill--high {
	background: #059669;
}

.daab-ia-compat-bar__fill--mid {
	background: #d97706;
}

.daab-ia-compat-bar__fill--low {
	background: #dc2626;
}

.daab-ia-compat-dims,
.daab-ia-compat-reasons,
.daab-ia-compat-recs ul {
	margin: 0.75rem 0;
	padding-left: 1.25rem;
}

.daab-ia-compat-recs {
	font-size: 0.9rem;
}

.daab-ia-compat-warning {
	color: #b45309;
	font-size: 0.9rem;
}

.daab-ia-career-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.daab-ia-score-big {
	font-size: 2.5rem;
	font-weight: 700;
	color: #166534;
}

.daab-ia-badge--stale {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.25rem 0.5rem;
	background: #fef3c7;
	color: #92400e;
	border-radius: 4px;
	font-size: 0.85rem;
}

.daab-ia-todo {
	margin-bottom: 1rem;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.daab-ia-interview-session textarea {
	width: 100%;
	margin: 1rem 0;
}

.daab-ia-employer-job-tools {
	padding: 1rem;
	background: #f0f9ff;
	border-radius: 8px;
}
