/* Pipeline-specific dashboard theming */
@import url('../skeleton.css');
@import url('../site-header.css');
@import url('./dashboard-chrome.css');

:root {
    --logo-size-header: 64px;
    --logo-max-width: 176px;
    --logo-badge-padding-y: 0.44rem;
    --logo-badge-padding-x: 0.96rem;
}

/* Nav logo — sizing + white badge in skeleton.css */

/* No onboarding copy on dashboard pages */
[data-page="overview-sub"],
[data-page="queue-sub"],
[data-page="current-sub"],
[data-page="assess-sub"],
.card-subtitle[data-page] {
    display: none !important;
}

/* Task log table */
#task-log-table {
    table-layout: fixed;
    width: 100%;
}

#task-log-table col.col-task-id { width: 10%; }
#task-log-table col.col-project { width: 24%; }
#task-log-table col.col-task-type { width: 18%; }
#task-log-table col.col-duration { width: 16%; }
#task-log-table col.col-status { width: 16%; }
#task-log-table col.col-reward { width: 16%; }

#task-log-table th.reward-cell,
#task-log-table td.reward-cell {
    text-align: left;
    vertical-align: middle;
    padding: 1.2rem 1rem;
    white-space: nowrap;
}

#task-log-table th.reward-cell {
    letter-spacing: 0.5px;
}

#task-log-table th.reward-cell .reward-head-label,
#task-log-table td.reward-cell .reward-amount {
    display: inline-block;
    text-align: left;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

#task-log-table td.reward-cell .reward-amount {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

#task-log-table td.reward-cell .reward-amount.text-primary {
    color: var(--primary);
}

#task-log-table td.reward-cell .reward-amount.text-muted {
    color: var(--text-muted);
    font-weight: 600;
}

/* skeleton.css hides .badge globally — task log status is plain text */
#task-log-table .status-cell {
    vertical-align: middle;
    color: var(--text-dark);
    font-weight: 500;
}

.sim-task-row-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.sim-task-row-status-block label {
    font-size: 0.78rem;
}

.pipeline-meta,
.pipeline-switcher,
.navbar-pipeline-pill,
.pipeline-pill,
#pipeline-pill,
.pipeline-workspace-meta,
.pipeline-rate-badge,
.pipeline-deposit-badge {
    display: none !important;
}

/* --- Compact dashboard header chrome (sizing in site-header.css) --- */
.top-navbar {
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.top-navbar .navbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex-shrink: 0;
}

.main-content {
    position: relative;
    padding: 0.5rem 2rem 1.5rem !important;
}

.page-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    margin: 0;
    padding: 0.5rem 2rem;
    overflow: auto;
    background: var(--bg-main, #f8fafc);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.hidden {
    display: none !important;
}

.pipeline-strip {
    display: none !important;
}

.top-navbar .nav-menu {
    gap: 0.35rem;
}


.top-navbar .btn-sm {
    padding: 0.4rem 0.65rem !important;
}

/* Active nav pill — shared across all dashboard pages (incl. payments) */
body[class*="pipeline-"]:not(.pipeline-special) .top-navbar .nav-item.active {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.workspace-header {
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    align-items: flex-start !important;
}

.workspace-header .greeting h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: var(--text-dark, #0f172a);
}

.workspace-header .greeting p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-muted, #64748b);
}

.workspace-header .greeting p.mt-2 {
    margin-top: 0.5rem !important;
}

.pipeline-strip {
    padding: 0.5rem 2rem !important;
}

.pipeline-strip-inner {
    gap: 0.65rem 1rem;
}

.pipeline-pill {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.pipeline-pill i {
    font-size: 0.9rem;
}

.pipeline-meta {
    font-size: 0.8rem;
    min-width: 0;
}

.pipeline-switch-link {
    padding: 5px 10px;
    font-size: 0.75rem;
}

body.pipeline-micro {
    --primary: #059669;
    --primary-light: #d1fae5;
    --navbar-bg: #071510;
    --navbar-border: #059669;
    --bg-main: #f0fdf4;
}

body.pipeline-generalist,
body.pipeline-ai {
    --primary: #0284c7;
    --primary-light: #e0f2fe;
    --navbar-bg: #090e17;
    --navbar-border: #0284c7;
    --bg-main: #f0f9ff;
}

body.pipeline-expert {
    --primary: #7c3aed;
    --primary-light: #ede9fe;
    --navbar-bg: #120a1f;
    --navbar-border: #7c3aed;
    --bg-main: #faf5ff;
}

body.pipeline-special {
    --primary: #cbd5e1;
    --primary-light: rgba(203, 213, 225, 0.12);
    --navbar-bg: #0a0908;
    --navbar-border: #64748b;
    --bg-main: #0c0a09;
    --card-bg: #1c1917;
    --text-dark: #fafaf9;
    --text-muted: #a8a29e;
    --border: #3f3a36;
    --navbar-text: #a8a29e;
    --navbar-active: #f8fafc;
    --accent-soft: #e2e8f0;
}

body[class*="pipeline-"] {
    background: var(--bg-main) !important;
}

.top-navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Micro — multi-project grid feel */
body.pipeline-micro .quick-access-card {
    background: #fff;
}

body.pipeline-micro .micro-slots-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

body.pipeline-micro .micro-slot-pip {
    text-align: center;
    padding: 0.65rem 0.4rem;
    border-radius: 8px;
    border: 1px dashed var(--border);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

body.pipeline-micro .micro-slot-pip.is-active {
    border-style: solid;
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* AI / Generalist — single production focus */
body.pipeline-ai .quick-access-card,
body.pipeline-generalist .quick-access-card {
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
    padding: 1.75rem;
}

body.pipeline-ai .contract-card,
body.pipeline-generalist .contract-card {
    border-color: rgba(2, 132, 199, 0.25);
}

body.pipeline-ai .highlight-card.stat-card,
body.pipeline-generalist .highlight-card.stat-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* Special — dark premium (platinum / slate, no orange) */
body.pipeline-special {
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(148, 163, 184, 0.07) 0%, transparent 55%),
        linear-gradient(180deg, #0c0a09 0%, #0f0d0b 100%) !important;
    color: var(--text-dark);
}

body.pipeline-special .main-content {
    color: var(--text-dark);
}

body.pipeline-special .workspace-header .greeting h1 {
    color: var(--accent-soft);
    letter-spacing: -0.02em;
}

body.pipeline-special .top-navbar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

body.pipeline-special .nav-item:hover {
    color: #ffffff !important;
    background: rgba(203, 213, 225, 0.06) !important;
}

body.pipeline-special .nav-item.active {
    background: linear-gradient(135deg, #475569, #64748b) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

body.pipeline-special .btn-primary {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
    color: #0c0a09 !important;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.pipeline-special .btn-primary:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%) !important;
    color: #0c0a09 !important;
}

body.pipeline-special .btn-outline {
    background: transparent !important;
    border-color: #57534e !important;
    color: #e7e5e4 !important;
}

body.pipeline-special .btn-outline:hover {
    border-color: var(--primary) !important;
    color: var(--accent-soft) !important;
    background: rgba(203, 213, 225, 0.06) !important;
}

body.pipeline-special .bento-card {
    background: linear-gradient(160deg, #1f1c1a 0%, #1a1816 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    color: var(--text-dark);
}

body.pipeline-special .card-title {
    color: #fafaf9;
}

body.pipeline-special .card-subtitle,
body.pipeline-special .text-muted,
body.pipeline-special .unit {
    color: var(--text-muted) !important;
}

body.pipeline-special .text-primary {
    color: var(--accent-soft) !important;
}

body.pipeline-special .bg-primary-light {
    background: var(--primary-light) !important;
}

body.pipeline-special .bg-gray {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.pipeline-special .stat-icon.text-muted {
    color: #a8a29e !important;
}

body.pipeline-special .large-number {
    color: #fafaf9;
}

body.pipeline-special .quick-access-card {
    border: 1px solid rgba(203, 213, 225, 0.22);
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.04) 0%, #1c1917 40%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.pipeline-special .quick-access-card:hover {
    border-color: rgba(203, 213, 225, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

body.pipeline-special .contract-card {
    border: 1px solid rgba(203, 213, 225, 0.2);
    background: linear-gradient(145deg, rgba(203, 213, 225, 0.06) 0%, #1c1917 50%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.pipeline-special .contract-card h3 {
    color: var(--accent-soft);
}

body.pipeline-special .contract-stat {
    background: #292524;
    border-color: #44403c;
}

body.pipeline-special .contract-stat span {
    color: #a8a29e;
}

body.pipeline-special .contract-stat strong {
    color: var(--accent-soft);
}

body.pipeline-special .hours-progress-bar {
    background: #292524;
}

body.pipeline-special .hours-progress-fill {
    background: linear-gradient(90deg, #64748b, #cbd5e1);
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.35);
}

body.pipeline-special .highlight-card.stat-card {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

body.pipeline-special .highlight-card .card-subtitle,
body.pipeline-special .highlight-card .large-number {
    color: #fff !important;
}

body.pipeline-special .community-card {
    border: 1px solid rgba(203, 213, 225, 0.18);
    background: linear-gradient(135deg, #1c1917, #0f0d0b);
}

body.pipeline-special .data-table th {
    background: #292524;
    color: #d6d3d1;
    border-color: var(--border);
}

body.pipeline-special .data-table td {
    border-color: var(--border);
    color: #e7e5e4;
}

body.pipeline-special .data-table tr:hover td {
    background: rgba(203, 213, 225, 0.04);
}

body.pipeline-special .data-table td.reward-cell .reward-amount.text-primary {
    color: var(--accent-soft) !important;
}

body.pipeline-special .project-card {
    background: linear-gradient(160deg, #1f1c1a, #1a1816);
    border-color: var(--border);
}

body.pipeline-special .req-box {
    background: rgba(0, 0, 0, 0.25);
    border-color: var(--border);
    color: #d6d3d1;
}

body.pipeline-special .rate-tag {
    color: var(--accent-soft);
}

body.pipeline-special input,
body.pipeline-special select {
    background: #292524;
    border-color: #57534e;
    color: #fafaf9;
}

body.pipeline-special input:focus,
body.pipeline-special select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.2);
}

body.pipeline-special .simulator-panel {
    background: #1c1917;
    border-left-color: #44403c;
    color: #e7e5e4;
}

body.pipeline-special .sim-content {
    background: #1c1917;
}

body.pipeline-special .sim-section {
    color: var(--accent-soft);
    border: none;
}

body.pipeline-special .project-sim-block,
body.pipeline-special .sim-pipeline-extra {
    background: #292524;
    border-color: #44403c;
}

body.pipeline-special .alert-box {
    background: rgba(203, 213, 225, 0.08);
    color: var(--accent-soft);
    border-color: rgba(203, 213, 225, 0.22);
}

body.pipeline-special .page-loader {
    background: var(--bg-main) !important;
}

body.pipeline-special .filter-btn {
    background: #292524;
    border-color: #57534e;
    color: #d6d3d1;
}

body.pipeline-special .filter-btn.active,
body.pipeline-special .filter-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--accent-soft);
}

.overview-extra-strip {
    margin-bottom: 1rem;
}

.overview-extra-strip.micro-slots-card {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.overview-extra-strip.micro-slots-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-dark);
}

.pipeline-strip {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 3rem;
}

.pipeline-strip-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.pipeline-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.pipeline-pill i {
    font-size: 1rem;
}

.pipeline-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    flex: 1;
    min-width: 200px;
}

.pipeline-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pipeline-switch-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pipeline-switch-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.pipeline-switch-link.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.policy-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    margin-bottom: 1.5rem;
}

.policy-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.policy-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.policy-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.policy-card ul {
    margin: 8px 0 0;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contract-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    margin-bottom: 1.5rem;
}

.contract-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-dark);
}

.contract-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contract-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.contract-compliance-note {
    margin: 1rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted, #64748b);
}

.contract-stat span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contract-stat strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.hours-progress {
    margin-top: 1rem;
}

.hours-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hours-progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.hours-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 0.3s;
}

.sim-pipeline-extra {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sim-pipeline-extra .input-group {
    margin-bottom: 0.75rem;
}

.sim-pipeline-extra .input-group:last-child {
    margin-bottom: 0;
}

.sim-slot-hidden {
    display: none !important;
}

.sim-computed-paycycle {
    background: var(--bg-main, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.sim-computed-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.35rem;
}

.sim-computed-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.sim-project-picker {
    width: 100%;
}

.sim-rate-readonly {
    background: #f8fafc;
    color: var(--text-muted, #64748b);
    cursor: default;
}

/* Simulator panel — global positioning (Payments and all dashboard pages) */
.simulator-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: var(--card-bg, #ffffff);
    border-left: 1px solid var(--border, #e2e8f0);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.simulator-panel.open {
    right: 0;
}

.sim-header {
    background: var(--navbar-bg, #090e17);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sim-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.sim-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.sim-section {
    color: var(--primary);
    margin: 1.25rem 0 0.75rem;
    padding: 0;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sim-section:first-of-type {
    margin-top: 0;
}

.sim-desc {
    color: var(--text-muted, #64748b);
    font-size: 0.8rem;
    line-height: 1.4;
}

.sim-passed-row {
    font-size: 0.9rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    gap: 0.5rem;
}

.sim-passed-list .sim-passed-row:last-child {
    border-bottom: none;
}

.sim-passed-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sim-passed-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-remove-secondary {
    padding: 0.2rem 0.45rem;
    line-height: 1;
}

.alert-box {
    background: var(--primary-light, #e0f2fe);
    color: var(--text-dark, #0f172a);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border, #e2e8f0);
}

.input-group {
    margin-bottom: 0.85rem;
}

.input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.35rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--card-bg, #fff);
    color: var(--text-dark, #0f172a);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light, #e0f2fe);
}

.days-grid,
.grid-2-inputs,
.grid-3-inputs {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.days-grid {
    grid-template-columns: repeat(4, 1fr);
}

.grid-2-inputs {
    grid-template-columns: 1fr 1fr;
}

.grid-3-inputs {
    grid-template-columns: repeat(3, 1fr);
}

.project-sim-block {
    background: var(--bg-main, #f8fafc);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border, #e2e8f0);
    margin-bottom: 1rem;
}

.project-sim-block strong {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
}

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

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-remove-slot {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
}

.btn-remove-slot:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border, #e2e8f0);
    color: var(--text-dark, #0f172a);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

.mb-base { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Payments page — tier-colored hero + uniform card borders */
body.pipeline-micro .payments-hero,
body.pipeline-generalist .payments-hero,
body.pipeline-ai .payments-hero,
body.pipeline-expert .payments-hero {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 70%, #0f172a) 0%,
        var(--primary) 50%,
        color-mix(in srgb, var(--primary) 55%, #ffffff) 100%
    );
}

.payments-page .payments-card,
.payments-page .payments-stat {
    border: 1px solid var(--border) !important;
}
.project-card,
.bento-card.project-card,
.community-card {
    border-top: none !important;
}
.card-rewriting,
.card-safety,
.card-transcription {
    border-top: none !important;
}

.taskers-needed-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.taskers-needed-pill--dashboard {
    font-size: 0.7rem;
}

.taskers-needed-pill--urgent {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.taskers-needed-pill i {
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    body.pipeline-micro .micro-slots-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-bento-grid .card-subtitle {
    display: none;
}

@media (max-width: 900px) {
    .pipeline-strip { padding: 0.85rem 1.5rem; }
    .contract-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dashboard nav logo — single source (size + white badge)
   ============================================================ */
.top-navbar .navbar-left a.logo-home-link {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
    padding: var(--logo-badge-padding-y) var(--logo-badge-padding-x) !important;
    line-height: 0 !important;
    text-decoration: none !important;
    border-radius: 13px !important;
    background: linear-gradient(155deg, #ffffff 0%, #f8fafc 52%, #eff6ff 100%) !important;
    border: 1px solid rgba(14, 165, 233, 0.24) !important;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 28px rgba(14, 165, 233, 0.1) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    isolation: isolate;
}

.top-navbar .navbar-left a.logo-home-link:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.38) !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 36px rgba(14, 165, 233, 0.16) !important;
}

.top-navbar .navbar-left a.logo-home-link > img,
.top-navbar .navbar-left a.logo-home-link > .logo-img,
.top-navbar .navbar-left a.logo-home-link > .brand-logo {
    position: relative;
    z-index: 1;
    display: block !important;
    max-height: var(--logo-size-header) !important;
    max-width: var(--logo-max-width) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.14));
}

body.pipeline-special .top-navbar .navbar-left a.logo-home-link {
    background: linear-gradient(155deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 24px rgba(148, 163, 184, 0.12) !important;
}

.log-pagination-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.log-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.task-type {
    color: var(--text-muted, #64748b);
    font-size: 0.88rem;
}
