/**
 * Account, confirmation, and leftover content pages on the new design system.
 */

body.ai-talent-simple,
body.ai-talent-app,
body.ai-talent-ds.ai-talent-simple,
body.ai-talent-ds.ai-talent-app {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	min-height: 100vh;
	background: var(--bg);
	overflow-x: hidden;
	overflow-y: auto;
	font-family: var(--display) !important;
}

.ai-simple-page,
.ai-app-page {
	display: block;
}

.ai-page-body {
	color: var(--grey);
}

.ai-page-body > h1:first-child,
.ai-page-body .entry-title,
.ai-dash-body #titlebar,
.ai-dash-body .dash__title,
.ai-simple-page .pagehero + .block .legal > h1:first-child {
	display: none;
}

/* Forms */
.ai-page-body label,
.ai-auth-card label,
.ai-dash-body label,
.ai-page-body .fieldset-label,
.ai-dash-body fieldset > label {
	display: block;
	font-family: var(--mono) !important;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grey);
	margin: 0 0 10px;
	line-height: 1.45;
}

.ai-page-body input[type="text"],
.ai-page-body input[type="email"],
.ai-page-body input[type="password"],
.ai-page-body input[type="tel"],
.ai-page-body input[type="url"],
.ai-page-body input[type="number"],
.ai-page-body input[type="search"],
.ai-page-body input[type="date"],
.ai-page-body select,
.ai-page-body textarea,
.ai-auth-card input[type="text"],
.ai-auth-card input[type="email"],
.ai-auth-card input[type="password"],
.ai-auth-card select,
.ai-dash-body input[type="text"],
.ai-dash-body input[type="email"],
.ai-dash-body input[type="password"],
.ai-dash-body input[type="tel"],
.ai-dash-body input[type="url"],
.ai-dash-body input[type="number"],
.ai-dash-body input[type="search"],
.ai-dash-body input[type="date"],
.ai-dash-body select,
.ai-dash-body textarea,
.ai-dash-body .select2-container .select2-selection {
	width: 100%;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--white) !important;
	font-family: var(--display) !important;
	font-size: 15px !important;
	padding: 13px 15px !important;
	outline: none;
	box-shadow: none !important;
	height: auto !important;
	margin: 0;
}

.ai-page-body textarea,
.ai-dash-body textarea {
	min-height: 130px;
	resize: vertical;
}

.ai-page-body input:focus,
.ai-page-body select:focus,
.ai-page-body textarea:focus,
.ai-auth-card input:focus,
.ai-dash-body input:focus,
.ai-dash-body select:focus,
.ai-dash-body textarea:focus {
	border-color: var(--accent-line) !important;
}

.ai-page-body input[type="submit"],
.ai-page-body button[type="submit"],
.ai-page-body .button:not(.wp-switch-editor),
.ai-page-body .btn,
.ai-auth-card input[type="submit"],
.ai-auth-card button[type="submit"],
.ai-dash-body input[type="submit"],
.ai-dash-body button[type="submit"],
.ai-dash-body .button:not(.wp-switch-editor),
.ai-dash-body .btn,
.ai-dash-body a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	font-family: var(--mono) !important;
	font-size: 12px !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 14px 26px !important;
	border-radius: var(--radius) !important;
	cursor: pointer;
	border: 1px solid var(--accent-line) !important;
	background: var(--accent-soft) !important;
	color: var(--white) !important;
	height: auto !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ai-page-body input[type="submit"]:hover,
.ai-page-body .button:hover,
.ai-auth-card input[type="submit"]:hover,
.ai-dash-body input[type="submit"]:hover,
.ai-dash-body .button:hover {
	background: var(--accent) !important;
	color: #04181b !important;
}

.ai-page-body a:not(.button):not(.btn),
.ai-dash-body a:not(.button):not(.btn) {
	color: var(--accent);
}

.ai-page-body a:not(.button):not(.btn):hover,
.ai-dash-body a:not(.button):not(.btn):hover {
	color: var(--white);
}

/* Login / register gate */
.ai-auth-panel {
	max-width: 520px;
	margin: 0 auto;
}

.ai-auth-card {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.ai-auth-gate {
	text-align: center;
	padding: 36px 28px;
}

.ai-auth-gate p {
	color: #cfd2d8;
	margin: 0 0 24px;
	text-transform: none;
}

.ai-auth-gate-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ai-auth-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.ai-auth-tabs button {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 9px 13px;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--grey);
	cursor: pointer;
}

.ai-auth-tabs button.on {
	background: var(--accent-soft);
	border-color: var(--accent-line);
	color: var(--white);
}

.ai-auth-card fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.ai-auth-card .form-row,
.ai-auth-card p {
	margin: 0 0 16px;
}

.ai-auth-card .form-row i,
.ai-auth-card label i {
	display: none;
}

.ai-auth-card .checkboxes {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 18px;
}

.ai-auth-card .checkboxes input {
	width: auto !important;
	accent-color: var(--accent);
}

.ai-auth-card .ai-contact-status {
	margin-bottom: 16px;
}

/* Dashboard shell */
.ai-dash {
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: calc(100vh - 74px);
	border-top: 1px solid var(--line-soft);
}

.ai-dash-toggle {
	display: none;
}

.ai-dash-nav {
	border-right: 1px solid var(--line-soft);
	padding: 36px 24px 64px;
	background: #07080b;
}

.ai-dash-kicker {
	font-family: var(--mono) !important;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 36px 0 14px;
	line-height: 1.4;
}

.ai-dash-kicker:first-child {
	margin-top: 0;
}

.ai-dash-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ai-dash-nav li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--radius);
	color: var(--grey) !important;
	font-family: var(--mono) !important;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.35;
}

.ai-dash-nav li.is-on a,
.ai-dash-nav li a:hover {
	background: var(--accent-soft);
	color: var(--white) !important;
}

.ai-dash-nav .nav-tag {
	font-family: var(--mono);
	font-size: 10px;
	min-width: 18px;
	padding: 2px 6px;
	border-radius: 99px;
	border: 1px solid var(--line);
	color: var(--accent);
	text-align: center;
}

.ai-dash-main {
	padding: 44px 48px 80px;
	min-width: 0;
}

.ai-dash-head {
	margin-bottom: 36px;
}

.ai-dash-head .eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	line-height: 1.4;
}

.ai-dash-head h1 {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.2;
	font-weight: 800 !important;
}

/* WorkScout / WPJM widgets: one card per form, not nested boxes. */
.ai-dash-body .dashboard-list-box,
.ai-dash-body .job-manager-form,
.ai-dash-body .company-manager-form,
.ai-dash-body .messages-container,
.ai-page-body .job-manager-form,
.ai-page-body .company-manager-form,
.ai-page-body .sign-in-form {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 32px;
	box-shadow: none !important;
}

.ai-dash-body .job-manager-form .dashboard-list-box,
.ai-dash-body .job-manager-form .dashboard-list-box-content,
.ai-dash-body .job-manager-form .submit-page,
.ai-dash-body .company-manager-form .dashboard-list-box,
.ai-dash-body .company-manager-form .dashboard-list-box-content,
.ai-dash-body .company-manager-form .submit-page,
.ai-dash-body .dashboard-list-box .dashboard-list-box,
.ai-dash-body .dashboard-list-box .submit-page,
.ai-dash-body .submit-page {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.ai-dash-body .ai-form-heading {
	margin: 0 0 24px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--white);
}

.ai-dash-body .job-manager-form fieldset > label,
.ai-dash-body .company-manager-form fieldset > label,
.ai-dash-body .job-manager-form fieldset > .field,
.ai-dash-body .company-manager-form fieldset > .field {
	float: none !important;
	width: 100% !important;
	display: block !important;
}

.ai-dash-body .my-profile {
	padding: 0;
	background: transparent;
	border: 0;
}

.ai-dash-body .dashboard-list-box h4,
.ai-dash-body .dashboard-list-box-content,
.ai-dash-body .dashboard-stat,
.ai-dash-body .dash-card,
.ai-dash-body .dash-card-content {
	background: transparent !important;
	color: inherit;
	box-shadow: none !important;
}

.ai-dash-body .dashboard-stat,
.ai-dash-body .dash-card a {
	display: block;
	background: var(--surface) !important;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	color: inherit !important;
}

.ai-dash-body .dash-card a .dashboard-stat,
.ai-dash-body .dash-card a .dashboard-stat.color-1,
.ai-dash-body .dash-card a .dashboard-stat.color-2,
.ai-dash-body .dash-card a .dashboard-stat.color-3,
.ai-dash-body .dash-card a .dashboard-stat.color-4 {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.ai-dash-body .dashboard-stat-icon,
.ai-dash-body .list-box-icon,
.ai-dash-body th i,
.ai-dash-body th .fa {
	display: none !important;
}

.ai-dash-body .dashboard-stat:hover,
.ai-dash-body .dash-card a:hover {
	border-color: var(--accent-line);
}

.ai-dash-body .dash-card-content span,
.ai-dash-body .dashboard-stat span {
	font-family: var(--mono) !important;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--grey);
}

.ai-dash-body .dash-card-content h4,
.ai-dash-body .dashboard-stat h4 {
	color: var(--white) !important;
	font-size: 2rem;
	margin-top: 8px;
	text-transform: none;
}

.ai-dash-body .dash-stats-sec,
.ai-dash-body .dash-stats-sec.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 0 0 32px;
}

.ai-dash-body .add-data.row,
.ai-dash-body .my-prf {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin: 0;
}

.ai-dash-body .col-lg-4,
.ai-dash-body .col-md-4,
.ai-dash-body .col-md-6,
.ai-dash-body .col-md-8,
.ai-dash-body .col-md-12,
.ai-dash-body .col-lg-6,
.ai-dash-body .sixteen,
.ai-dash-body .container {
	width: auto;
	max-width: none;
	float: none;
	padding: 0;
	margin: 0;
}

.ai-dash-body fieldset,
.ai-page-body fieldset {
	border: 0;
	margin: 0 0 26px;
	padding: 0;
}

.ai-dash-body fieldset > label,
.ai-page-body fieldset > label {
	margin-bottom: 10px;
}

.ai-dash-body fieldset .field,
.ai-page-body fieldset .field {
	margin-top: 0;
}

.ai-dash-body table,
.ai-page-body table {
	width: 100%;
	border-collapse: collapse;
	color: var(--grey);
	background: transparent;
}

.ai-dash-body th,
.ai-page-body th {
	font-family: var(--mono) !important;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--grey);
	text-align: left;
	padding: 16px 14px;
	border-bottom: 1px solid var(--line);
	background: transparent !important;
}

.ai-dash-body td,
.ai-page-body td {
	padding: 18px 14px;
	border-bottom: 1px solid var(--line-soft);
	background: transparent !important;
	color: var(--grey);
	line-height: 1.5;
}

.ai-dash-body tr:hover td {
	background: rgba(255, 255, 255, 0.02) !important;
}

.ai-dash-body .notification,
.ai-page-body .notification,
.ai-dash-body .job-manager-info,
.ai-dash-body .job-manager-error,
.ai-dash-body .job-manager-message {
	padding: 16px 18px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--grey);
	margin: 0 0 24px;
	line-height: 1.55;
}

.ai-dash-body .notification.success,
.ai-dash-body .job-manager-message {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--white);
}

.ai-dash-body .notification.error,
.ai-dash-body .job-manager-error {
	border-color: rgba(230, 80, 80, 0.45);
	background: rgba(230, 80, 80, 0.12);
	color: #ffb4b4;
}

.ai-dash-body .select2-dropdown,
.ai-page-body .select2-dropdown {
	background: #0a0b0e;
	border: 1px solid var(--line);
	color: var(--white);
}

/* Select2 chevron without Font Awesome (WorkScout uses FA \f107). */
.ai-dash-body .select2-container--default .select2-selection--single .select2-selection__arrow,
.ai-page-body .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	width: 28px;
	right: 8px;
	top: 0;
}

.ai-dash-body .select2-container--default .select2-selection--single .select2-selection__arrow b,
.ai-page-body .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border: 0 !important;
	height: 8px !important;
	width: 8px !important;
	margin: 0 !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	background: none !important;
}

.ai-dash-body .select2-container--default .select2-selection--single .select2-selection__arrow b:after,
.ai-page-body .select2-container--default .select2-selection--single .select2-selection__arrow b:after {
	content: "" !important;
	font-family: inherit !important;
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--grey);
	border-bottom: 2px solid var(--grey);
	transform: rotate(45deg);
	position: static;
	color: inherit;
}

.ai-dash-body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b:after,
.ai-page-body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b:after {
	transform: rotate(-135deg);
}

/* Category / multi Select2: same height as other dropdowns, no inner scroll. */
.ai-dash-body .select2-container--default .select2-selection--multiple,
.ai-page-body .select2-container--default .select2-selection--multiple {
	display: flex !important;
	align-items: center !important;
	min-height: 48px !important;
	height: auto !important;
	overflow: visible !important;
	padding: 8px 12px !important;
}

.ai-dash-body .select2-container--default .select2-selection--multiple .select2-selection__rendered,
.ai-page-body .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	overflow-y: visible !important;
	white-space: normal !important;
	line-height: 1.4 !important;
}

.ai-dash-body .select2-container--default .select2-selection--multiple .select2-selection__choice,
.ai-page-body .select2-container--default .select2-selection--multiple .select2-selection__choice {
	float: none !important;
	margin: 0 !important;
	padding: 4px 8px !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	max-width: 100%;
	background: var(--accent-soft) !important;
	border: 1px solid var(--accent-line) !important;
	color: var(--white) !important;
	border-radius: 4px;
}

.ai-dash-body .select2-container--default .select2-selection--multiple .select2-search--inline,
.ai-page-body .select2-container--default .select2-selection--multiple .select2-search--inline {
	float: none !important;
	flex: 1 1 140px;
	margin: 0 !important;
}

.ai-dash-body .select2-container--default .select2-selection--multiple .select2-search__field,
.ai-dash-body .select2-container--default .select2-selection--multiple input.select2-search__field,
.ai-page-body .select2-container--default .select2-selection--multiple .select2-search__field {
	width: 100% !important;
	min-width: 120px !important;
	height: auto !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 4px 0 !important;
	line-height: 1.4 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--white) !important;
}

.ai-dash-body .select2-results__option,
.ai-page-body .select2-results__option,
.select2-container--default .select2-results__option {
	white-space: normal;
	line-height: 1.45;
	padding: 8px 12px;
}

/* Photo + resume file browse: compact, no overlap. */
.ai-dash-body .fake-upload-btn,
.ai-dash-body .fieldset-type-file .field > label.fake-upload-btn,
.ai-dash-body .fieldset-candidate_photo .field,
.ai-dash-body .fieldset-resume_file .field,
.ai-dash-body .fieldset-company_logo .field,
.ai-dash-body .fieldset-header_image .field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.ai-dash-body .fake-upload-btn {
	margin: 0;
	cursor: pointer;
}

.ai-dash-body .fake-upload-btn input[type="file"],
.ai-dash-body .fieldset-type-file input[type="file"],
.ai-dash-body .fieldset-candidate_photo input[type="file"],
.ai-dash-body .fieldset-resume_file input[type="file"] {
	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;
	border: 0 !important;
	opacity: 0 !important;
}

.ai-dash-body .upload-btn {
	float: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 10px 16px !important;
	min-width: 0;
	height: auto !important;
	background: var(--accent-soft) !important;
	border: 1px solid var(--accent-line) !important;
	border-radius: var(--radius) !important;
	color: var(--white) !important;
	font-family: var(--mono) !important;
	font-size: 11px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.ai-dash-body .upload-btn:hover {
	background: var(--accent) !important;
	color: #04181b !important;
}

.ai-dash-body .job-manager-uploaded-files {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 180px;
	min-width: 0;
	margin: 0;
}

.ai-dash-body .job-manager-uploaded-file,
.ai-dash-body .job-manager-uploaded-file-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	background: transparent;
	max-width: 100%;
	line-height: 1.4;
	word-break: break-word;
}

.ai-dash-body .job-manager-uploaded-file-preview img {
	max-width: 72px;
	max-height: 72px;
	width: auto;
	height: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: block;
}

.ai-dash-body .fieldset-candidate_photo small.description,
.ai-dash-body .fieldset-resume_file small.description,
.ai-dash-body .fieldset-type-file small.description,
.ai-dash-body .submit-page small.description,
.ai-dash-body fieldset small.description {
	display: block;
	width: 100%;
	flex: 1 0 100%;
	margin: 4px 0 0;
	position: static;
	top: auto;
	font-size: 12px;
	line-height: 1.45;
	color: var(--grey);
}

.ai-dash-body .fieldset-links > .field {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

/* TinyMCE toolbar on Add Resume / profile forms. */
.ai-dash-body .wp-editor-wrap {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.03);
	overflow: visible;
}

.ai-dash-body .wp-editor-container,
.ai-dash-body .mce-tinymce {
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
	overflow: visible;
}

.ai-dash-body .wp-editor-tabs {
	display: flex;
	float: none;
	gap: 4px;
	padding: 8px 8px 0;
	justify-content: flex-end;
}

.ai-dash-body .wp-switch-editor,
.ai-dash-body .html-active .switch-html,
.ai-dash-body .tmce-active .switch-tmce {
	display: inline-flex !important;
	align-items: center;
	float: none !important;
	margin: 0 !important;
	padding: 6px 12px !important;
	height: auto !important;
	font-family: var(--mono) !important;
	font-size: 10px !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: transparent !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--grey) !important;
	box-shadow: none !important;
}

.ai-dash-body .tmce-active .switch-tmce,
.ai-dash-body .html-active .switch-html {
	background: var(--accent-soft) !important;
	border-color: var(--accent-line) !important;
	color: var(--white) !important;
}

.ai-dash-body .mce-toolbar-grp,
.ai-dash-body .mce-panel,
.ai-dash-body .mce-top-part,
.ai-dash-body .quicktags-toolbar {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 0 !important;
	border-bottom: 1px solid var(--line) !important;
}

.ai-dash-body .mce-toolbar,
.ai-dash-body .mce-container-body {
	background: transparent !important;
}

.ai-dash-body .mce-toolbar .mce-btn,
.ai-dash-body .mce-toolbar .mce-btn button,
.ai-dash-body .mce-container button {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--grey) !important;
	height: 28px !important;
	min-width: 28px !important;
	width: auto !important;
	padding: 4px !important;
	margin: 0 1px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 1 !important;
	border-radius: var(--radius) !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ai-dash-body .mce-toolbar .mce-btn:hover,
.ai-dash-body .mce-toolbar .mce-btn:hover button,
.ai-dash-body .mce-toolbar .mce-btn.mce-active,
.ai-dash-body .mce-toolbar .mce-btn.mce-active button {
	background: var(--accent-soft) !important;
	color: var(--white) !important;
}

.ai-dash-body .mce-ico,
.ai-dash-body i[class^="mce-i-"],
.ai-dash-body i[class*=" mce-i-"],
.ai-dash-body i[class^="mce-i-"]:before,
.ai-dash-body i[class*=" mce-i-"]:before {
	font: normal 20px/1 dashicons !important;
	color: inherit !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	width: 20px !important;
	height: 20px !important;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ai-dash-body .mce-edit-area,
.ai-dash-body .mce-edit-area iframe {
	background: #fff !important;
}

/* Add Company: keep the form in flow (floats + mockup .page hid it). */
.ai-dash-body .company-manager-form,
.ai-dash-body #submit-company-form,
.ai-page-body .company-manager-form,
.ai-page-body #submit-company-form {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	float: none !important;
	width: 100% !important;
	color: var(--grey);
}

.ai-dash-body .company-manager-form::after,
.ai-dash-body .job-manager-form::after {
	content: "";
	display: table;
	clear: both;
}

.ai-dash-body .company-manager-form fieldset,
.ai-dash-body #submit-company-form fieldset {
	display: block !important;
	float: none !important;
	clear: both;
	width: 100% !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible;
}

/* Resume repeater rows (education / experience / URLs). */
.ai-dash-body .resume-manager-data-row {
	position: relative;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 52px 12px 18px;
	margin: 0 0 16px;
}

.ai-dash-body .resume-manager-data-row fieldset {
	margin-bottom: 16px;
}

.ai-dash-body a.resume-manager-remove-row,
.ai-dash-body .resume-manager-remove-row {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	color: var(--grey) !important;
	font-size: 16px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1 !important;
}

.ai-dash-body a.resume-manager-remove-row:hover {
	background: rgba(255, 80, 80, 0.12) !important;
	border-color: rgba(255, 80, 80, 0.45) !important;
	color: #ffb4b4 !important;
}

.ai-dash-body .resume-manager-add-row {
	display: inline-flex !important;
	margin: 4px 0 8px;
}

/* Theme confirm popup (replaces window.confirm). */
.modal.ai-confirm-modal.open {
	display: flex !important;
}

.ai-confirm-modal .mcard {
	max-width: 420px;
	margin-top: 12vh;
}

.ai-confirm-modal .ai-confirm-msg {
	margin: 0 0 22px;
	color: var(--grey);
	font-size: 0.98rem;
	line-height: 1.55;
	text-transform: none;
}

.ai-confirm-modal .ai-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.ai-confirm-modal .ai-confirm-actions .btn,
.ai-confirm-modal .ai-confirm-actions .btn.btn-primary,
.ai-confirm-modal .mbody .btn.btn-primary {
	width: auto !important;
	min-width: 110px;
	padding: 12px 18px;
}

.ai-dash-body .dataTables_wrapper,
.ai-dash-body .dataTables_length,
.ai-dash-body .dataTables_filter,
.ai-dash-body .dataTables_info {
	color: var(--grey);
}

.ai-dash-body .avatar-wrapper,
.ai-dash-body .profile-pic {
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.ai-dash-body .my-prf,
.ai-dash-body .add-data {
	display: block;
}

.ai-simple-page .sign-in-form,
.ai-simple-page .my-account,
.ai-simple-page .job-manager-form {
	max-width: 560px;
}

/* Elementor landing inside our chrome */
.ai-simple-elementor .block {
	padding-top: 0;
}

.ai-simple-elementor .wrap.legal {
	max-width: none;
	padding: 0;
}

body.ai-talent-simple .elementor-section,
body.ai-talent-simple .elementor-column,
body.ai-talent-simple .elementor-widget-wrap,
body.ai-talent-simple .elementor-widget-container,
body.ai-talent-simple .elementor-background-overlay {
	background-color: transparent !important;
	background-image: none !important;
}

body.ai-talent-simple .elementor-heading-title,
body.ai-talent-simple .elementor-widget-text-editor,
body.ai-talent-simple .elementor-widget-text-editor p,
body.ai-talent-simple .elementor-widget-text-editor span,
body.ai-talent-simple .elementor-icon-box-title,
body.ai-talent-simple .elementor-icon-box-description {
	color: var(--grey) !important;
	font-family: var(--display) !important;
}

body.ai-talent-simple h1.elementor-heading-title,
body.ai-talent-simple h2.elementor-heading-title,
body.ai-talent-simple h3.elementor-heading-title {
	color: var(--white) !important;
	text-transform: uppercase;
	font-family: var(--display) !important;
}

body.ai-talent-simple .elementor-field-group input,
body.ai-talent-simple .elementor-field-group textarea,
body.ai-talent-simple .elementor-field-group select {
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid var(--line) !important;
	color: var(--white) !important;
}

body.ai-talent-simple .elementor-button {
	font-family: var(--mono) !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: var(--radius) !important;
	background: var(--accent-soft) !important;
	border: 1px solid var(--accent-line) !important;
	color: var(--white) !important;
}

/* ---- Spacing pass: profile, messages, tables, submit forms ---- */
.ai-dash-body p,
.ai-page-body p {
	margin: 0 0 16px;
	line-height: 1.65;
}

.ai-dash-body .dashboard-list-box > h4,
.ai-dash-body .dashboard-list-box-content > h4,
.ai-dash-body h4.gray,
.ai-dash-body .messages-headline h4 {
	margin: 0 0 20px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	line-height: 1.35;
}

.ai-dash-body .dashboard-list-box-content,
.ai-dash-body .dashboard-list-box-static {
	padding: 0;
}

.ai-dash-body .dashboard-list-box + .dashboard-list-box,
.ai-dash-body .notification + .dashboard-list-box,
.ai-dash-body .job-manager-form + .job-manager-form {
	margin-top: 28px;
}

/* Profile: label then input are siblings, so space each pair. */
.ai-dash-body .my-profile > label {
	margin: 24px 0 10px;
}

.ai-dash-body .my-profile > label:first-child,
.ai-dash-body .my-profile > label:first-of-type {
	margin-top: 0;
}

.ai-dash-body .my-profile > input,
.ai-dash-body .my-profile > textarea,
.ai-dash-body .my-profile > select {
	margin: 0;
}

.ai-dash-body .my-profile .avatar-wrapper {
	margin: 0 0 8px;
}

.ai-dash-body .my-profile .clearfix + label {
	margin-top: 24px;
}

.ai-dash-body .my-profile .button,
.ai-dash-body .my-profile button[type="submit"] {
	margin-top: 28px;
}

.ai-dash-body .my-prf__checkbox,
.ai-dash-body .cstm_field {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 22px 0 8px;
}

.ai-dash-body .my-prf__checkbox input,
.ai-dash-body .cstm_field input[type="checkbox"] {
	width: auto !important;
	margin-top: 3px;
}

.ai-dash-body .account-type {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	margin: 8px 0 20px;
}

.ai-dash-body .account-type label {
	margin: 0;
	text-transform: none;
	letter-spacing: 0.02em;
	font-family: var(--display) !important;
	font-size: 14px;
	color: var(--white);
}

/* Messages */
.ai-dash-body .messages-headline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	margin: 0 0 24px;
}

.ai-dash-body .messages-headline h4 {
	width: 100%;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--line-soft);
}

.ai-dash-body .search-form-container {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius);
	padding: 6px !important;
}

.ai-dash-body .search-form-container input[type="text"] {
	flex: 1;
	border: 0 !important;
	background: transparent !important;
	padding: 10px 12px !important;
	margin: 0 !important;
}

.ai-dash-body .search-form-container button[type="submit"] {
	flex: 0 0 auto;
	width: auto;
	padding: 12px 18px !important;
}

.ai-dash-body .messages-inbox ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ai-dash-body .messages-inbox li {
	padding: 16px 14px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	line-height: 1.5;
}

.ai-dash-body .messages-inbox li:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.02);
}

.ai-dash-body .dataTables_wrapper {
	margin-top: 8px;
}

.ai-dash-body .dataTables_length,
.ai-dash-body .dataTables_filter {
	padding: 0 0 16px !important;
	margin-bottom: 8px;
}

.ai-dash-body .dataTables_filter input {
	margin-left: 10px;
	width: auto !important;
	min-width: 220px;
}

.ai-dash-body .manage-table {
	margin-top: 8px;
}

.ai-dash-body .send-btn-border,
.ai-dash-body .form-submit,
.ai-page-body .send-btn-border {
	margin-top: 12px;
	padding-top: 8px;
}

@media (max-width: 900px) {
	.ai-dash {
		grid-template-columns: 1fr;
	}

	.ai-dash-toggle {
		display: inline-flex;
		margin: 16px 20px 0;
		font-family: var(--mono);
		font-size: 11px;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		padding: 10px 14px;
		border: 1px solid var(--line);
		background: transparent;
		color: var(--white);
		border-radius: var(--radius);
		width: fit-content;
	}

	.ai-dash-nav {
		display: none;
		border-right: 0;
		border-bottom: 1px solid var(--line-soft);
	}

	.ai-dash-nav.is-open {
		display: block;
	}

	.ai-dash-main {
		padding: 28px 20px 56px;
	}

	.ai-dash-body .add-data.row,
	.ai-dash-body .my-prf {
		grid-template-columns: 1fr;
	}

	.ai-dash-body .dashboard-list-box,
	.ai-dash-body .messages-container,
	.ai-dash-body .job-manager-form,
	.ai-dash-body .company-manager-form {
		padding: 22px 18px;
	}
}

.ai-twofa-panel .ai-twofa-banner,
.ai-twofa-panel .ai-twofa-status {
	margin: 0 0 16px;
	color: var(--grey);
	line-height: 1.5;
}

.ai-twofa-panel .ai-twofa-banner {
	border: 1px solid var(--accent-line);
	background: var(--accent-soft);
	border-radius: var(--radius);
	padding: 12px 14px;
	color: var(--white);
}

.ai-twofa-panel .ai-twofa-feedback {
	display: none;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: var(--radius);
	font-size: 0.88rem;
}

.ai-twofa-panel .ai-twofa-feedback.is-error,
.ai-twofa-panel .ai-twofa-feedback.is-ok {
	display: block;
}

.ai-twofa-panel .ai-twofa-feedback.is-error {
	border: 1px solid rgba(255, 80, 80, 0.45);
	background: rgba(255, 80, 80, 0.12);
	color: #ffb4b4;
}

.ai-twofa-panel .ai-twofa-feedback.is-ok {
	border: 1px solid var(--accent-line);
	background: var(--accent-soft);
	color: var(--white);
}

.ai-twofa-panel .ai-twofa-qr {
	float: none !important;
	display: inline-block;
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	margin: 0 0 16px;
}

.ai-twofa-panel .ai-twofa-secret {
	margin: 0 0 16px;
	color: var(--grey);
}

.ai-twofa-panel .ai-twofa-secret code {
	display: block;
	margin-top: 8px;
	color: var(--white);
	letter-spacing: 0.06em;
	word-break: break-all;
}

.ai-twofa-panel .ai-twofa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Account pages: leftover WorkScout chrome */
.ai-app-page .search-banner-placeholder1,
.ai-auth-card #confirm_email,
.ai-auth-card label[for="confirm_email"] {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ai-dash-body .recent__act > .col-lg-12 > h4 {
	margin: 8px 0 18px;
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--white);
}

.ai-dash-body .dashboard-list-box.with-icons ul,
.ai-dash-body .activity-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ai-dash-body .dashboard-list-box.with-icons li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
	color: #cfd2d8;
}

.ai-dash-body .clear-all-activities {
	display: inline-block;
	margin: 0 0 16px;
}

.ai-dash-body .messages-container-inner,
.ai-dash-body .message-content,
.ai-dash-body .message-bubble,
.ai-dash-body .messages-inbox,
.ai-dash-body .message-reply {
	background: transparent !important;
	color: #cfd2d8;
}

.ai-dash-body .messages-inbox li a {
	color: inherit !important;
	display: block;
}

.ai-dash-body .unread,
.ai-dash-body .messages-inbox li.unread {
	border-color: var(--accent-line);
	background: var(--accent-soft);
}

.ai-dash-body .dash-bm .manage-table td,
.ai-dash-body .job-manager-bookmarks td {
	color: #cfd2d8;
	vertical-align: top;
}

.ai-dash-body .dash-bm .manage-table td a {
	color: var(--white) !important;
}

.ai-dash-body .dashboard-list-box.with-icons ul,
.ai-dash-body .activity-list,
.ai-dash-body #workscout-activities-list,
.ai-dash-body .pagination ul,
.ai-dash-body .pagination-container ul {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.ai-dash-body .pagination ul li,
.ai-dash-body .pagination-container ul li {
	list-style: none !important;
}

.ai-dash-body ol li:empty,
.ai-dash-body ul li:empty,
.ai-dash-body #workscout-activities-list li:empty {
	display: none !important;
}

.ai-dash-body .ai-messages-table {
	width: 100%;
	border-collapse: collapse;
}

.ai-dash-body .ai-messages-table th,
.ai-dash-body .ai-messages-table td {
	text-align: left;
	padding: 14px 12px;
	border-bottom: 1px solid var(--line-soft);
	color: #cfd2d8;
	vertical-align: middle;
	font-weight: 500;
	text-transform: none;
}

.ai-dash-body .ai-messages-table thead th {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--grey);
	font-weight: 500;
}

.ai-dash-body .ai-messages-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.02);
}

.ai-dash-body .ai-messages-table tr.unread td {
	color: var(--white);
}

.ai-dash-body .ai-messages-table a {
	color: inherit !important;
	text-decoration: none;
}

.ai-dash-body .ai-messages-table .ai-msg-check {
	width: 36px;
}

.ai-dash-body .ai-msg-unread,
.ai-dash-body .ai-msg-read {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ai-dash-body .ai-msg-unread {
	color: var(--accent);
}

.ai-dash-body .ai-msg-empty td,
.ai-dash-body .ai-bm-empty td {
	color: var(--grey);
	padding: 28px 12px;
}

.ai-dash-body .wp-job-manager-bookmarks-form + .wp-job-manager-bookmarks-form,
.pf-actions .wp-job-manager-bookmarks-form + .wp-job-manager-bookmarks-form,
.pf-actions .ai-bookmark + .ai-bookmark,
.pf-actions .ai-bookmark + .wp-job-manager-bookmarks-form {
	display: none !important;
}

.ai-dash-body .wp-job-manager-bookmarks-form .bookmark-details,
.pf-actions .wp-job-manager-bookmarks-form .bookmark-details {
	display: none;
}

.ai-dash-body .job-manager-bookmarks .action a.delete {
	display: inline-flex;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--white) !important;
	text-decoration: none;
}

body.ai-talent-app .mfp-bg {
	background: #050507;
	opacity: 0.86;
}

body.ai-talent-app .mfp-content .small-dialog,
body.ai-talent-app .mfp-content .cstm_popup,
body.ai-talent-app .cstm_popup {
	background: #0b0c11 !important;
	color: var(--white) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
	padding: 28px !important;
	max-width: 560px !important;
}

body.ai-talent-app .small-dialog-header,
body.ai-talent-app .cstm_popup h3 {
	background: transparent !important;
	color: var(--white) !important;
	border-bottom: 1px solid var(--line-soft);
	padding: 0 0 14px !important;
	margin: 0 0 18px !important;
}

body.ai-talent-app .mfp-close {
	color: var(--grey) !important;
}

