/**
 * Dashboard modern — developer & operator ISP (Facebook flat)
 */

.dash {
    --dash-font: 'Segoe UI', 'Segoe UI Historic', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --dash-radius: 8px;
    --dash-radius-sm: 6px;
    --dash-gap: clamp(12px, 2vw, 18px);
    --dash-gap-lg: clamp(16px, 2.5vw, 24px);
    --dash-accent: #1e5aa8;
    --dash-accent-soft: #e8f1fa;
    --dash-accent-glow: transparent;
    --dash-surface: #ffffff;
    --dash-border: #ced0d4;
    --dash-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --dash-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shell-max: 1140px;
    --shell-pad-x: 12px;
    --shell-pad-top: 16px;
    --shell-pad-bottom: 28px;
    font-family: var(--dash-font);
}

.dash--dev {
    --dash-accent: #1e5aa8;
    --dash-accent-soft: #e8f1fa;
    --dash-accent-glow: transparent;
}

.dash .app-content {
    box-sizing: border-box;
    width: min(var(--shell-max), 100%);
    max-width: var(--shell-max);
    margin-inline: auto;
    padding:
        var(--shell-pad-top)
        var(--shell-pad-x)
        var(--shell-pad-bottom);
    gap: var(--dash-gap-lg);
}

.dash .app-main {
    background: #f0f2f5;
    background-image: none;
}

/* ─── Hero ─── */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--dash-radius) + 4px);
    border: 1px solid var(--dash-border);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 251, 255, 0.95) 45%,
        rgba(239, 246, 255, 0.9) 100%
    );
    box-shadow: var(--dash-shadow);
    padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px) clamp(16px, 2.5vw, 22px);
}

.dash-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, var(--dash-accent-glow), transparent 42%),
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.2), transparent 38%);
    opacity: 0.7;
    pointer-events: none;
    animation: dashMeshPulse 8s ease-in-out infinite alternate;
}

@keyframes dashMeshPulse {
    from { opacity: 0.55; transform: scale(1); }
    to { opacity: 0.85; transform: scale(1.02); }
}

.dash-hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--dash-gap);
    z-index: 1;
}

.dash-hero__main {
    flex: 1;
    min-width: min(100%, 260px);
}

.dash-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dash-accent);
    background: var(--dash-accent-soft);
    border: none;
}

.dash-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--blue-900, #0f172a);
}

.dash-hero__lead {
    margin: 0;
    max-width: 54ch;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-soft, #64748b);
}

.dash-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    border: none;
    background: var(--surface-white-bg, #ffffff);
    color: var(--muted, #64748b);
}

.dash-pill--success {
    color: var(--surface-green-fg, #166534);
    background: var(--surface-green-bg, #dcfce7);
}

.dash-pill--warn {
    color: var(--surface-orange-fg, #c2410c);
    background: var(--surface-orange-bg, #fff7ed);
}

.dash-pill--accent {
    color: var(--dash-accent);
    background: var(--dash-accent-soft);
}

.dash-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dash-hero__date {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(191, 219, 254, 0.45);
    font-size: 0.8125rem;
    color: var(--muted, #64748b);
}

.dash-hero__date-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.625rem;
}

.dash-hero__date time {
    font-weight: 600;
    color: var(--blue-800, #1e40af);
}

/* ─── Stat grid ─── */
.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--dash-gap);
}

.dash-stat {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 96px;
    padding: 14px 16px;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
    .dash-stat:hover {
        box-shadow: var(--dash-shadow-hover);
        border-color: rgba(147, 197, 253, 0.9);
    }

    .dash-stat--link:hover {
        text-decoration: none;
    }
}

.dash-stat--lg {
    grid-column: span 2;
    min-height: 108px;
    background: linear-gradient(145deg, var(--dash-accent-soft) 0%, rgba(255, 255, 255, 0.98) 55%);
    border-color: rgba(147, 197, 253, 0.85);
}

.dash-stat--accent {
    border-color: rgba(147, 197, 253, 0.9);
}

.dash-stat--warn {
    border-color: rgba(147, 197, 253, 0.85);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.65), rgba(255, 255, 255, 0.98));
}

.dash-stat--success .dash-stat__icon {
    background: linear-gradient(145deg, #eff6ff, #fff);
    border-color: #b5cbe3;
    color: #1e5aa8;
}

.dash-stat--indigo .dash-stat__icon {
    background: linear-gradient(145deg, #eff6ff, #fff);
    border-color: #b5cbe3;
    color: #164578;
}

.dash-stat--link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.dash-stat__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--dash-radius-sm);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), #fff);
    border: 1px solid var(--dash-border);
    color: var(--dash-accent);
}

.dash-stat__body {
    min-width: 0;
    flex: 1;
}

.dash-stat__label {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #64748b);
}

.dash-stat__value {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.125rem, 2.4vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--blue-900, #0f172a);
}

.dash-stat__value--money {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.dash-stat__meta {
    display: block;
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted, #64748b);
}

.dash-stat--warn .dash-stat__meta {
    color: #1e5aa8;
}

.dash-stat__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: left 0.6s ease;
}

@media (hover: hover) {
    .dash-stat:hover .dash-stat__shine {
        left: 140%;
    }
}

/* ─── Sections ─── */
.dash-section {
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap);
}

.dash-section--metrics {
    margin-top: -4px;
}

.dash-section--flush {
    gap: 12px;
}

.dash-section--metrics .dash-section__head {
    margin-bottom: -4px;
}

.dash-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--dash-gap);
    flex-wrap: wrap;
}

.dash-section__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dash-accent);
}

.dash-section__title {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue-900, #0f172a);
}

.dash-section__sub {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: var(--muted, #64748b);
    max-width: 52ch;
}

.dash-section--charts {
    gap: clamp(14px, 2vw, 18px);
}

/* ─── Period filter ─── */
.dash-period {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88));
    box-shadow: var(--dash-shadow);
}

.dash-period.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.dash-period__bar {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 14px 18px;
    align-items: end;
}

.dash-period__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.dash-period__group--pickers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
    gap: 10px 12px;
    align-items: end;
    justify-content: flex-end;
}

.dash-period__label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #64748b);
}

.dash-period__modes {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.65);
    background: rgba(255, 255, 255, 0.82);
}

.dash-period__mode {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted, #64748b);
    background: transparent;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dash-period__mode.is-active {
    color: #fff;
    background: linear-gradient(135deg, #2d6cb5, #1e5aa8);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.dash-period__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dash-period__field label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--blue-800, #1e40af);
}

.dash-period__select {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 7px 30px 7px 11px;
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue-900, #0f172a);
    appearance: none;
}

.dash-period__apply {
    align-self: end;
    min-height: 36px;
    white-space: nowrap;
}

.dash-period__summary {
    margin: 0;
    padding-top: 2px;
    font-size: 0.8125rem;
    color: var(--muted, #64748b);
}

.dash-period__summary strong {
    color: var(--blue-900, #0f172a);
    font-weight: 800;
}

@media (max-width: 900px) {
    .dash-period__bar {
        grid-template-columns: 1fr;
    }

    .dash-period__group--pickers {
        justify-content: stretch;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-period__field--span {
        grid-column: 1 / -1;
    }

    .dash-period__apply {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .dash-period__group--pickers {
        grid-template-columns: 1fr;
    }
}

/* ─── Chart bento ─── */
.dash-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--dash-gap);
}

.dash-chart-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .dash-chart-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--dash-shadow-hover);
    }
}

.dash-chart-card--wide {
    grid-column: 1 / -1;
}

.dash-chart-card--third {
    grid-column: span 4;
}

.dash-chart-card--half {
    grid-column: span 6;
}

.dash-chart-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(191, 219, 254, 0.4);
    background: rgba(255, 255, 255, 0.5);
}

.dash-chart-card__head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue-900, #0f172a);
}

.dash-chart-card__lead {
    margin: 0;
    padding: 8px 16px 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted, #64748b);
}

.dash-chart-wrap {
    position: relative;
    flex: 1;
    min-height: 200px;
    height: 220px;
    padding: 4px 12px 12px;
}

.dash-chart-wrap--sm {
    min-height: 180px;
    height: 200px;
}

.dash-chart-wrap--donut {
    min-height: 190px;
    height: 210px;
}

.dash-chart-empty {
    display: grid;
    place-items: center;
    height: 100%;
    margin: 0;
    padding: 16px;
    font-size: 0.8125rem;
    color: var(--muted, #64748b);
    text-align: center;
}

/* ─── Finance ─── */
.dash-finance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--dash-gap);
}

.dash-finance {
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

.dash-finance--revenue {
    border-color: rgba(147, 197, 253, 0.85);
    background: linear-gradient(165deg, rgba(239, 246, 255, 0.55) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dash-finance__title {
    margin: 0;
    padding: 14px 16px 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--blue-800, #1e40af);
}

.dash-finance--pass .dash-finance__title {
    color: #64748b;
}

.dash-finance__list {
    list-style: none;
    margin: 0;
    padding: 0 16px 14px;
}

.dash-finance__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(191, 219, 254, 0.35);
    font-size: 0.8125rem;
}

.dash-finance__list li:last-child {
    border-bottom: none;
}

.dash-finance__list li span {
    color: var(--text-soft, #64748b);
}

.dash-finance__list li strong {
    font-weight: 700;
    color: var(--blue-900, #0f172a);
}

.dash-finance__row--hi {
    margin-inline: -16px;
    padding-inline: 16px !important;
    background: var(--dash-accent-soft);
    border-radius: 10px;
    border-bottom: none !important;
}

.dash-finance__row--hi strong {
    color: var(--dash-accent);
}

/* ─── Content bento (ISP panels) ─── */
.dash-panel-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--dash-gap);
}

.dash-panel-card {
    grid-column: span 4;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .dash-panel-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--dash-shadow-hover);
    }
}

.dash-panel-card--wide {
    grid-column: span 6;
}

.dash-panel-card--cta {
    grid-column: span 6;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.98));
}

.dash-panel-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 24px;
    border-bottom: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-panel-card__head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.dash-panel-card__range {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--muted, #64748b);
}

.dash-period-recap__actions {
    margin-top: 0.25rem;
}

.dash-panel-card__body {
    padding: 24px;
}

.dash-panel-card__lead {
    margin: 0;
    padding: 0 16px 14px;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--muted, #64748b);
}

.dash-panel-card .fee-list--simple {
    padding: 0 16px 12px;
}

.dash-panel-card .panel-body--top {
    padding: 0 16px 16px;
}

/* ─── Quick actions ─── */
.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dash-gap);
}

.dash-quick {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 14px 16px;
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .dash-quick:hover {
        transform: translateY(-2px) translateX(2px);
        box-shadow: var(--dash-shadow-hover);
        border-color: rgba(147, 197, 253, 0.95);
        text-decoration: none;
    }
}

.dash-quick__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--dash-radius-sm);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), #fff);
    border: 1px solid var(--dash-border);
    color: var(--dash-accent);
}

.dash-quick__body {
    flex: 1;
    min-width: 0;
}

.dash-quick__body strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--blue-900, #0f172a);
}

.dash-quick__body small {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--muted, #64748b);
}

.dash-quick__arrow {
    color: var(--muted, #64748b);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

@media (hover: hover) {
    .dash-quick:hover .dash-quick__arrow {
        transform: translateX(4px);
        color: var(--dash-accent);
    }
}

/* ─── Alerts stack ─── */
.dash-alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-alerts .isp-inline-alert {
    border-radius: var(--dash-radius-sm);
}

/* ─── Owner banner ─── */
.dash-owner-banner {
    border-radius: var(--dash-radius);
    border: 1px solid rgba(147, 197, 253, 0.85);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.65), rgba(255, 255, 255, 0.98));
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

.dash-owner-banner .panel-head {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-owner-banner .panel-lead {
    padding: 8px 16px 0;
    font-size: 0.8125rem;
}

.dash-owner-banner .fee-grid {
    padding: 12px 16px 16px;
    gap: var(--dash-gap);
}

/* ─── Reveal animation ─── */
.dash-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dash-stat-grid .dash-stat:nth-child(1) { transition-delay: 0.04s; }
.dash-stat-grid .dash-stat:nth-child(2) { transition-delay: 0.08s; }
.dash-stat-grid .dash-stat:nth-child(3) { transition-delay: 0.12s; }
.dash-stat-grid .dash-stat:nth-child(4) { transition-delay: 0.16s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .dash-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-stat--lg {
        grid-column: span 2;
    }

    .dash-chart-card--third {
        grid-column: span 6;
    }

    .dash-finance-grid {
        grid-template-columns: 1fr;
    }

    .dash-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-panel-card,
    .dash-panel-card--wide,
    .dash-panel-card--cta {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .dash {
        --shell-pad-x: 12px;
        --shell-pad-top: 12px;
        --shell-pad-bottom: 22px;
    }

    .dash-hero__inner {
        flex-direction: column;
    }

    .dash-hero__actions {
        width: 100%;
    }

    .dash-hero__actions .btn {
        flex: 1;
        justify-content: center;
    }

    .dash-stat-grid {
        grid-template-columns: 1fr;
    }

    .dash-stat--lg {
        grid-column: span 1;
    }

    .dash-bento,
    .dash-panel-grid {
        grid-template-columns: 1fr;
    }

    .dash-chart-card,
    .dash-chart-card--wide,
    .dash-chart-card--third,
    .dash-chart-card--half {
        grid-column: 1 / -1;
    }

    .dash-panel-card,
    .dash-panel-card--wide,
    .dash-panel-card--cta {
        grid-column: 1 / -1;
    }

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

@media (min-width: 1280px) {
    .dash {
        --shell-pad-x: 14px;
        --shell-pad-top: 18px;
        --shell-pad-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dash-hero__mesh {
        animation: none;
    }

    .dash-stat,
    .dash-chart-card,
    .dash-quick {
        transition: none;
    }
}

/* ─── App shell — semua halaman app-page ─── */
.dash .dash-page-head,
.dash .page-header {
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 251, 255, 0.94) 100%
    );
    box-shadow: var(--dash-shadow);
}

.dash .page-header-text h1 {
    font-family: var(--dash-font);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue-900, #0f172a);
}

.dash .page-header-text p {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-soft, #64748b);
}

.dash .app-content > .isp-inline-alert,
.dash .dash-alerts .isp-inline-alert {
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
}

.dash .panel,
.dash .dash-owner-banner {
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .dash .panel:hover {
        border-color: rgba(147, 197, 253, 0.85);
        box-shadow: var(--dash-shadow-hover);
    }
}

.dash .panel-head {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(191, 219, 254, 0.4);
    background: rgba(255, 255, 255, 0.5);
}

.dash .panel-head h2,
.dash .panel-head h3 {
    font-family: var(--dash-font);
    font-size: 0.9375rem;
    font-weight: 700;
}

.dash .panel-lead {
    padding-inline: 16px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--muted, #64748b);
}

.dash .panel-body {
    padding: 0 16px 16px;
}

.dash .panel--owner,
.dash .panel--cta {
    border-color: rgba(147, 197, 253, 0.85);
}

.dash .kpi-grid {
    gap: var(--dash-gap);
}

.dash .kpi-card {
    border-radius: var(--dash-radius);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    font-family: var(--dash-font);
}

.dash .content-grid {
    gap: var(--dash-gap);
}

.dash .table-wrap {
    border-top: 1px solid rgba(191, 219, 254, 0.35);
}

.dash .table-scroll-hint {
    padding: 8px 16px 0;
    font-size: 0.75rem;
    color: var(--muted, #64748b);
}

.dash .action-list {
    padding: 8px 12px 12px;
}

.dash .action-item {
    border-radius: var(--dash-radius-sm);
    margin-bottom: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
    .dash .action-item:hover {
        transform: translateX(3px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    }
}

.dash .fee-list,
.dash .fee-grid {
    font-family: var(--dash-font);
}

.dash .form-grid:not(.dev-config-form__grid),
.dash .form-with-help {
    padding: 0 16px 16px;
}

.dash .isp-progress--panel {
    border-radius: var(--dash-radius-sm);
    border: 1px solid var(--dash-border);
}

.dash--dev .panel-head h2,
.dash--dev .panel-head h3 {
    color: #1e40af;
}

.dash--dev .panel--owner {
    background: linear-gradient(165deg, rgba(238, 242, 255, 0.55) 0%, rgba(255, 255, 255, 0.98) 100%);
}

/* ─── Platform watchlist (developer) ─── */
.dash-watch {
    border-radius: calc(var(--dash-radius) + 2px);
    border: 1px solid var(--dash-border);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 251, 255, 0.94) 55%,
        rgba(239, 246, 255, 0.88) 100%
    );
    box-shadow: var(--dash-shadow);
    overflow: hidden;
}

.dash-watch--warn {
    border-color: rgba(147, 197, 253, 0.85);
}

.dash-watch--critical {
    border-color: rgba(96, 165, 250, 0.85);
    background: linear-gradient(
        145deg,
        rgba(239, 246, 255, 0.98) 0%,
        rgba(219, 234, 254, 0.55) 45%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.dash-watch__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--dash-gap);
    flex-wrap: wrap;
    padding: clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 22px) 12px;
    border-bottom: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-watch__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e5aa8;
}

.dash-watch__head h2 {
    margin: 0 0 6px;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e3a8a;
}

.dash-watch__head p {
    margin: 0;
    max-width: 52ch;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--muted, #64748b);
}

.dash-watch__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
}

.dash-watch__ring {
    --watch-score: 100;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(farthest-side, #fff 58%, transparent 62%),
        conic-gradient(#1e5aa8 calc(var(--watch-score) * 1%), rgba(191, 219, 254, 0.55) 0);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.dash-watch--warn .dash-watch__ring {
    background:
        radial-gradient(farthest-side, #fff 58%, transparent 62%),
        conic-gradient(#2d6cb5 calc(var(--watch-score) * 1%), rgba(191, 219, 254, 0.55) 0);
}

.dash-watch--critical .dash-watch__ring {
    background:
        radial-gradient(farthest-side, #fff 58%, transparent 62%),
        conic-gradient(#1e3a8a calc(var(--watch-score) * 1%), rgba(147, 197, 253, 0.55) 0);
}

.dash-watch__ring-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1e40af;
}

.dash-watch__level {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-watch__ok {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 22px);
    padding: 14px 16px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.dash-watch__ok-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1e5aa8, #164578);
    color: #fff;
    flex-shrink: 0;
}

.dash-watch__ok strong {
    display: block;
    font-size: 0.9375rem;
    color: #1e3a8a;
}

.dash-watch__ok p {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    color: #164578;
}

.dash-watch__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.dash-watch__col {
    padding: 14px clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 20px);
}

.dash-watch__col + .dash-watch__col {
    border-left: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-watch__col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e40af;
}

.dash-watch__col-title .bi {
    color: #1e5aa8;
}

.dash-watch__count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    background: #1e5aa8;
}

.dash-watch__empty {
    margin: 0;
    padding: 12px;
    border-radius: var(--dash-radius-sm);
    font-size: 0.8125rem;
    color: var(--muted, #64748b);
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(191, 219, 254, 0.65);
    text-align: center;
}

.dash-watch__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-watch__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--dash-radius-sm);
    border: 1px solid rgba(191, 219, 254, 0.55);
    background: rgba(255, 255, 255, 0.82);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
    .dash-watch__item:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    }
}

.dash-watch__item--critical {
    border-color: rgba(147, 197, 253, 0.9);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(255, 255, 255, 0.95));
}

.dash-watch__item--warn {
    border-color: rgba(191, 219, 254, 0.85);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.75), rgba(255, 255, 255, 0.95));
}

.dash-watch__item-body {
    min-width: 0;
    flex: 1;
}

.dash-watch__item-sev {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dash-watch__item--critical .dash-watch__item-sev {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.95);
}

.dash-watch__item--warn .dash-watch__item-sev {
    color: #1e5aa8;
    background: rgba(239, 246, 255, 0.95);
}

.dash-watch__item--info .dash-watch__item-sev {
    color: #2d6cb5;
    background: rgba(239, 246, 255, 0.95);
}

.dash-watch__item-body strong {
    display: block;
    font-size: 0.8125rem;
    color: #1e293b;
}

.dash-watch__item-body p {
    margin: 4px 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted, #64748b);
}

.dash-watch__item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.dash-watch__badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e40af;
    background: rgba(239, 246, 255, 0.95);
    border: 1px solid rgba(191, 219, 254, 0.85);
}

.dash-watch__link {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #1e5aa8;
    text-decoration: none;
    white-space: nowrap;
}

.dash-watch__link:hover {
    text-decoration: underline;
}

.dash-dev-home .dash-stat-grid + .dash-stat-grid {
    margin-top: calc(var(--dash-gap) * -0.25);
}

.dash-dev-home .dash-hero {
    border-color: rgba(147, 197, 253, 0.75);
}

/* ─── Smart control panel ─── */
.dash-smart--compact {
    overflow: hidden;
}

.dash-smart__intro-lead {
    max-width: 52ch;
}

.dash-smart__score-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-smart__score-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.dash-smart__score-link:focus-visible {
    outline: 2px solid rgba(30, 90, 168, 0.55);
    outline-offset: 3px;
}

.dash-smart__brief-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(228, 230, 235, 0.95);
}

.dash-smart__brief-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 14px;
    padding: 14px clamp(16px, 2.5vw, 22px);
    border: none;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dash-smart__brief-row:last-child {
    border-bottom: none;
}

.dash-smart__brief-row:hover {
    background: rgba(239, 246, 255, 0.72);
    text-decoration: none;
}

.dash-smart__brief-row:focus-visible {
    outline: 2px solid rgba(30, 90, 168, 0.55);
    outline-offset: -2px;
    z-index: 1;
}

.dash-smart__brief-count {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    color: #1e40af;
    background: rgba(239, 246, 255, 0.95);
    border: none;
}

.dash-smart__brief-row--critical .dash-smart__brief-count {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.95);
}

.dash-smart__brief-row--warn .dash-smart__brief-count {
    color: #164578;
}

.dash-smart__brief-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dash-smart__brief-body strong {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--text, #0f172a);
}

.dash-smart__brief-body span {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted, #64748b);
}

.dash-smart__brief-action {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1e5aa8;
}

.dash-smart__ok-compact {
    margin: 0 clamp(16px, 2.5vw, 22px) clamp(12px, 2vw, 16px);
}

.dash-smart__foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px clamp(16px, 2.5vw, 22px) 16px;
    border-top: 1px solid rgba(228, 230, 235, 0.95);
    background: rgba(248, 251, 255, 0.55);
}

.dash-smart__system-link {
    font-weight: 700;
}

@media (max-width: 639px) {
    .dash-smart__brief-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .dash-smart__brief-action {
        grid-column: 2;
        justify-self: start;
    }
}

.dash-smart__head {
    align-items: stretch;
}

.dash-smart__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dash-smart__heal-all {
    white-space: nowrap;
}

.dash-smart__process[hidden] {
    display: none !important;
}

.dash-smart__process {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.dash-smart__status {
    display: none !important;
}

.dash-smart__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-smart__panel {
    padding: 14px clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 20px);
}

.dash-smart__panel + .dash-smart__panel {
    border-left: 1px solid rgba(191, 219, 254, 0.4);
}

.dash-watch__item-meta {
    align-items: stretch;
    min-width: 88px;
}

.dash-smart__heal {
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
    font-size: 0.6875rem;
}

.dash-smart__heal.is-busy,
.dash-smart__heal-all.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 992px) {
    .dash-smart__grid {
        grid-template-columns: 1fr;
    }

    .dash-smart__panel + .dash-smart__panel {
        border-left: none;
        border-top: 1px solid rgba(191, 219, 254, 0.4);
    }
}

@media (max-width: 768px) {
    .dash-watch__grid {
        grid-template-columns: 1fr;
    }

    .dash-watch__col + .dash-watch__col {
        border-left: none;
        border-top: 1px solid rgba(191, 219, 254, 0.4);
    }
}
