.dashboard-body {
    --dashboard-line: rgba(255, 255, 255, 0.15);
    --dashboard-control-panel: rgba(91, 98, 113, 0.36);
    --dashboard-pve-accent: #82d6a0;
    --dashboard-pve-accent-soft: #b5ddc2;
}

:root[data-theme="dark"] .dashboard-body {
    --dashboard-line: rgba(255, 255, 255, 0.11);
    --dashboard-control-panel: rgba(27, 32, 42, 0.68);
    --dashboard-pve-accent: #89dca7;
    --dashboard-pve-accent-soft: #b9e1c5;
}

.dashboard-main > .row {
    gap: 0;
}

.dashboard-main .box {
    border: clamp(6px, 0.7vw, 10px) solid transparent;
    border-radius: clamp(16px, 1.4vw, 20px);
    background-clip: padding-box;
}

.dashboard-main .box > h3 {
    color: #f5f8fb;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-control-strip {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 0.45rem;
    background: var(--dashboard-control-panel);
}

.dashboard-mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-mode-switch--inline {
    min-width: 9rem;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    padding: 0 0.55rem 0 0;
    background: transparent;
    backdrop-filter: none;
}

.dashboard-mode-switch--inline .mode-switch-option {
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
}

@media (min-width: 768px) {
    .dashboard-control-strip--map {
        grid-template-columns: 7.75rem minmax(0, 1fr);
    }

    .dashboard-control-strip--map .map-mode-switch {
        min-width: 7.75rem;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .dashboard-control-strip--map .map-data-search-wrapper {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .dashboard-control-strip--map .mapselecter {
        width: 100%;
        min-width: 0;
    }
}

.dashboard-control-strip .map-data-search-wrapper {
    min-width: 0;
    margin-bottom: 0 !important;
    align-content: center;
}

.dashboard-control-strip .flea-search-controls {
    grid-template-columns: minmax(0, 1fr) minmax(5rem, 6.25rem);
    min-width: 0;
    margin-bottom: 0;
}

.dashboard-control-strip #item-search-box,
.dashboard-control-strip #item-search-button {
    grid-column: auto;
    grid-row: auto;
}

@media (max-width: 767.98px) {
    .dashboard-control-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
        padding: 0.4rem;
    }

    .dashboard-mode-switch--inline {
        width: 100%;
        min-width: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        padding: 0 0 0.4rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-mode-switch .mode-switch-label-full {
        display: none;
    }

    .dashboard-mode-switch .mode-switch-label-compact {
        display: inline;
    }
}

@media (max-width: 420px) {
    .dashboard-control-strip .flea-search-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-control-strip #item-search-button {
        width: 100%;
        max-width: none;
    }
}
