/* =========================================================================
   popups-calm.css: one calm look for the builder's edit popups
   (Edit bullet points, Edit summary, Edit skills, Section order).
   Loaded last, so it wins over the older layers in edit-popup-light.css,
   styles.css and section-order.css.

   The system: white card, 20px corners, one soft shadow. 28px side padding
   everywhere (20px on phones). No grey boxes or bands: whitespace and one
   hairline above the buttons separate the parts. Every control is 44px tall
   with 12px corners. Green only marks what's chosen or focused; navy is the
   one main button.
   ========================================================================= */
:root {
    --pc-ink: #0F1C35; --pc-text: #1D2939; --pc-sub: #475467; --pc-muted: #667085; --pc-faint: #98A2B3;
    --pc-line: #EAECF0; --pc-field: #E4E7EC; --pc-soft: #F9FAFB;
    --pc-green: #12A26D; --pc-green-ink: #067647; --pc-green-soft: #F6FEF9; --pc-green-line: #A6DCC1;
    --pc-ring: 0 0 0 4px rgba(18, 162, 109, .12);
    --pc-pad: 28px;
}

/* ── the card ── */
html body .edit-popup,
html body #inlineEditPopup .inline-edit-popup-card,
html body .so-panel {
    background: #fff !important; border: 0 !important; border-radius: 20px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 64px -16px rgba(15, 28, 53, .30) !important;
    color: var(--pc-text) !important;
}

/* ── header: title left, close right, both on one centre line ── */
html body .edit-popup-header,
html body #inlineEditPopup .inline-edit-popup-header {
    display: flex !important; align-items: center !important; justify-content: space-between !important;
    padding: 24px var(--pc-pad) 4px !important; border: 0 !important; background: transparent !important;
}
html body .edit-popup-title,
html body #inlineEditPopup .inline-edit-popup-header h3,
html body .so-head h3 {
    margin: 0 !important; font-size: 18px !important; font-weight: 600 !important; line-height: 28px !important;
    letter-spacing: -.01em !important; color: var(--pc-ink) !important;
}
html body .edit-popup-close,
html body #inlineEditPopup .inline-edit-popup-close,
html body .so-x {
    flex: none !important; width: 36px !important; height: 36px !important; padding: 0 !important;
    display: grid !important; place-items: center !important; border: 0 !important; border-radius: 999px !important;
    background: transparent !important; color: var(--pc-faint) !important; cursor: pointer;
    transition: background .15s, color .15s !important;
}
html body .edit-popup-close:hover,
html body #inlineEditPopup .inline-edit-popup-close:hover,
html body .so-x:hover { background: #F2F4F7 !important; color: var(--pc-ink) !important; }
html body .edit-popup-close svg,
html body #inlineEditPopup .inline-edit-popup-close svg { width: 18px !important; height: 18px !important; }
/* the "4 bullets" count: a quiet tag beside the title */
html body .edit-popup .selection-counter {
    background: #F2F4F7 !important; border: 0 !important; border-radius: 999px !important;
    padding: 3px 10px !important; font-size: 12px !important; font-weight: 600 !important; color: var(--pc-sub) !important;
}

/* ── body ── */
html body .edit-popup-body,
html body #inlineEditPopup .inline-edit-popup-body { padding: 20px var(--pc-pad) 24px !important; background: transparent !important; }

/* the job title: a plain field, not a grey box */
html body .edit-popup .jd-context-block,
html body #inlineEditPopup .iep-context-block {
    margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html body .edit-popup .jd-context-label,
html body #inlineEditPopup .iep-context-label,
html body #inlineEditPopup .iep-section-label {
    display: block !important; margin: 0 0 8px !important; font-size: 13px !important; font-weight: 500 !important;
    line-height: 18px !important; letter-spacing: 0 !important; text-transform: none !important; color: #344054 !important;
}
html body .edit-popup .jd-context-input,
html body #inlineEditPopup .iep-context-input,
html body #inlineEditPopup .iep-add-skill-row input {
    height: 44px !important; padding: 0 14px !important; border: 1px solid var(--pc-field) !important; border-radius: 12px !important;
    background: #fff !important; font-size: 14px !important; font-weight: 400 !important; color: var(--pc-text) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important; transition: border-color .15s, box-shadow .15s !important;
}
/* the text boxes */
html body .edit-popup .jd-bullets-textarea,
html body #inlineEditPopup .iep-textarea {
    padding: 14px 16px !important; border: 1px solid var(--pc-field) !important; border-radius: 12px !important; background: #fff !important;
    font-size: 14px !important; line-height: 1.65 !important; color: var(--pc-text) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important; transition: border-color .15s, box-shadow .15s !important;
}
html body .edit-popup .jd-context-input:focus,
html body #inlineEditPopup .iep-context-input:focus,
html body #inlineEditPopup .iep-add-skill-row input:focus,
html body .edit-popup .jd-bullets-textarea:focus,
html body #inlineEditPopup .iep-textarea:focus {
    outline: none !important; border-color: var(--pc-green) !important; box-shadow: var(--pc-ring) !important;
}
html body #inlineEditPopup .iep-char-count { margin-top: 8px !important; font-size: 12px !important; color: var(--pc-faint) !important; text-align: right !important; }
/* small print: quiet, never a second headline */
html body #inlineEditPopup .iep-note { margin: 12px 0 0 !important; font-size: 12.5px !important; line-height: 18px !important; color: var(--pc-faint) !important; }
html body #inlineEditPopup .iep-hint { margin: 0 0 12px !important; font-size: 13px !important; color: var(--pc-muted) !important; }
html body #inlineEditPopup .iep-count-strong { color: var(--pc-green-ink) !important; font-weight: 600 !important; }

/* ── skills: add row + a calm grid of chips ── */
html body #inlineEditPopup .iep-add-skill-row { display: flex !important; gap: 10px !important; margin: 0 0 16px !important; }
html body #inlineEditPopup .iep-add-skill-row input { flex: 1 !important; min-width: 0 !important; }
html body #inlineEditPopup .iep-add-skill-btn {
    flex: none !important; height: 44px !important; padding: 0 20px !important; border: 1px solid var(--pc-field) !important; border-radius: 12px !important;
    background: #fff !important; color: #344054 !important; font-size: 14px !important; font-weight: 600 !important;
}
html body #inlineEditPopup .iep-add-skill-btn:hover { background: var(--pc-soft) !important; color: var(--pc-ink) !important; }
html body #inlineEditPopup .iep-skills-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
html body #inlineEditPopup .iep-skill-chip {
    display: flex !important; align-items: center !important; gap: 10px !important; min-height: 44px !important; padding: 8px 14px !important;
    border: 1px solid var(--pc-field) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important;
    font-size: 14px !important; font-weight: 500 !important; line-height: 18px !important; color: var(--pc-muted) !important;
    transition: border-color .15s, background .15s, color .15s !important;
}
html body #inlineEditPopup .iep-skill-chip:hover { border-color: #D0D5DD !important; background: var(--pc-soft) !important; }
html body #inlineEditPopup .iep-skill-chip.selected { border-color: var(--pc-green-line) !important; background: var(--pc-green-soft) !important; color: var(--pc-ink) !important; }
html body #inlineEditPopup .iep-skill-chip .iep-check {
    flex: none !important; width: 18px !important; height: 18px !important; border-radius: 6px !important;
    border: 1.5px solid #D0D5DD !important; background: #fff !important;
}
html body #inlineEditPopup .iep-skill-chip.selected .iep-check {
    border-color: var(--pc-green) !important;
    background: var(--pc-green) 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;
}
html body #inlineEditPopup .iep-skill-chip:focus-visible { outline: 2px solid var(--pc-green) !important; outline-offset: 2px !important; }

/* ── bullets: the numbers row sits in the body's white, under one hairline ── */
html body .edit-popup .edit-numbers-bar { background: #fff !important; border-top: 1px solid var(--pc-line) !important; padding: 16px var(--pc-pad) !important; }
html body .edit-popup .regen-count-select { height: 44px !important; min-width: 52px !important; border: 1px solid var(--pc-field) !important; border-radius: 12px !important; background: #fff !important; font-size: 14px !important; }
html body .edit-popup .regen-count label { font-size: 13px !important; font-weight: 500 !important; color: var(--pc-muted) !important; }

/* ── footer: one hairline, buttons on one line, all 44px ── */
html body .edit-popup-footer,
html body #inlineEditPopup .inline-edit-popup-footer {
    display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important;
    padding: 16px var(--pc-pad) 24px !important; background: #fff !important; border-top: 1px solid var(--pc-line) !important;
}
html body .edit-popup .edit-numbers-bar + .edit-popup-footer { border-top: 0 !important; padding-top: 4px !important; }
html body .edit-popup-footer .footer-left,
html body .edit-popup-footer .footer-right,
html body #inlineEditPopup .iep-footer-end { display: flex !important; align-items: center !important; gap: 12px !important; }

html body .edit-popup .popup-btn,
html body #inlineEditPopup .iep-btn-secondary,
html body #inlineEditPopup .iep-btn-primary,
html body .so-reset,
html body .so-done {
    height: 44px !important; padding: 0 20px !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 600 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s !important; transform: none !important;
}
/* Cancel / Reset: quiet */
html body .edit-popup .popup-btn-cancel,
html body #inlineEditPopup .iep-footer-end .iep-btn-secondary,
html body .so-reset {
    background: #fff !important; border: 1px solid var(--pc-field) !important; color: #344054 !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}
html body .edit-popup .popup-btn-cancel:hover,
html body #inlineEditPopup .iep-footer-end .iep-btn-secondary:hover,
html body .so-reset:hover { background: var(--pc-soft) !important; color: var(--pc-ink) !important; border-color: #D0D5DD !important; }
/* the AI action: green, so it reads as the helper and never competes with Save */
html body .edit-popup .popup-btn-regen,
html body #inlineEditPopup #iepSummaryRegenBtn,
html body #inlineEditPopup #iepSkillsRegenBtn {
    background: #fff !important; border: 1px solid var(--pc-green-line) !important; color: var(--pc-green-ink) !important; box-shadow: none !important;
}
html body .edit-popup .popup-btn-regen:hover:not(:disabled),
html body #inlineEditPopup #iepSummaryRegenBtn:hover:not(:disabled),
html body #inlineEditPopup #iepSkillsRegenBtn:hover:not(:disabled) { background: var(--pc-green-soft) !important; border-color: var(--pc-green) !important; }
/* Save / Done: the one solid button */
html body .edit-popup .popup-btn-save,
html body #inlineEditPopup .iep-btn-primary,
html body .so-done {
    background: var(--pc-ink) !important; border: 1px solid var(--pc-ink) !important; color: #fff !important; filter: none !important;
    box-shadow: 0 1px 2px rgba(15, 28, 53, .18) !important;
}
html body .edit-popup .popup-btn-save:hover,
html body #inlineEditPopup .iep-btn-primary:hover:not(:disabled),
html body .so-done:hover { background: #1B2B4B !important; border-color: #1B2B4B !important; }
html body .edit-popup .popup-btn:focus-visible,
html body #inlineEditPopup button:focus-visible,
html body .so-panel button:focus-visible { outline: 2px solid var(--pc-green) !important; outline-offset: 2px !important; }

/* ── Section order ── */
html body .so-panel { width: min(460px, 100%) !important; }
html body .so-head { align-items: flex-start !important; gap: 16px !important; padding: 24px 24px 0 var(--pc-pad) !important; }
html body .so-head h3 { margin-bottom: 4px !important; }
html body .so-head p { font-size: 13.5px !important; line-height: 20px !important; color: var(--pc-muted) !important; }
html body .so-x { margin-top: -4px !important; }
html body .so-list { margin: 20px var(--pc-pad) 0 !important; gap: 8px !important; }
html body .so-item {
    min-height: 52px !important; gap: 12px !important; padding: 0 8px 0 14px !important;
    border: 1px solid var(--pc-line) !important; border-radius: 12px !important; background: #fff !important;
}
html body .so-item:hover { border-color: #D0D5DD !important; background: var(--pc-soft) !important; box-shadow: none !important; }
html body .so-item.so-moved { background: var(--pc-green-soft) !important; border-color: var(--pc-green-line) !important; }
html body .so-grip { color: #D0D5DD !important; }
html body .so-num { width: 24px !important; height: 24px !important; background: #F2F4F7 !important; color: var(--pc-sub) !important; font-size: 12px !important; }
html body .so-name { font-size: 14px !important; font-weight: 500 !important; color: var(--pc-text) !important; }
html body .so-move { width: 36px !important; height: 36px !important; border-radius: 10px !important; color: var(--pc-sub) !important; }
html body .so-move:hover:not([disabled]) { background: #F2F4F7 !important; color: var(--pc-ink) !important; }
html body .so-move:focus-visible { outline: 2px solid var(--pc-green) !important; }
html body .so-move[disabled] { color: #E4E7EC !important; }
html body .so-note { margin: 16px var(--pc-pad) 0 !important; font-size: 12.5px !important; line-height: 18px !important; color: var(--pc-faint) !important; }
html body .so-foot { margin-top: 20px !important; padding: 16px var(--pc-pad) 24px !important; border-top: 1px solid var(--pc-line) !important; }

/* ── phones ── */
@media (max-width: 640px) {
    :root { --pc-pad: 20px; }
    html body .edit-popup-header,
    html body #inlineEditPopup .inline-edit-popup-header { padding-top: 20px !important; }
    html body .so-head { padding-right: 16px !important; }
    html body #inlineEditPopup .iep-skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    /* footer: the AI action full width on top, Cancel and Save as an equal pair under it */
    html body .edit-popup-footer,
    html body #inlineEditPopup .inline-edit-popup-footer { flex-direction: column !important; align-items: stretch !important; padding-bottom: 20px !important; }
    html body .edit-popup-footer .footer-left,
    html body .edit-popup-footer .footer-right,
    html body #inlineEditPopup .iep-footer-end { width: 100% !important; }
    html body .edit-popup-footer .footer-left .popup-btn-regen,
    html body #inlineEditPopup #iepSummaryRegenBtn,
    html body #inlineEditPopup #iepSkillsRegenBtn { flex: 1 1 auto !important; width: 100% !important; }
    html body #inlineEditPopup #iepSummaryRegenBtn,
    html body #inlineEditPopup #iepSkillsRegenBtn { flex: none !important; }   /* in the column, flex:1 would squash its height */
    /* bullets: the count and Rewrite share one row */
    html body .edit-popup-footer .footer-left { flex-wrap: nowrap !important; }
    html body .edit-popup-footer .footer-left .popup-btn-regen { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; }
    html body .edit-popup .edit-metrics-choice { display: flex !important; width: 100% !important; }
    html body .edit-popup .edit-metrics-choice .emc-btn { flex: 1 1 0 !important; min-width: 0 !important; white-space: normal !important; }
    /* Section order: Reset and Done as an equal pair */
    html body .so-foot > * { flex: 1 1 0 !important; padding: 0 12px !important; }
    html body .edit-popup-footer .footer-right > *,
    html body #inlineEditPopup .iep-footer-end > * { flex: 1 1 0 !important; }
}

/* ── Languages popup (js/languages-custom-sections.js) ── */
html body #languagesPopup .lp-card {
    width: 520px !important; max-width: calc(100vw - 32px) !important; max-height: min(calc(100vh - 48px), 720px) !important;
    display: flex !important; flex-direction: column !important; overflow: hidden !important;
    background: #fff !important; border: 0 !important; border-radius: 20px !important; padding: 0 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 64px -16px rgba(15, 28, 53, .30) !important;
    color: var(--pc-text) !important; font-family: inherit !important;
}
html body #languagesPopup .lp-head { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 16px !important; padding: 24px 24px 0 var(--pc-pad) !important; }
html body #languagesPopup .lp-title { margin: 0 0 4px !important; padding: 0 !important; font-size: 18px !important; font-weight: 600 !important; line-height: 28px !important; letter-spacing: -.01em !important; color: var(--pc-ink) !important; text-align: left !important; }
html body #languagesPopup .lp-sub { margin: 0 !important; font-size: 13.5px !important; line-height: 20px !important; color: var(--pc-muted) !important; }
html body #languagesPopup .lp-x {
    flex: none !important; width: 36px !important; height: 36px !important; margin-top: -4px !important; padding: 0 !important; display: grid !important; place-items: center !important;
    border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--pc-faint) !important; cursor: pointer !important;
}
html body #languagesPopup .lp-x:hover { background: #F2F4F7 !important; color: var(--pc-ink) !important; }
html body #languagesPopup .lp-body { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; padding: 20px var(--pc-pad) 24px !important; }

/* search */
html body #languagesPopup .lp-search { position: relative !important; }
html body #languagesPopup .lp-search-ico { position: absolute !important; left: 14px !important; top: 13px !important; color: var(--pc-faint) !important; pointer-events: none !important; }
html body #languagesPopup input.lp-search-input {
    width: 100% !important; height: 44px !important; margin: 0 !important; padding: 0 14px 0 42px !important; box-sizing: border-box !important;
    border: 1px solid var(--pc-field) !important; border-radius: 12px !important; background: #fff !important;
    font-size: 14px !important; color: var(--pc-text) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}
html body #languagesPopup input.lp-search-input:focus { outline: none !important; border-color: var(--pc-green) !important; box-shadow: var(--pc-ring) !important; }
html body #languagesPopup .lp-results { margin-top: 8px !important; padding: 4px !important; border: 1px solid var(--pc-line) !important; border-radius: 12px !important; background: #fff !important; }
html body #languagesPopup .lp-results[hidden] { display: none !important; }
html body #languagesPopup .lp-result {
    width: 100% !important; height: 40px !important; padding: 0 12px !important; display: flex !important; align-items: center !important; justify-content: space-between !important;
    border: 0 !important; border-radius: 8px !important; background: transparent !important; font: inherit !important; font-size: 14px !important; color: var(--pc-text) !important; text-align: left !important; cursor: pointer !important;
}
html body #languagesPopup .lp-result:hover,
html body #languagesPopup .lp-result:focus-visible { background: var(--pc-green-soft) !important; outline: none !important; }
html body #languagesPopup .lp-result i { font-style: normal !important; font-size: 18px !important; color: var(--pc-green) !important; }
html body #languagesPopup .lp-result em { font-style: normal !important; font-size: 12px !important; color: var(--pc-faint) !important; }
html body #languagesPopup .lp-result[disabled] { color: var(--pc-faint) !important; cursor: default !important; background: transparent !important; }
html body #languagesPopup .lp-result-own { color: var(--pc-green-ink) !important; font-weight: 500 !important; }
html body #languagesPopup .lp-noresult { margin: 0 !important; padding: 10px 12px !important; font-size: 13px !important; color: var(--pc-muted) !important; }

/* small headings */
html body #languagesPopup .lp-kicker { display: flex !important; align-items: center !important; gap: 8px !important; margin: 20px 0 10px !important; font-size: 13px !important; font-weight: 500 !important; color: #344054 !important; text-transform: none !important; letter-spacing: 0 !important; }
html body #languagesPopup .lp-count:not(:empty) { padding: 1px 8px !important; border-radius: 999px !important; background: #F2F4F7 !important; font-size: 12px !important; font-weight: 600 !important; color: var(--pc-sub) !important; }

/* quick picks */
html body #languagesPopup .lp-popular[hidden] { display: none !important; }
html body #languagesPopup .lp-chips { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
html body #languagesPopup .lp-chip {
    height: 36px !important; padding: 0 14px !important; border: 1px solid var(--pc-field) !important; border-radius: 999px !important; background: #fff !important;
    font: inherit !important; font-size: 13.5px !important; font-weight: 500 !important; color: #344054 !important; cursor: pointer !important;
    transition: background .15s, border-color .15s, color .15s !important;
}
html body #languagesPopup .lp-chip:hover { background: var(--pc-soft) !important; border-color: #D0D5DD !important; }
html body #languagesPopup .lp-chip.on { background: var(--pc-green-soft) !important; border-color: var(--pc-green-line) !important; color: var(--pc-green-ink) !important; }
html body #languagesPopup .lp-chip.on::before { content: "✓ " !important; }

/* your languages */
html body #languagesPopup .lp-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
html body #languagesPopup .lp-row {
    display: flex !important; align-items: center !important; gap: 12px !important; min-height: 56px !important; padding: 6px 6px 6px 16px !important;
    border: 1px solid var(--pc-line) !important; border-radius: 12px !important; background: #fff !important;
}
html body #languagesPopup .lp-name { flex: 1 1 auto !important; min-width: 0 !important; font-size: 14px !important; font-weight: 500 !important; color: var(--pc-text) !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
html body #languagesPopup .lp-level {
    flex: 0 1 290px !important; min-width: 0 !important; height: 40px !important; padding: 0 32px 0 12px !important; border: 1px solid var(--pc-field) !important; border-radius: 10px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat !important;
    -webkit-appearance: none !important; appearance: none !important; font: inherit !important; font-size: 13.5px !important; color: var(--pc-text) !important; cursor: pointer !important;
}
html body #languagesPopup .lp-level:focus { outline: none !important; border-color: var(--pc-green) !important; box-shadow: var(--pc-ring) !important; }
html body #languagesPopup .lp-level:invalid { color: var(--pc-muted) !important; }   /* "Choose a level" still showing */
html body #languagesPopup .lp-row.lp-missing { border-color: #FDA29B !important; }
html body #languagesPopup .lp-row.lp-missing .lp-level { border-color: #F04438 !important; }
html body #languagesPopup .lp-remove { flex: none !important; width: 36px !important; height: 36px !important; padding: 0 !important; display: grid !important; place-items: center !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--pc-faint) !important; cursor: pointer !important; }
html body #languagesPopup .lp-remove:hover { background: #FEF3F2 !important; color: #B42318 !important; }
html body #languagesPopup .lp-empty { margin: 0 !important; padding: 18px !important; border: 1px dashed var(--pc-field) !important; border-radius: 12px !important; font-size: 13px !important; color: var(--pc-faint) !important; text-align: center !important; }
html body #languagesPopup .lp-empty[hidden],
html body #languagesPopup .lp-error[hidden] { display: none !important; }
html body #languagesPopup .lp-error { margin: 10px 0 0 !important; font-size: 13px !important; color: #B42318 !important; }

/* footer: same as the other popups */
html body #languagesPopup .lp-foot { flex: none !important; display: flex !important; justify-content: flex-end !important; gap: 12px !important; padding: 16px var(--pc-pad) 24px !important; border-top: 1px solid var(--pc-line) !important; background: #fff !important; }
html body #languagesPopup .lp-cancel,
html body #languagesPopup .lp-save { height: 44px !important; padding: 0 20px !important; border-radius: 12px !important; font: inherit !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; transition: background .15s, border-color .15s !important; }
html body #languagesPopup .lp-cancel { background: #fff !important; border: 1px solid var(--pc-field) !important; color: #344054 !important; }
html body #languagesPopup .lp-cancel:hover { background: var(--pc-soft) !important; }
html body #languagesPopup .lp-save { flex: none !important; width: auto !important; background: var(--pc-ink) !important; border: 1px solid var(--pc-ink) !important; color: #fff !important; }
html body #languagesPopup .lp-save:hover { background: #1B2B4B !important; }
/* the old stylesheet styles this button by its id: match that weight */
html body #languagesPopup #applyLanguagesBtn.lp-save { flex: none !important; width: auto !important; height: 44px !important; padding: 0 20px !important; margin: 0 !important; border-radius: 12px !important; font-size: 14px !important; }
html body #languagesPopup button:focus-visible { outline: 2px solid var(--pc-green) !important; outline-offset: 2px !important; }

@media (max-width: 640px) {
    html body #languagesPopup .skills-popup-overlay { padding: 12px !important; }
    html body #languagesPopup .lp-head { padding-right: 16px !important; }
    /* each language: name and remove on top, the level menu full width under */
    html body #languagesPopup .lp-row { flex-wrap: wrap !important; padding: 8px 6px 12px 14px !important; row-gap: 6px !important; }
    html body #languagesPopup .lp-level { order: 3 !important; flex: 1 1 100% !important; margin-right: 8px !important; }
    html body #languagesPopup .lp-foot > *,
    html body #languagesPopup #applyLanguagesBtn.lp-save { flex: 1 1 0 !important; }
}
