/* MineJobs credentials module. Component styles only; dashboard shell/layout is intentionally untouched. */
.mjcred-card { position: relative; }
.mjcred-note,
.mjcred-disabled,
.mjcred-public-disabled {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    background: #f4f8ff;
    color: #31577f;
    font-size: 13px;
    line-height: 1.9;
}
.mjcred-note i,
.mjcred-disabled i,
.mjcred-public-disabled i { color: #1677ff; margin-top: 4px; }
.mjcred-card--disabled { opacity: .9; }
.mjcred-card--disabled .mjcred-disabled { border-style: dashed; background: #f6f7f9; color: #687586; }

.mjcred-list { display: grid; gap: 16px; margin-top: 18px; }
.mjcred-row {
    border: 1px solid #e1e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(21, 46, 76, .06);
}
.mjcred-row.is-removed { display: none !important; }
.mjcred-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mjcred-row__head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.mjcred-row__head strong { color: #152f4a; font-size: 15px; }
.mjcred-remove {
    width: 36px; height: 36px; border: 1px solid #ffd9df; border-radius: 11px;
    background: #fff7f8; color: #d83a50; cursor: pointer; transition: .2s ease;
}
.mjcred-remove:hover { background: #d83a50; color: #fff; }
.mjcred-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mjcred-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mjcred-field--wide { grid-column: 1 / -1; }
.mjcred-field > span { color: #52667b; font-size: 12px; font-weight: 700; }
.mjcred-field input,
.mjcred-field select,
.mjcred-field textarea {
    width: 100%; min-height: 44px; border: 1px solid #dbe4ee; border-radius: 12px;
    background: #f7f9fc; color: #1d334b; padding: 9px 12px; box-shadow: none;
}
.mjcred-field textarea { min-height: 76px; resize: vertical; }
.mjcred-field input:focus,
.mjcred-field select:focus,
.mjcred-field textarea:focus { border-color: #1677ff; background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(22,119,255,.11); }
.mjcred-manual-fields { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mjcred-manual-fields.is-visible { display: grid; }
.mjcred-upload input[type="file"] { padding: 8px; background: #fff; }
.mjcred-upload em { color: #77879a; font-size: 11px; font-style: normal; }
.mjcred-file-existing { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 12px; background: #f7f9fc; }
.mjcred-file-existing a { color: #1265d8; font-weight: 700; }
.mjcred-file-existing label { display: flex; align-items: center; gap: 6px; color: #687586; font-size: 12px; }
.mjcred-add,
.mjcred-verify-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; border-radius: 12px; font-weight: 800; text-decoration: none;
}
.mjcred-add { margin-top: 16px; padding: 0 17px; border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, #146cf2, #20a1ff); box-shadow: 0 8px 20px rgba(20,108,242,.2); }
.mjcred-verify-link { margin-top: 13px; padding: 0 14px; border: 1px solid #cfe0ff; color: #1265d8; background: #f4f8ff; }

.mjcred-status { display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: #eef2f6; color: #637386; font-size: 10px; font-style: normal; font-weight: 800; }
.mjcred-status--issuer_verified,
.mjcred-status--valid { background: #e1f7ec; color: #08794a; }
.mjcred-status--minejobs_verified { background: #e7f1ff; color: #1265d8; }
.mjcred-status--pending,
.mjcred-status--documented { background: #fff5db; color: #986600; }
.mjcred-status--expired,
.mjcred-status--revoked,
.mjcred-status--identity_mismatch,
.mjcred-status--rejected,
.mjcred-status--error { background: #ffeaed; color: #b6253a; }

.mjcred-job-field em { display: block; margin-top: 7px; color: #728397; font-size: 12px; font-style: normal; line-height: 1.8; }
.mjcred-job-field--disabled select { opacity: .65; cursor: not-allowed; }
.mjcred-job-field .chosen-container,
.mjcred-job-field .select2-container,
.mjcred-card .chosen-container,
.mjcred-card .select2-container { width: 100% !important; }
.mjcred-card .chosen-container-multi .chosen-choices,
.mjcred-job-field .chosen-container-multi .chosen-choices { min-height: 44px; border: 1px solid #dbe4ee; border-radius: 12px; background: #f7f9fc; padding: 5px 8px; box-shadow: none; }
.mjcred-card .chosen-container-multi .chosen-choices li.search-choice,
.mjcred-job-field .chosen-container-multi .chosen-choices li.search-choice { border: 0; border-radius: 9px; background: #e7f1ff; color: #1265d8; box-shadow: none; padding: 6px 24px 6px 9px; }

.mjcred-job-requirements.is-disabled { opacity: .9; }
.mjcred-job-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.mjcred-job-chips > span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d6e5ff; border-radius: 12px; background: #f5f9ff; color: #205d9f; font-size: 12px; font-weight: 800; }
.mjcred-job-chips i { color: #1677ff; }
.mjcred-job-hint { margin: 12px 0 0; color: #708197; font-size: 12px; }

.mjcred-public-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.mjcred-public-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e1e8f0; border-radius: 14px; background: #fff; }
.mjcred-public-item__icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #eaf3ff; color: #1677ff; }
.mjcred-public-item strong,
.mjcred-public-item small { display: block; }
.mjcred-public-item strong { color: #18344f; font-size: 13px; line-height: 1.6; }
.mjcred-public-item small { color: #8290a0; font-size: 10px; margin-top: 2px; }

/* Admin components, scoped to this module. */
.mjcred-admin .minejobs-admin-tabs { margin-bottom: 18px; }
.mjcred-settings-form h2 { margin: 0 0 12px; color: #18344f; }
.mjcred-settings-form hr { margin: 24px 0; border: 0; border-top: 1px solid #e3e9f0; }
.mjcred-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mjcred-settings-grid > label:not(.mjcred-setting-switch) { display: flex; flex-direction: column; gap: 7px; }
.mjcred-settings-grid > label > span { color: #4e6277; font-weight: 700; }
.mjcred-settings-grid input[type="text"],
.mjcred-settings-grid input[type="url"],
.mjcred-settings-grid input[type="password"],
.mjcred-settings-grid input[type="number"],
.mjcred-settings-grid textarea { width: 100%; border-color: #dce4ed; border-radius: 10px; background: #f7f9fb; }
.mjcred-setting-wide { grid-column: 1 / -1; }
.mjcred-setting-switch { display: flex; align-items: flex-start; gap: 10px; min-height: 70px; padding: 14px; border: 1px solid #e0e7ef; border-radius: 13px; background: #fff; }
.mjcred-setting-switch input { margin-top: 4px; }
.mjcred-setting-switch span { display: block; }
.mjcred-setting-switch strong,
.mjcred-setting-switch small { display: block; }
.mjcred-setting-switch small { margin-top: 5px; color: #7b8998; font-weight: 400; line-height: 1.7; }
.mjcred-connection-state { display: flex; align-items: center; gap: 12px; margin: 13px 0 16px; padding: 13px 15px; border: 1px solid #f0d99a; border-radius: 13px; background: #fff9e8; }
.mjcred-connection-state.is-ready { border-color: #bce8d1; background: #edfbf4; }
.mjcred-connection-state i { color: #b47a00; }
.mjcred-connection-state.is-ready i { color: #07844d; }
.mjcred-connection-state strong,
.mjcred-connection-state span { display: block; }
.mjcred-connection-state span { margin-top: 3px; color: #708092; }
.mjcred-connection-state small { display: block; margin-top: 5px; color: #8a5a00; line-height: 1.7; }
.mjcred-connection-state.is-ready small { color: #48695a; }
.mjcred-bulk { display: flex; align-items: center; gap: 9px; padding: 12px 0; }
.mjcred-bulk span { margin-inline-start: auto; color: #6f7f90; }
.mjcred-admin .minejobs-admin-table td small,
.mjcred-admin .minejobs-admin-table th small { display: block; margin-top: 4px; color: #8592a0; }
.mjcred-filter { margin-bottom: 13px; }
.mjcred-admin .tablenav-pages { padding: 14px 0 4px; }

@media (max-width: 782px) {
    .mjcred-fields,
    .mjcred-manual-fields,
    .mjcred-public-list,
    .mjcred-settings-grid { grid-template-columns: 1fr; }
    .mjcred-setting-wide,
    .mjcred-field--wide,
    .mjcred-manual-fields { grid-column: auto; }
    .mjcred-public-item { grid-template-columns: 36px minmax(0, 1fr); }
    .mjcred-public-item .mjcred-status { grid-column: 2; justify-self: start; }
    .mjcred-file-existing,
    .mjcred-bulk { align-items: flex-start; flex-direction: column; }
    .mjcred-bulk span { margin-inline-start: 0; }
}
.mjcred-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.mjcred-row-actions .button { white-space: nowrap; }
.mjcred-status--near_expiry { background: #fff1d8; color: #9b6500; }
.mjcred-inline-notice { margin: 0 0 14px; padding: 11px 13px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.mjcred-inline-notice.is-success { border: 1px solid #bce8d1; background: #edfbf4; color: #08794a; }
.mjcred-inline-notice.is-error { border: 1px solid #ffd3da; background: #fff1f3; color: #af283b; }


/* Resume-scoped credential editor. Layout shell remains controlled by shell-lock. */
.mjcred-resume-panel .panel-body { padding: 18px; }
.mjcred-resume-form { width: 100%; }
.mjcred-resume-form .mjcred-note { margin-bottom: 16px; }


/* MineJobs Credentials UX layer — component scoped, no dashboard shell rules. */
.mjcred-resume-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    border: 1px solid #dce9fb;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}
.mjcred-resume-intro h4 { margin: 6px 0 7px; color: #153b63; font-size: 18px; line-height: 1.6; }
.mjcred-resume-intro p { max-width: 720px; margin: 0; color: #63788d; font-size: 13px; line-height: 1.9; }
.mjcred-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #176bd1; font-size: 11px; font-weight: 800; }
.mjcred-summary { display: flex; flex: 0 0 auto; gap: 8px; }
.mjcred-summary > span { min-width: 82px; padding: 10px 12px; border: 1px solid rgba(22,119,255,.14); border-radius: 13px; background: rgba(255,255,255,.86); color: #64778b; text-align: center; font-size: 10px; }
.mjcred-summary strong { display: block; color: #1265d8; font-size: 18px; line-height: 1.2; }
.mjcred-guidance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 14px 0 0; }
.mjcred-guidance-grid > span { display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 9px; align-items: center; padding: 11px 12px; border: 1px solid #e4ebf3; border-radius: 13px; background: #fff; }
.mjcred-guidance-grid i { grid-row: 1 / span 2; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #eef6ff; color: #1677ff; }
.mjcred-guidance-grid b { color: #314b65; font-size: 11px; }
.mjcred-guidance-grid small { color: #7a8a9b; font-size: 10px; line-height: 1.65; }
.mjcred-global-feedback:empty { display: none; }
.mjcred-global-feedback { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 11px; font-size: 12px; }
.mjcred-global-feedback.is-info { background: #eef6ff; color: #215f9f; }
.mjcred-global-feedback.is-success { background: #ecfbf4; color: #08794a; }
.mjcred-global-feedback.is-error { background: #fff0f2; color: #b6253a; }
.mjcred-empty-state { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; border: 1px dashed #cbd9e7; border-radius: 16px; background: #fbfcfe; }
.mjcred-empty-state.is-hidden { display: none; }
.mjcred-empty-state__icon { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: #eaf3ff; color: #1677ff; font-size: 19px; }
.mjcred-empty-state > div { min-width: 0; flex: 1; }
.mjcred-empty-state strong { color: #24425f; font-size: 13px; }
.mjcred-empty-state p { margin: 4px 0 0; color: #7a8999; font-size: 11px; line-height: 1.8; }
.mjcred-empty-add { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid #bfd8ff; border-radius: 11px; background: #fff; color: #1265d8; font-weight: 800; cursor: pointer; }
.mjcred-row { overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
.mjcred-row:focus-within { border-color: #aacbff; box-shadow: 0 10px 30px rgba(21,80,150,.1); }
.mjcred-row__head { justify-content: flex-start; }
.mjcred-row__icon { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: #eaf3ff; color: #1677ff; }
.mjcred-row__title { min-width: 0; flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 9px; }
.mjcred-row__title small { width: 100%; color: #8a98a7; font-size: 9px; font-weight: 700; }
.mjcred-row__title strong { overflow-wrap: anywhere; }
.mjcred-remove { width: auto; min-width: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mjcred-remove span { font-size: 11px; font-weight: 800; }
.mjcred-status-help { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 14px; padding: 9px 11px; border-radius: 10px; background: #f6f8fb; color: #66788a; font-size: 11px; line-height: 1.75; }
.mjcred-status-help i { margin-top: 4px; color: #7890a7; }
.mjcred-status-help--valid,
.mjcred-status-help--issuer_verified,
.mjcred-status-help--minejobs_verified { background: #eefaf5; color: #39715a; }
.mjcred-status-help--expired,
.mjcred-status-help--revoked,
.mjcred-status-help--identity_mismatch,
.mjcred-status-help--rejected,
.mjcred-status-help--error { background: #fff3f4; color: #984153; }
.mjcred-field > span small { margin-inline-start: 5px; color: #8a98a8; font-size: 9px; font-weight: 500; }
.mjcred-field > span b { color: #d83a50; }
.mjcred-field > em { color: #8492a2; font-size: 10px; font-style: normal; line-height: 1.7; }
.mjcred-field input.is-invalid { border-color: #e14a60; background: #fff8f9; box-shadow: 0 0 0 3px rgba(225,74,96,.08); }
.mjcred-field-message { min-height: 0; font-size: 10px; line-height: 1.6; }
.mjcred-field-message:empty { display: none; }
.mjcred-field-message.is-error { color: #b6253a; }
.mjcred-field-message.is-success { color: #08794a; }
.mjcred-manual-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #dce9fb; border-radius: 11px; background: #f5f9ff; color: #496b8e; font-size: 11px; line-height: 1.75; }
.mjcred-manual-note i { margin-top: 4px; color: #1677ff; }
.mjcred-upload-box { position: relative; display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 11px 13px; border: 1px dashed #bfcfe0; border-radius: 13px; background: #fbfcfe; color: #61788e; cursor: pointer; transition: .2s ease; }
.mjcred-upload-box:hover { border-color: #79aef7; background: #f5f9ff; }
.mjcred-upload-box > i { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #eaf3ff; color: #1677ff; font-size: 16px; }
.mjcred-upload-box > span { display: flex; min-width: 0; flex-direction: column; }
.mjcred-upload-box strong { color: #2f4c68; font-size: 11px; }
.mjcred-upload-box small { margin-top: 3px; color: #8593a2; font-size: 9px; }
.mjcred-upload-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mjcred-upload-box.is-ready { border-style: solid; border-color: #7bd0a7; background: #f1fcf6; }
.mjcred-upload-box.is-error { border-style: solid; border-color: #efa7b2; background: #fff7f8; }
.mjcred-file-feedback { font-size: 10px; line-height: 1.7; }
.mjcred-file-feedback:empty { display: none; }
.mjcred-file-feedback.is-success { color: #08794a; }
.mjcred-file-feedback.is-error { color: #b6253a; }
.mjcred-file-existing { flex-wrap: wrap; }
.mjcred-file-existing > div { display: flex; align-items: center; gap: 9px; min-width: 220px; flex: 1; }
.mjcred-file-existing > div > i { color: #1677ff; }
.mjcred-file-existing > div span { display: flex; flex-direction: column; }
.mjcred-file-existing strong { color: #344e67; font-size: 11px; }
.mjcred-file-existing small { margin-top: 2px; color: #8795a4; font-size: 9px; }
.mjcred-file-existing a { display: inline-flex; align-items: center; gap: 6px; }
.mjcred-verify-link { align-items: center; justify-content: flex-start; min-height: 54px; }
.mjcred-verify-link > span { display: flex; flex-direction: column; }
.mjcred-verify-link strong { font-size: 11px; }
.mjcred-verify-link small { margin-top: 2px; color: #6784a5; font-size: 9px; font-weight: 500; }
.mjcred-delete-banner { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #ffd1d8; border-radius: 13px; background: #fff6f7; color: #9b3042; }
.mjcred-delete-banner[hidden] { display: none; }
.mjcred-delete-banner > span { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.mjcred-delete-banner strong { font-size: 11px; }
.mjcred-delete-banner small { margin-top: 2px; color: #a75d69; font-size: 9px; }
.mjcred-delete-banner button { border: 1px solid #edacb7; border-radius: 9px; background: #fff; color: #a42e42; padding: 7px 10px; font-size: 10px; font-weight: 800; cursor: pointer; }
.mjcred-row.is-pending-delete { border-color: #ffd2d9; background: #fffafa; box-shadow: none; }
.mjcred-row.is-pending-delete [data-mjcred-row-fields],
.mjcred-row.is-pending-delete .mjcred-status-help,
.mjcred-row.is-pending-delete .mjcred-verify-link { display: none; }
.mjcred-row.is-pending-delete .mjcred-row__head { opacity: .55; }
.mjcred-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.mjcred-actions.has-no-rows > .mjcred-add { display: none; }
.mjcred-add { margin-top: 0; text-align: right; }
.mjcred-add > span { display: flex; flex-direction: column; }
.mjcred-add strong { font-size: 11px; }
.mjcred-add small { margin-top: 2px; color: rgba(255,255,255,.8); font-size: 9px; font-weight: 500; }
.mjcred-add:disabled,
.mjcred-empty-add:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.mjcred-save-hint { display: flex; align-items: flex-start; gap: 8px; max-width: 480px; margin: 0; color: #718296; font-size: 10px; line-height: 1.8; }
.mjcred-save-hint i { margin-top: 4px; color: #1677ff; }
.mjcred-inline-notice { display: flex; align-items: flex-start; gap: 9px; }
.mjcred-inline-notice > span { display: flex; flex-direction: column; }
.mjcred-inline-notice small { margin-top: 3px; font-weight: 500; line-height: 1.7; }
.mjcred-disabled > span { display: flex; flex-direction: column; }
.mjcred-disabled strong { color: #405166; }
.mjcred-disabled small { margin-top: 3px; color: #718093; }
.mjcred-job-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #f5f9ff; color: #537393; font-size: 10px; line-height: 1.7; }
.mjcred-job-help span { display: inline-flex; align-items: flex-start; gap: 6px; }
.mjcred-job-help i { margin-top: 3px; color: #1677ff; }
.mjcred-job-help b { flex: 0 0 auto; color: #1265d8; font-size: 9px; }
.mjcred-admin-section-head { margin: 0 0 15px; }
.mjcred-admin-section-head > span { color: #1677ff; font-size: 10px; font-weight: 800; }
.mjcred-admin-section-head h2 { margin: 4px 0 5px; }
.mjcred-admin-section-head p { margin: 0; color: #718193; line-height: 1.8; }
.mjcred-filter .dashicons { width: 16px; height: 16px; font-size: 16px; vertical-align: middle; }

@media (max-width: 782px) {
    .mjcred-resume-intro,
    .mjcred-actions,
    .mjcred-empty-state { align-items: stretch; flex-direction: column; }
    .mjcred-summary { width: 100%; }
    .mjcred-summary > span { flex: 1; }
    .mjcred-guidance-grid { grid-template-columns: 1fr; }
    .mjcred-row { padding: 14px; }
    .mjcred-row__head { align-items: flex-start; }
    .mjcred-row__icon { width: 38px; height: 38px; flex-basis: 38px; }
    .mjcred-remove span { display: none; }
    .mjcred-remove { width: 36px; padding: 0; }
    .mjcred-empty-add,
    .mjcred-add { width: 100%; }
    .mjcred-save-hint { max-width: none; }
    .mjcred-delete-banner { align-items: flex-start; flex-wrap: wrap; }
    .mjcred-delete-banner button { width: 100%; }
    .mjcred-job-help { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .mjcred-row,
    .mjcred-upload-box,
    .mjcred-remove { transition: none; }
}

.mjcred-row.has-validation-error { border-color: #e55b70; box-shadow: 0 0 0 3px rgba(229,91,112,.08); }
.mjcred-row.has-validation-error .mjcred-row__icon { background: #fff0f2; color: #c7354c; }

/* Accessibility and readability refinements for the credentials experience. */
.mjcred-resume-form .mjcred-summary > span,
.mjcred-resume-form .mjcred-guidance-grid small,
.mjcred-resume-form .mjcred-row__title small,
.mjcred-resume-form .mjcred-field > span small,
.mjcred-resume-form .mjcred-field > em,
.mjcred-resume-form .mjcred-field-message,
.mjcred-resume-form .mjcred-upload-box small,
.mjcred-resume-form .mjcred-file-feedback,
.mjcred-resume-form .mjcred-file-existing small,
.mjcred-resume-form .mjcred-verify-link small,
.mjcred-resume-form .mjcred-delete-banner small,
.mjcred-resume-form .mjcred-add small,
.mjcred-resume-form .mjcred-save-hint,
.mjcred-job-help,
.mjcred-job-help b { font-size: 11px; }
.mjcred-resume-form .mjcred-empty-state p { font-size: 12px; }
.mjcred-resume-form .mjcred-row__title strong,
.mjcred-resume-form .mjcred-empty-state strong { font-size: 13px; }
.mjcred-empty-add,
.mjcred-add,
.mjcred-remove,
.mjcred-delete-banner button { min-height: 44px; }
.mjcred-upload-box:focus-within,
.mjcred-empty-add:focus-visible,
.mjcred-add:focus-visible,
.mjcred-remove:focus-visible,
.mjcred-delete-banner button:focus-visible,
.mjcred-verify-link:focus-visible,
.mjcred-file-existing a:focus-visible {
    outline: 3px solid rgba(22,119,255,.28);
    outline-offset: 2px;
}
.mjcred-job-feedback { display: block; min-height: 0; margin-top: 6px; color: #7a8998; font-size: 11px; line-height: 1.7; }
.mjcred-job-feedback:empty { display: none; }
.mjcred-job-feedback.is-error { color: #b6253a; }
.mjcred-settings-grid > label:not(.mjcred-setting-switch) > small { color: #7b8998; font-size: 12px; font-weight: 400; line-height: 1.75; }
.mjcred-settings-grid input:focus,
.mjcred-settings-grid textarea:focus,
.mjcred-settings-grid select:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); outline: 0; }

@media (max-width: 782px) {
    .mjcred-remove { width: 44px; min-width: 44px; }
    .mjcred-upload-box { min-height: 74px; }
}

/* MineJobs Credentials 1.6 — compact review and clear file decisions. */
.mjcred-row__controls {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}
.mjcred-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #cfe0f4;
    border-radius: 11px;
    background: #f7faff;
    color: #315f8f;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.mjcred-toggle:hover { border-color: #8bb8ef; background: #edf5ff; color: #1265d8; }
.mjcred-toggle:focus-visible { outline: 3px solid rgba(22,119,255,.28); outline-offset: 2px; }
.mjcred-row__meta {
    width: 100%;
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}
.mjcred-row__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #e1e9f2;
    border-radius: 999px;
    background: #f8fafc;
    color: #65788b;
    font-size: 9px;
    font-weight: 700;
}
.mjcred-row__meta > span[hidden] { display: none !important; }
.mjcred-row__meta i { color: #6d99cb; }
.mjcred-row__meta em { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.mjcred-row.is-collapsed { padding-block: 14px; box-shadow: 0 5px 18px rgba(21,46,76,.045); }
.mjcred-row.is-collapsed .mjcred-row__head { margin-bottom: 0; }
.mjcred-row.is-collapsed .mjcred-row__meta { display: flex; }
.mjcred-row.is-collapsed [data-mjcred-row-fields],
.mjcred-row.is-collapsed .mjcred-status-help,
.mjcred-row.is-collapsed .mjcred-verify-link { display: none !important; }
.mjcred-row.has-validation-error { border-color: #eba5b0; box-shadow: 0 0 0 3px rgba(225,74,96,.08); }
.mjcred-file-existing.is-replacing { border-color: #b9e5ce; background: #f1fbf6; }
.mjcred-file-existing.is-replacing > div > i { color: #0a8a52; }
.mjcred-file-existing.is-removing { border-color: #f2c7ce; background: #fff6f7; }
.mjcred-file-existing.is-removing > div > i,
.mjcred-file-existing.is-removing strong { color: #b2374a; }
.mjcred-file-feedback.is-info { color: #496b8e; }

@media (max-width: 782px) {
    .mjcred-row__head {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }
    .mjcred-row__controls {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: flex-end;
    }
    .mjcred-toggle { flex: 1; min-height: 44px; }
    .mjcred-remove { width: auto; min-width: 76px; min-height: 44px; padding-inline: 12px; }
    .mjcred-row__meta > span { max-width: 100%; }
    .mjcred-row__meta em { max-width: 210px; }
    .mjcred-file-existing label { width: 100%; padding-top: 8px; border-top: 1px solid #e4eaf1; }
}
@media (max-width: 782px) {
    .mjcred-remove span { display: inline; }
}
.mjcred-field select.is-invalid,
.mjcred-card .chosen-container.is-invalid .chosen-single,
.mjcred-card .chosen-container.is-invalid .chosen-choices,
.mjcred-card .select2-container.is-invalid .select2-selection {
    border-color: #e14a60 !important;
    background: #fff8f9 !important;
    box-shadow: 0 0 0 3px rgba(225,74,96,.08) !important;
}


/* Version clarity: separate feature releases from database schema migrations. */
.mjcred-version-state {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px;
    border: 1px solid #c9e8d7;
    border-radius: 14px;
    background: #f2fbf6;
}
.mjcred-version-state.needs-update { border-color: #f0d99a; background: #fff9e8; }
.mjcred-version-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: #dff5e8;
    color: #087b49;
}
.mjcred-version-state.needs-update .mjcred-version-state__icon { background: #fff0c7; color: #a66a00; }
.mjcred-version-state__content { min-width: 0; flex: 1; }
.mjcred-version-state__content > strong { display: block; color: #244356; font-size: 14px; }
.mjcred-version-state__content > p { margin: 5px 0 12px; color: #667b8d; line-height: 1.8; }
.mjcred-version-state__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mjcred-version-state__items > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(74, 136, 105, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
}
.mjcred-version-state__items small { color: #6c8090; line-height: 1.5; }
.mjcred-version-state__items b { direction: ltr; white-space: nowrap; color: #244356; }
.mjcred-version-state__note { display: block; margin-top: 10px; color: #607788; line-height: 1.8; }
@media (max-width: 782px) {
    .mjcred-version-state { padding: 14px; }
    .mjcred-version-state__items { grid-template-columns: 1fr; }
}


/* MineJobs Credentials 1.9 — behavioral UX, decision clarity and humane admin states. */
.mjcred-journey,
.mjcred-admin-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.mjcred-journey > span,
.mjcred-admin-journey > span {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 9px;
    align-items: center;
    min-height: 64px;
    padding: 11px 12px;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    background: #fff;
}
.mjcred-journey > span:not(:last-child)::after,
.mjcred-admin-journey > span:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-end: -11px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #d7e5f4;
}
.mjcred-journey b,
.mjcred-admin-journey b {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #edf4fc;
    color: #5f7690;
    font-size: 12px;
}
.mjcred-journey .is-current b,
.mjcred-admin-journey b { background: #e8f2ff; color: #0b6cff; }
.mjcred-journey strong,
.mjcred-admin-journey strong { color: #294862; font-size: 11px; }
.mjcred-journey small,
.mjcred-admin-journey small { color: #7d8d9d; font-size: 10px; line-height: 1.6; }

.mjcred-admin-journey { margin-top: -10px; margin-bottom: 22px; }
.mjcred-admin-journey > span { min-height: 72px; border-color: #dbe8f8; background: #f9fbff; }
.mjcred-admin-journey strong { font-size: 13px; }
.mjcred-admin-journey small { font-size: 11px; }
.mjcred-admin-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mjcred-admin-tabs a { justify-content: flex-start; gap: 9px; min-height: 58px; padding: 8px 12px; text-align: right; }
.mjcred-admin-tabs a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.mjcred-admin-tabs a strong { font-size: 12px; line-height: 1.6; }
.mjcred-admin-tabs a small { margin-top: 1px; color: inherit; opacity: .74; font-size: 9px; font-weight: 500; line-height: 1.45; }
.mjcred-admin-tabs .dashicons { flex: 0 0 20px; }

.mjcred-admin-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #c9e8d7;
    border-radius: 14px;
    background: #f1fbf6;
}
.mjcred-admin-feedback.is-warning { border-color: #f1d99b; background: #fff9e8; }
.mjcred-admin-feedback.is-error { border-color: #f1c1c9; background: #fff5f6; }
.mjcred-admin-feedback > .dashicons { margin-top: 2px; color: #07844d; }
.mjcred-admin-feedback.is-warning > .dashicons { color: #a86d00; }
.mjcred-admin-feedback.is-error > .dashicons { color: #b52d42; }
.mjcred-admin-feedback strong { display: block; color: #244356; }
.mjcred-admin-feedback p { margin: 3px 0 0; }

.mjcred-settings-form { padding: 22px; overflow: visible; }
.mjcred-settings-section { margin-top: 18px; padding: 20px; border: 1px solid #e2e9f1; border-radius: 16px; background: #fbfdff; }
.mjcred-settings-section:first-of-type { margin-top: 0; }
.mjcred-setting-switch { position: relative; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.mjcred-setting-switch:hover { border-color: #b8d2f2; box-shadow: 0 8px 22px rgba(22, 86, 150, .06); }
.mjcred-setting-switch:has(input:focus-visible) { border-color: #7eafea; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.mjcred-setting-switch input[type="checkbox"] { appearance: none; width: 42px; height: 24px; flex: 0 0 42px; margin: 1px 0 0; border: 1px solid #c9d4df; border-radius: 999px; background: #dce3ea; cursor: pointer; transition: .2s ease; }
.mjcred-setting-switch input[type="checkbox"]::before { content: ""; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(15,23,42,.18); transition: transform .2s ease; }
.mjcred-setting-switch input[type="checkbox"]:checked { border-color: #0b6cff; background: #0b6cff; }
.mjcred-setting-switch input[type="checkbox"]:checked::before { transform: translateX(-18px); }
.mjcred-setting-switch--danger { border-color: #f0d9dd; background: #fffafb; }
.mjcred-setting-switch--danger strong { color: #a63043; }
.mjcred-settings-actions { position: sticky; z-index: 4; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 13px 15px; border: 1px solid #d5e5f7; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 12px 34px rgba(15,66,129,.12); backdrop-filter: blur(9px); }
.mjcred-settings-actions > span { display: flex; flex-direction: column; }
.mjcred-settings-actions strong { color: #294862; }
.mjcred-settings-actions small { margin-top: 2px; color: #7c8b9a; }
.mjcred-settings-actions .button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; }

.mjcred-filter { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)) auto; align-items: end; gap: 10px; }
.mjcred-filter-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.mjcred-filter-field > span { color: #60758a; font-size: 10px; font-weight: 900; }
.mjcred-filter-field input,
.mjcred-filter-field select { width: 100%; min-height: 40px; margin: 0; }
.mjcred-filter-actions { display: flex; gap: 7px; }
.mjcred-filter-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; white-space: nowrap; }

.mjcred-admin-list { padding: 16px; }
.mjcred-bulk { display: grid; grid-template-columns: minmax(280px, auto) 1fr auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border: 1px solid #e2eaf3; border-radius: 13px; background: #f8fbff; }
.mjcred-bulk > div { display: flex; align-items: center; gap: 7px; }
.mjcred-bulk select { min-width: 250px; }
.mjcred-bulk p { display: flex; flex-direction: column; margin: 0; text-align: center; }
.mjcred-bulk p strong { color: #294862; }
.mjcred-bulk p small { margin-top: 2px; color: #7d8c9c; }
.mjcred-bulk [data-mjcred-bulk-apply]:disabled { opacity: .55; cursor: not-allowed; }
.mjcred-delete-filtered { justify-self: end; }
.mjcred-admin-list .minejobs-admin-table { overflow: hidden; border-radius: 14px; }
.mjcred-admin-list .minejobs-admin-table tbody tr:hover td,
.mjcred-admin-list .minejobs-admin-table tbody tr:hover th { background: #f8fbff; }
.mjcred-row-actions .button:first-child { border-color: #9fc3f2; color: #0b63cf; background: #f5f9ff; }
.mjcred-row-actions .button-link-delete { border-color: transparent; }

.mjcred-admin-state { display: flex; align-items: flex-start; gap: 14px; padding: 22px; }
.mjcred-admin-state > .dashicons { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: #fff0f2; color: #b52d42; font-size: 22px; }
.mjcred-admin-state h2 { margin: 0 0 6px; }
.mjcred-admin-state p { margin: 5px 0 0; }
.mjcred-admin-empty { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 150px; padding: 22px; text-align: right; }
.mjcred-admin-empty > .dashicons { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: #eaf3ff; color: #0b6cff; font-size: 23px; }
.mjcred-admin-empty > div { min-width: 0; }
.mjcred-admin-empty strong { display: block; color: #294862; font-size: 14px; }
.mjcred-admin-empty p { margin: 4px 0 0; }
.mjcred-admin-empty .button { margin-inline-start: 12px; }

@media (max-width: 1100px) {
    .mjcred-admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mjcred-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mjcred-filter-actions { grid-column: 1 / -1; }
    .mjcred-bulk { grid-template-columns: 1fr auto; }
    .mjcred-bulk > div { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
    .mjcred-journey,
    .mjcred-admin-journey,
    .mjcred-admin-tabs,
    .mjcred-filter { grid-template-columns: 1fr; }
    .mjcred-journey > span:not(:last-child)::after,
    .mjcred-admin-journey > span:not(:last-child)::after { inset-inline-end: auto; left: 50%; top: auto; bottom: -11px; width: 2px; height: 12px; }
    .mjcred-admin-tabs a { min-height: 52px; }
    .mjcred-settings-section { padding: 14px; }
    .mjcred-settings-actions { position: static; align-items: stretch; flex-direction: column; }
    .mjcred-settings-actions .button { width: 100%; justify-content: center; }
    .mjcred-filter-actions,
    .mjcred-bulk,
    .mjcred-bulk > div { display: flex; align-items: stretch; flex-direction: column; }
    .mjcred-filter-actions .button,
    .mjcred-bulk select,
    .mjcred-bulk .button { width: 100%; }
    .mjcred-delete-filtered { justify-self: stretch; }
    .mjcred-admin-empty { align-items: stretch; flex-direction: column; text-align: center; }
    .mjcred-admin-empty > .dashicons { align-self: center; }
    .mjcred-admin-empty .button { margin: 6px 0 0; }
}


/* MineJobs credentials UX refinement r113 */
.mjcred-completion { display:inline-flex; align-items:center; min-height:24px; padding:3px 9px; border:1px solid #dce7f2; border-radius:999px; background:#f8fafc; color:#64748b; font-size:10px; font-weight:800; line-height:1.4; }
.mjcred-completion.is-ready { border-color:#bfe4cf; background:#effbf5; color:#08794a; }
.mjcred-completion.is-saved { border-color:#cfe0f4; background:#f5f9ff; color:#315f8f; }
.mjcred-completion.is-incomplete { border-color:#efdca9; background:#fff9e9; color:#8a6200; }
.mjcred-completion.is-error,.mjcred-completion.is-delete { border-color:#efc4cb; background:#fff5f6; color:#b52d42; }
.mjcred-save-state { display:flex; align-items:flex-start; gap:10px; margin:12px 0 16px; padding:12px 14px; border:1px solid #cfe8da; border-radius:14px; background:#f3fbf7; }
.mjcred-save-state > i { margin-top:3px; color:#08794a; }
.mjcred-save-state span { display:flex; min-width:0; flex-direction:column; }
.mjcred-save-state strong { color:#294862; font-size:12px; }
.mjcred-save-state small { margin-top:2px; color:#6f8191; line-height:1.7; }
.mjcred-save-state.is-dirty { border-color:#efd99e; background:#fff9e9; }
.mjcred-save-state.is-dirty > i { color:#a66b00; }
.mjcred-save-state.is-error { border-color:#efc4cb; background:#fff5f6; }
.mjcred-save-state.is-error > i { color:#b52d42; }
.mjcred-selected-file { display:flex; align-items:center; gap:9px; margin-top:9px; padding:9px 11px; border:1px solid #c8e8d6; border-radius:12px; background:#f2fbf6; }
.mjcred-selected-file[hidden] { display:none !important; }
.mjcred-selected-file > i { color:#08794a; }
.mjcred-selected-file > span { display:flex; min-width:0; flex:1; flex-direction:column; }
.mjcred-selected-file strong { overflow:hidden; color:#294862; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.mjcred-selected-file small { margin-top:2px; color:#6f8177; font-size:9px; }
.mjcred-selected-file button { padding:3px 7px; border:0; background:transparent; color:#a03c4c; cursor:pointer; font:inherit; font-size:10px; font-weight:800; }
.mjcred-selected-file button:focus-visible { outline:3px solid rgba(11,108,255,.2); outline-offset:2px; border-radius:6px; }
.mjcred-upload-box.is-dragging { border-style:solid; border-color:#0b6cff; background:#eef6ff; box-shadow:0 0 0 4px rgba(11,108,255,.08); }
.mjcred-row.is-edited { border-color:#b9d6fa; }
.mjcred-journey .is-done b { background:#def7e9; color:#08794a; }
.mjcred-journey .is-done b::before { content:"✓"; }
.mjcred-journey .is-done b { font-size:0; }
.mjcred-journey .is-done b::before { font-size:13px; }
@media(max-width:640px){.mjcred-selected-file{align-items:flex-start;flex-wrap:wrap}.mjcred-selected-file button{width:100%;padding:7px;text-align:center}.mjcred-completion{font-size:9px}}
