.trust-item {
    appearance: none;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit
}

.trust-item:hover {
    background: #fbfaff
}

.filter-pill {
    font-family: inherit
}

.market-filters {
    scroll-behavior: smooth
}

.home-grid .offer-card {
    min-height: 198px
}

.market-right .side-panel .control-line:first-of-type {
    border-top: 0
}

.hero-float {
    cursor: default
}

.mobile-nav .nav-item {
    display: flex
}

.trust-item+.trust-item {
    border-left: 1px solid var(--line)
}

@media(max-width:880px) {
    .sidebar .nav-item:not(.active) {
        display: flex
    }
}

@media(max-width:650px) {
    .trust-strip .trust-item {
        border-left: 0
    }

    .market-right {
        align-items: stretch
    }

    .market-right .side-panel {
        min-height: 110px
    }

    .home-grid .offer-card {
        min-height: 178px
    }

    .global-search {
        min-width: 72px
    }
}

.market-top-right {
    align-items: center
}

.auth-status {
    max-width: min(420px, 48vw);
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #f0c8c4;
    border-radius: 10px;
    background: #fff6f5;
    color: #9b2c23;
    font-size: 15px;
    line-height: 1.4
}

.auth-status[hidden] {
    display: none !important
}

.auth-status[data-state="loading"] {
    border-color: #e6e1fb;
    background: #faf9ff;
    color: #625587
}

@media(max-width:650px) {
    .auth-status {
        position: fixed;
        top: 70px;
        right: 12px;
        z-index: 20;
        width: min(360px, calc(100vw - 24px));
        max-width: none;
        font-size: 14px
    }
}


.header-dashboard-link,
.header-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #e7e8f3;
    border-radius: 9px;
    background: #fff;
    color: #303653;
    font: 600 13px var(--sans);
    white-space: nowrap
}

.header-dashboard-link span {
    font-size: 18px;
    color: #5d41d6
}

.header-dashboard-link:hover,
.header-profile-link:hover {
    background: #f7f5ff;
    border-color: #dcd6fb
}

.header-profile-link {
    border-color: transparent;
    background: transparent
}

.header-profile-link #profile-email {
    display: block;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis
}

.leaderboard-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 0 12px;
    color: #757d96;
    font: 600 14px var(--mono);
    letter-spacing: .08em
}

.leaderboard-table-wrap {
    overflow: auto
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px
}

.leaderboard-table th {
    padding: 14px 16px;
    text-align: left;
    color: #858ca2;
    background: #fafaff;
    border-bottom: 1px solid #eceefa;
    font: 600 14px var(--sans)
}

.leaderboard-table td {
    padding: 0;
    border: 0
}

.leaderboard-table-empty {
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 30px 18px;
    color: #858ca2;
    text-align: center
}

.leaderboard-table-empty strong {
    color: #303653;
    font-size: 15px
}

.leaderboard-table-empty span {
    font-size: 14px;
    line-height: 1.5
}

@media(max-width:650px) {
    .header-dashboard-link {
        padding: 0 7px
    }

    .header-profile-link {
        width: 34px;
        padding: 0
    }

    .header-profile-link #profile-email {
        display: none
    }

    .top-actions .notif {
        display: none
    }

    #header-signout {
        display: none
    }

    .leaderboard-summary {
        align-items: flex-start;
        flex-direction: column
    }
}


.ticker-wrap {
    min-width: 0
}

.opportunity-ticker {
    flex: 1;
    min-width: 0;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    touch-action: pan-x
}

.ticker-item {
    scroll-snap-align: start
}

.ticker-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: none
}

.ticker-controls button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e5e2f2;
    border-radius: 8px;
    background: #fff;
    color: #6451bd;
    font-size: 18px;
    line-height: 1
}

.ticker-controls button:hover {
    background: #f5f2ff;
    border-color: #cfc5fa
}

@media(max-width:640px) {
    .ticker-controls button {
        width: 27px;
        height: 27px
    }

    .opportunity-ticker {
        scrollbar-width: none
    }
}


.header-wallet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #d8f2e4;
    border-radius: 10px;
    background: #f1fcf6;
    color: #11824c;
    font: 700 13px var(--sans);
    white-space: nowrap
}

.header-wallet-badge span {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    background: #dcf8e9;
    color: #138d50;
    font-size: 14px
}

.header-wallet-badge:hover {
    background: #e6f9ee;
    border-color: #bce8ce
}

@media(max-width:650px) {
    .header-wallet-badge {
        min-height: 32px;
        padding: 0 7px;
        gap: 4px;
        font-size: 12px
    }

    .header-wallet-badge span {
        width: 18px;
        height: 18px;
        font-size: 12px
    }

    .header-dashboard-link b {
        display: none
    }
}


.ticker-item {
    background: #f7f4ff;
    border-color: #e8e0fb;
    color: #262544;
    transition: background-color .2s ease, border-color .2s ease
}

.ticker-item b {
    color: #33324d
}

.ticker-item strong {
    color: #178852
}

.ticker-tone-0 {
    background: #f3efff;
    border-color: #e4d9ff
}

.ticker-tone-0 i {
    background: #e9e0ff;
    color: #633dc7
}

.ticker-tone-1 {
    background: #eef7ff;
    border-color: #d7eaff
}

.ticker-tone-1 i {
    background: #dff0ff;
    color: #2876b8
}

.ticker-tone-2 {
    background: #edfbf4;
    border-color: #d2f1df
}

.ticker-tone-2 i {
    background: #d9f6e5;
    color: #17804b
}

.ticker-tone-3 {
    background: #fff7eb;
    border-color: #f4e3c4
}

.ticker-tone-3 i {
    background: #ffedcb;
    color: #9b6813
}

.ticker-tone-4 {
    background: #fff1f1;
    border-color: #f6dada
}

.ticker-tone-4 i {
    background: #ffe2e2;
    color: #b04c53
}

.ticker-controls button {
    flex: none
}

@media(prefers-reduced-motion:reduce) {
    .opportunity-ticker {
        scroll-behavior: auto
    }
}

/* Semantic Toast Cards */
.toast {
    z-index: 90 !important;
    display: flex !important;
    align-items: flex-start;
    gap: 11px;
    min-width: min(320px, calc(100vw - 32px));
    max-width: 400px;
    padding: 13px 14px !important;
    border: 1px solid #e7e8f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #181a2a !important;
    box-shadow: 0 14px 36px rgba(18, 22, 42, .12) !important;
    text-align: left !important
}

.toast.show {
    pointer-events: auto !important
}

.toast-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-top: 1px
}

.toast-info .toast-icon {
    background: #18181b
}

.toast-success .toast-icon {
    background: #16a34a
}

.toast-warning .toast-icon {
    background: #f59e0b
}

.toast-error .toast-icon {
    background: #ef4444
}

.toast-copy {
    display: grid;
    gap: 3px;
    flex: 1;
    min-width: 0
}

.toast-copy strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #181a2a
}

.toast-copy small {
    font-size: 12.5px;
    line-height: 1.4;
    color: #6c7286
}

.toast-close {
    border: 0;
    background: transparent;
    color: #8a90a2;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer
}

.toast-close:hover {
    color: #181a2a
}

/* Notifications Popover */
.notif-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(380px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(18, 22, 42, .14);
    overflow: hidden
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px
}

.notif-head strong {
    font-size: 15px;
    color: #181a2a
}

.notif-head button {
    border: 0;
    background: none;
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer
}

.notif-tabs {
    display: flex;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid #eff0f6
}

.notif-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    padding: 8px 2px;
    color: #6d7388;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.notif-tabs button.active {
    color: #181a2a;
    border-bottom-color: #4f46e5
}

.notif-tabs i {
    font-style: normal;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px
}

.notif-list {
    max-height: 340px;
    overflow: auto
}

.notif-row {
    display: flex;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f5f9
}

.notif-row:last-child {
    border-bottom: 0
}

.notif-row.unread {
    background: #fafaff
}

.notif-avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef0ff;
    color: #5134c7;
    font-size: 15px
}

.notif-row.unread .notif-avatar i {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #fff
}

.notif-body {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1
}

.notif-body strong {
    font-size: 13px;
    font-weight: 650;
    color: #1b1d33;
    line-height: 1.35
}

.notif-body small {
    font-size: 12px;
    color: #7a8096
}

.notif-quote {
    margin-top: 5px;
    padding: 7px 10px;
    border: 1px solid #eceef6;
    border-radius: 9px;
    background: #fafbfd;
    font-size: 12px;
    color: #4a5064
}

.notif-actions {
    margin-top: 6px
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: #7d8398;
    font-size: 13px
}

.notif-foot {
    padding: 10px 16px;
    border-top: 1px solid #eff0f6;
    background: #fafbfd;
    display: flex;
    justify-content: flex-end
}

.notif-foot button {
    border: 0;
    background: none;
    color: #4f46e5;
    font-size: 12.5px;
    font-weight: 650;
    cursor: pointer
}

/* Profile Hero & Activity */
.profile-shell {
    display: grid;
    gap: 16px;
    max-width: 860px
}

.profile-hero-card {
    overflow: hidden;
    padding: 0 !important
}

.profile-banner {
    height: 126px;
    background: linear-gradient(125deg, #ede9fe 0%, #dbeafe 52%, #fef3c7 100%);
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 14px
}

.profile-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.profile-icon-btn,
.profile-edit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    color: #1d2036;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer
}

.profile-icon-btn {
    width: 34px
}

.profile-edit-pill {
    padding: 0 14px
}

.profile-hero-body {
    padding: 0 22px 22px;
    margin-top: -36px;
    position: relative
}

.profile-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 10px
}

.profile-avatar-lg {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5a38d5, #8b6ff5);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(32, 27, 53, .14)
}

.profile-online-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #16a34a;
    border: 2.5px solid #fff
}

.profile-identity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.profile-identity-row h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.03em
}

.verified-pill {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800
}

.profile-handle {
    font-size: 13.5px;
    color: #73798f;
    margin-top: 2px
}

.profile-bio-text {
    margin: 10px 0 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #2c3048;
    max-width: 62ch
}

.profile-meta-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 10px
}

.profile-stat-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #e7e8f2;
    border-radius: 12px;
    background: #fafafd;
    font-size: 13.5px;
    color: #555b72
}

.profile-stat-pill b {
    color: #181a2a
}

.profile-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

/* Settings Grouped Menu */
.settings-shell {
    display: grid;
    gap: 14px;
    max-width: 560px
}

.settings-user-card,
.settings-menu-group button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    color: #1b1d33;
    font: inherit
}

.settings-user-card {
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .04)
}

.settings-user-card div {
    display: grid;
    gap: 2px;
    flex: 1
}

.settings-user-card strong {
    font-size: 15px
}

.settings-user-card small {
    font-size: 12.5px;
    color: #767c92
}

.settings-user-card i,
.settings-menu-group i {
    font-style: normal;
    font-size: 18px;
    color: #9398ab;
    margin-left: auto
}

.settings-pro-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #181922, #262838);
    color: #fff
}

.settings-pro-banner div {
    display: grid;
    gap: 3px
}

.settings-pro-banner strong {
    font-size: 15px
}

.settings-pro-banner small {
    font-size: 12.5px;
    color: #b8bdd0;
    line-height: 1.4
}

.settings-pro-banner .btn {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    white-space: nowrap
}

.settings-menu-group {
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .04)
}

.settings-menu-group button+button {
    border-top: 1px solid #f0f1f7
}

.settings-menu-group button:hover,
.settings-user-card:hover {
    background: #fafaff
}

.settings-menu-group span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f4f4fa;
    color: #4f46e5;
    font-size: 14px;
    flex: none
}

.settings-menu-group b {
    font-size: 14px;
    font-weight: 600
}

.settings-menu-group small {
    margin-left: auto;
    font-size: 12.5px;
    color: #7f859b
}

.settings-menu-group button i {
    margin-left: 6px
}

.settings-menu-group .danger-row span {
    background: #fff1f2;
    color: #e11d48
}

.settings-menu-group .danger-row b {
    color: #be123c
}

/* Mobile Bottom Nav Active Indicator */
.mobile-nav .nav-item {
    position: relative
}

.mobile-nav .nav-item.active {
    color: #5134c7
}

.mobile-nav .nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #5134c7
}

/* Redesigned Dashboard (Retaining A2A Purple/Emerald/Slate Palette) */
.workspace-pill {
    width: 100%;
    border: 1px solid #e7e8f2;
    cursor: pointer;
    text-align: left;
    font: inherit
}

.workspace-pill:hover {
    background: #f7f5ff;
    border-color: #d8d0ff
}

.dash-shell {
    display: grid;
    gap: 16px
}

.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.dash-hero h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -.03em;
    color: #181a2a
}

.dash-hero p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #73798f
}

.dash-hero-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.dash-highlights-head {
    font-size: 14px;
    font-weight: 700;
    color: #272a42;
    margin-bottom: -6px
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.dash-kpi-card {
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    padding: 15px 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .03)
}

.dash-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 650;
    color: #4f546d
}

.kpi-tag {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f4f8;
    color: #686e85
}

.kpi-tag.good {
    background: #e7faef;
    color: #15803d
}

.kpi-tag.info {
    background: #efedff;
    color: #5134c7
}

.kpi-tag.warn {
    background: #fff5df;
    color: #a16207
}

.dash-kpi-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px
}

.dash-kpi-main strong {
    font-size: 26px;
    letter-spacing: -.04em;
    color: #181a2a;
    line-height: 1
}

.kpi-spark {
    width: 64px;
    height: 28px;
    flex: none
}

.kpi-dots {
    display: flex;
    gap: 5px;
    align-items: center
}

.kpi-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e7e8f2;
    display: block
}

.kpi-dots i.on {
    background: #5d41d6;
    box-shadow: 0 0 0 2px #efedff
}

.dash-mid-grid,
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px
}

.dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px
}

.dash-card-head h2 {
    margin: 0;
    font-size: 16px;
    color: #181a2a
}

.dash-card-head p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: #787e94
}

.dash-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.dash-area-wrap {
    position: relative;
    height: 164px;
    border-radius: 12px;
    background: #fafaff;
    border: 1px solid #eff0f7;
    overflow: hidden;
    padding-top: 14px
}

.dash-area-svg {
    width: 100%;
    height: 100%;
    display: block
}

.dash-chart-tooltip {
    position: absolute;
    top: 14px;
    left: 16px;
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 10px;
    padding: 7px 11px;
    box-shadow: 0 8px 20px rgba(22, 25, 45, .08);
    display: grid;
    gap: 2px
}

.dash-chart-tooltip strong {
    font-size: 12.5px;
    color: #181a2a
}

.dash-chart-tooltip span {
    font-size: 11.5px;
    color: #6e748b
}

.dash-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e5e7f0;
    background: #fff;
    color: #4f546d;
    cursor: pointer;
    font-size: 16px
}

.dash-donut-wrap {
    display: grid;
    place-items: center;
    padding: 8px 0 14px
}

.dash-donut {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 18px
}

.dash-donut-hole {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-content: center;
    text-align: center
}

.dash-donut-hole span {
    font-size: 11.5px;
    color: #787e94
}

.dash-donut-hole strong {
    font-size: 22px;
    color: #181a2a;
    line-height: 1.1
}

.dash-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12.5px;
    color: #4f546d
}

.dash-legend span {
    display: flex;
    align-items: center;
    gap: 6px
}

.dash-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block
}

.dash-table-wrap {
    overflow: auto
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

.dash-table th {
    text-align: left;
    padding: 9px 10px;
    color: #7a8096;
    font-weight: 600;
    border-bottom: 1px solid #eff0f6;
    font-size: 12px
}

.dash-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #f4f5fa;
    color: #272a42
}

.dash-table tr:last-child td {
    border-bottom: 0
}

.dash-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    background: #f3f4f8;
    color: #555b72
}

.dash-status.accepted,
.dash-status.in_progress {
    background: #efedff;
    color: #5134c7
}

.dash-status.submitted,
.dash-status.under_review {
    background: #fff5df;
    color: #a16207
}

.dash-status.approved {
    background: #e7faef;
    color: #15803d
}

.dash-status.rejected {
    background: #fff1f2;
    color: #be123c
}

.dash-quick-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

.dash-agent-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #e5e7f2;
    border-radius: 999px;
    background: #fafaff;
    color: #1b1d33;
    font-size: 12.5px;
    cursor: pointer
}

.dash-agent-pill:hover {
    border-color: #5d41d6;
    background: #f3f0ff
}

.dash-agent-pill small {
    color: #777d93;
    font-size: 11px
}

.dash-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

@media(max-width:960px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .dash-mid-grid,
    .dash-bottom-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:560px) {
    .dash-kpi-grid {
        grid-template-columns: 1fr
    }

    .dash-quick-actions {
        grid-template-columns: 1fr
    }
}

/* Compact Offer Modal Grid */
.modal {
    width: min(500px, 94vw) !important;
    padding: 18px 20px !important
}

.modal h2 {
    margin: 0 0 10px !important;
    font-size: 18px !important
}

.modal>p:empty {
    display: none
}

.offer-form-row-3 {
    display: grid;
    grid-template-columns: 1.2fr .9fr .7fr;
    gap: 10px
}

.offer-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px
}

@media(max-width:520px) {

    .offer-form-row-3,
    .offer-form-row-2 {
        grid-template-columns: 1fr
    }
}

.page-heading.compact {
    margin: 0 0 12px !important;
    align-items: center !important
}

.page-heading.compact h1 {
    font-size: 20px !important;
    margin: 0 !important
}

.offer-banner-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px
}

.offer-upload-btn {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: 1px dashed #d5d7e6;
    border-radius: 10px;
    background: #fafaff;
    cursor: pointer;
    font-size: 13px;
    color: #4f46e5
}

.offer-upload-btn small {
    color: #7f859b;
    font-weight: 400;
    font-size: 11.5px
}

.offer-banner-preview {
    position: relative;
    width: 72px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e3ed;
    flex: none
}

.offer-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.offer-banner-preview button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 0;
    background: rgba(18, 22, 42, .75);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer
}

.offer-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hidden {
    display: none !important
}

/* Lively Animated Trust & Finance Hub */
@keyframes trustRise {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes trustPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .55
    }

    50% {
        transform: scale(1.45);
        opacity: 0
    }
}

@keyframes trustFlow {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 200% 50%
    }
}

.trust-shell {
    display: grid;
    gap: 14px;
    animation: trustRise .28s ease-out
}

.trust-pipeline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .03)
}

.trust-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none
}

.trust-step div {
    display: grid;
    gap: 1px
}

.trust-step b {
    font-size: 13.5px;
    color: #181a2a
}

.trust-step small {
    font-size: 11.5px;
    color: #73798f
}

.trust-beacon {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    background: #f3f4f8;
    color: #686e85
}

.trust-beacon i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: trustPulse 2.2s ease-out infinite
}

.trust-step.is-on .trust-beacon {
    background: #e7faef;
    color: #16a34a
}

.trust-step.is-wait .trust-beacon {
    background: #efedff;
    color: #5d41d6
}

.trust-wire {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e7e8f2, #d5cdfc, #e7e8f2);
    background-size: 200% 100%;
    animation: trustFlow 3s linear infinite
}

.trust-wire.is-on {
    background: linear-gradient(90deg, #16a34a, #5d41d6, #16a34a);
    background-size: 200% 100%
}

.trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.trust-card {
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: trustRise .32s ease-out both
}

.trust-card:nth-child(2) {
    animation-delay: .05s
}

.trust-card:nth-child(3) {
    animation-delay: .1s
}

.trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 25, 45, .07);
    border-color: #d8d0ff
}

.trust-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.trust-orb {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 800
}

.trust-orb.self {
    background: #e7faef;
    color: #16a34a
}

.trust-orb.wallet {
    background: #efedff;
    color: #5134c7
}

.trust-orb.pay {
    background: #fff5df;
    color: #d97706
}

.trust-card h3 {
    margin: 0;
    font-size: 15.5px;
    color: #181a2a
}

.trust-metric {
    display: flex;
    align-items: baseline;
    gap: 6px
}

.trust-metric strong {
    font-size: 24px;
    letter-spacing: -.03em;
    color: #181a2a
}

.trust-metric span {
    font-size: 12.5px;
    color: #787e94
}

.trust-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    background: #f3f4f8;
    color: #5b6077
}

.trust-pill.good {
    background: #e7faef;
    color: #15803d
}

.trust-pill.info {
    background: #efedff;
    color: #5134c7
}

.trust-pill.warn {
    background: #fff5df;
    color: #a16207
}

.trust-agent-rows {
    display: grid
}

.trust-agent-row {
    display: grid;
    grid-template-columns: 1.4fr auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f1f7
}

.trust-agent-row:last-child {
    border-bottom: 0
}

.trust-agent-row div {
    display: grid;
    gap: 2px
}

.trust-agent-row small {
    font-size: 12px;
    color: #787e94
}

.trust-empty-anim {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    flex-wrap: wrap
}

.trust-empty-anim div {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 180px
}

.trust-empty-anim small {
    font-size: 12.5px;
    color: #787e94
}

@media(max-width:780px) {
    .trust-cards-grid {
        grid-template-columns: 1fr
    }

    .trust-pipeline {
        flex-direction: column;
        align-items: stretch
    }

    .trust-wire {
        width: 3px;
        height: 16px;
        margin-left: 14px
    }

    .trust-agent-row {
        grid-template-columns: 1fr auto
    }
}

/* Redesigned Wallet Page */
.wallet-shell {
    display: grid;
    gap: 14px
}

.wallet-top-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.wallet-hero-card,
.wallet-stat-card {
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
    border: 1px solid #e7e8f2;
    background: #fff;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .03)
}

.wallet-hero-card {
    background: linear-gradient(135deg, #0f7642 0%, #15803d 55%, #5134c7 140%);
    color: #fff;
    border-color: transparent
}

.wallet-card-kicker {
    display: flex;
    align-items: center;
    gap: 10px
}

.wallet-card-kicker span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f4fa;
    color: #5134c7;
    font-size: 16px
}

.wallet-hero-card .wallet-card-kicker span {
    background: rgba(255, 255, 255, .18);
    color: #fff
}

.wallet-card-kicker div {
    display: grid;
    gap: 1px
}

.wallet-card-kicker b {
    font-size: 14px
}

.wallet-card-kicker small {
    font-size: 11.5px;
    opacity: .78
}

.wallet-hero-val,
.wallet-stat-val {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px
}

.wallet-hero-val strong,
.wallet-stat-val strong {
    font-size: 24px;
    letter-spacing: -.03em
}

.wallet-hero-val span {
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18)
}

.wallet-stat-val span {
    font-size: 12px;
    color: #15803d;
    background: #e7faef;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 650
}

.wallet-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-top: 1px solid #eff0f6;
    padding: 10px 0 0;
    background: transparent;
    color: inherit;
    font: 600 12.5px var(--sans);
    cursor: pointer
}

.wallet-hero-card .wallet-card-foot {
    border-top-color: rgba(255, 255, 255, .18)
}

.wallet-mid-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px
}

.wallet-asset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.wallet-asset-tile {
    border: 1px solid #eceef6;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 6px;
    background: #fafbfd
}

.wallet-asset-tile div {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.wallet-asset-tile b {
    font-size: 13.5px;
    color: #181a2a
}

.wallet-asset-tile small {
    font-size: 11.5px;
    color: #787e94
}

.wallet-asset-tile strong {
    font-size: 16px;
    color: #181a2a
}

.wallet-tile-status {
    font-size: 11.5px;
    font-weight: 700
}

.wallet-tile-status.on {
    color: #15803d
}

.wallet-tile-status.off {
    color: #9ca3af
}

.wallet-flow-total {
    display: block;
    font-size: 24px;
    letter-spacing: -.03em;
    margin-top: 4px;
    color: #181a2a
}

.wallet-bars-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px
}

.wallet-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    align-items: end;
    flex: 1;
    height: 130px
}

.wallet-bar-col {
    display: grid;
    justify-items: center;
    gap: 6px
}

.wallet-bar-col i {
    display: block;
    width: 100%;
    max-width: 30px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #e4e7f2, #f3f4fa)
}

.wallet-bar-col.active i {
    background: linear-gradient(180deg, #15803d, #5134c7)
}

.wallet-bar-col span {
    font-size: 11.5px;
    color: #787e94
}

.wallet-flow-tip {
    background: #181a2a;
    color: #fff;
    border-radius: 12px;
    padding: 10px 13px;
    display: grid;
    gap: 3px;
    font-size: 12px;
    min-width: 140px
}

.wallet-flow-tip span {
    color: #cbd5e1
}

@media(max-width:900px) {

    .wallet-top-grid,
    .wallet-mid-grid {
        grid-template-columns: 1fr
    }

    .wallet-bars-wrap {
        flex-direction: column;
        align-items: stretch
    }
}

/* Sticky + Scrollable Sidebar */
.sidebar,
.market-sidebar {
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin
}

.sidebar #nav {
    min-height: 0
}

.public-inline-section {
    display: grid;
    gap: 14px;
    padding: 6px 0 24px
}

.public-inline-head {
    display: flex;
    align-items: center;
    gap: 12px
}

.public-inline-head h1 {
    margin: 0;
    font-size: 22px;
    color: #181a2a
}

.public-back-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1
}

.public-inline-body {
    display: grid;
    gap: 14px
}

.brand-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    position: relative;
    z-index: 1
}

.inline-brand-icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    display: inline-block;
    vertical-align: -2px;
    border-radius: 3px;
    margin-right: 4px
}

.brand-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    flex: none
}

/* Rewards & Referrals */
.rewards-shell {
    display: grid;
    gap: 14px
}

.rewards-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 12px
}

.rewards-hero-card,
.rewards-stat-card,
.rewards-link-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e7e8f2;
    background: #fff;
    display: grid;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(22, 25, 45, .03)
}

.rewards-hero-card {
    background: linear-gradient(135deg, #5134c7, #7c60ea);
    color: #fff;
    border-color: transparent
}

.rewards-hero-card span,
.rewards-stat-card span,
.rewards-link-card span {
    font-size: 12.5px;
    font-weight: 650;
    opacity: .85
}

.rewards-hero-card strong,
.rewards-stat-card strong {
    font-size: 26px;
    letter-spacing: -.03em
}

.rewards-hero-card small,
.rewards-stat-card small,
.rewards-link-card small {
    font-size: 12px;
    opacity: .8
}

.rewards-copy-row {
    display: flex;
    gap: 8px;
    align-items: center
}

.rewards-copy-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e1e3ed;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12.5px;
    background: #fafafd;
    color: #1b1d33
}

.rewards-rules-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px
}

.rewards-rule-card {
    background: #fff;
    border: 1px solid #e7e8f2;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.rewards-rule-card div {
    display: grid;
    gap: 2px
}

.rewards-rule-card b {
    font-size: 13px;
    color: #181a2a
}

.rewards-rule-card small {
    font-size: 11.5px;
    color: #787e94
}

.rewards-rule-card strong {
    font-size: 14px;
    color: #15803d;
    background: #e7faef;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap
}

.rewards-apply-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.rewards-apply-form div:first-child {
    display: grid;
    gap: 2px
}

.rewards-apply-form small {
    font-size: 12.5px;
    color: #787e94
}

.rewards-apply-inputs {
    display: flex;
    gap: 8px;
    align-items: center
}

.rewards-apply-inputs input {
    border: 1px solid #e1e3ed;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 13px;
    width: 150px
}

@media(max-width:960px) {
    .rewards-top-grid {
        grid-template-columns: 1fr
    }

    .rewards-rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:520px) {
    .rewards-rules-grid {
        grid-template-columns: 1fr
    }
}

/* Redesigned Public Offer Cards */
.redesigned-offer-card {
    border-radius: 16px !important;
    border: 1px solid #e7e8f2 !important;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.redesigned-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(22, 25, 45, .08);
    border-color: #d8d0ff !important
}

.redesigned-offer-card .market-offer-art {
    position: relative;
    height: 112px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center
}

.redesigned-offer-card .offer-art-glyph {
    font-size: 30px;
    opacity: .9
}

.redesigned-offer-card .offer-cat-chip,
.redesigned-offer-card .offer-spots-chip {
    position: absolute;
    top: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .9);
    color: #262842;
    backdrop-filter: blur(6px)
}

.redesigned-offer-card .offer-cat-chip {
    left: 10px
}

.redesigned-offer-card .offer-spots-chip {
    right: 10px;
    color: #5134c7
}

.redesigned-offer-card .market-offer-body {
    padding: 14px 15px 15px !important;
    display: grid;
    gap: 8px
}

.redesigned-offer-card h3 {
    margin: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.redesigned-offer-card p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.45;
    color: #6d7388;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.redesigned-offer-card .market-offer-footer {
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid #f1f2f7;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.redesigned-offer-card .offer-reward-pill {
    font-size: 14px;
    color: #15803d;
    background: #e7faef;
    padding: 4px 10px;
    border-radius: 999px
}

.redesigned-offer-card .offer-cta-btn {
    border: 1px solid #e1e3ed;
    background: #fafaff;
    color: #5134c7;
    border-radius: 9px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer
}

.redesigned-offer-card .offer-cta-btn:hover {
    background: #5134c7;
    color: #fff;
    border-color: #5134c7
}

.opportunity-ticker {
    scroll-snap-type: none !important
}

.offer-publisher-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px
}

.offer-pub-avatar-wrap,
.ticker-avatar-wrap,
.managed-agent-avatar-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none
}

.managed-agent-avatar-wrap .avatar-self-badge {
    width: 15px;
    height: 15px;
    right: -4px;
    bottom: -4px
}

.avatar-self-badge.is-pending {
    filter: grayscale(1);
    opacity: .65
}

.offer-pub-avatar {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #efedff;
    color: #5134c7;
    font-size: 12px;
    font-weight: 700;
    flex: none
}

.ticker-avatar {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(91, 61, 245, .14);
    color: #4b2fd6;
    font-size: 11px;
    font-weight: 700
}

.avatar-self-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18)
}

.self-id-req-pill {
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: #eefaf4;
    border: 1px solid #ccefd9;
    flex: none
}

.self-id-req-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #eefaf4 !important;
    border: 1px solid #ccefd9 !important;
    color: #0e7c4d !important;
    font-weight: 700
}

.offer-self-req {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f6f8ff;
    border: 1px solid #e4e7f5;
    font-size: 13px;
    font-weight: 600;
    color: #1f2338
}

.offer-publisher-row small {
    font-size: 12px;
    color: #6d7388;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.managed-agent-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0 !important;
    margin: 10px 0 !important
}

.managed-agent-meta.icon-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 650
}

.managed-agent-meta.icon-meta span.on {
    background: #e7faef;
    color: #15803d
}

.agent-foot-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.ws-dropdown {
    position: relative;
    padding: 0 10px 10px;
    border-bottom: 1px solid #eceef6;
    margin-bottom: 8px
}

.ws-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #e3e6f2;
    border-radius: 11px;
    background: #f8f9fd;
    color: #1c2035;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease
}

.ws-trigger:hover {
    border-color: #cfc4ff;
    background: #f3f0ff
}

.ws-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ece7ff;
    color: #5134c7;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex: none
}

.ws-label {
    display: grid;
    flex: 1;
    min-width: 0
}

.ws-label small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777e96;
    line-height: 1.1
}

.ws-label b {
    font-size: 13px;
    font-weight: 700;
    color: #181a2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ws-chev {
    font-style: normal;
    font-size: 14px;
    color: #6b7280
}

.ws-menu {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% - 4px);
    z-index: 70;
    background: #ffffff;
    border: 1px solid #e2e6f3;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    padding: 5px;
    display: grid;
    gap: 3px
}

.ws-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #343952;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left
}

.ws-option:hover {
    background: #f5f6fc
}

.ws-option.active {
    background: #f0edff;
    color: #4a2fd4
}

.ws-option i {
    margin-left: auto;
    font-style: normal;
    font-weight: 700
}

.layout.sidebar-collapsed .ws-label,
.layout.sidebar-collapsed .ws-chev {
    display: none
}

.offer-type-modal {
    max-width: 480px !important
}

.modal-wide {
    max-width: 680px !important
}

.offer-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px
}

.offer-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 13px;
    border: 1px solid #e4e7f4;
    background: #fafbff;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, transform .14s ease
}

.offer-type-card:hover {
    border-color: #5b3df5;
    background: #f3f0ff;
    transform: translateY(-1px)
}

.offer-type-card .ot-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ece7ff;
    color: #5134c7;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    flex: none
}

.offer-type-card .ot-copy {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0
}

.offer-type-card strong {
    font-size: 14px;
    color: #181a2a
}

.offer-type-card small {
    font-size: 12px;
    color: #656c84
}

.offer-type-card i {
    font-style: normal;
    font-size: 15px;
    font-weight: 700;
    color: #5134c7;
    flex: none
}

.modal-step-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #5134c7
}

.campaign-liability-box {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f6ff;
    border: 1px solid #dfe4f6;
    font-size: 12.5px;
    color: #2c3148
}

.budget-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px
}

.budget-card,
.stat-card {
    padding: 14px;
    border-radius: 12px;
    background: #f8f9fd;
    border: 1px solid #e6e9f5;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.stat-card span,
.budget-card span {
    font-size: 12px;
    color: #656c84
}

.stat-card strong {
    font-size: 22px;
    color: #181a2a
}

.campaign-card {
    display: grid;
    gap: 10px
}

.camp-head,
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eef0f7
}

.camp-head:last-child,
.list-row:last-child {
    border-bottom: 0
}

.camp-head small,
.list-row small {
    display: block;
    color: #656c84;
    font-size: 12px
}

.camp-meta,
.camp-actions,
.row-actions,
.invite-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center
}

.delivery-form {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fd;
    border: 1px solid #e6e9f5
}

.stack {
    display: grid;
    gap: 12px
}

@keyframes a2a-shimmer {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

.skeleton-shimmer {
    display: block;
    background: linear-gradient(90deg, #eceff7 25%, #f6f8fe 50%, #eceff7 75%);
    background-size: 200% 100%;
    animation: a2a-shimmer 1.3s ease-in-out infinite;
    border-radius: 8px
}

.skeleton-shell {
    display: grid;
    gap: 16px
}

.skeleton-head,
.skeleton-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.skeleton-stat,
.skeleton-card {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e7eaf5;
    display: grid;
    gap: 10px;
    min-width: 240px
}

.skeleton-line {
    height: 12px
}

.skeleton-line.h-lg {
    height: 24px
}

.skeleton-line.w-40 {
    width: 40%
}

.skeleton-line.w-50 {
    width: 50%
}

.skeleton-line.w-60 {
    width: 60%
}

.skeleton-line.w-70 {
    width: 70%
}

.skeleton-line.w-80 {
    width: 80%
}

.skeleton-pill {
    width: 96px;
    height: 28px;
    border-radius: 999px;
    flex: none
}

.brand-logo-img {
    height: 32px !important;
    width: auto !important;
    border-radius: 8px;
    object-fit: contain;
    display: block
}

@media (max-width: 650px) {
    .market-mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important
    }

    .market-mobile-nav button,
    .mobile-nav .nav-item {
        font-size: 11px !important;
        padding: 4px 2px !important
    }

    .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: min(300px, 86vw) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        padding: 16px 14px 28px !important;
        background: #ffffff !important;
        border-right: 1px solid #e7eaf5 !important;
        box-shadow: 12px 0 36px rgba(15, 23, 42, .16) !important;
        z-index: 60 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        transform: translateX(-108%) !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform .22s ease, visibility .22s ease !important
    }

    .layout.sidebar-open .sidebar {
        transform: translateX(0) !important;
        visibility: visible;
        pointer-events: auto
    }

    .layout.sidebar-open .sidebar-scrim {
        z-index: 55 !important;
        background: rgba(15, 23, 42, .42) !important;
        backdrop-filter: blur(4px)
    }

    .sidebar-brand-row {
        padding-bottom: 10px;
        border-bottom: 1px solid #eef0f7
    }

    .workspace-switcher {
        padding: 4px 0 10px !important;
        gap: 6px !important
    }

    .sidebar #nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        flex: 1 0 auto
    }

    .sidebar #nav .nav-item {
        width: 100%;
        min-height: 40px;
        padding: 9px 12px !important;
        border-radius: 10px !important;
        font-size: 14px !important
    }

    .sidebar-bottom {
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid #eef0f7
    }
}

.agent-short-desc {
    margin: 6px 0 10px;
    color: #3a4058;
    font-size: 14px;
    line-height: 1.5
}

.agent-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f6fc;
    border: 1px solid #e3e6f2;
    color: #343952;
    font-size: 12px;
    font-weight: 650
}

.status-pill.on {
    background: #eafaf2;
    border-color: #c5edd8;
    color: #0e7c4d
}

.status-pill.warn {
    background: #fff8eb;
    border-color: #fde3b4;
    color: #9a5b00
}

.status-pill .sp-ic {
    font-style: normal;
    opacity: .85
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px
}

.perm-card {
    display: grid;
    gap: 14px;
    align-content: start
}

.perm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.perm-agent {
    display: flex;
    align-items: center;
    gap: 10px
}

.perm-agent h3 {
    margin: 0;
    font-size: 16px;
    color: #181a2a
}

.perm-agent small {
    color: #656c84;
    font-size: 12px
}

.perm-toggle-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #f7f8fd;
    border: 1px solid #e4e7f4;
    cursor: pointer
}

.perm-toggle-row span {
    display: grid;
    gap: 2px
}

.perm-toggle-row b {
    font-size: 13px;
    color: #181a2a
}

.perm-toggle-row small {
    font-size: 11.5px;
    color: #656c84
}

.perm-roles-wrap {
    display: grid;
    gap: 8px
}

.perm-role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.perm-chip {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f7fc;
    border: 1px solid #e3e6f2;
    font-size: 12px;
    font-weight: 600;
    color: #343952;
    cursor: pointer
}

.perm-actions {
    display: flex;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid #eef0f7
}

.agent-voxel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block
}

.managed-agent-avatar,
.offer-pub-avatar,
.ticker-avatar,
.header-profile-link .avatar,
.settings-user-card .avatar,
.profile-avatar-lg,
.profile-avatar {
    overflow: hidden;
    padding: 0
}

.dash-agent-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex: none;
    background: #ede9fe
}

.dash-agent-avatar.inline {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px
}

.leaderboard-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f8;
    font-size: 13.5px;
    color: #20274a;
    vertical-align: middle
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: 0
}

.lb-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2efff;
    color: #5636d4;
    font-weight: 700;
    font-size: 12px
}

.lb-agent-cell {
    display: flex;
    align-items: center;
    gap: 10px
}

.lb-agent-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    flex: none
}

.lb-agent-avatar-wrap .avatar-self-badge {
    width: 14px;
    height: 14px;
    right: -4px;
    bottom: -4px
}

.lb-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 12px
}

.lb-tabs button {
    padding: 7px 14px;
    border: 1px solid #e1e4f0;
    border-radius: 999px;
    background: #fff;
    color: #5e6580;
    font: 600 12.5px var(--sans);
    cursor: pointer
}

.lb-tabs button.active {
    border-color: #5d41d6;
    background: #f2efff;
    color: #4b2fd0
}

.lb-agent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: #ede9fe
}

.lb-agent-cell strong {
    display: block;
    font-size: 13.5px;
    color: #1c2240
}

.lb-agent-cell small {
    display: block;
    font-size: 11.5px;
    color: #7b829b
}

.wizard-kind-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px
}

.wizard-kind-pills button {
    padding: 9px 12px;
    border: 1px solid #dfe2f0;
    border-radius: 10px;
    background: #fafaff;
    color: #464d6b;
    font: 600 13px var(--sans);
    cursor: pointer
}

.wizard-kind-pills button.selected {
    border-color: #5d41d6;
    background: #f2efff;
    color: #3d24a6
}

.wizard-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px
}

.voxel-picker.compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e4e7f2;
    border-radius: 12px;
    background: #fafaff
}

.voxel-picker-preview {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex: none;
    border: 2px solid #5d41d6;
    background: #ede9fe
}

.voxel-picker.compact .voxel-picker-grid {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0
}

.voxel-choice {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 9px;
    overflow: hidden;
    flex: none;
    cursor: pointer;
    background: #fff;
    transition: transform .12s ease, border-color .12s ease
}

.voxel-choice:hover {
    transform: translateY(-1px);
    border-color: #b4a5f8
}

.voxel-choice.active {
    border-color: #5d41d6;
    box-shadow: 0 0 0 2px rgba(93, 65, 214, .2)
}

.voxel-rand-btn {
    flex: none;
    min-width: 34px;
    padding: 6px 10px
}

.av-form {
    display: grid;
    gap: 8px;
    margin-top: 8px
}

.av-form label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #3d4460
}

.av-form input,
.av-form select {
    padding: 7px 9px;
    border: 1px solid #d9deec;
    border-radius: 8px;
    font: 13px var(--sans)
}

.av-btn-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.self-id-modal { width:min(360px,92vw); max-width:360px; padding:20px; text-align:center; }
.self-id-modal h2 { margin:0 0 4px; font-size:18px; }
.self-id-modal p { margin:0; font-size:13px; }
.self-id-modal-note { color:#717891; font-size:12.5px; line-height:1.4; margin:8px 0 0; }
.self-id-spinner { display:inline-block; width:15px; height:15px; flex:0 0 15px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:self-id-spin .7s linear infinite; }
.modal [aria-busy="true"] { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
@keyframes self-id-spin { to { transform:rotate(360deg); } }
.self-id-status { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin:10px 0; color:#69718d; font-size:12px; }
.self-id-qr-wrap { display:grid; place-items:center; margin:10px auto; padding:8px; width:max-content; max-width:100%; background:#fff; border:1px solid #e5e7f2; border-radius:12px; }
.self-id-qr { display:block; width:min(168px,50vw); height:auto; image-rendering:pixelated; }
.self-id-open { display:inline-flex; justify-content:center; text-decoration:none; margin:4px auto; }
.self-id-session-note { color:#717891; font-size:12px; line-height:1.45; }
.self-id-card-copy { color:#717891; font-size:12px; line-height:1.5; margin:10px 0; }
.self-id-modal .modal-actions { margin-top:12px; justify-content:center; }
@media(max-width:650px) { .self-id-modal { text-align:center; padding:18px; } .self-id-open { width:100%; } }
