
    :root {
        --safety-orange: #ff6b00;
        --safety-yellow: #facc15;
        --industrial-black: #111827;
        --panel-grey: #1f2937;
        --steel-grey: #374151;
        --concrete: #f3f4f6;
        --white: #ffffff;
    }
    body { background-color: var(--concrete); margin: 0; padding: 0; }
    .dispatch-layout { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 80px); width: 100%; }
    .filter-panel { background: var(--industrial-black); color: white; padding: 2rem; border-right: 4px solid var(--safety-orange); display: flex; flex-direction: column; gap: 2rem; height: 100%; position: sticky; top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; }
    .filter-header { border-bottom: 1px solid var(--steel-grey); padding-bottom: 1rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
    .filter-header h2 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: 1px; }
    .filter-header i { color: var(--safety-orange); }
    .control-group { display: flex; flex-direction: column; gap: 0.35rem; }
    .control-group label { display: block; font-family: monospace; color: #9ca3af; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.25rem; letter-spacing: 1px; }
    .control-input, .control-select { width: 100%; background: var(--panel-grey); border: 1px solid var(--steel-grey); color: white; padding: 0.8rem; font-size: 1rem; border-radius: 6px; transition: border-color 0.2s, box-shadow 0.2s; }
    .control-input:focus, .control-select:focus { outline: none; border-color: var(--safety-orange); box-shadow: 0 0 0 1px var(--safety-orange); }
    .invalid-field { border-color: #dc2626 !important; box-shadow: 0 0 0 1px #dc2626; }
    .split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn-update { width: 100%; background: var(--safety-orange); color: white; border: none; padding: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.2s, transform 0.1s; margin-top: 1rem; border-radius: 6px; }
    .btn-update:hover { background: #e65100; transform: translateY(-1px); }
    .btn-reset { width: 100%; background: transparent; border: 1px solid var(--steel-grey); color: #9ca3af; padding: 0.75rem; cursor: pointer; margin-top: 0.5rem; font-weight: 700; text-transform: uppercase; border-radius: 6px; }
    .btn-reset:hover { border-color: white; color: white; }
    .dispatch-feed { padding: 2rem; max-width: 1200px; width: 100%; margin: 0 auto; box-sizing: border-box; }
    .feed-header { background: white; border: 1px solid #d1d5db; border-left: 6px solid var(--industrial-black); padding: 1.5rem; margin-bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-radius: 8px; }
    .feed-title h1 { margin: 0; font-size: 1.8rem; font-weight: 900; color: var(--industrial-black); text-transform: uppercase; }
    .feed-title p { margin: 0; color: #6b7280; font-family: monospace; }
    .quick-trade-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
    .quick-trade-button { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid #d1d5db; background: #ffffff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #374151; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
    .quick-trade-button:hover { border-color: var(--safety-orange); color: var(--safety-orange); }
    .quick-trade-button.active { background: var(--industrial-black); color: #ffffff; border-color: var(--industrial-black); }
    .job-list { display: grid; gap: 1.5rem; }
    .ticket { 
        background: white; border: 1px solid #d1d5db; 
        grid-template-columns: 160px 1fr auto; 
        display: grid; 
        transition: box-shadow 0.2s, border-color 0.2s; 
        cursor: pointer; position: relative; border-radius: 10px; overflow: hidden; 
    }
    /* No translateY: transformed cards blur raster logos in some Chromium builds. */
    .ticket:hover { box-shadow: 0 12px 22px -6px rgba(0,0,0,0.12), 0 6px 10px -4px rgba(0,0,0,0.06); border-color: var(--safety-orange); }
    .ticket.tier-featured { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b, 0 4px 6px -1px rgba(245,158,11,0.1); }
    .ticket.tier-featured:hover { box-shadow: 0 0 0 1px #f59e0b, 0 10px 15px -3px rgba(245,158,11,0.15); }
    .ticket.tier-standard { /* default styling — no extra border */ }
    .ticket.tier-premium { border-color: #7c3aed; box-shadow: 0 0 0 1px #7c3aed, 0 4px 6px -1px rgba(124,58,237,0.1); }
    .ticket.tier-premium:hover { box-shadow: 0 0 0 1px #7c3aed, 0 10px 15px -3px rgba(124,58,237,0.15); }
    .status-strip {
        background: #f9fafb;
        border-right: 8px solid var(--safety-orange);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
        box-sizing: border-box;
        min-width: 0;
    }
    .ticket-content { padding: 1.5rem; }
    .ticket-top { display: flex; justify-content: space-between; margin-bottom: 0.5rem; gap: 0.75rem; align-items: baseline; }
    .ticket-role { font-size: 1.4rem; font-weight: 800; color: var(--industrial-black); text-transform: uppercase; word-break: break-word; }
    .ticket-company { 
        font-weight: 600; 
        color: #4b5563; 
        display: flex; 
        align-items: center; 
        gap: 6px; 
        font-size: 0.95rem; 
        white-space: nowrap; 
    }
    /* browse-jobs.php: 150×150 slot; sharp sources scale down via object-fit. */
    body.legacy-wpd.dispatch-board .company-logo-thumbnail {
        width: 150px;
        height: 150px;
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        padding: 5px;
        border-radius: 14px;
        box-sizing: border-box;
        display: block;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .company-logo-fallback {
        width: 150px;
        height: 150px;
        background: #ffffff;
        padding: 10px;
        border-radius: 14px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.legacy-wpd.dispatch-board .company-logo-thumbnail:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }
    .status-strip i.fas {
        font-size: 3rem;
        color: var(--steel-grey);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        height: 90%;
    }
    .ticket-specs { display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; font-family: monospace; font-size: 0.9rem; color: var(--industrial-black); }
    .spec { background: var(--concrete); padding: 0.25rem 0.75rem; border: 1px solid #e5e7eb; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
    .spec i { color: var(--safety-orange); margin-right: 2px; }
    .ticket-desc { color: #6b7280; font-size: 0.95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .ticket-action { padding: 1.5rem; border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 180px; background: #fafafa; gap: 0.6rem; }
    .pay-rate { font-size: 1.5rem; font-weight: 900; color: #059669; font-family: monospace; }
    .pay-period { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; font-weight: 700; margin-bottom: 0.25rem; }
    /* Scoped above shell `body.legacy-wpd a { color: inherit }` so the pill matches legacy browse-jobs.php (white on #111827, orange hover). */
    body.legacy-wpd.dispatch-board a.btn-apply-main {
        display: inline-block;
        text-decoration: none;
        border: none;
        padding: 0.6rem 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        cursor: pointer;
        color: white;
        background: #111827;
        border-radius: 999px;
        transition: background 0.2s;
    }
    body.legacy-wpd.dispatch-board a.btn-apply-main:hover { background: var(--safety-orange); }
    .btn-share {
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: var(--industrial-black);
        padding: 0.6rem;
        border-radius: 999px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .btn-share:hover { border-color: var(--safety-orange); color: var(--safety-orange); }
    .mobile-filter-btn { display: none; width: 100%; padding: 1rem; background: var(--industrial-black); color: white; margin: 0; font-weight: 700; border: none; font-size: 0.95rem; letter-spacing: 0.05em; }
    .pagination-bar { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; }
    .page-size-options { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
    .page-size-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; font-weight: 700; margin-right: 0.25rem; }
    .page-size-button { border: 1px solid #d1d5db; background: #ffffff; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; text-decoration: none; color: #374151; font-weight: 600; min-width: 28px; text-align: center; }
    .page-size-button:hover { border-color: var(--industrial-black); }
    .page-size-button.active { background: var(--industrial-black); color: #ffffff; border-color: var(--industrial-black); }
    .pagination-pages { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
    .pagination-link { border: 1px solid #d1d5db; background: #ffffff; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; text-decoration: none; color: #374151; font-weight: 600; min-width: 28px; text-align: center; }
    .pagination-link:hover { border-color: var(--industrial-black); }
    .pagination-link.active { background: var(--industrial-black); color: #ffffff; border-color: var(--industrial-black); }
    @media (max-width: 1024px) {
        .dispatch-layout { grid-template-columns: 1fr; }
        .dispatch-feed { padding: 1rem; }
        .filter-panel { display: none; position: fixed; top: 56px; left: 0; width: 100%; max-height: calc(100vh - 56px); z-index: 4000; padding: 1.25rem 1.5rem 2rem 1.5rem; border-right: none; border-bottom: 4px solid var(--safety-orange); }
        .feed-header { flex-direction: column; align-items: flex-start; }
        .feed-title h1 { font-size: 1.4rem; }
        .job-list { gap: 1rem; }
        .ticket { grid-template-columns: 1fr; border-left: 6px solid var(--safety-orange); }
        .status-strip { display: flex; }
        .ticket-content { padding: 1.25rem; }
        .ticket-top { flex-direction: column; align-items: flex-start; }
        .ticket-role { font-size: 1.2rem; }
        .ticket-company { font-size: 0.9rem; }
        .ticket-specs { font-size: 0.85rem; }
        .ticket-action { border-left: none; border-top: 1px solid #e5e7eb; flex-direction: row; justify-content: space-between; align-items: center; padding: 0.85rem 1.25rem; min-width: 0; }
        .pay-rate { font-size: 1.3rem; }
        .pay-period { margin-bottom: 0; margin-right: auto; margin-left: 10px; align-self: center; }
        .mobile-filter-btn { display: block; }
        body.legacy-wpd.dispatch-board a.btn-apply-main { padding: 0.6rem 1rem; font-size: 0.85rem; }
        .pagination-bar { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 640px) {
        .feed-header { padding: 1rem; }
        .ticket-content { padding: 1rem; }
        .ticket-action { padding: 0.75rem 1rem; }
        .ticket-role { font-size: 1.1rem; }
        .ticket-company { font-size: 0.9rem; }
        .ticket-specs { gap: 0.6rem; }
        .spec { padding: 0.2rem 0.6rem; }
        .btn-update, .btn-reset { font-size: 0.85rem; }
        .quick-trade-filters { gap: 0.4rem; }
        .quick-trade-button { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
    }
    @media (min-width: 1025px) { .mobile-filter-btn { display: none; } }
