/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* JobMatch+ */
.jm-app { gap: 16px; --jm-ok: #1E7B4F; --jm-ok-bg: #DDF3E6; --jm-no: #B3261E; --jm-no-bg: #FDE4DE; }
.jm-app [hidden] { display: none !important; }
.jm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jm-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.jm-mode strong { font-size: 16px; }
.jm-mode span { font-size: 13px; color: var(--ink-2); }
.jm-mode[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg); }
.jm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jm-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jm-boxhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jm-h { font-size: 17px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; }
.jm-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 14px; flex-shrink: 0; }
.jm-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.jm-mini:hover { border-color: var(--ink); }
.jm-input, .jm-text { width: 100%; box-sizing: border-box; padding: 10px 12px; border: var(--input-border); border-radius: var(--btn-radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.jm-input { min-height: 44px; }
.jm-text { resize: vertical; line-height: 1.45; min-height: 220px; }
.jm-hint { font-size: 12.5px; color: var(--ink-2); }
.jm-hint:empty { display: none; }
.jm-rw { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.jm-rw label { font-weight: 800; font-size: 13.5px; }
.jm-rwrow { display: flex; gap: 6px; }
.jm-rwrow select { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: var(--input-border); border-radius: var(--btn-radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }
.jm-limit { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.jm-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed var(--ink-3); border-radius: 12px; background: var(--bg); cursor: pointer; text-align: center; }
.jm-drop span { font-size: 13px; color: var(--ink-2); }
.jm-drop:hover { border-color: var(--ink); }
.jm-paste summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.jm-paste[open] { display: flex; flex-direction: column; gap: 8px; }
.jm-paste .jm-text { min-height: 120px; }
.jm-paste .btn { align-self: flex-start; min-height: 42px; }
.jm-cands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jm-cands li { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.jm-cname { font-weight: 700; flex: 1; overflow-wrap: anywhere; }
.jm-cmeta { font-size: 12.5px; color: var(--ink-2); }
.jm-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 20px; cursor: pointer; }
.jm-x:hover { background: var(--jm-no-bg); color: var(--jm-no); }
.jm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jm-actions .btn { min-height: 50px; }
#jm-go { min-width: 190px; }
.jm-msg { flex-basis: 100%; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.jm-msg:empty { display: none; }
.jm-msg a { color: var(--ink); font-weight: 800; }
/* Results */
.jm-results { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; border-top: 2px dashed var(--line); --ring: #E2B41B; }
.jm-results[data-level="great"] { --ring: #2E9B62; } .jm-results[data-level="good"] { --ring: #7BBF4A; } .jm-results[data-level="low"] { --ring: #E8833A; }
.jm-scorecard { display: grid; grid-template-columns: 120px 1fr; gap: 14px 20px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.jm-ring { position: relative; width: 120px; height: 120px; }
.jm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jm-ring-bg { fill: none; stroke: var(--line); stroke-width: 3.6; }
.jm-ring-fg { fill: none; stroke: var(--ring); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .7s ease; }
.jm-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 30px var(--font-display, inherit); letter-spacing: -1px; }
.jm-verdict p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.45; }
.jm-parts { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 18px; }
.jm-pl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.jm-bar { height: 8px; margin: 5px 0 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.jm-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ring); transition: width .6s ease; }
.jm-pn { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; display: block; }
.jm-kw { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jm-kwcol h3 { font-size: 15px; font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.jm-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg); font-size: 12px; }
.jm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.jm-chip.ok { background: var(--jm-ok-bg); color: var(--jm-ok); }
.jm-chip.no { background: var(--jm-no-bg); color: var(--jm-no); }
.jm-chip em { font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.7); }
.jm-chip.nice { opacity: .8; }
.jm-none { color: var(--ink-2); font-size: 14px; }
.jm-tailor { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.jm-sub { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.jm-ticks { display: flex; flex-wrap: wrap; gap: 6px; }
.jm-tick { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; }
.jm-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--jm-ok); }
.jm-tick:has(input:checked) { border-color: var(--jm-ok); background: var(--jm-ok-bg); color: var(--jm-ok); }
.jm-tick em { font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--jm-no); }
.jm-tailorbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.jm-tailorbtns .btn { min-height: 46px; }
.jm-suggest { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); }
.jm-suggest h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.jm-sline { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.jm-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.jm-ad summary { cursor: pointer; font-weight: 800; font-size: 15px; min-height: 40px; display: flex; align-items: center; }
.jm-legend { margin: 0 0 8px; display: flex; gap: 8px; font-size: 13px; }
.jm-adtext { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14.5px; line-height: 1.6; max-height: 420px; overflow: auto; }
mark.jm-hit { background: var(--jm-ok-bg); color: var(--jm-ok); border-radius: 4px; padding: 0 2px; font-weight: 700; }
mark.jm-gap { background: var(--jm-no-bg); color: var(--jm-no); border-radius: 4px; padding: 0 2px; font-weight: 700; }
/* Ranking */
.jm-rank { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 2px dashed var(--line); }
.jm-rankhead { display: flex; align-items: center; justify-content: space-between; }
.jm-pro { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 5px; border-radius: 5px; background: var(--ink); color: var(--surface); }
.jm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.jm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jm-table th, .jm-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.jm-table th { font-size: 12.5px; color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.jm-table summary { cursor: pointer; }
.jm-detail { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); max-width: 340px; }
.jm-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-weight: 800; color: #fff; background: #E2B41B; }
.jm-pill.great { background: #2E9B62; } .jm-pill.good { background: #7BBF4A; } .jm-pill.low { background: #E8833A; }
.jm-of { color: var(--ink-2); font-size: 12px; }
.jm-okay { color: var(--jm-ok); font-weight: 700; }
.jm-privacy { margin: 0; }
@media (max-width: 720px) {
  .jm-grid, .jm-kw { grid-template-columns: 1fr; }
  .jm-scorecard { grid-template-columns: 96px 1fr; }
  .jm-ring { width: 96px; height: 96px; } .jm-ring span { font-size: 24px; }
  .jm-mode span { display: none; }
  .jm-text { min-height: 160px; }
}

/* Job links */
.jm-link { display: flex; gap: 8px; }
.jm-link .jm-input { flex: 1; min-width: 0; font-size: 15px; }
.jm-link .btn { min-height: 44px; white-space: nowrap; }
.jm-or { margin-top: -2px; }
.jm-textlink { color: var(--ink); font-weight: 700; text-decoration: underline; cursor: pointer; }
.jm-hint a { color: var(--ink); font-weight: 800; }
/* Find jobs */
.jm-countries { display: flex; flex-wrap: wrap; gap: 6px; max-height: 196px; overflow: auto; padding: 2px; }
.jm-cc { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.jm-cc span { font-size: 17px; line-height: 1; }
.jm-cc.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.jm-findrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jm-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.jm-f label { font-weight: 700; font-size: 13.5px; }
.jm-opt { font-weight: 500; color: var(--ink-2); }
.jm-checks { justify-content: flex-end; gap: 2px; }
.jm-check { display: flex; align-items: center; gap: 8px; min-height: 34px; font-weight: 600 !important; font-size: 13.5px; cursor: pointer; }
.jm-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
select.jm-input { padding: 0 10px; font-weight: 700; }
.jm-found { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; border-top: 2px dashed var(--line); }
.jm-sort { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.jm-sort select { min-height: 36px; padding: 0 8px; border: var(--input-border); border-radius: var(--btn-radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.jm-tipsrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.jm-tipsrow:empty { display: none; }
.jm-ctip { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.jm-ctip h3 { margin: 0; font-size: 15px; }
.jm-ctip ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.jm-ctip p { margin: 0; line-height: 1.45; }
.jm-ctip a { color: var(--ink); font-weight: 700; }
.jm-ctbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.jm-ctbtns a.jm-mini { text-decoration: none; }
.jm-ofw { background: #FFF6D6; border-color: #F2DE9B; }
.jm-mtip:empty { display: none; }
.jm-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jm-job { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.jm-jobtop { display: flex; gap: 10px; align-items: flex-start; }
.jm-flag { font-size: 26px; line-height: 1; }
.jm-job h3 { margin: 0; font-size: 16.5px; line-height: 1.3; }
.jm-co { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.jm-snip { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.jm-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.jm-badges:empty { display: none; }
.jm-b { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.jm-b.yes { background: #DDF3E6; color: #1E7B4F; } .jm-b.no { background: #FDE4DE; color: #B3261E; } .jm-b.info { background: #E3ECFA; color: #1E5AA8; } .jm-b.warn { background: #FFF1D6; color: #8A5300; }
.jm-pay { margin: 8px 0 0; font-size: 14px; }
.jm-pay span { color: var(--ink-2); }
.jm-jobside { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.jm-jobside .jm-pill { align-self: center; font-size: 18px; padding: 6px 14px; }
.jm-ql { font-size: 12px; color: var(--ink-2); margin-top: -4px; }
.jm-jobside .btn { min-height: 42px; font-size: 14px; }
.jm-via { font-size: 12px; color: var(--ink-2); }
@media (max-width: 720px) {
  .jm-modes { grid-template-columns: 1fr 1fr 1fr; }
  .jm-mode { padding: 10px; } .jm-mode strong { font-size: 14px; }
  .jm-findrow { grid-template-columns: 1fr; }
  .jm-job { grid-template-columns: 1fr; }
  .jm-jobside { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .jm-jobside .btn { flex: 1 1 120px; }
  .jm-link { flex-wrap: wrap; } .jm-link .btn { flex: 1; }
}

.jm-convert { min-height: 30px !important; }
select.jm-input:disabled { opacity: .5; }
.jm-convlink { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* Step guide: grey = to do, pulsing accent = do this next, green tick = done */
.jm-num { transition: background .25s, box-shadow .25s; background: var(--ink-3, #8B97B0); }
.jm-num[data-state="next"] { background: var(--accent); animation: jm-pulse 1.8s ease-out infinite; }
.jm-num[data-state="done"] { background: #2E9B62; }
.jm-num[data-state="optional"] { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--ink-3, #8B97B0); }
.jm-box { border-radius: 14px; padding: 10px; margin: -10px; transition: background .25s, box-shadow .25s; }
.jm-box[data-step="next"] { background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.jm-box[data-step="next"] .jm-h { color: var(--ink); }
#jm-go.is-waiting { opacity: 1; background: #4F5868; border-color: #4F5868; color: #fff; box-shadow: none; }
#jm-go.is-ready { animation: jm-glow 2s ease-in-out infinite; }
.jm-tailor.is-next { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
@keyframes jm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes jm-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .jm-num[data-state="next"], #jm-go.is-ready { animation: none; } #jm-go.is-ready { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); } }
.jm-back { align-self: flex-start; min-height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.jm-back:hover { border-color: var(--ink); }
.jm-noresume { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF1D6; color: #8A5300; font-weight: 700; font-size: 14px; }
