/* ==========================================================================
   Jobriver v2 – Jobsuche (Split-View). Basis: v2-core.css (Tokens, Buttons,
   Chips, Nav, Footer, Dark Mode). Styleguide: docu/design/v2-styleguide.md
   ========================================================================== */

/* ---------- Such-Pille + Vorschläge (gleich wie Startseite; Kandidat für v2-core) ---------- */
.search {
    position: relative; display: flex; align-items: center; gap: 4px;
    width: 100%; padding: 8px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
    box-shadow: var(--shadow);
    transition: box-shadow .25s, border-color .25s;
}
.search:focus-within { border-color: var(--brand-200); box-shadow: 0 0 0 6px rgba(114, 79, 255, .1), var(--shadow); }
.search__field { position: relative; flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.search__icon { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input[type="text"] { width: 100%; height: 52px; padding: 0 16px 0 48px; border: 0; background: transparent; outline: none; font: inherit; font-size: 1rem; color: var(--ink); }
.search input::placeholder { color: #8d86a0; }
.search__div { width: 1px; height: 28px; background: var(--line-2); flex: none; }
.search__btn { height: 52px; flex: none; }
.suggest {
    position: absolute; top: calc(100% + 14px); left: 0; right: -40px; z-index: var(--z-suggest);
    list-style: none; margin: 0; padding: 6px; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    max-height: 340px; overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .9375rem; }
.suggest li small { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-50); }
.suggest mark { background: none; color: var(--brand-700); font-weight: 600; }

.logo-box { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--line); overflow: hidden; font-weight: 650; color: var(--brand-700); }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* Volle Breite für die Jobsuche (Navigation und Mega-Menü ziehen über --wrap mit) */
body.js-page-jobs { --wrap: 100%; }

/* ---------- Kopf ---------- */
.jx-hero { position: relative; padding: calc(72px + clamp(32px, 5vw, 64px)) 0 28px; isolation: isolate; overflow: hidden; }
.jx-hero__glow {
    position: absolute; inset: -20% -10% 0; z-index: -1; opacity: var(--hero-glow-o);
    background:
        radial-gradient(35% 55% at 12% 22%, rgba(178, 157, 255, .45), transparent 70%),
        radial-gradient(30% 50% at 88% 14%, rgba(255, 168, 220, .32), transparent 70%);
    filter: blur(24px);
    /* Farbe läuft nach unten weich in den Seitenhintergrund aus – keine Kante an der Sektionsgrenze */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 92%);
}
.jx-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 24px; }
.jx-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; }
.jx-count {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(100deg, var(--brand-700), var(--brand) 50%, #b06bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: filter .3s;
}
.jx-count.is-busy { filter: blur(1.5px); }
.jx-sub { max-width: 420px; color: var(--muted); }
.jx-search { max-width: none; }
.jx-search .search__field:first-child input { padding-right: 44px; }
.jx-kbd, .jx-keys kbd {
    display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
    border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px;
    font: 600 .75rem/1 var(--font); color: var(--muted); background: var(--tint);
}
.jx-kbd { position: absolute; right: 12px; pointer-events: none; }
.jx-radius select, .jx-sort select {
    height: 44px; padding: 0 34px 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238d86a0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
    -webkit-appearance: none; appearance: none; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer;
}
.jx-radius { flex: none; margin-right: 4px; }
.jx-radius[hidden] { display: none; }
.jx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jx-quick__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.jx-quick__more b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; }
.jx-quick__more b[hidden] { display: none; }
@media (min-width: 1181px) { .jx-quick__more { display: none; } }

/* ---------- Arbeitsfläche ---------- */
.jx-work { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 40%); gap: 28px; align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }

/* Filter */
.jx-filters { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 4px 6px 24px 2px; scrollbar-width: thin; }
.jx-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.jx-filters__head strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.jx-link { padding: 4px 0; border: 0; background: none; font-size: .875rem; font-weight: 550; color: var(--brand-700); }
.jx-link[hidden] { display: none; }
.jx-x { display: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint); }
.jx-x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.jx-filters__apply { display: none; width: 100%; margin-top: 16px; }
.fgroup { margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fgroup legend + * { clear: both; }
.fopt { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-inline: -8px; border-radius: 10px; cursor: pointer; transition: background-color .15s; }
.fopt:hover { background: var(--brand-50); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__box { width: 18px; height: 18px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--surface); transition: background-color .15s, border-color .15s, transform .2s var(--ease); }
.fopt input:checked + .fopt__box {
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    border-color: var(--brand); transform: scale(1.06);
}
.fopt input:focus-visible + .fopt__box { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.fopt__label { flex: 1; font-size: .9375rem; color: var(--ink-2); }
.fopt input:checked ~ .fopt__label { color: var(--ink); font-weight: 550; }
.fopt__n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt--inline { margin-top: 10px; }

/* Gehalt mit Verteilungs-Histogramm */
.fsal__out { float: right; text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.fsal { position: relative; padding-top: 4px; }
.fsal__hist { display: flex; align-items: flex-end; gap: 2px; height: 48px; padding: 0 9px; }
.fsal__hist i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--brand-200); opacity: .45; transition: opacity .25s, background-color .25s; }
.fsal__hist i.is-in { background: var(--brand); opacity: .9; }
.fsal input[type="range"] { width: 100%; margin: 6px 0 0; accent-color: var(--brand); cursor: pointer; }
.fsal__legend { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

/* Technologien */
.ftech__search { position: relative; margin-bottom: 10px; }
.ftech__search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.ftech__search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; font-size: .9375rem; color: var(--ink); outline: none; }
.ftech__search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(114, 79, 255, .15); }
.ftech { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.ftech .chip { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.ftech__none { font-size: .875rem; color: var(--muted); }

/* ---------- Ergebnisleiste ---------- */
.jx-results { min-width: 0; }
.jx-bar {
    position: sticky; top: 84px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0; margin-bottom: 6px; background: var(--bg); box-shadow: 0 10px 14px -14px rgba(21, 17, 31, .25);
}
.jx-active { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.jx-active .chip { max-width: 100%; min-height: 32px; padding: 0 8px 0 12px; font-size: .8125rem; background: var(--brand-50); border-color: transparent; color: var(--brand-700); animation: chipIn .3s var(--ease); }
.jx-active .chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jx-active .chip svg { flex: none;  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jx-active .chip:hover { border-color: var(--brand); }
@keyframes chipIn { from { opacity: 0; transform: scale(.85); } }
.jx-bar__right { display: flex; align-items: center; gap: 8px; flex: none; }
.jx-saved { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s; }
.jx-saved svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .3s var(--ease); }
.jx-saved:hover { border-color: #ff5c8a; color: #e0336a; }
.jx-saved[aria-pressed="true"] { background: rgba(255, 92, 138, .1); border-color: #ff5c8a; color: #e0336a; }
.jx-saved[aria-pressed="true"] svg { fill: currentColor; }
.jx-saved.is-bump svg { transform: scale(1.35); }

/* Job-Alert für diese Suche (Dialog: job-alert-v2.css) */
.jx-alert-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .9375rem; font-weight: 550; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s; }
.jx-alert-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jx-alert-btn:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.jx-alert-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--feature-grad); border: 1px solid var(--brand-200); }
.jx-alert-card__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; }
.jx-alert-card__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jx-alert-card__txt { display: flex; flex-direction: column; min-width: 0; }
.jx-alert-card__txt strong { font-weight: 600; }
.jx-alert-card__txt small { font-size: .875rem; color: var(--ink-2); }

/* ---------- Jobkarten ---------- */
.jx-list { display: flex; flex-direction: column; gap: 10px; outline: none; }
.jc {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: start;
    padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
    cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
    animation: rise .45s var(--ease) both; animation-delay: var(--d, 0ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.jc:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.jc[aria-selected="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(114, 79, 255, .12), var(--shadow); }
.jc[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.jc:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; }
.jc .logo-box { grid-row: span 2; }
.jc__head { min-width: 0; }
.jc__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.jc__badge { padding: 2px 8px; border-radius: 6px; font-size: .6875rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.jc__badge--premium { background: linear-gradient(135deg, var(--brand), #a46bff); color: #fff; }
.jc__badge--urgent { background: #ffe3e3; color: #c92a2a; }
.jc__badge--hot { background: #fff1d6; color: #8a5300; }
:root[data-theme="dark"] .jc__badge--urgent { background: rgba(255, 90, 90, .16); color: #ff9b9b; }
:root[data-theme="dark"] .jc__badge--hot { background: rgba(255, 196, 107, .14); color: #ffc46b; }
.jc__title { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc__title mark { background: none; color: var(--brand-700); }
.jc__link { color: inherit; text-decoration: none; }
.jc__company { margin-top: 2px; font-size: .9375rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc__meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.jc__m { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: var(--tint); font-size: .8125rem; color: var(--ink-2); }
.jc__m svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.jc__salary { margin-left: auto; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.jc__salary--none { font-weight: 450; color: var(--muted); font-size: .8125rem; }
.jc__match { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .75rem; color: var(--muted); }
.jc__match i { flex: 1; max-width: 140px; height: 4px; border-radius: 4px; background: var(--brand-50); overflow: hidden; }
.jc__match i::after { content: ""; display: block; height: 100%; width: var(--m); background: linear-gradient(90deg, var(--brand), #b28dff); border-radius: inherit; }
.heart { display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: background-color .2s, color .2s; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.heart:hover { background: rgba(255, 92, 138, .1); color: #e0336a; }
.heart[aria-pressed="true"] { color: #e0336a; }
.heart[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.12); }
.heart.is-pop svg { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.45); } }

/* Skeleton */
.jc--skel { pointer-events: none; animation: none; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--tint) 25%, var(--brand-50) 50%, var(--tint) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Zustände */
.jx-state { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-xl); }
.jx-state[hidden] { display: none; }
.jx-state__art { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--brand-50); }
.jx-state__art svg { width: 32px; height: 32px; fill: none; stroke: var(--brand-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jx-state h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.jx-state p { max-width: 380px; margin: 8px auto 18px; color: var(--muted); }
.jx-state__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jx-more { display: flex; justify-content: center; padding: 20px 0; }
.jx-more[hidden] { display: none; }
.jx-sentinel { height: 1px; }

/* ---------- Detail ---------- */
.jx-detail { position: sticky; top: 92px; height: calc(100vh - 108px); min-width: 0; }
.jx-detail__inner {
    height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.jx-empty-detail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 32px; text-align: center; color: var(--muted); }
.jx-empty-detail__art { position: relative; width: 140px; height: 110px; margin-bottom: 10px; }
.jx-empty-detail__art i { position: absolute; left: 0; right: 0; height: 30px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.jx-empty-detail__art i:nth-child(1) { top: 0; transform: scale(.86); opacity: .6; }
.jx-empty-detail__art i:nth-child(2) { top: 36px; transform: scale(.93); opacity: .8; }
.jx-empty-detail__art i:nth-child(3) { top: 72px; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(114, 79, 255, .12); }
.jx-keys { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-size: .8125rem; }

.dt { animation: dtIn .45s var(--ease); }
@keyframes dtIn { from { opacity: 0; transform: translateY(8px); } }
.dt__cover { position: relative; height: 108px; background: var(--seg-grad); overflow: hidden; }
.dt__cover img { width: 100%; height: 100%; object-fit: cover; }
.dt__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .08)); }
.dt__body { padding: 0 28px 28px; }
.dt__logo { position: relative; z-index: 1; width: 72px; height: 72px; margin-top: -36px; border-radius: 20px; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.dt__title { margin-top: 14px; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.dt__company { margin-top: 4px; color: var(--muted); }
.dt__company a { color: var(--brand-700); font-weight: 550; }
.dt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.dt__actions .btn { min-height: 46px; }
.dt__icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s; }
.dt__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt__icon:hover { border-color: var(--ink); color: var(--ink); }
/* .heart aus der Jobkarte bringt einen negativen Rand mit – im Detail nicht */
.dt__icon.heart { margin: 0; }
.dt__icon.heart[aria-pressed="true"] { border-color: #ff5c8a; }
.dt__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.dt__fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--tint); }
.dt__fact svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--brand-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dt__fact small { display: block; font-size: .75rem; color: var(--muted); }
.dt__fact b { display: block; font-weight: 550; font-size: .9375rem; }

/* Gehalt im Marktvergleich */
.dt__pay { margin-top: 22px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
.dt__pay-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dt__pay-top strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dt__pay-top span { font-size: .8125rem; color: var(--muted); }
.mbar { position: relative; height: 12px; margin: 26px 0 8px; border-radius: 999px; background: var(--brand-50); }
.mbar__market { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--brand-100) 0 6px, transparent 6px 10px); border: 1px dashed var(--brand-200); }
.mbar__job { position: absolute; top: 2px; bottom: 2px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #b28dff); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.mbar__med { position: absolute; top: -8px; width: 2px; height: 28px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.mbar__med::after { content: attr(data-l); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .6875rem; font-weight: 600; color: var(--ink-2); }
.mbar__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; color: var(--muted); }
.mbar__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.mbar__legend .l-job::before { background: var(--brand); }
.mbar__legend .l-mkt::before { background: var(--brand-100); border: 1px dashed var(--brand-200); }

.dt__sec { margin-top: 24px; }
.dt__sec h3 { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dt__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dt__tags a, .dt__tags span { padding: 5px 11px; border-radius: 999px; background: var(--brand-50); font-size: .8125rem; font-weight: 550; color: var(--brand-700); transition: background-color .2s; }
.dt__tags a:hover { background: var(--brand-100); }
.dt__tags--soft span { background: var(--tint); color: var(--ink-2); font-weight: 450; }
.dt__text { position: relative; color: var(--ink-2); line-height: 1.7; white-space: pre-line; }
.dt__text.is-clamped { max-height: 9.5em; overflow: hidden; }
.dt__text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(transparent, var(--surface)); }
.dt__more { margin-top: 6px; padding: 4px 0; border: 0; background: none; font-weight: 600; color: var(--brand-700); }
.dt__foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.dt__sheetbar { display: none; }

/* Detail-Skeleton */
.dt--skel .sk { margin-bottom: 12px; }

/* Toast */
.jx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 550; box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; pointer-events: none; }
.jx-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.jx-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(13, 10, 20, .4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadeIn .25s; }
.jx-scrim[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .jx-work { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); }
    .jx-filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(360px, 92vw); max-height: none;
        padding: 20px 20px 28px; background: var(--surface); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg);
        transform: translateX(-104%); transition: transform .4s var(--ease); visibility: hidden;
    }
    .jx-filters.is-open { transform: none; visibility: visible; }
    .jx-x { display: grid; }
    .jx-filters__apply { display: inline-flex; position: sticky; bottom: 0; box-shadow: 0 -16px 24px 8px var(--surface); }
}
@media (max-width: 900px) {
    .jx-work { grid-template-columns: minmax(0, 1fr); }
    .jx-detail {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; height: min(88dvh, 820px);
        transform: translateY(104%); transition: transform .45s var(--ease); visibility: hidden;
    }
    .jx-detail.is-open { transform: none; visibility: visible; }
    .jx-detail__inner { border-radius: 26px 26px 0 0; border-bottom: 0; }
    .dt__sheetbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 10px; background: var(--surface); border-radius: 26px 26px 0 0; }
    .dt__sheetbar button { width: 56px; height: 6px; border: 0; border-radius: 6px; background: var(--line-2); }
    .jx-empty-detail { display: none; }
    .jx-bar { top: 72px; padding-top: 12px; }
}
@media (max-width: 760px) {
    .jx-search { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); }
    .jx-search .search__div { width: auto; height: 1px; margin: 0 14px; }
    .jx-search .search__btn { width: 100%; }
    .jx-radius { margin: 4px 8px; }
    .jx-radius select { width: 100%; }
    .jx-kbd { display: none; }
    .suggest { right: 0; }
    .jx-sub { display: none; }
    .jc { padding: 16px 14px 14px; gap: 4px 12px; }
    .jc .logo-box { width: 42px; height: 42px; border-radius: 12px; }
    .jc__salary { margin-left: 0; width: 100%; }
    .dt__body { padding: 0 20px 24px; }
    .jx-bar { flex-wrap: wrap; }
    .jx-alert-btn { width: 44px; padding: 0; justify-content: center; }
    .jx-alert-btn span { display: none; }
    .jx-alert-card { grid-template-columns: auto minmax(0, 1fr); }
    .jx-alert-card .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .jc, .dt, .jx-active .chip { animation: none; }
    .sk { animation: none; }
}
