/* The authenticated /app dashboard uses the landing palette within this page only. */
.pp-product-dashboard {
    --pd-ink: #112d3b;
    --pd-muted: #5d727a;
    --pd-line: #dbe5e8;
    --pd-aqua: #5ed4ca;
}

.pp-product-dashboard .home-hero.pp-hero-compact {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    min-height: 225px;
    margin-bottom: 1.6rem;
    padding: 2rem 2.35rem;
    overflow: hidden;
    border: 1px solid rgba(130, 210, 211, .2) !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at 11% 75%, rgba(34, 123, 133, .27), transparent 42%),
                linear-gradient(115deg, #071b2a 10%, #0b293a 65%, #0e3643 100%) !important;
    box-shadow: 0 20px 42px rgba(7, 27, 42, .13) !important;
}

.pp-product-dashboard .pp-home-hero::before {
    content: "";
    position: absolute;
    top: -210px;
    left: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(116, 211, 209, .13);
    border-radius: 50%;
    background: none;
    box-shadow: 0 0 0 75px rgba(116, 211, 209, .025),
                0 0 0 150px rgba(116, 211, 209, .016);
    transform: none;
    animation: none;
    pointer-events: none;
}

.pp-home-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .36;
    pointer-events: none;
    background-image: linear-gradient(rgba(126, 211, 214, .08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(126, 211, 214, .08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.pp-product-dashboard .home-hero-copy,
.pp-product-dashboard .hero-actions { position: relative; z-index: 1; }

.pp-home-eyebrow { display: flex; align-items: center; gap: .7rem; }
.pp-home-eyebrow-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pd-aqua);
    box-shadow: 0 0 0 5px rgba(94, 212, 202, .12);
}
.pp-product-dashboard .hero-eyebrow {
    color: #83c7c8 !important;
    font-size: .71rem !important;
    letter-spacing: .02em;
}
.pp-product-dashboard .pp-hero-compact .hero-title {
    margin: .65rem 0 .45rem !important;
    color: #f6fbfa;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem) !important;
    line-height: 1.55;
}
.pp-product-dashboard .pp-hero-compact .hero-text {
    max-width: 700px;
    color: #b7d1d5 !important;
    font-size: .91rem;
    line-height: 1.9 !important;
}
.pp-product-dashboard .pp-hero-compact .hero-actions {
    justify-content: flex-end;
    align-self: end;
    gap: .65rem;
    margin: 0 0 .15rem;
}
.pp-product-dashboard .pp-hero-compact .hero-actions .mud-button-root {
    min-height: 43px;
    padding-inline: 1.1rem;
    border-radius: 9px;
    font-weight: 750;
    white-space: nowrap;
}
.pp-product-dashboard .pp-hero-compact .pp-home-primary.mud-button-filled-primary {
    color: #082f3b !important;
    background: var(--pd-aqua) !important;
    box-shadow: 0 10px 24px rgba(44, 181, 176, .18) !important;
}
.pp-product-dashboard .pp-hero-compact .pp-home-primary:hover {
    background: #83e4da !important;
}
.pp-product-dashboard .pp-hero-compact .pp-home-secondary.mud-button-outlined-secondary {
    color: #e5f4f2 !important;
    border-color: rgba(191, 231, 231, .35) !important;
    background: rgba(255, 255, 255, .035) !important;
}
.pp-product-dashboard .pp-hero-compact .pp-home-secondary:hover {
    border-color: rgba(191, 231, 231, .65) !important;
    background: rgba(255, 255, 255, .09) !important;
}

.pp-home-data-heading {
    display: flex;
    align-items: end;
    gap: 1.5rem;
    margin: 0 0 1rem;
    color: var(--pd-ink);
}
.pp-home-data-heading > div { flex: 0 0 auto; }
.pp-home-data-heading span:first-child {
    display: block;
    margin-bottom: .3rem;
    color: #118c8b;
    font-size: .73rem;
    font-weight: 800;
}
.pp-home-data-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.55;
}
.pp-home-data-heading p {
    margin: .12rem 0 0;
    color: var(--pd-muted);
    font-size: .8rem;
}
.pp-home-data-rule { flex: 1 1 auto; height: 1px; margin-bottom: .5rem; background: var(--pd-line); }

.pp-product-dashboard .dashboard-kpi-card,
.pp-product-dashboard .dashboard-widget {
    border: 1px solid var(--pd-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(7, 36, 51, .03), 0 10px 24px rgba(7, 36, 51, .045) !important;
}
.pp-product-dashboard .dashboard-kpi-card {
    position: relative;
    min-height: 125px;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
}
.pp-product-dashboard .dashboard-kpi-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(94, 212, 202, .08), #48bdb6);
}
.pp-product-dashboard .pp-kpi-label { color: var(--pd-muted); font-weight: 600; }
.pp-product-dashboard .pp-kpi-value { color: var(--pd-ink); font-size: 1.95rem; font-weight: 800; }
.pp-product-dashboard .pp-kpi-hint { color: var(--pd-muted); }
.pp-product-dashboard .pp-kpi-icon { border: 1px solid rgba(53, 159, 157, .11); border-radius: 12px; }
.pp-product-dashboard .pp-kpi-primary { --pp-kpi-soft: #e1f5f1; --pp-kpi-ink: #117e7d; }
.pp-product-dashboard .pp-kpi-info { --pp-kpi-soft: #e6f2f5; --pp-kpi-ink: #247f9b; }

.pp-product-dashboard .dashboard-widget { padding: 1.25rem 1.4rem; }
.pp-product-dashboard .pp-card-title { color: var(--pd-ink); font-weight: 800 !important; }
.pp-product-dashboard .pp-card-title::before { background: #4dc9bd; }
.pp-product-dashboard .dashboard-widget .mud-typography-caption { color: var(--pd-muted); }
.pp-product-dashboard .dashboard-widget .mud-table-root thead th { background: #f5f9f9; }
.pp-product-dashboard .dashboard-widget .mud-table-row:hover { background-color: #f3faf9; }
.pp-product-dashboard .ranked-bars .mud-progress-linear .mud-progress-linear-bar { background-color: #42bdb3 !important; }
.pp-product-dashboard .dashboard-widget .mud-list-item:hover { background-color: #f3faf9; }

body.pp-dark .pp-product-dashboard {
    --pd-ink: #edf8f7;
    --pd-muted: #a3bdc2;
    --pd-line: #2d4a50;
}
body.pp-dark .pp-product-dashboard .dashboard-widget .mud-table-root thead th { background: #17323a; }
body.pp-dark .pp-product-dashboard .dashboard-widget .mud-table-row:hover,
body.pp-dark .pp-product-dashboard .dashboard-widget .mud-list-item:hover { background-color: #1b3b43; }
body.pp-dark .pp-product-dashboard .pp-kpi-primary { --pp-kpi-soft: rgba(65, 185, 169, .16); --pp-kpi-ink: #81e0d3; }
body.pp-dark .pp-product-dashboard .pp-kpi-info { --pp-kpi-soft: rgba(89, 173, 201, .16); --pp-kpi-ink: #9ed9eb; }

@media (max-width: 1100px) {
    .pp-product-dashboard .home-hero.pp-hero-compact { grid-template-columns: 1fr; gap: 1.3rem; }
    .pp-product-dashboard .pp-hero-compact .hero-actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
    .pp-product-dashboard .home-hero.pp-hero-compact { min-height: 0; padding: 1.45rem 1.25rem; }
    .pp-product-dashboard .pp-hero-compact .hero-title { font-size: 1.6rem !important; }
    .pp-product-dashboard .pp-hero-compact .hero-actions .mud-button-root { width: 100%; }
    .pp-product-dashboard .pp-hero-compact .hero-actions { width: 100%; }
    .pp-home-data-heading p { line-height: 1.7; }
    .pp-product-dashboard .dashboard-widget { padding: 1rem; }
}
