:root {
    /* Crisp, Clean Grayscale */
    --bg: #F8FAFC;
    --bg-rgb: 248, 250, 252;
    --ink: #0F172A;
    --ink2: #475569;
    --soft: #64748B;
    --line2: #E2E8F0;

    /* Glassy layers */
    --glass: rgba(255, 255, 255, 0.55);
    --edge: rgba(255, 255, 255, 0.9);
    --hair: rgba(15, 23, 42, 0.08);

    /* --- SINGLE TRUST COLOR (Enterprise Blue) --- */
    --primary: #0F62FE;
    --primary-hover: #0043CE;
    --primary-light: #EDF5FF;
    --primary-rgb: 15, 98, 254;

    /* Clean, structured neutral shadows */
    --sh1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sh2: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --sh3: 0 12px 16px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    --rail-w: 250px;
    --rail-gap: 28px;
}

[data-bs-theme="dark"] {
    /* Softened Dark Mode (Slate 900) */
    --bg: #0F172A;
    --bg-rgb: 15, 23, 42;
    --ink: #F8FAFC;
    --ink2: #CBD5E1;
    --soft: #94A3B8;
    --line2: #334155;

    /* Dark Glassy layers */
    --glass: rgba(15, 23, 42, 0.65);
    --edge: rgba(255, 255, 255, 0.12);
    --hair: rgba(255, 255, 255, 0.05);

    /* Dark Mode Trust Blue */
    --primary: #4589FF;
    --primary-hover: #78A9FF;
    --primary-light: #001D6C;
    --primary-rgb: 69, 137, 255;

    /* Solid pure black shadows */
    --sh1: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --sh2: 0 4px 8px -2px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --sh3: 0 12px 20px -4px rgba(0, 0, 0, 0.6), 0 4px 8px -3px rgba(0, 0, 0, 0.4);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Public Sans', system-ui, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    transition: background-color .25s ease, color .25s ease;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-top: 76px;
}

.hb-container {
    width: 100%;
    max-width: 1088px;
    margin-left: auto;
    margin-right: auto;
}

.disp {
    font-family: 'Instrument Sans', 'Public Sans', sans-serif;
    letter-spacing: -.025em;
}

.soft {
    color: var(--soft);
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--soft);
}

/* =========================================
   NEW HERO BACKGROUND: MESH & GRID
   ========================================= */
.atmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.03) 0%, transparent 80%);
}

/* Fading Architectural Grid */
.atmos::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--hair) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
    z-index: 1;
}

/* Glowing Aurora Orbs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
}

.b1 {
    width: 600px;
    height: 600px;
    top: -150px;
    left: 10%;
    background: rgba(var(--primary-rgb), 0.15);
}

.b2 {
    width: 500px;
    height: 500px;
    top: 100px;
    right: 5%;
    background: rgba(var(--primary-rgb), 0.1);
    display: block;
}

.b3 {
    display: none;
}

[data-bs-theme="dark"] .blob {
    opacity: 0.4;
    filter: blur(140px);
}

[data-bs-theme="dark"] .b1 {
    background: rgba(var(--primary-rgb), 0.25);
}

[data-bs-theme="dark"] .b2 {
    background: rgba(var(--primary-rgb), 0.15);
}

/* shell */
.hb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    border-bottom: 1px solid var(--hair);
    background: rgba(var(--bg-rgb), 0.65);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    height: 76px;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .25s ease, border-color .3s ease;
}

body.header-is-hidden .hb-header {
    transform: translateY(-100%);
}

.hb-body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.hb-cols {
    display: flex;
    align-items: flex-start;
    gap: var(--rail-gap);
}

.hb-rail {
    position: sticky;
    top: 96px;
    height: calc(100vh - 96px);
    width: var(--rail-w);
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    padding-left: 4px;
    padding-bottom: 24px;
    border-right: 1px solid var(--hair);
    transition: top .3s cubic-bezier(.16, 1, .3, 1), height .3s cubic-bezier(.16, 1, .3, 1);
}

body.header-is-hidden .hb-rail {
    top: 20px;
    height: calc(100vh - 20px);
}

.hb-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.toolbar-wrap {
    position: sticky;
    top: 76px;
    z-index: 30;
    padding: 24px 20px;
    margin: -24px -20px -24px -20px;
    pointer-events: none;
    transition: top .3s cubic-bezier(.16, 1, .3, 1);
}

.toolbar-wrap>* {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Pure Colorless Blur Effect */
.toolbar-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 24px, black calc(100% - 24px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 24px, black calc(100% - 24px), transparent 100%);
    mask-composite: intersect;
    z-index: 0;
}

body.header-is-hidden .toolbar-wrap {
    top: 0;
}

#activeChips:empty {
    display: none !important;
}

/* hero */
.hb-hero {
    position: relative;
    margin-bottom: 32px;
    text-align: center;
    padding: 56px 32px;
}

.hb-hero-in {
    max-width: 720px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* Stickers muted into simple grayscale background elements */
.hero-sticker {
    position: absolute;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    color: var(--ink);
}

[data-bs-theme="dark"] .hero-sticker {
    opacity: 0.03;
}

.st-1 {
    top: -10px;
    left: 10%;
    transform: rotate(-15deg);
    font-size: 90px;
}

.st-2 {
    bottom: -20px;
    right: 12%;
    transform: rotate(25deg);
    font-size: 110px;
}

.st-3 {
    top: 40px;
    right: 8%;
    transform: rotate(10deg);
    font-size: 50px;
}

.st-4 {
    bottom: 30px;
    left: 18%;
    transform: rotate(-10deg);
    font-size: 45px;
}

.hb-hero-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 46px;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--ink);
}

.hb-hero-sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--soft);
    margin: 0 auto;
    max-width: 580px;
    font-weight: 400;
}

@media (max-width:820px) {
    .hb-hero-title {
        font-size: 34px;
    }

    .hb-hero-sub {
        font-size: 15px;
    }

    .hb-hero {
        padding: 40px 24px;
        margin-bottom: 24px;
    }
}

.hb-list {
    padding-top: 16px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* =========================================
   GLASS CARDS & COMPONENTS
   ========================================= */
.glass {
    background: var(--glass);
    border: 1px solid var(--edge);
    border-radius: 16px;
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: var(--sh1), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1), border-color .3s;

    /* Fix for WebKit/Blink backdrop-filter clipping bug */
    transform: translateZ(0);
    backface-visibility: hidden;
}

[data-bs-theme="dark"] .glass {
    box-shadow: var(--sh1), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.job-card:hover {
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) translateZ(0);
    /* Preserves Z axis acceleration */
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-bs-theme="dark"] .job-card:hover {
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.job-card.open {
    border-color: var(--primary);
    box-shadow: var(--sh3);
    transform: translateZ(0);
}

/* listing row */
.job-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    user-select: none;
}

/* Grayscale/Blue Tile system - prevents color clutter */
.tile {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 18px;
    font-family: 'Instrument Sans', sans-serif;
}

.t0 {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.t1 {
    background: var(--hair);
    color: var(--ink);
}

.t2 {
    background: transparent;
    border: 1px solid var(--line2);
    color: var(--ink2);
}

.t3 {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--ink);
}

.t4 {
    background: var(--bg);
    border: 1px solid var(--hair);
    color: var(--soft);
    box-shadow: var(--sh1);
}

[data-bs-theme="dark"] .t0 {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-hover);
}

[data-bs-theme="dark"] .t1 {
    background: var(--line2);
    color: var(--ink);
}

[data-bs-theme="dark"] .t2 {
    background: transparent;
    border: 1px solid var(--line2);
    color: var(--ink2);
}

[data-bs-theme="dark"] .t3 {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
}

[data-bs-theme="dark"] .t4 {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line2);
    color: var(--soft);
}

.job-title {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.02em;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--soft);
}

.job-meta b,
.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--hair);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1.4;
}

.job-meta b,
.job-meta .meta-pay {
    font-weight: 500;
    color: var(--ink2);
}

.job-meta .bi {
    font-size: 12px;
    opacity: .5;
}

[data-bs-theme="dark"] .job-meta b,
[data-bs-theme="dark"] .job-meta span {
    background: rgba(255, 255, 255, .02);
}

/* The Row Apply Button -> Removed problematic transform animation */
.row-apply {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.job-card:hover .row-apply,
.job-card:focus-within .row-apply,
.job-card.open .row-apply {
    opacity: 1;
    pointer-events: auto;
}

@media (hover:none) {
    .row-apply {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Minimalist Pills */
.pill,
.pill-b {
    border: 1px solid var(--line2);
    background: transparent;
    color: var(--soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 19px;
    padding: 2px 12px;
    white-space: nowrap;
}

.pill-b {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: var(--primary-light);
    color: var(--primary);
}

.tagchip {
    border: 1px solid var(--line2);
    background: rgba(255, 255, 255, .5);
    color: var(--soft);
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 20px;
    padding: 2px 10px;
}

[data-bs-theme="dark"] .tagchip {
    background: rgba(255, 255, 255, .03);
}

/* Buttons strictly Primary or Grayscale */
.btn-acc {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-acc:hover {
    background: var(--primary-hover);
    color: #fff;
}

[data-bs-theme="dark"] .btn-acc {
    color: #fff;
}

.btn-ink {
    background: var(--ink);
    color: var(--bg);
    border: 1px solid transparent;
}

.btn-ink:hover {
    background: var(--ink2);
    color: var(--bg);
}

/* Success state -> Grayscale */
.btn-applied {
    background: var(--bg);
    border: 1px solid var(--line2);
    color: var(--soft);
    cursor: default;
}

[data-bs-theme="dark"] .btn-applied {
    background: transparent;
}

.btn-sm2 {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.btn {
    font-weight: 600;
    border-radius: 8px;
    font-size: 13.5px;
}

/* Unified Glass Form Controls */
.form-control {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--edge);
    border-radius: 12px;
    color: var(--ink);
    font-size: 14px;
    padding: 12px 16px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), var(--sh1);
    transition: all 0.2s;
}

[data-bs-theme="dark"] .form-control {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--sh1);
}

.form-control:focus {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}

.form-control::placeholder {
    color: var(--soft);
    opacity: 0.7;
}

[data-bs-theme="dark"] .form-control:focus {
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}

/* Toolbar Items */
.toolbar-item {
    height: 48px;
    font-family: 'Public Sans', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    background: var(--glass);
    border: 1px solid var(--edge);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), var(--sh1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    outline: none !important;
}

[data-bs-theme="dark"] .toolbar-item {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--sh1);
}

.toolbar-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
}

input.toolbar-item:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    background: var(--bg);
}

[data-bs-theme="dark"] input.toolbar-item:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    background: rgba(0, 0, 0, 0.5);
}

button.toolbar-item:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
}

[data-bs-theme="dark"] button.toolbar-item:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2) !important;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 12px;
}

button.toolbar-item {
    justify-content: center;
    padding: 0 16px;
    gap: 8px;
}

input.toolbar-item {
    width: 100%;
}

.sort-dropdown-wrap {
    width: 180px;
    flex: 0 0 180px;
    position: relative;
}

#sortDropdownBtn {
    justify-content: space-between;
    padding-right: 14px;
    padding-left: 14px;
}

.dropdown-menu {
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--edge);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: var(--sh2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 500;
    color: var(--ink);
    transition: all .1s ease;
    font-size: 14px;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--primary) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--ink);
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background: rgba(var(--primary-rgb), .15);
    color: var(--primary-hover);
}

#searchInput {
    font-weight: 500;
    font-size: 15px;
    padding-left: 40px;
    padding-right: 40px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
}

.search-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft);
    pointer-events: none;
    z-index: 10;
    font-size: 16px;
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--soft);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    font-size: 18px;
}

.search-spinner {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    animation: spin .6s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

#railToggle {
    flex: 0 0 auto;
    min-width: 148px;
}

/* checkboxes & radios */
.form-check-input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    cursor: pointer;
    background-color: transparent;
    border: 1.5px solid var(--soft);
    border-radius: 4px;
    transition: all .2s ease;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.opt-row:hover .form-check-input {
    border-color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
    outline: none;
}

.opt-row {
    border-radius: 8px;
    transition: background .2s ease;
    margin-bottom: 2px;
}

.opt-row:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.form-check-label {
    font-size: 13.5px;
    color: var(--ink2);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
    min-width: 0;
}

.opt-row:hover .form-check-label {
    color: var(--ink);
}

/* range slider */
.form-range {
    height: 24px;
    padding: 0;
    background: transparent;
}

.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: transparent;
}

.form-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--line2);
}

.form-range::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.form-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

[data-bs-theme="dark"] .form-range::-webkit-slider-thumb {
    border-color: var(--bg);
}

[data-bs-theme="dark"] .form-range::-moz-range-thumb {
    border-color: var(--bg);
}

/* filter rail */
.filter-sect {
    border-bottom: 1px solid var(--hair);
    padding: 16px 0;
}

.filter-sect:last-child {
    border-bottom: 0;
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 0;
    padding: 0 4px;
    color: var(--ink);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.filter-head:hover {
    color: var(--primary);
}

.filter-head .bi {
    transition: transform .2s;
    font-size: 12px;
}

.filter-head.collapsed .bi {
    transform: rotate(-90deg);
}

.opt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    width: 100%;
}

.opt-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--soft);
    font-variant-numeric: tabular-nums;
}

/* active chips */
.fchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    padding: 4px 8px 4px 12px;
    font-size: 12.5px;
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--line2);
    color: var(--ink);
}

.fchip button {
    background: none;
    border: 0;
    color: var(--soft);
    cursor: pointer;
    padding: 0 2px;
    transition: color .2s;
}

.fchip button:hover {
    color: var(--primary);
}

/* detail panel */
.job-detail {
    padding: 0 20px 20px;
}

.job-detail-in {
    padding-top: 20px;
    border-top: 1px solid var(--hair);
}

.bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink2);
}

.bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--soft);
    border-radius: 50%;
}

/* Apply section inside detail */
.apply-band {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
}

[data-bs-theme="dark"] .apply-band {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.sent-band {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--line2);
    color: var(--soft);
}

/* theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--edge);
    color: var(--ink);
    font-size: 16px;
    transition: all .2s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--sh1);
}

.theme-toggle:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

[data-bs-theme="dark"] .theme-toggle {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), var(--sh1);
}

.theme-toggle .bi {
    display: block;
    animation: iconSwap .3s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes iconSwap {
    from {
        opacity: 0;
        transform: rotate(-90deg) scale(.5);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.brand-name {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -.03em;
    color: var(--ink);
}

/* motion */
.fade-in {
    animation: fadeIn .25s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rise {
    animation: rise .35s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.chev {
    transition: transform .25s;
}

.chev.flip {
    transform: rotate(180deg);
}

/* scrollbars - ultra minimal */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 10px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
}

.hb-rail {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .3s;
}

.hb-rail:hover,
.hb-rail.scrolling {
    scrollbar-color: rgba(0, 0, 0, .15) transparent;
}

[data-bs-theme="dark"] .hb-rail:hover,
[data-bs-theme="dark"] .hb-rail.scrolling {
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.hb-rail::-webkit-scrollbar {
    width: 6px;
}

.hb-rail::-webkit-scrollbar-track {
    background: transparent;
}

.hb-rail::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background-color .3s;
}

.hb-rail:hover::-webkit-scrollbar-thumb,
.hb-rail.scrolling::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
}

[data-bs-theme="dark"] .hb-rail:hover::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .hb-rail.scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
}

@media (max-width:1080px) {
    .row-pills {
        display: none !important;
    }
}

.hb-rail {
    transition: width .3s ease, opacity .2s ease;
}

.hb-rail.rail-hidden {
    display: none;
}

.hb-main {
    transition: max-width .3s ease;
}

.hb-cols.rail-off .hb-main {
    max-width: calc(100% - (var(--rail-w) + var(--rail-gap)));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width:991.98px) {
    .hb-rail {
        display: none;
    }

    .hb-cols {
        gap: 0;
    }

    .hb-cols.rail-off .hb-main {
        max-width: none;
    }

    .hb-hero {
        display: none !important;
    }
}

@media (max-width:820px) {
    .job-title {
        white-space: normal;
    }

    .sort-dropdown-wrap {
        width: 130px;
        flex: 0 0 130px;
    }
}

@media (max-width:560px) {
    .sort-dropdown-wrap {
        display: none;
    }

    .toolbar .btn {
        padding: 0 14px;
    }

    .job-row {
        padding: 16px 14px;
        gap: 12px;
    }

    .tile {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}