/* ============================================================
   edit-popup-light.css

   Light theme for the "Edit Job Description" modal, the Summary and Skills
   edit modals, and the metric-token bar. Replaces edit-popup-premium.css
   (dark). Same selectors and layout; colours match the builder.

   LOAD ORDER MATTERS. This must come AFTER both:
       css/styles.css                  (summary/skills modal)
       css/section-ditto-override.css  (bullet modal)
   ============================================================ */

/* ============================================================
   1. EDIT JOB DESCRIPTION MODAL
   ============================================================ */

.edit-popup-overlay {
    background: rgba(15,28,53, 0.42) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    padding: 20px !important;
}

.edit-popup {
    background: #ffffff !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 18px !important;
    box-shadow:
        0 1px 2px rgba(15,28,53, 0.06),
        0 28px 70px -18px rgba(15,28,53, 0.35) !important;
    max-width: clamp(520px, 56vw, 760px) !important;
    max-height: min(88vh, 780px) !important;
    color: #18273A !important;
    overflow: hidden !important;
    font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif !important;
}
.edit-popup::before { content: none !important; }

.edit-popup-header {
    padding: 20px 26px 16px 26px !important;
    border-bottom: 1px solid #E4E7EC !important;
    background: transparent !important;
}
.edit-popup-title {
    color: #0F1C35 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}
.edit-popup-close { color: #667085 !important; border-radius: 8px !important; }
.edit-popup-close:hover {
    background: #F4F6F9 !important;
    color: #0F1C35 !important;
}

.selection-counter {
    background: #F5F7FA !important;
    color: #0F1C35 !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 99px !important;
    padding: 4px 11px !important;
    font-weight: 600 !important;
}

.edit-popup-body { padding: 20px 26px !important; background: transparent !important; }

.edit-popup-footer {
    background: #F9FAFB !important;
    border-top: 1px solid #E4E7EC !important;
    padding: 15px 26px !important;
}
.edit-popup-footer > *,
.footer-left { color: #667085 !important; }


/* ── "Job title for AI" context block ──────────────────────── */
.jd-context-block {
    background: #F9FAFB !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
}
.jd-context-label,
.jd-context-block label {
    color: #475467 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.jd-context-block svg { color: #0F1C35 !important; }
.jd-context-input {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 10px !important;
    color: #0F1C35 !important;
    padding: 10px 13px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.jd-context-input:focus {
    outline: none !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 0 0 4px rgba(15, 28, 53, 0.08) !important;
}
.jd-context-input::placeholder { color: #98A2B3 !important; font-weight: 400 !important; }


/* ── Metric token bar (in-popup) ─────────────────────────────── */
.jd-token-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 8px 8px 12px;
    margin-bottom: 12px;
    background: #FFF6ED;
    border: 1px solid #FDDCAB;
    border-radius: 10px;
}
.jd-token-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F79009;
    box-shadow: 0 0 0 3px rgba(247, 144, 9, .18);
    flex: 0 0 auto;
}
.jd-token-count {
    font-size: 12.5px;
    font-weight: 600;
    color: #B54708;
    letter-spacing: 0;
    flex: 1;
}
.jd-token-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px 5px 11px;
    border-radius: 7px;
    border: 1px solid #FDDCAB;
    background: #ffffff;
    color: #B54708;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    flex: 0 0 auto;
}
.jd-token-jump:hover { background: #FFFAEB; color: #93370D; }
.jd-token-jump svg { opacity: .7; transition: opacity .15s, transform .15s; }
.jd-token-jump:hover svg { opacity: 1; transform: translateX(2px); }
/* a job short on numbers: two ways in, next to "type them in" */
.jd-token-bar { flex-wrap: wrap; row-gap: 8px; }
.jd-token-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.jd-token-act { padding: 5px 10px; border-radius: 7px; border: 1px solid #FDDCAB; background: #fff; color: #B54708; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.jd-token-act:hover { background: #FFFAEB; color: #93370D; }
.edit-ai-hint { flex-basis: 100%; order: 3; }
@keyframes regenNudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(11, 122, 83, 0); } 50% { box-shadow: 0 0 0 4px rgba(11, 122, 83, .28); } }
.popup-btn-regen.is-nudge { animation: regenNudge .8s ease-in-out 4; border-color: #0B7A53 !important; }
@media (prefers-reduced-motion: reduce) { .popup-btn-regen.is-nudge { animation: none; box-shadow: 0 0 0 3px rgba(11, 122, 83, .28); } }
/* the bar is also the live numbers count: green once this job has enough */
.jd-token-bar.is-ok { background: #ECF6F1; border-color: #CDE8DA; }
.jd-token-bar.is-ok .jd-token-dot { background: #0B7A53; box-shadow: 0 0 0 3px rgba(11, 122, 83, .16); }
.jd-token-bar.is-ok .jd-token-count { color: #0B7A53; }


/* ── Bullet editor (a contenteditable div, see _shimBulletsEditor) ── */
.jd-bullets-textarea {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 12px !important;
    color: #18273A !important;
    min-height: 280px !important;
    max-height: 46vh !important;
    overflow-y: auto !important;
    padding: 16px 18px !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    caret-color: #0F1C35 !important;
}
.jd-bullets-textarea:focus {
    outline: none !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 0 0 4px rgba(15, 28, 53, 0.08) !important;
}
.jd-bullets-textarea::placeholder { color: #98A2B3 !important; }
.jd-bullets-textarea.is-generating {
    border-color: #98A2B3 !important;
    background: #F9FAFB !important;
    color: #667085 !important;
}
.jd-bullets-textarea::selection { background: #DCE2EC; color: #0F1C35; }

.jd-bullets-editor > div {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    min-height: 1em;
}
.jd-bullets-editor > div:last-child { margin-bottom: 0; }
.jd-bullets-editor > div::before {
    content: '•';
    position: absolute;
    left: 2px;
    top: 0;
    color: #0F1C35;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.jd-bullets-editor > div:has(> br:only-child)::before { content: ''; }
.jd-bullets-editor:empty::before {
    content: attr(data-placeholder);
    color: #98A2B3;
    pointer-events: none;
}
.jd-bullets-editor:focus { outline: none; }

/* [X%] slots — same orange as the bar */
.jd-bullets-editor .tok-slot,
.tok-slot {
    display: inline-block;
    padding: 0 5px;
    border-radius: 4px;
    background: #FFF6ED;
    color: #B54708;
    border: 1px solid #FDDCAB;
    font-weight: 700;
    font-size: .94em;
}


/* ── Footer controls ───────────────────────────────────────── */
.regen-count-select {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    color: #0F1C35 !important;
    border-radius: 8px !important;
    padding: 7px 9px !important;
}
.regen-count-select:focus { outline: none !important; border-color: #0F1C35 !important; }
.regen-count-select option { background: #ffffff; color: #0F1C35; }

.popup-btn { border-radius: 10px !important; padding: 10px 20px !important; font-weight: 600 !important; }

.popup-btn-cancel {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    color: #18273A !important;
}
.popup-btn-cancel:hover {
    background: #F4F6F9 !important;
    border-color: #98A2B3 !important;
    color: #0F1C35 !important;
}

.popup-btn-save {
    background: #0F1C35 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(15,28,53, 0.08), 0 6px 16px -8px rgba(15,28,53,0.45) !important;
}
.popup-btn-save:hover {
    background: #1C2B47 !important;
    transform: none;
}

.popup-btn-regen {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    color: #18273A !important;
}
.popup-btn-regen:hover:not(:disabled) {
    border-color: #98A2B3 !important;
    color: #0F1C35 !important;
    background: #F5F7FA !important;
}
.popup-regen-spinner {
    border-color: #E4E7EC !important;
    border-top-color: #0F1C35 !important;
}


/* ============================================================
   2. SUMMARY / SKILLS MODAL  (openInlineEditPopup)
   ============================================================ */

.inline-edit-popup-overlay {
    background: rgba(15,28,53, 0.42) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.inline-edit-popup-card {
    background: #ffffff !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 18px !important;
    box-shadow:
        0 1px 2px rgba(15,28,53, 0.06),
        0 28px 70px -18px rgba(15,28,53, 0.35) !important;
    color: #18273A !important;
    overflow: hidden !important;
    font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif !important;
}
.inline-edit-popup-card::before { content: none !important; }

.inline-edit-popup-header {
    padding: 20px 24px 16px 24px !important;
    border-bottom: 1px solid #E4E7EC !important;
    background: transparent !important;
}
.inline-edit-popup-header h3 {
    color: #0F1C35 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}
.inline-edit-popup-close { color: #667085 !important; border-radius: 8px !important; }
.inline-edit-popup-close:hover {
    background: #F4F6F9 !important;
    color: #0F1C35 !important;
}

.inline-edit-popup-body { padding: 20px 24px !important; background: transparent !important; }
.inline-edit-popup-footer {
    background: #F9FAFB !important;
    border-top: 1px solid #E4E7EC !important;
    padding: 15px 24px !important;
}

.iep-context-block {
    background: #F9FAFB !important;
    border: 1px solid #E4E7EC !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}
.iep-context-label,
.iep-section-label {
    color: #475467 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.iep-context-block svg { color: #0F1C35 !important; }
.iep-context-input {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 10px !important;
    color: #0F1C35 !important;
    padding: 10px 13px !important;
    font-weight: 500 !important;
}
.iep-context-input:focus {
    outline: none !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 0 0 4px rgba(15, 28, 53, 0.08) !important;
}
.iep-context-input::placeholder { color: #98A2B3 !important; font-weight: 400 !important; }

.iep-textarea {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 12px !important;
    color: #18273A !important;
    padding: 16px 18px !important;
    font-size: 14.5px !important;
    line-height: 1.85 !important;
    caret-color: #0F1C35 !important;
}
.iep-textarea:focus {
    outline: none !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 0 0 4px rgba(15, 28, 53, 0.08) !important;
}
.iep-textarea::placeholder { color: #98A2B3 !important; }
.iep-textarea::selection { background: #DCE2EC; color: #0F1C35; }

.iep-char-count { color: #98A2B3 !important; }

.iep-btn-primary {
    background: #0F1C35 !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(15,28,53, 0.08), 0 6px 16px -8px rgba(15,28,53,0.45) !important;
}
.iep-btn-primary:hover:not(:disabled) {
    background: #1C2B47 !important;
    transform: none;
}
.iep-btn-secondary {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    color: #18273A !important;
}
.iep-btn-secondary:hover:not(:disabled) {
    border-color: #98A2B3 !important;
    color: #0F1C35 !important;
    background: #F5F7FA !important;
}

/* Skill chips */
.iep-skill-chip {
    background: #ffffff !important;
    border: 1px solid #E4E7EC !important;
    color: #18273A !important;
    border-radius: 10px !important;
}
.iep-skill-chip:hover {
    background: #F9FAFB !important;
    border-color: #98A2B3 !important;
}
.iep-skill-chip.selected {
    background: #F5F7FA !important;
    border-color: #0F1C35 !important;
    color: #0F1C35 !important;
}
.iep-skill-chip .iep-check {
    background: #ffffff !important;
    border: 1.5px solid #D0D5DD !important;
    color: transparent !important;
}
.iep-skill-chip.selected .iep-check {
    background: #0F1C35 !important;
    border-color: #0F1C35 !important;
    color: #ffffff !important;
}

.iep-add-skill-row input {
    background: #ffffff !important;
    border: 1px solid #D0D5DD !important;
    color: #0F1C35 !important;
    border-radius: 10px !important;
}
.iep-add-skill-row input:focus {
    outline: none !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 0 0 4px rgba(15, 28, 53, 0.08) !important;
}
.iep-add-skill-row input::placeholder { color: #98A2B3 !important; }
.iep-add-skill-btn {
    background: #F5F7FA !important;
    border: 1px solid #E4E7EC !important;
    color: #0F1C35 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}
.iep-add-skill-btn:hover { background: #E4E7EC !important; color: #0F1C35 !important; }
.iep-empty { color: #98A2B3 !important; }

.iep-progress-wrap  { background: transparent !important; }
.iep-progress-label { color: #667085 !important; }
.iep-progress-track { background: #E9EDF3 !important; }
.iep-progress-fill  { background: #0F1C35 !important; }
.iep-regen-spinner {
    border-color: #E4E7EC !important;
    border-top-color: #0F1C35 !important;
}


/* ============================================================
   3. "EDIT" BUTTONS ON THE FORM FIELDS
   ============================================================ */

/* Summary / Skills */
.field-with-edit .field-edit-btn { color: #0F1C35 !important; }
.field-with-edit .field-edit-btn:hover {
    background: #F5F7FA !important;
    border-color: #0F1C35 !important;
    box-shadow: 0 2px 6px rgba(15, 28, 53, .12) !important;
}

/* Job Description. The default sits where the textarea's scrollbar renders
   and is permanently visible; move it in and show it on hover/focus. */
.job-desc-edit-btn {
    right: 24px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-2px) !important;
    transition: opacity .15s ease, transform .15s ease,
                background .15s, border-color .15s, box-shadow .15s !important;
}
.job-desc-edit-btn:hover {
    color: #0F1C35 !important;
    border-color: #98A2B3 !important;
    box-shadow: 0 2px 8px rgba(15, 28, 53, 0.12) !important;
}

/* The wrapper is inline-styled with no class, so reach it via its textarea. */
div:has(> textarea[id^="jobDescription-"]):hover > .job-desc-edit-btn,
div:has(> textarea[id^="jobDescription-"]):focus-within > .job-desc-edit-btn,
div:has(> textarea[id^="exp-description-"]):hover > .job-desc-edit-btn,
div:has(> textarea[id^="exp-description-"]):focus-within > .job-desc-edit-btn,
.job-desc-edit-btn:focus-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Only when the field HAS content (an empty textarea shows its placeholder). */
.field-with-edit:has(textarea:placeholder-shown) .field-edit-btn { display: none !important; }
div:has(> textarea[id^="jobDescription-"]:placeholder-shown) > .job-desc-edit-btn,
div:has(> textarea[id^="exp-description-"]:placeholder-shown) > .job-desc-edit-btn {
    display: none !important;
}

/* Touch devices have no hover: show the button permanently. */
@media (hover: none), (pointer: coarse) {
    .job-desc-edit-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        right: 10px !important;
    }
}


/* ============================================================
   4. PHONES
   ============================================================ */
@media (max-width: 560px) {
    .edit-popup,
    .inline-edit-popup-card { max-width: 100% !important; border-radius: 16px !important; }

    .edit-popup-header,
    .edit-popup-body,
    .edit-popup-footer,
    .inline-edit-popup-header,
    .inline-edit-popup-body,
    .inline-edit-popup-footer { padding-left: 16px !important; padding-right: 16px !important; }

    .jd-bullets-textarea {
        min-height: 240px !important;
        font-size: 14px !important;
        line-height: 1.65 !important;
        padding: 15px 16px !important;
    }
    .edit-popup-footer { gap: 8px !important; }
    .popup-btn { padding: 10px 14px !important; font-size: 12.5px !important; }
}

/* =========================================================================
   EDIT POPUP — numbers-mode toggle + responsive
   ========================================================================= */
.edit-numbers-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 26px !important;background:#F9FAFB;border-top:1px solid #E4E7EC}
.edit-numbers-bar + .edit-popup-footer{border-top:none !important}
.enb-label{font-size:13.5px;font-weight:600;text-transform:none;letter-spacing:0;color:#344054;flex-shrink:0}
.edit-metrics-choice{display:inline-flex;gap:4px;background:#F4F6F9;border:1px solid #E4E7EC;border-radius:11px;padding:3px}
.edit-metrics-choice .emc-btn{border:none;background:transparent;color:#667085;font-size:13px;font-weight:500;padding:6px 13px;border-radius:8px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}
.edit-metrics-choice .emc-btn:hover{color:#0F1C35}
.edit-metrics-choice .emc-btn.active{background:#ffffff;color:#067647;font-weight:600;box-shadow:0 1px 2px rgba(15,28,53,.08),0 0 0 1px #D1FADF}
.edit-metrics-hint{font-size:12px;color:#667085;line-height:1.5}
.edit-metrics-hint b{color:#0F1C35;font-weight:600}

/* ── responsive ── */
@media (max-width:640px){
  .edit-numbers-bar{padding:12px 16px !important;gap:9px}
  .enb-label{width:100%}
  .edit-metrics-choice{width:100%}
  .edit-metrics-choice .emc-btn{flex:1;padding:8px 6px;font-size:12px;text-align:center}
  .edit-popup-footer{flex-wrap:wrap !important;gap:10px !important;padding:14px 16px !important}
  .edit-popup-footer .footer-left,.edit-popup-footer .footer-right{width:100%;display:flex;gap:10px}
  .edit-popup-footer .footer-right{justify-content:flex-end}
  .edit-popup-footer .popup-btn-regen{flex:1}
}

/* ============================================================
   4. SUMMARY AND SKILLS PANELS: messages, ticks and errors
   Navy for actions and what's picked; green only for "done".
   ============================================================ */
#inlineEditPopup .iep-field-error { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: #B42318; }
#inlineEditPopup .iep-context-input[aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 3px #FEF3F2 !important; }
#inlineEditPopup .iep-note { margin: 10px 0 0; font-size: 12.5px; line-height: 18px; color: #667085; }
#inlineEditPopup .iep-hint { margin: 0 0 10px; font-size: 13px; color: #475467; }
#inlineEditPopup .iep-count-strong { font-weight: 600; color: #0F1C35; }
#inlineEditPopup .iep-footer-end { display: flex; gap: 10px; }
#inlineEditPopup .iep-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "New summary written … Undo" */
#inlineEditPopup .iep-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; line-height: 18px; color: #344054; }
#inlineEditPopup .iep-status:empty { display: none; }
#inlineEditPopup .iep-status .iep-tick { color: #0B7A53; flex-shrink: 0; }
#inlineEditPopup .iep-link-btn { background: none; border: 0; padding: 0 2px; font: inherit; font-weight: 600; color: #0F1C35; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Skill ticks: a drawn check, so it doesn't depend on a text glyph */
#inlineEditPopup .iep-skill-chip.selected { box-shadow: none !important; }
#inlineEditPopup .iep-skill-chip.selected .iep-check {
  background: #0F1C35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat !important;
}
#inlineEditPopup .iep-skill-chip:focus-visible,
#inlineEditPopup button:focus-visible,
.edit-popup button:focus-visible { outline: 2px solid #0F1C35 !important; outline-offset: 2px !important; }

/* Errors: what happened, what to do, and a way forward (same as the AI popups) */
#inlineEditPopup .bp-error { margin: 12px 0 0; padding: 14px 16px; border: 1px solid #FEE4E2; border-radius: 8px; background: #FEF3F2; }
#inlineEditPopup .bp-error-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #B42318; }
#inlineEditPopup .bp-error-text { margin: 0; font-size: 14px; line-height: 20px; color: #344054; }
#inlineEditPopup .bp-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#inlineEditPopup .bp-error-actions button, #inlineEditPopup .bp-error-actions a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 6px; font: 500 13px/1 inherit; text-decoration: none; cursor: pointer; }
#inlineEditPopup .bp-error-actions .bp-primary { background: #0F1C35; color: #fff; border: 1px solid #0F1C35; }
#inlineEditPopup .bp-error-actions .bp-secondary { background: #fff; color: #0F1C35; border: 1px solid #D0D5DD; }

@media (max-width: 560px) {
  #inlineEditPopup .inline-edit-popup-footer { flex-direction: column-reverse; align-items: stretch !important; gap: 10px; }
  #inlineEditPopup .iep-footer-end { display: grid; grid-template-columns: 1fr 1fr; }
  #inlineEditPopup .inline-edit-popup-footer button { justify-content: center; }
}

/* mobile-responsive.css pads every text box on small phones for a field icon (34px
   on the left, 36px tall). These boxes have no icon, so give them back normal padding. */
@media (max-width: 390px) {
  #inlineEditPopup input[type="text"], .edit-popup input[type="text"] { padding: 0 12px !important; height: 40px !important; min-height: 40px !important; }
}

/* ============================================================
   5. "Bullet points" label row: the Edit button sits beside the
   label, always visible, instead of floating over the text.
   ============================================================ */
.bp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.bp-label-row .job-desc-edit-btn {
    position: static !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important;
    top: auto !important; right: auto !important;
    height: 28px; padding: 0 10px !important; gap: 5px;
    background: #fff !important; color: #344054 !important; border: 1px solid #D0D5DD !important;
    border-radius: 6px !important; box-shadow: none !important; backdrop-filter: none !important;
    font-size: 12.5px !important; font-weight: 500 !important;
}
.bp-label-row .job-desc-edit-btn:hover { background: #F5F7FA !important; color: #0F1C35 !important; border-color: #98A2B3 !important; transform: none !important; }
.bp-label-row .job-desc-edit-btn:focus-visible { outline: 2px solid #0F1C35 !important; outline-offset: 2px !important; }
.bp-label-row label { margin: 0 !important; }

/* The job card's bullet box: the same editor, in the card's box (js/enhanced-functions.js _bulletBoxEditor).
   The textarea it mirrors stays hidden and keeps the value. */
textarea.main-bullets-ta { display: none !important; }
.main-bullets-ed {
    min-height: 96px; max-height: 200px; overflow-y: auto;
    padding: 10px 12px; box-sizing: border-box; cursor: text;
    font-size: 13.5px; line-height: 1.6; color: #111827; background: #fff;
    overflow-wrap: anywhere;
}
.main-bullets-ed > div { margin-bottom: 4px; }
div:has(> .main-bullets-ed:focus) { border-color: #0F1C35 !important; box-shadow: 0 0 0 3px rgba(15, 28, 53, .08); }
