/* 나의 직업 수명 전용 */
.work[data-tool="job-ai-lifespan"] .result { position: static; }
.jl-box { position: relative; }
.jl-sug { position: absolute; left: 0; right: 0; top: 52px; z-index: 5; max-height: 280px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.jl-sug[hidden] { display: none; }
.jl-sug li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 7px; font-size: 15px; cursor: pointer; }
.jl-sug li small { color: var(--ink-3); font-size: 13px; }
.jl-sug li[aria-selected="true"], .jl-sug li:hover { background: var(--blue-bg); }
.jl-chipbox { margin-top: 24px; }
.jl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jl-chips button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.jl-chips button:hover { border-color: var(--blue); color: var(--blue); }
.jl-top { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.jl-top li button { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 11px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15px; text-align: left; cursor: pointer; }
.jl-top li button:hover b { color: var(--blue); }
.jl-top li i { font-style: normal; font-weight: 700; color: var(--blue); }
.jl-top li em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--ink); }

.jl-tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.jl-tag.g0 { background: #fbece8; color: #a8341f; border-color: #f0cbc3; }
.jl-tag.g1 { background: #fff4e5; color: #8a4b00; border-color: #f2d9b4; }
.jl-tag.g3 { background: #fff; color: var(--blue); border-color: #b9cde3; }
.jl-name { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.jl-rank { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.result .big.jl-big { flex-wrap: wrap; gap: 2px 4px; margin-top: 18px; }
.result .big.jl-big b { font-size: 60px; }
.result .big.jl-big span { margin-right: 6px; font-weight: 800; color: var(--ink); }
.jl-date { font-size: 15px; color: var(--ink-2); }
.jl-date b { color: var(--ink); }
.jl-cd { margin-top: 4px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.jl-why { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.jl-est { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 13px; line-height: 1.55; }
.result details.jl-more { margin-top: 14px; }
.jl-more summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--blue); }
.jl-more dl { margin-top: 12px; padding-top: 14px; font-size: 14px; }
.jl-more dd { word-break: keep-all; }
.jl-formula { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.jl-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.jl-act .btn { margin: 0; width: 100%; height: 44px; font-size: 14px; padding: 0 6px; }
.jl-act .btn.wide { grid-column: 1 / -1; }
.jl-sim { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid #cdd6e0; }
.jl-sim h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.jl-sim-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #cdd6e0; background: none; font-size: 15px; text-align: left; cursor: pointer; }
.jl-sim-list b { font-weight: 600; }
.jl-sim-list b small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--ink-3, #888); }
.jl-sim-list em i { display: inline-block; min-width: 0; margin-left: 6px; font-size: 11px; font-weight: 600; font-style: normal; }
.jl-sim-list em i.up { color: #1e6cb3; }
.jl-sim-list em i.dn { color: #a8341f; }
.jl-sim-tabs { display: flex; gap: 6px; margin: 10px 0 6px; overflow-x: auto; }
.jl-sim-tabs button { flex: none; padding: 6px 12px; border: 1px solid #cdd6e0; border-radius: 16px; background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.jl-sim-tabs button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.jl-sim-more, .jl-sim-rand { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid #cdd6e0; border-radius: 8px; background: #fff; font-size: 14px; color: var(--ink); cursor: pointer; }
.jl-sim-more span { color: var(--ink-2); font-size: 12px; }
.jl-sim-rand { margin-top: 6px; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.jl-sim-empty { padding: 14px 0; font-size: 14px; color: var(--ink-2); }
.jl-sim-list button:hover b { color: var(--blue); }
.jl-sim em { font-style: normal; font-weight: 700; color: var(--ink); font-size: 14px; }
#jl-out .bar .ctrl { width: 200px; }
#jl-out th, #jl-out td { white-space: nowrap; }
#jl-out td:nth-child(2) { white-space: normal; min-width: 130px; }
.jl-credit { margin: -32px 0 40px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
/* 직업 수 태그 */
.jl-count { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 4px 12px; border-radius: 14px; background: var(--blue-bg); color: var(--blue); font-size: 13px; font-weight: 700; }
.jl-count .hot { vertical-align: 0; margin: 0; }
/* 결과 레이어 팝업 */
.jl-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .35); pointer-events: none; }
.jl-modal-box { pointer-events: auto; }
.jl-modal[hidden] { display: none; }
.jl-modal-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 14px; background: var(--blue-bg); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); overscroll-behavior: contain; }
.jl-modal .result.jl-res { position: static; top: auto; padding: 32px 32px 28px; border-radius: 0; }
.jl-x { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; margin: 6px 6px -50px 0; border: 0; border-radius: 50%; background: none; font-size: 28px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.jl-x:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
@media (max-width: 720px) {
	.jl-modal { padding: 0; align-items: flex-end; }
	.jl-modal-box { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
	.jl-modal .result.jl-res { padding: 28px 20px 24px; }
	.result .big.jl-big b { font-size: 48px; }
	.jl-name { font-size: 21px; }
	#jl-out .bar .ctrl { width: 100%; }
	.jl-credit { margin-top: -24px; }
}
