/*
 * Worbour PARTNER panel — same design system as the customer dashboard.
 * The import works because both stylesheets live one folder below the site
 * root. Path-relative url() assets stay correct through the import chain.
 */
@import url("../user/dashboard.css?v=28");

/* ============ Partner palette ============ */
.dash {
    --p-accent: #0e9f6e;          /* Worbour green — trusted, earning */
    --p-accent-deep: #0b7c56;
    --p-accent-soft: #e2f5ec;
    --p-accent-ink: #0a5c41;
}

/* Sidebar active link + brand accent */
.dash .side-link.active { color: var(--p-accent-deep); }
.dash .side-link.active .icon { stroke: var(--p-accent-deep); }
.dash .side-note .side-script { color: var(--p-accent-deep); }
.dash .side-leaf .icon { stroke: var(--p-accent-deep); }

/* Topbar identity block */
.topbar-id { min-width: 0; }
.topbar-title { font-size: 1.05rem; font-weight: 800; color: var(--ink, #1d2a32); line-height: 1.2; }
.topbar-sub { font-size: .78rem; color: var(--muted, #5b6b74); margin-top: 1px; }

/* ============ Stat cards ============ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line, #e6e9ec);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.stat-ic {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--p-accent-soft);
}
.stat-ic .icon { width: 20px; height: 20px; stroke: var(--p-accent-deep); }
.stat-ic.tint-rose   { background: #fdeef2; } .stat-ic.tint-rose   .icon { stroke: #c2255c; }
.stat-ic.tint-blue   { background: #e7f0fe; } .stat-ic.tint-blue   .icon { stroke: #1971c2; }
.stat-ic.tint-amber  { background: #fdf3e0; } .stat-ic.tint-amber  .icon { stroke: #b7791f; }
.stat-ic.tint-violet { background: #f3eefe; } .stat-ic.tint-violet .icon { stroke: #7048e8; }
.stat-label { font-size: .78rem; color: var(--muted, #5b6b74); font-weight: 600; }
.stat-value { font-size: 1.45rem; font-weight: 800; color: var(--ink, #1d2a32); line-height: 1.15; margin-top: 2px; }
.stat-sub   { font-size: .75rem; color: var(--muted, #5b6b74); margin-top: 2px; }

/* ============ Job rows ============ */
.job-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line, #e6e9ec);
    border-radius: 14px;
    background: #fff;
}
.job-row + .job-row { margin-top: 10px; }
.job-info { flex: 1; min-width: 0; }
.job-info h3 { font-size: .95rem; font-weight: 700; color: var(--ink, #1d2a32); }
.job-meta {
    display: flex; flex-wrap: wrap; gap: 4px 14px;
    font-size: .8rem; color: var(--muted, #5b6b74);
    margin-top: 3px;
}
.job-meta .icon { width: 14px; height: 14px; vertical-align: -2px; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.job-price { font-weight: 800; color: var(--ink, #1d2a32); font-size: .95rem; }

/* Open job (marketplace) rows */
.open-row { border-style: dashed; }

/* ============ Availability editor ============ */
.avail-days { display: flex; flex-wrap: wrap; gap: 8px; }
.avail-days label {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--line, #e6e9ec);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: .85rem; font-weight: 600;
    color: var(--ink, #1d2a32);
    cursor: pointer;
    user-select: none;
}
.avail-days label:has(input:checked) {
    background: var(--p-accent-soft);
    border-color: var(--p-accent);
    color: var(--p-accent-ink);
}
.avail-days input { accent-color: var(--p-accent); margin: 0; }

.avail-legend {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    font-size: .8rem; color: var(--muted, #5b6b74);
}
.avail-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.avail-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--p-accent); }
.dot-request { background: #f59f00; }
.dot-busy { background: #adb5bd; }

/* ============ Payout form ============ */
.payout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
}
.payout-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip {
    border: 1px solid var(--line, #e6e9ec);
    background: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .82rem; font-weight: 700;
    color: var(--ink, #1d2a32);
    cursor: pointer;
}
.chip:hover { border-color: var(--p-accent); color: var(--p-accent-deep); }

/* ============ Reviews ============ */
.review-row { border-top: 1px solid var(--line, #e6e9ec); padding: 14px 0; }
.review-row:first-child { border-top: 0; padding-top: 0; }
.review-stars { color: #f59f00; font-size: .85rem; letter-spacing: 2px; }
.review-row p { font-size: .88rem; color: var(--ink, #1d2a32); margin: 6px 0 4px; }
.review-row small { color: var(--muted, #5b6b74); }

/* ============ Empty & utilities ============ */
.stat-inline { font-size: .8rem; color: var(--muted, #5b6b74); }
.muted { color: var(--muted, #5b6b74); }

/* ============ Approval gate (pending/suspended notice page) ============ */
.gate-panel { overflow: hidden; }
.gate-hero {
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--p-accent-soft), transparent 75%);
    border-radius: 14px;
}
.gate-hero.is-blocked {
    background: linear-gradient(180deg, #fdeef2, transparent 75%);
}
.gate-ic {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--p-accent);
    box-shadow: 0 6px 18px rgba(14, 159, 110, .18);
}
.gate-hero.is-blocked .gate-ic { border-color: #c2255c; box-shadow: 0 6px 18px rgba(194, 37, 92, .15); }
.gate-ic .icon { width: 30px; height: 30px; stroke: var(--p-accent-deep); }
.gate-hero.is-blocked .gate-ic .icon { stroke: #c2255c; }
.gate-hero h1 { font-size: 1.5rem; font-weight: 800; color: var(--ink, #1d2a32); }
.gate-copy { max-width: 560px; margin: 10px auto 0; color: var(--muted, #5b6b74); line-height: 1.55; }

/* Progress steps */
.gate-steps {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 22px auto 0;
    padding: 0;
    max-width: 520px;
}
.gate-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}
/* connector line */
.gate-step + .gate-step::before {
    content: "";
    position: absolute;
    top: 17px;
    right: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: var(--p-accent);
    opacity: .35;
}
.gate-dot {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
    background: #fff;
    border: 2px solid var(--line, #e6e9ec);
    color: var(--muted, #5b6b74);
    position: relative;
    z-index: 1;
}
.gate-dot .icon { width: 16px; height: 16px; }
.gate-step.done .gate-dot { background: var(--p-accent); border-color: var(--p-accent); }
.gate-step.done .gate-dot .icon { stroke: #fff; }
.gate-step.now .gate-dot { border-color: var(--p-accent); color: var(--p-accent-deep); }
.gate-step-label { font-size: .78rem; font-weight: 700; color: var(--muted, #5b6b74); }
.gate-step.done .gate-step-label,
.gate-step.now .gate-step-label { color: var(--p-accent-ink); }
.gate-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--p-accent);
    animation: gatePulse 1.8s ease-out infinite;
}
@keyframes gatePulse {
    0%   { transform: scale(.8); opacity: .9; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gate-pulse { animation: none; }
}

.gate-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
    margin-top: 20px;
    font-size: .82rem; color: var(--muted, #5b6b74);
}
.gate-meta .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.gate-update { margin-top: 10px; line-height: 1.45; }
.gate-update .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ============ Login split (reuses .auth-* classes) ============ */
.partner-accent { color: var(--p-accent-deep); }

@media (max-width: 720px) {
    .job-row { flex-wrap: wrap; }
    .job-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ================= LIVE / INCOMING REQUESTS (dispatch) =================
   Visually distinct from previously accepted jobs: tinted card, pulsing
   "New" tag, live countdown to the response deadline. */
.panel-live { border: 1px solid rgba(37, 99, 235, .35); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.panel-live .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.panel-note { font-size: .78rem; color: var(--muted, #6b7280); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.job-row-live { background: linear-gradient(0deg, rgba(37, 99, 235, .04), rgba(37, 99, 235, .04)), var(--card, #fff); border: 1px solid rgba(37, 99, 235, .25); }
.live-tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #16a34a; padding: 2px 7px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.job-dist { color: #2563eb; font-weight: 700; }
.job-countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink, #1d2a32); }
.job-countdown.is-expired { color: #dc2626; }
/* Live operations controls */
.provider-presence{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #dbe8e2}
.provider-presence p{margin:5px 0;color:#52635d}
.provider-presence small{color:#718078}
@media(max-width:700px){.provider-presence{align-items:flex-start;padding:16px;gap:12px}.provider-presence [data-online-toggle]{min-height:46px;flex:none}.dash-content{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}}

/* Provider mobile workflow: keep presence and job actions easy to reach. */
@media (max-width: 767px) {
    .dash-grid, .dash-content, .panel, .rail-card { min-width: 0; }
    .provider-presence { flex-direction: column; align-items: stretch; }
    .provider-presence > div { min-width: 0; }
    .provider-presence p, .provider-presence small { overflow-wrap: anywhere; }
    .provider-presence [data-online-toggle] { width: 100%; min-height: 48px; }
    .job-row { align-items: stretch; min-width: 0; padding: 14px; }
    .job-info, .job-side { min-width: 0; }
    .job-info h3, .job-meta { overflow-wrap: anywhere; }
    .job-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; align-items: stretch; gap: 8px; }
    .job-side > form, .job-side > a, .job-side > .btn { min-width: 0; width: 100%; }
    .job-side > form .btn { width: 100%; min-height: 44px; }
    .job-side > .job-price, .job-side > .job-countdown, .job-side > .status-badge { align-self: center; }
    .panel-head { min-width: 0; flex-wrap: wrap; }
}

/* Availability card keeps location setup secondary to the main online action. */
.provider-presence-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.provider-presence-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; background: #f1f4f2; color: #5c6a62; font-size: 11px; font-weight: 800; }
.provider-presence[data-online="1"] .provider-presence-badge { background: #e7f5ed; color: #087349; }
.provider-presence-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.provider-presence-actions .btn { min-height: 44px; }
#providerLocationStatus { display: block; margin-top: 8px; line-height: 1.4; overflow-wrap: anywhere; }

@media (max-width: 767px) {
    .provider-presence-title { justify-content: space-between; }
    .provider-presence-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); width: 100%; }
    .provider-presence-actions .btn { width: 100%; min-height: 46px; white-space: normal; }
}

/* Partner panel refinements shared by dashboard, jobs, schedule and profile. */
.dash[data-active="jobs"] .job-row,
.dash[data-active="schedule"] .panel,
.dash[data-active="earnings"] .panel,
.dash[data-active="profile"] .panel {
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(4, 17, 12, .045);
}
.dash[data-active="jobs"] .job-row { border-color: #e7eee9; }
.dash[data-active="jobs"] .job-row-live { border-color: rgba(37, 99, 235, .25); }

@media (max-width: 767px) {
    .dash[data-active="jobs"] .dash-grid,
    .dash[data-active="schedule"] .page-narrow,
    .dash[data-active="earnings"] .page-narrow,
    .dash[data-active="profile"] .page-narrow,
    .dash[data-active="notifications"] .page-narrow {
        padding: 18px 14px calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .dash[data-active="jobs"] .job-row { border-radius: 16px; }
    .dash[data-active="jobs"] .job-side > .btn,
    .dash[data-active="jobs"] .job-side > a { min-height: 46px; justify-content: center; }
    .dash[data-active="dashboard"] .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .dash[data-active="dashboard"] .stat-card { min-width: 0; padding: 13px; border-radius: 15px; }
    .dash[data-active="dashboard"] .stat-ic { width: 36px; height: 36px; border-radius: 11px; }
}

/* Provider dashboard: give the overview the rhythm of a focused work app. */
.dash[data-active="dashboard"] .provider-hero {
    min-height: 260px;
    border-color: rgba(14, 159, 110, .12);
    box-shadow: 0 12px 32px rgba(6, 55, 39, .07);
}
.dash[data-active="dashboard"] .provider-hero .eyebrow { color: var(--p-accent-deep); }
.dash[data-active="dashboard"] .provider-hero .hero-banner-sub { max-width: 40ch; line-height: 1.55; }
.dash[data-active="dashboard"] .provider-hero .btn { min-height: 46px; }
.dash[data-active="dashboard"] .provider-stats { gap: 12px; }
.dash[data-active="dashboard"] .provider-stats .stat-card {
    min-width: 0;
    border-color: #e8eee9;
    border-radius: 18px;
    box-shadow: 0 5px 16px rgba(16, 36, 27, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dash[data-active="dashboard"] .provider-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(16, 36, 27, .07);
}
.dash[data-active="dashboard"] .provider-stats .stat-value { letter-spacing: -.035em; }
.dash[data-active="dashboard"] .provider-stats .stat-sub { line-height: 1.4; }
.dash[data-active="dashboard"] .provider-presence {
    border-color: #dfece4;
    background: linear-gradient(130deg, #fff 20%, #f6fbf8 100%);
    box-shadow: 0 7px 22px rgba(6, 55, 39, .045);
}
.dash[data-active="dashboard"] .provider-presence[data-online="1"] {
    border-color: rgba(14, 159, 110, .3);
    background: linear-gradient(130deg, #fff 10%, #effaf4 100%);
}
.dash[data-active="dashboard"] .provider-presence-title strong { color: #173a2d; font-size: 15px; }
.dash[data-active="dashboard"] .provider-presence-badge { gap: 6px; }
.dash[data-active="dashboard"] .provider-presence-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.dash[data-active="dashboard"] .provider-nearby-panel {
    border-color: #dcebe3;
    background: linear-gradient(155deg, #fff, #fbfefc);
}
.dash[data-active="dashboard"] .provider-nearby-panel .panel-head { margin-bottom: 12px; }
.dash[data-active="dashboard"] .provider-nearby-panel .panel-head h2 { font-size: 18px; }
.dash[data-active="dashboard"] .live-empty-state {
    display: flex;
    align-items: center;
    min-height: 58px;
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed #dce8e0;
    border-radius: 13px;
    background: #f8fbf9;
    color: #68776f;
    font-size: 13px;
    line-height: 1.45;
}
.dash[data-active="dashboard"] .provider-job-panel,
.dash[data-active="dashboard"] .provider-open-panel {
    border-radius: 19px;
    box-shadow: 0 8px 24px rgba(4, 17, 12, .045);
}
.dash[data-active="dashboard"] .provider-balance-card {
    overflow: hidden;
    border-color: #dcebe3;
    background: linear-gradient(145deg, #f3fbf6, #fff 78%);
}
.dash[data-active="dashboard"] .provider-balance-card .rail-balance { margin: 7px 0 14px; }
.dash[data-active="dashboard"] .provider-schedule-card .rail-title,
.dash[data-active="dashboard"] .provider-actions-card .rail-title { margin-bottom: 8px; }

@media (max-width: 767px) {
    .dash[data-active="dashboard"] .dash-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px 11px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .dash[data-active="dashboard"] .dash-content { display: contents; }
    .dash[data-active="dashboard"] .provider-hero { grid-row: 1; }
    .dash[data-active="dashboard"] .provider-presence { grid-row: 2; }
    .dash[data-active="dashboard"] .provider-stats { grid-row: 3; }
    .dash[data-active="dashboard"] .rail { grid-row: 4; }
    .dash[data-active="dashboard"] .provider-nearby-panel { grid-row: 5; }
    .dash[data-active="dashboard"] .provider-job-panel { grid-row: 6; }
    .dash[data-active="dashboard"] .provider-open-panel { grid-row: 7; }

    .dash[data-active="dashboard"] .provider-hero {
        position: relative;
        min-height: 0;
        color: #fff;
        border: 0;
        border-radius: 22px;
        background:
            radial-gradient(circle at 100% 0%, rgba(80, 196, 146, .35), transparent 42%),
            linear-gradient(135deg, #073b2f 0%, #075a43 58%, #087657 100%);
        box-shadow: 0 12px 25px rgba(4, 64, 46, .18);
    }
    .dash[data-active="dashboard"] .provider-hero::after {
        content: "";
        position: absolute;
        width: 155px;
        height: 155px;
        right: -56px;
        bottom: -82px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 50%;
        box-shadow: 0 0 0 18px rgba(255,255,255,.035), 0 0 0 38px rgba(255,255,255,.025);
        pointer-events: none;
    }
    .dash[data-active="dashboard"] .provider-hero .hero-banner-copy {
        position: relative;
        z-index: 1;
        padding: 21px 19px 20px;
    }
    .dash[data-active="dashboard"] .provider-hero .eyebrow {
        margin-bottom: 9px;
        color: #9ce0c0;
        font-size: 10px;
        letter-spacing: .14em;
    }
    .dash[data-active="dashboard"] .provider-hero .eyebrow::before { background: currentColor; }
    .dash[data-active="dashboard"] .provider-hero h1 {
        max-width: 22ch;
        color: #fff;
        font-size: clamp(22px, 6vw, 27px);
        letter-spacing: -.04em;
        line-height: 1.2;
    }
    .dash[data-active="dashboard"] .provider-hero .hero-banner-sub {
        max-width: 32ch;
        margin: 8px 0 16px;
        color: rgba(255,255,255,.78);
        font-size: 13px;
    }
    .dash[data-active="dashboard"] .provider-hero .hero-banner-media { display: none; }
    .dash[data-active="dashboard"] .provider-hero .btn {
        min-height: 43px;
        padding: 10px 16px;
        border: 1px solid rgba(255,255,255,.16);
        background: #fff;
        color: #07533f;
        box-shadow: 0 5px 14px rgba(0,0,0,.12);
    }
    .dash[data-active="dashboard"] .provider-hero .btn:hover { background: #effaf4; }

    .dash[data-active="dashboard"] .provider-presence {
        gap: 14px;
        padding: 15px;
        border-radius: 18px;
        box-shadow: 0 5px 18px rgba(4, 45, 34, .04);
    }
    .dash[data-active="dashboard"] .provider-presence-copy { display: grid; gap: 3px; }
    .dash[data-active="dashboard"] .provider-presence-title strong { font-size: 14px; }
    .dash[data-active="dashboard"] .provider-presence p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; }
    .dash[data-active="dashboard"] #providerLocationStatus {
        margin-top: 3px;
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(19, 73, 52, .045);
        color: #68776f;
        font-size: 11.5px;
    }
    .dash[data-active="dashboard"] .provider-presence-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 8px;
    }
    .dash[data-active="dashboard"] .provider-presence-actions .btn {
        min-height: 45px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 12.5px;
        line-height: 1.25;
    }
    .dash[data-active="dashboard"] .provider-presence[data-online="0"] [data-online-toggle] {
        box-shadow: 0 5px 12px rgba(14, 115, 82, .15);
    }

    .dash[data-active="dashboard"] .provider-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }
    .dash[data-active="dashboard"] .provider-stats .stat-card {
        grid-column: span 3;
        align-items: flex-start;
        gap: 10px;
        min-height: 95px;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 4px 13px rgba(16, 36, 27, .035);
    }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) {
        grid-column: span 2;
        display: block;
        min-height: 87px;
        padding: 10px;
    }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-ic {
        width: 30px;
        height: 30px;
        margin-bottom: 7px;
        border-radius: 9px;
    }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-ic .icon { width: 16px; height: 16px; }
    .dash[data-active="dashboard"] .provider-stats .stat-card > div { min-width: 0; }
    .dash[data-active="dashboard"] .provider-stats .stat-label { font-size: 11px; line-height: 1.25; }
    .dash[data-active="dashboard"] .provider-stats .stat-value { margin-top: 3px; font-size: 21px; }
    .dash[data-active="dashboard"] .provider-stats .stat-sub { margin-top: 3px; font-size: 10.5px; line-height: 1.3; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-label { min-height: 27px; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-value { font-size: 18px; }

    .dash[data-active="dashboard"] .rail {
        position: static;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    .dash[data-active="dashboard"] .provider-balance-card { grid-column: 1 / -1; }
    .dash[data-active="dashboard"] .provider-schedule-card,
    .dash[data-active="dashboard"] .provider-actions-card {
        min-width: 0;
        padding: 14px;
        border-radius: 16px;
    }
    .dash[data-active="dashboard"] .provider-balance-card {
        padding: 15px;
        border-radius: 17px;
    }
    .dash[data-active="dashboard"] .provider-balance-card .rail-head { margin-bottom: 5px; }
    .dash[data-active="dashboard"] .provider-balance-card .rail-ic { width: 36px; height: 36px; border-radius: 11px; }
    .dash[data-active="dashboard"] .provider-balance-card .rail-head h2 { font-size: 14px; }
    .dash[data-active="dashboard"] .provider-balance-card .rail-balance { font-size: 26px; margin: 4px 0 11px; }
    .dash[data-active="dashboard"] .provider-balance-card .btn { min-height: 42px; }
    .dash[data-active="dashboard"] .provider-schedule-card .rail-title,
    .dash[data-active="dashboard"] .provider-actions-card .rail-title { font-size: 13px; }
    .dash[data-active="dashboard"] .provider-schedule-card .stat-inline { line-height: 1.45; }
    .dash[data-active="dashboard"] .provider-actions-card .qa-list a { gap: 7px; padding: 8px 4px; font-size: 11px; line-height: 1.3; }
    .dash[data-active="dashboard"] .provider-actions-card .qa-list .icon { width: 13px; height: 13px; padding: 6px; }

    .dash[data-active="dashboard"] .provider-nearby-panel,
    .dash[data-active="dashboard"] .provider-job-panel,
    .dash[data-active="dashboard"] .provider-open-panel {
        padding: 15px;
        border-radius: 18px;
    }
    .dash[data-active="dashboard"] .provider-nearby-panel .panel-head { align-items: center; }
    .dash[data-active="dashboard"] .provider-nearby-panel .panel-head h2 { font-size: 16px; }
    .dash[data-active="dashboard"] .provider-nearby-panel .panel-note { margin: 0; font-size: 10.5px; }
    .dash[data-active="dashboard"] .live-empty-state { min-height: 50px; padding: 10px 11px; font-size: 12px; }
    .dash[data-active="dashboard"] .provider-job-panel .panel-head h2,
    .dash[data-active="dashboard"] .provider-open-panel .panel-head h2 { font-size: 16px; }
    .dash[data-active="dashboard"] .provider-job-panel .empty-state,
    .dash[data-active="dashboard"] .provider-open-panel .empty-state { padding: 20px 10px 12px; }
    .dash[data-active="dashboard"] .provider-job-panel .empty-icon,
    .dash[data-active="dashboard"] .provider-open-panel .empty-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 5px;
    }
    .dash[data-active="dashboard"] .provider-job-panel .empty-state p,
    .dash[data-active="dashboard"] .provider-open-panel .empty-state p { font-size: 12px; }
    .dash[data-active="dashboard"] .provider-hero .btn,
    .dash[data-active="dashboard"] .provider-presence-actions .btn,
    .dash[data-active="dashboard"] .provider-balance-card .btn { width: 100%; }
}

@media (max-width: 380px) {
    .dash[data-active="dashboard"] .provider-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash[data-active="dashboard"] .provider-stats .stat-card,
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) { grid-column: span 1; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(7) { grid-column: 1 / -1; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 74px;
    }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-ic { flex: none; margin: 0; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-label { min-height: 0; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:nth-child(n+5) .stat-sub { display: none; }
    .dash[data-active="dashboard"] .rail { grid-template-columns: minmax(0, 1fr); }
    .dash[data-active="dashboard"] .provider-balance-card { grid-column: auto; }
    .dash[data-active="dashboard"] .provider-schedule-card,
    .dash[data-active="dashboard"] .provider-actions-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .dash[data-active="dashboard"] .provider-stats .stat-card { transition: none; }
    .dash[data-active="dashboard"] .provider-stats .stat-card:hover { transform: none; }
}

/* Consistent icon-led headers for provider workspaces. */
.dash .provider-page .page-head h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dash .provider-page .page-head h1 .icon {
    width: 25px;
    height: 25px;
    padding: 5px;
    border-radius: 9px;
    background: var(--p-accent-soft);
    color: var(--p-accent-deep);
}
.dash .provider-page .panel-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}
.dash .provider-page .panel-head h2 .icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 11px;
    background: var(--p-accent-soft);
    color: var(--p-accent-deep);
}
.dash .provider-page .flash { border-radius: 14px; }
.dash .provider-page .stat-card,
.dash .provider-page .panel {
    border-color: #e7eee9;
    box-shadow: 0 7px 22px rgba(4, 45, 34, .045);
}

/* Jobs: compact filter chips and touch-friendly job cards. */
.dash[data-active="jobs"] .provider-jobs-page .tabs {
    gap: 7px;
    margin: 0 0 17px;
    padding: 3px 2px 8px;
    border: 0;
}
.dash[data-active="jobs"] .provider-jobs-page .tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #e6ede8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(4, 45, 34, .035);
    font-size: 13px;
}
.dash[data-active="jobs"] .provider-jobs-page .tab .icon { width: 16px; height: 16px; color: #74857b; }
.dash[data-active="jobs"] .provider-jobs-page .tab.active {
    color: #fff;
    border-color: var(--p-accent-deep);
    background: linear-gradient(135deg, #0b7654, #09563f);
    box-shadow: 0 5px 13px rgba(11, 124, 86, .18);
}
.dash[data-active="jobs"] .provider-jobs-page .tab.active .icon { color: #fff; }
.dash[data-active="jobs"] .provider-jobs-page .tab.active::after { display: none; }
.dash[data-active="jobs"] .provider-job-list { gap: 11px; }
.dash[data-active="jobs"] .provider-job-card {
    overflow: hidden;
    border-color: #e6ede8;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(4, 45, 34, .04);
}
.dash[data-active="jobs"] .provider-job-card .booking-thumb { border-radius: 13px; }
.dash[data-active="jobs"] .provider-job-card .booking-card-info h2 { color: #173a2d; }
.dash[data-active="jobs"] .provider-job-card .booking-meta .icon { color: var(--p-accent-deep); }
.dash[data-active="jobs"] .provider-job-card .booking-card-actions { border-color: #edf1ee; }

/* Alerts: readable notification timeline with a high-contrast unread state. */
.dash[data-active="notifications"] .provider-alerts-page .markall-form { margin: 0 0 13px; }
.dash[data-active="notifications"] .provider-alerts-page .markall-form .btn { border-radius: 12px; }
.dash[data-active="notifications"] .provider-alert-list { gap: 10px; }
.dash[data-active="notifications"] .provider-alert-card {
    position: relative;
    gap: 12px;
    padding: 15px;
    border-radius: 17px;
    border-color: #e7eee9;
    box-shadow: 0 4px 14px rgba(4, 45, 34, .035);
}
.dash[data-active="notifications"] .provider-alert-card.unread {
    border-color: rgba(14, 159, 110, .28);
    background: linear-gradient(110deg, #f1faf5, #fff 70%);
}
.dash[data-active="notifications"] .provider-alert-card.unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #11946a;
}
.dash[data-active="notifications"] .provider-alert-card .notif-ic {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(14, 159, 110, .1);
    border-radius: 13px;
}
.dash[data-active="notifications"] .provider-alert-card .notif-body { min-width: 0; }
.dash[data-active="notifications"] .provider-alert-card .notif-body h2 { flex-wrap: wrap; font-size: 14px; }
.dash[data-active="notifications"] .provider-alert-card .notif-body p { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.dash[data-active="notifications"] .provider-alert-card .notif-body small { display: inline-flex; align-items: center; gap: 5px; }
.dash[data-active="notifications"] .provider-alert-card .notif-body small::before {
    content: "";
    width: 13px;
    height: 13px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Earnings: make the current balance the visual anchor without hiding detail. */
.dash[data-active="earnings"] .provider-earnings-stats { gap: 10px; }
.dash[data-active="earnings"] .provider-earnings-stats .stat-card { border-radius: 17px; }
.dash[data-active="earnings"] .provider-earnings-stats .stat-card:first-child {
    border-color: rgba(14, 159, 110, .22);
    background: linear-gradient(145deg, #eaf8f0, #fff);
}
.dash[data-active="earnings"] .provider-earnings-stats .stat-card:first-child .stat-value { color: #075a43; font-size: 1.7rem; }
.dash[data-active="earnings"] .provider-page .payout-grid { gap: 12px; }
.dash[data-active="earnings"] .provider-page .field > span,
.dash[data-active="profile"] .provider-page .field > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dash[data-active="earnings"] .provider-page .field > span .icon,
.dash[data-active="profile"] .provider-page .field > span .icon { width: 15px; height: 15px; color: var(--p-accent-deep); }
.dash[data-active="earnings"] .provider-page .field input,
.dash[data-active="earnings"] .provider-page .field select,
.dash[data-active="profile"] .provider-page .field input,
.dash[data-active="profile"] .provider-page .field select,
.dash[data-active="profile"] .provider-page .field textarea {
    min-height: 46px;
    border-radius: 12px;
}
.dash[data-active="earnings"] .provider-payout-panel { border-color: #dcebe3; }
.dash[data-active="earnings"] .provider-payout-panel .chip {
    min-height: 40px;
    border-radius: 12px;
}
.dash[data-active="earnings"] .provider-payout-history .job-row,
.dash[data-active="earnings"] .provider-job-earnings .job-row {
    border-radius: 15px;
    border-color: #e8eee9;
}

/* Profile: organize account controls as clear, separately scannable surfaces. */
.dash[data-active="profile"] .provider-profile-page { max-width: 920px; }
.dash[data-active="profile"] .provider-profile-page > .panel { border-radius: 18px; }
.dash[data-active="profile"] .provider-profile-summary {
    border-color: #dcebe3;
    background: linear-gradient(145deg, #f6fbf8, #fff 72%);
}
.dash[data-active="profile"] .provider-profile-summary .stat-grid { gap: 9px; }
.dash[data-active="profile"] .provider-profile-summary .stat-card {
    padding: 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.82);
}
.dash[data-active="profile"] .provider-profile-summary > .stat-inline { line-height: 1.5; }
.dash[data-active="profile"] .provider-profile-page .panel > form { max-width: 760px; }
.dash[data-active="profile"] .provider-profile-page .btn { min-height: 44px; border-radius: 12px; }
.dash[data-active="profile"] .provider-profile-page .review-row { padding: 15px 0; }
.dash[data-active="profile"] .provider-profile-page .review-row p { line-height: 1.55; }

/* Mobile drawer and notification popovers must fit between fixed app bars. */
@media (max-width: 767px) {
    .dash-main, .dash-content, .provider-page, .provider-job-detail-page > .panel { min-width: 0; }
    .dash .provider-page .page-head { min-width: 0; }
    .dash .provider-page .page-head h1,
    .dash .provider-page .page-head p { overflow-wrap: anywhere; }
    .dash[data-active="jobs"] .provider-job-card .booking-card-info,
    .dash .provider-job-detail-page .booking-card-info { min-width: 0; overflow-wrap: anywhere; }
    .dash[data-active="jobs"] .provider-job-card .booking-meta,
    .dash .provider-job-detail-page .booking-meta { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
    .dash .provider-job-detail-page > .panel { padding: 13px; border-radius: 17px; }
    .dash .provider-job-detail-page .booking-card { display: block; min-width: 0; padding: 0; border: 0; box-shadow: none; }
    .dash .provider-job-detail-page .booking-card-top { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
    .dash .provider-job-detail-page .booking-thumb.lg { width: 58px; height: 58px; border-radius: 12px; }
    .dash .provider-job-detail-page .booking-card-info h2 { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
    .dash .provider-job-detail-page .booking-card-side {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-items: initial;
        gap: 7px;
        margin-top: 2px;
        padding: 10px 0;
        border-top: 1px solid #edf1ee;
    }
    .dash .provider-job-detail-page .booking-price { margin-left: auto; }
    .dash .provider-job-detail-page .booking-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        min-width: 0;
        padding-top: 12px;
    }
    .dash .provider-job-detail-page .booking-card-actions > *,
    .dash .provider-job-detail-page .booking-card-actions form { min-width: 0; width: 100%; }
    .dash .provider-job-detail-page .booking-card-actions form .btn,
    .dash .provider-job-detail-page .booking-card-actions > .btn { width: 100%; min-height: 44px; white-space: normal; }
    .dash .provider-job-detail-page .provider-checkpoint-form,
    .dash .provider-job-detail-page .provider-start-otp-form { grid-column: 1 / -1; width: 100%; }
    .dash .provider-job-detail-page .provider-checkpoint-form input[type="file"] { min-width: 0; font-size: 12px; }
    .dash .provider-job-detail-page .provider-evidence-row { min-width: 0; }
    .dash .provider-job-detail-page .provider-evidence-row > div { min-width: 0; overflow-wrap: anywhere; }

    .dash .topbar { z-index: 100; }
    .dash .side {
        position: fixed;
        z-index: 85;
        top: var(--wb-appbar-height, 56px);
        bottom: calc(var(--mobile-bottom-nav-height, 60px) + env(safe-area-inset-bottom, 0px));
        left: 0;
        width: min(320px, 88vw);
        height: auto;
        max-height: calc(100vh - var(--wb-appbar-height, 56px) - var(--mobile-bottom-nav-height, 60px) - env(safe-area-inset-bottom, 0px));
        padding: 12px 12px 14px;
        gap: 15px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-right: 1px solid #e6ede8;
        border-radius: 0 0 18px 0;
        box-shadow: 0 18px 35px rgba(4, 30, 21, .16);
    }
    @supports (height: 100dvh) {
        .dash .side {
            max-height: calc(100dvh - var(--wb-appbar-height, 56px) - var(--mobile-bottom-nav-height, 60px) - env(safe-area-inset-bottom, 0px));
        }
    }
    .dash .side-top { min-height: 42px; }
    .dash .side-close { display: grid; place-items: center; width: 40px; height: 40px; }
    .dash .side-nav { gap: 4px; }
    .dash .side-link { min-height: 46px; padding: 10px 12px; border-radius: 13px; }
    .dash .side-note { padding: 16px 12px; border-radius: 15px; }
    .dash .side-foot { gap: 10px; }
    .dash .side-scrim {
        z-index: 79;
        top: var(--wb-appbar-height, 56px);
        bottom: calc(var(--mobile-bottom-nav-height, 60px) + env(safe-area-inset-bottom, 0px));
        backdrop-filter: blur(3px);
    }
    .dash[data-active] .dropdown-panel {
        position: fixed;
        z-index: 110;
        top: calc(var(--wb-appbar-height, 56px) + 8px);
        right: 10px;
        left: auto;
        width: min(360px, calc(100vw - 20px));
        max-height: calc(100vh - var(--wb-appbar-height, 56px) - var(--mobile-bottom-nav-height, 60px) - env(safe-area-inset-bottom, 0px) - 24px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 18px;
        box-shadow: 0 18px 44px rgba(4, 30, 21, .2);
    }
    @supports (height: 100dvh) {
        .dash[data-active] .dropdown-panel {
            max-height: calc(100dvh - var(--wb-appbar-height, 56px) - var(--mobile-bottom-nav-height, 60px) - env(safe-area-inset-bottom, 0px) - 24px);
        }
    }

    .dash[data-active="jobs"] .provider-jobs-page .page-head { margin-bottom: 12px; }
    .dash[data-active="jobs"] .provider-jobs-page .tabs {
        margin: 0 -14px 14px;
        padding: 4px 14px 8px;
        scroll-padding-inline: 14px;
        -webkit-overflow-scrolling: touch;
    }
    .dash[data-active="jobs"] .provider-jobs-page .tab { flex: 0 0 auto; min-height: 42px; padding: 8px 11px; font-size: 12px; }
    .dash[data-active="jobs"] .provider-jobs-page .tab .icon { width: 16px; height: 16px; }
    .dash[data-active="jobs"] .provider-job-card {
        display: block;
        padding: 14px;
        border-radius: 17px;
    }
    .dash[data-active="jobs"] .provider-job-card .booking-card-top { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 11px; }
    .dash[data-active="jobs"] .provider-job-card .booking-thumb,
    .dash[data-active="jobs"] .provider-job-card .booking-thumb.lg { width: 66px; height: 62px; border-radius: 12px; }
    .dash[data-active="jobs"] .provider-job-card .booking-card-info h2 { font-size: 14px; line-height: 1.35; }
    .dash[data-active="jobs"] .provider-job-card .booking-meta { gap: 5px; margin-top: 5px; font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
    .dash[data-active="jobs"] .provider-job-card .booking-card-side {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 7px;
        padding-top: 10px;
        border-top: 1px solid #edf1ee;
    }
    .dash[data-active="jobs"] .provider-job-card .booking-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        padding-top: 11px;
    }
    .dash[data-active="jobs"] .provider-job-card .booking-card-actions > form,
    .dash[data-active="jobs"] .provider-job-card .booking-card-actions > a {
        display: block;
        flex: initial;
        min-width: 0;
        width: 100%;
    }
    .dash[data-active="jobs"] .provider-job-card .booking-card-actions .btn { display: flex; width: 100%; min-height: 44px; padding: 8px 9px; justify-content: center; white-space: normal; text-align: center; font-size: 12px; line-height: 1.25; }
    .dash[data-active="jobs"] .provider-jobs-page .empty-state { padding: 30px 16px; }
    .dash[data-active="jobs"] .provider-jobs-page .empty-state .btn { min-height: 44px; }

    .dash[data-active="notifications"] .provider-alerts-page .page-head { margin-bottom: 13px; }
    .dash[data-active="notifications"] .provider-alerts-page .markall-form .btn { width: 100%; justify-content: center; }
    .dash[data-active="notifications"] .provider-alert-card {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
        border-radius: 15px;
    }
    .dash[data-active="notifications"] .provider-alert-card .notif-ic { width: 38px; height: 38px; border-radius: 12px; }
    .dash[data-active="notifications"] .provider-alert-card .notif-body h2 { gap: 7px; font-size: 13.5px; }
    .dash[data-active="notifications"] .provider-alert-card .notif-body p { margin: 5px 0; font-size: 12.5px; }
    .dash[data-active="notifications"] .provider-alert-card .inline-form {
        grid-column: 2;
        display: block;
        justify-self: start;
    }
    .dash[data-active="notifications"] .provider-alert-card .link-btn { min-height: 36px; font-size: 12px; }

    .dash[data-active="earnings"] .provider-earnings-page .provider-earnings-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dash[data-active="earnings"] .provider-earnings-stats .stat-card { min-width: 0; min-height: 84px; padding: 11px; gap: 9px; border-radius: 15px; }
    .dash[data-active="earnings"] .provider-earnings-stats .stat-ic { width: 34px; height: 34px; border-radius: 10px; }
    .dash[data-active="earnings"] .provider-earnings-stats .stat-label { font-size: 11px; line-height: 1.3; }
    .dash[data-active="earnings"] .provider-earnings-stats .stat-value { font-size: 18px; overflow-wrap: anywhere; }
    .dash[data-active="earnings"] .provider-earnings-stats .stat-sub { font-size: 10px; line-height: 1.35; }
    .dash[data-active="earnings"] .provider-page > .panel { padding: 15px; border-radius: 17px; }
    .dash[data-active="earnings"] .provider-page .panel-head h2 { font-size: 15px; }
    .dash[data-active="earnings"] .provider-page .panel-head h2 .icon { width: 31px; height: 31px; }
    .dash[data-active="earnings"] .provider-page .payout-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .dash[data-active="earnings"] .provider-page .field { margin-bottom: 8px; }
    .dash[data-active="earnings"] .provider-page .payout-chips { gap: 7px; margin: 7px 0 12px; }
    .dash[data-active="earnings"] .provider-page .chip { min-height: 38px; padding: 7px 11px; font-size: 12px; }
    .dash[data-active="earnings"] .provider-page form > .btn { width: 100%; }
    .dash[data-active="earnings"] .provider-page .job-row { padding: 12px; border-radius: 14px; }
    .dash[data-active="earnings"] .provider-page .job-meta { gap: 4px 9px; font-size: 11.5px; overflow-wrap: anywhere; }

    .dash[data-active="profile"] .provider-profile-page > .panel { padding: 15px; border-radius: 17px; }
    .dash[data-active="profile"] .provider-profile-page .panel-head { margin-bottom: 12px; }
    .dash[data-active="profile"] .provider-profile-page .panel-head h2 { font-size: 15px; }
    .dash[data-active="profile"] .provider-profile-page .panel-head h2 .icon { width: 31px; height: 31px; }
    .dash[data-active="profile"] .provider-profile-summary .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash[data-active="profile"] .provider-profile-summary .stat-card { display: block; min-width: 0; padding: 10px; }
    .dash[data-active="profile"] .provider-profile-summary .stat-ic { width: 31px; height: 31px; margin-bottom: 7px; border-radius: 9px; }
    .dash[data-active="profile"] .provider-profile-summary .stat-label { font-size: 10.5px; line-height: 1.3; }
    .dash[data-active="profile"] .provider-profile-summary .stat-value { font-size: 16px !important; overflow-wrap: anywhere; }
    .dash[data-active="profile"] .provider-profile-summary > .stat-inline { font-size: 12px; }
    .dash[data-active="profile"] .provider-profile-page .payout-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .dash[data-active="profile"] .provider-profile-page .field { margin-bottom: 8px; }
    .dash[data-active="profile"] .provider-profile-page .panel > form > .btn { width: 100%; }
    .dash[data-active="profile"] .provider-profile-page #wbLocate { width: 100%; }
    .dash[data-active="profile"] .provider-profile-page #wbLocateMsg { display: block; margin-top: 6px; }
    .dash[data-active="profile"] .provider-profile-page .review-row p { font-size: 13px; }
    .dash[data-active="profile"] .provider-profile-page .review-row small { line-height: 1.45; }
}

@media (max-width: 360px) {
    .dash[data-active="profile"] .provider-profile-summary .stat-grid { grid-template-columns: minmax(0, 1fr); }
    .dash[data-active="profile"] .provider-profile-summary .stat-card { display: flex; align-items: center; gap: 9px; }
    .dash[data-active="profile"] .provider-profile-summary .stat-ic { flex: none; margin: 0; }
    .dash[data-active="profile"] .provider-profile-summary .stat-card > div { min-width: 0; }
    .dash[data-active="jobs"] .provider-job-card .booking-card-actions,
    .dash .provider-job-detail-page .booking-card-actions { grid-template-columns: minmax(0, 1fr); }
    .dash .provider-job-detail-page .provider-checkpoint-form,
    .dash .provider-job-detail-page .provider-start-otp-form { grid-column: auto; }
}

/* Jobs filter and empty state: prioritize legibility over a squeezed tab rail. */
.provider-job-filter-mobile { display: none; }
.provider-jobs-empty {
    border: 1px solid #e7eee9;
    border-radius: 20px;
    background: linear-gradient(160deg, #fff 20%, #f7fbf8 100%);
    box-shadow: 0 8px 24px rgba(4, 45, 34, .045);
}
.provider-jobs-empty .empty-icon {
    width: 58px;
    height: 58px;
    border: 1px solid #deeee4;
    background: #edf7f1;
}
.provider-jobs-empty .empty-icon .icon { width: 25px; height: 25px; }
.provider-jobs-empty strong { font-size: 17px; color: #173a2d; }
.provider-jobs-empty p { max-width: 36ch; line-height: 1.55; }
.provider-jobs-empty .btn { min-height: 44px; margin-top: 10px; border-radius: 12px; }

@media (max-width: 767px) {
    .dash[data-active="jobs"] .provider-jobs-page .tabs { display: none; }
    .dash[data-active="jobs"] .provider-job-filter-mobile {
        position: relative;
        z-index: 20;
        display: block;
        margin: 0 0 12px;
        border: 1px solid #e2ebe5;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(4, 45, 34, .045);
    }
    .dash[data-active="jobs"] .provider-job-filter-mobile > summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 62px;
        padding: 9px 13px;
        list-style: none;
        cursor: pointer;
    }
    .dash[data-active="jobs"] .provider-job-filter-mobile > summary::-webkit-details-marker { display: none; }
    .provider-job-filter-icon,
    .provider-job-filter-option-icon {
        display: grid;
        place-items: center;
        flex: none;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: #edf7f1;
        color: #0b7654;
    }
    .provider-job-filter-icon .icon { width: 19px; height: 19px; }
    .provider-job-filter-copy { display: grid; gap: 1px; min-width: 0; }
    .provider-job-filter-copy small { color: #738078; font-size: 10.5px; line-height: 1.2; }
    .provider-job-filter-copy strong { color: #18392d; font-size: 14px; line-height: 1.3; }
    .provider-job-filter-mobile > summary > .icon { width: 17px; height: 17px; margin-left: 2px; color: #708077; }
    .provider-job-filter-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 27px;
        height: 26px;
        margin-left: auto;
        padding: 0 8px;
        border-radius: 999px;
        background: #f0f4f1;
        color: #53645a;
        font-size: 11px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }
    .provider-job-filter-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 0 10px 10px;
        border-top: 1px solid #eff2f0;
    }
    .provider-job-filter-options > a {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        min-height: 42px;
        padding: 6px 8px;
        border: 1px solid transparent;
        border-radius: 11px;
        color: #53645a;
        font-size: 11.5px;
        font-weight: 700;
    }
    .provider-job-filter-options > a.is-selected {
        border-color: #d3e9dc;
        background: #eff8f2;
        color: #075a43;
    }
    .provider-job-filter-option-icon { width: 27px; height: 27px; border-radius: 8px; background: #f2f5f3; color: #738078; }
    .provider-job-filter-option-icon .icon { width: 15px; height: 15px; }
    .provider-job-filter-options > a.is-selected .provider-job-filter-option-icon { background: #dcefe3; color: #0b7654; }
    .provider-job-filter-options .provider-job-filter-count { min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; font-size: 10px; }
    .dash[data-active="jobs"] .provider-jobs-empty {
        min-height: 245px;
        align-content: center;
        margin-top: 5px;
        padding: 25px 20px;
        border-radius: 20px;
    }
    .dash[data-active="jobs"] .provider-jobs-empty .empty-icon { width: 54px; height: 54px; }
    .dash[data-active="jobs"] .provider-jobs-empty strong { font-size: 16px; }
    .dash[data-active="jobs"] .provider-jobs-empty p { font-size: 13px; }
}

@media (max-width: 360px) {
    .provider-job-filter-options { grid-template-columns: minmax(0, 1fr); }
}

.dash .bell-panel { padding: 8px; }
.dash .bell-head strong { display: inline-flex; align-items: center; gap: 7px; }
.dash .bell-head strong .icon { width: 17px; height: 17px; color: var(--p-accent-deep); }
.dash .bell-head .link-btn { min-height: 36px; font-size: 12px; }
.dash .bell-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
}
.dash .bell-item-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 11px;
    background: var(--p-accent-soft);
    color: var(--p-accent-deep);
}
.dash .bell-item-icon .icon { width: 17px; height: 17px; }
.dash .bell-item-copy { display: grid; gap: 3px; min-width: 0; }
.dash .bell-item-copy strong { font-size: 12.5px; line-height: 1.35; }
.dash .bell-item-copy small { overflow-wrap: anywhere; }
.dash .bell-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash .bell-empty .icon { width: 28px; height: 28px; color: var(--p-accent-deep); }
.provider-checkpoint-form { display: grid; gap: 12px; width: min(100%, 520px); }
.provider-checkpoint-form .field { display: grid; gap: 6px; }
.provider-checkpoint-form input[type="file"] { width: 100%; padding: 10px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; }
.provider-upload-progress { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.provider-upload-progress[hidden] { display: none; }
.provider-upload-progress progress { display: block; width: 100%; height: 12px; accent-color: var(--p-accent-deep); }
.provider-evidence-row { display: grid; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.provider-evidence-row p { margin: 4px 0; }
.provider-evidence-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.provider-evidence-photos figure { margin: 0; }
.provider-evidence-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--p-accent-soft); }
.provider-evidence-photos figcaption { margin-top: 5px; font-size: 12px; color: var(--muted); }
