/* Shared semantic palette. Existing public/member states remain authoritative.
 * Only owned component surfaces are mapped; no universal element/layout reset. */
:root {
	--mj-ui-surface:#fff;--mj-ui-surface-raised:#f3f7fc;--mj-ui-text:#162d49;
	--mj-ui-muted:#52677f;--mj-ui-border:#d7e2ef;--mj-ui-accent:#165bb0;
	--mj-ui-danger-bg:#fff0f2;--mj-ui-danger:#a91d37;
	--mj-ui-warning-bg:#fff7e5;--mj-ui-warning:#805500;
	--mj-ui-success-bg:#e7f7ef;--mj-ui-success:#09613d;
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"],.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"]) {
	--mj-ui-surface:#102033;--mj-ui-surface-raised:#162a43;--mj-ui-text:#eef5ff;
	--mj-ui-muted:#adc0d8;--mj-ui-border:#35506f;--mj-ui-accent:#99c5ff;
	--mj-ui-danger-bg:#492338;--mj-ui-danger:#ffbeca;
	--mj-ui-warning-bg:#40341e;--mj-ui-warning:#ffde98;
	--mj-ui-success-bg:#153d34;--mj-ui-success:#a6ebcf;
}

/* Numeric attachment dimensions can be naturally rectangular. Respect the
 * requested caller slot instead, including WP admin comments and resume cards. */
img.minejobs-avatar-slot {
	width:var(--mj-avatar-width)!important;height:var(--mj-avatar-height)!important;
	max-width:100%;aspect-ratio:1;object-fit:cover;object-position:center;flex-shrink:0;
}

/* The native Dashboard comment slot is always 50px, regardless of intrinsic
 * attachment ratio or a late plugin rule. Use the same frame for defaults and
 * uploaded photos; do not resize content images or other caller-owned slots. */
body.wp-admin #activity-widget #the-comment-list .comment-item img.avatar {
	width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;
	max-width:50px!important;max-height:50px!important;box-sizing:border-box!important;
	object-fit:cover!important;object-position:center!important;aspect-ratio:1!important;
	padding:0!important;border:1px solid #d7e2ef!important;border-radius:12px!important;
	background:#f3f7fc!important;vertical-align:middle;
}

html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder {
	--mjcap-text:var(--mj-ui-text);--mjcap-muted:var(--mj-ui-muted);--mjcap-border:var(--mj-ui-border);
	--mjcap-blue:var(--mj-ui-accent);--mjcap-blue-soft:var(--mj-ui-surface-raised);
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(
	.mjcap-choice-guide>div,.mjcap-search-panel__head em,.mjcap-selected-head>span,
	.mjcap-steps li,.mjcap-search-help,.mjcap-feedback,.mjcap-manual,.mjcap-importance,.mjcap-pending-badge
) {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-muted)!important;border-color:var(--mj-ui-border)!important;box-shadow:none!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-result,.mjcap-job-item,.mjcap-empty,.mjcap-search,.mjcap-results) {
	background:var(--mj-ui-surface)!important;border-color:var(--mj-ui-border)!important;color:var(--mj-ui-text)!important;
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(strong,label) {color:var(--mj-ui-text)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-result,.mjcap-manual,.mjcap-importance,.mjcap-choice-guide) .is-required {
	background:var(--mj-ui-danger-bg)!important;color:var(--mj-ui-danger)!important;border-color:var(--mj-ui-danger)!important;
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-result,.mjcap-manual,.mjcap-importance,.mjcap-choice-guide) .is-preferred {
	background:var(--mj-ui-warning-bg)!important;color:var(--mj-ui-warning)!important;border-color:var(--mj-ui-warning)!important;
}

/* Panel roots and children share one palette: legacy picker title colors and
 * hard-coded white header/footer never override inherited dark variables. */
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-selector {
	--mj-field-text:var(--mj-ui-text);--mj-field-muted:var(--mj-ui-muted);
	--mj-field-border:var(--mj-ui-border);--mj-field-surface:var(--mj-ui-surface);
	--mj-field-surface-soft:var(--mj-ui-surface-raised);--mj-field-primary-soft:var(--mj-ui-surface-raised);
	--mj-field-primary-strong:var(--mj-ui-accent);--mj-field-success:var(--mj-ui-success);--mj-field-danger:var(--mj-ui-danger);
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-selector :is(
	.mj-smart-field-selector__panel,.mj-smart-field-selector__panel-header,.mj-smart-field-selector__panel-selection,
	.mj-smart-field-selector__panel-actions,.mj-smart-field-selector__search-wrap,.mj-smart-field-selector__message-row,
	.mj-smart-field-selector__results,.mj-smart-field-selector__selected,.mj-smart-field-selector__more,.mj-smart-field-group h4,.mj-smart-field-result
) {background:var(--mj-ui-surface)!important;border-color:var(--mj-ui-border)!important;color:var(--mj-ui-text)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-selector :is(
	.mj-smart-field-selector__panel-title,.mj-smart-field-selector__panel-selection-title,.mj-smart-field-result__title,
	.mj-smart-field-selector__message,.mj-smart-field-selector__state strong
) {color:var(--mj-ui-text)!important;background-color:var(--mj-ui-surface)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-selector :is(
	.mj-smart-field-selector__panel-description,.mj-smart-field-result__meta,.mj-smart-field-selector__panel-empty,
	.mj-smart-field-selector__help,.mj-smart-field-selector__panel-counter
) {color:var(--mj-ui-muted)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-selector :is(.mj-smart-field-result__icon,.mj-smart-field-selector__close,.mj-smart-field-selector__panel-chip,.mj-smart-field-selector__counter) {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-accent)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-result.is-selected {background:var(--mj-ui-success-bg)!important;border-color:var(--mj-ui-success)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-smart-field-result:is(:hover,:focus-visible) {background:var(--mj-ui-surface-raised)!important;border-color:var(--mj-ui-accent)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mj-field-selection-feedback {
	background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-muted)!important;border-color:var(--mj-ui-border)!important;
}
.minejobs-omr-question-required-setting {color:var(--mj-ui-text)}
body.minejobs-dashboard-pro .minejobs-omr-job-suite[data-mj-screening-presentation] .minejobs-omr-question-option {height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important}
body.minejobs-dashboard-pro .minejobs-omr-job-suite[data-mj-screening-presentation] .minejobs-omr-question-choice {height:auto!important;min-height:44px!important;max-height:none!important;box-sizing:border-box!important;align-self:center!important}
body.minejobs-dashboard-pro .minejobs-omr-job-suite[data-mj-screening-presentation] .minejobs-omr-question-required-setting>label {height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;display:block!important}
.minejobs-omr-question-required-setting select {max-width:100%;min-height:38px;background:var(--mj-ui-surface);color:var(--mj-ui-text);border:1px solid var(--mj-ui-border);border-radius:8px;padding:5px 10px}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-question-required-setting :is(span,select) {color:var(--mj-ui-text)!important}
.minejobs-ai-guidance-unavailable {padding:10px 12px;border:1px solid var(--mj-ui-border);border-radius:10px;background:var(--mj-ui-surface-raised);color:var(--mj-ui-muted);line-height:1.8}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) .minejobs-ai-guidance-unavailable {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-muted)!important;border-color:var(--mj-ui-border)!important}
.minejobs-ai-guidance-unavailable a {color:var(--mj-ui-accent)}

/* OTP is injected by the SMS owner. Typography is owned by the containing auth
 * surface, not by a vendor's hard-coded light heading/label. */
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) .mj-auth-modal :is(.mj-auth-field label,.mj-auth-label-row label,.mj-auth-label,.mj-auth-otp-target-field>label,.mj-auth-otp-intro strong) {color:var(--mj-ui-text)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) .mj-auth-modal .mj-auth-otp-intro p {color:var(--mj-ui-muted)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) .mj-auth-modal .mj-auth-otp-icon {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-accent)!important;border-color:var(--mj-ui-border)!important}

/* Six primary children previously entered a five-column grid. Flexible actions
 * keep the primary label readable; progress grows independently of button text. */
.minejobs-operations-center .minejobs-operations-primary {display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.minejobs-operations-center .minejobs-operations-primary .button {flex:0 0 auto;min-width:0;max-width:100%;height:auto;min-height:42px;padding:10px 16px;line-height:1.6;white-space:normal;word-break:normal}
.minejobs-operations-center .minejobs-operations-primary .button-hero {min-width:180px}
.minejobs-operations-center .minejobs-operations-primary .minejobs-operations-progress {flex:1 1 200px}
.minejobs-operations-center .minejobs-operations-primary [data-mj-feedback] {flex:1 0 100%;min-width:0}

/* wp-admin keeps its existing native/owned palette, independently of public
 * and member preferences. No dark admin selectors or theme bridge. */
@media(max-width:782px) {.minejobs-operations-center .minejobs-operations-primary .button {flex:1 0 100%;width:100%}}

/* C-3910: map the actual advice/credential renderers, not a similar helper name.
 * Public/member-only states never apply to wp-admin. */
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.mjcap-builder .mjcap-behavior-note,.mjcap-builder .mjcap-trust-note,.mjcred-job-field .mjcred-job-help) {
  background:var(--mj-ui-surface-raised)!important;border-color:var(--mj-ui-border)!important;color:var(--mj-ui-muted)!important;
}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.mjcred-job-help b,.mjcred-job-help i,.mjcap-behavior-note i) {color:var(--mj-ui-accent)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-choice-guide .is-required>i {background:var(--mj-ui-danger-bg)!important;color:var(--mj-ui-danger)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-choice-guide .is-preferred>i {background:var(--mj-ui-warning-bg)!important;color:var(--mj-ui-warning)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.minejobs-omr-question-option,.minejobs-omr-question-required-setting>select) {background:var(--mj-ui-surface)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-question-option[data-omr-selected="1"] {background:var(--mj-ui-surface-raised)!important;border-color:var(--mj-ui-accent)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.minejobs-omr-question-required-setting>small,.minejobs-omr-question-effective) {color:var(--mj-ui-muted)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-question-check {background:var(--mj-ui-surface-raised)!important;border-color:var(--mj-ui-accent)!important}

html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form :is(.mj-apply-flow-progress,.minejobs-omr-apply-screening,.minejobs-omr-apply-question,.minejobs-omr-multi-select label,.mj-apply-stage-back) {
  background:var(--mj-ui-surface-raised)!important;border-color:var(--mj-ui-border)!important;color:var(--mj-ui-text)!important;
}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form :is(.minejobs-omr-apply-screening h4,.minejobs-omr-apply-question legend,.mj-apply-flow-progress>.is-active) {color:var(--mj-ui-text)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form :is(.minejobs-omr-apply-screening>p,.mj-apply-flow-progress>span) {color:var(--mj-ui-muted)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form .minejobs-omr-apply-question :is(input:not([type="checkbox"]),select,textarea) {
  background:var(--mj-ui-surface)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important;color-scheme:dark;
}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form .mj-apply-flow-progress>span b {background:var(--mj-ui-surface)!important;color:var(--mj-ui-muted)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form .mj-apply-flow-progress>.is-active b {background:#165bb0!important;color:#fff!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) .mj-apply-form .mj-apply-flow-progress>i {background:var(--mj-ui-border)!important}
html:is(.minejobs-frontend-theme-dark,[data-mj-frontend-theme="dark"],.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body:not(.wp-admin) #applyJobModal .mj-apply-form .mj-apply-stage-back {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-screening-card :is(.minejobs-omr-screening-count strong,.minejobs-omr-screening-count b,.minejobs-omr-screening-suggestion strong,.minejobs-omr-screening-help__body strong,.minejobs-omr-screening-safe-note strong) {color:var(--mj-ui-text)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-screening-card :is(.minejobs-omr-screening-suggestion small,.minejobs-omr-screening-safe-note p,.minejobs-omr-screening-picker>summary small) {color:var(--mj-ui-muted)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-screening-card :is(.minejobs-omr-screening-mark,.minejobs-omr-screening-benefits i,.minejobs-omr-screening-suggestion>span,.minejobs-omr-screening-picker__count) {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-accent)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-screening-card .minejobs-omr-screening-safe-note>span {background:var(--mj-ui-success-bg)!important;color:var(--mj-ui-success)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-role-guide,.mjcap-role-guide__status,.mjcap-role-profile) {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-role-guide__head strong,.mjcap-role-profile__title) {color:var(--mj-ui-text)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-role-guide__head p,.mjcap-role-guide__source,.mjcap-role-profile__summary) {color:var(--mj-ui-muted)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder :is(.mjcap-role-guide__icon,.mjcap-role-guide__eyebrow,.mjcap-role-guide__source i) {color:var(--mj-ui-accent)!important;background:var(--mj-ui-surface)!important;border-color:var(--mj-ui-border)!important}
/* Passive owner renderers must be readable even before the posting enhancer
 * tags generic .form-group nodes as field cards. No JavaScript paint dependency. */
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.minejobs-omr-job-suite,.mjcap-job-field,.mjcred-job-field) {background:var(--mj-ui-surface)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important;box-shadow:none!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro :is(.minejobs-omr-mode-pill,.minejobs-omr-smart-action,.minejobs-omr-smart-action--auto) {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-accent)!important;border-color:var(--mj-ui-border)!important;box-shadow:none!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-smart-actions>span i {background:var(--mj-ui-success-bg)!important;color:var(--mj-ui-success)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro #post_job_form {background:var(--mj-ui-surface)!important;color:var(--mj-ui-text)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .minejobs-omr-job-card--smart::after {background:none!important;animation:none!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder .mjcap-remove {background:var(--mj-ui-surface-raised)!important;color:var(--mj-ui-muted)!important;border-color:var(--mj-ui-border)!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder .mjcap-importance button.is-active[data-mjcap-importance="required"] {background:var(--mj-ui-danger-bg)!important;color:var(--mj-ui-danger)!important;box-shadow:none!important}
html:is(.minejobs-dashboard-theme-dark,[data-mj-dashboard-theme="dark"]) body.minejobs-dashboard-pro .mjcap-builder .mjcap-importance button.is-active[data-mjcap-importance="preferred"] {background:var(--mj-ui-warning-bg)!important;color:var(--mj-ui-warning)!important;box-shadow:none!important}
