.panel-new > nav {
    padding: 5px;
}

.panel-new > nav,
.panel-new > nav .box-wrapper,
.panel-new > nav .slick-list,
.panel-new > nav .slick-track,
.panel-new > nav .box-item {
    background: none !important;
    box-shadow: none !important;
}

.panel-new > nav .box-wrapper .box-item {
    padding: 5px;
    min-width: 0;
}

.panel-new > nav .box-wrapper .box-item > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 6px 4px;
    border: 1px solid #fff;
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #fdfcfc);
    box-shadow: 0 3px 8px rgb(70 44 28 / 10%);
    color: #ff7829;
    text-decoration: none;
}

.panel-new > nav .box-wrapper .box-item > a:hover,
.panel-new > nav .box-wrapper .box-item > a:focus {
    text-decoration: none;
}

.panel-new > nav .box-wrapper .box-item > a.active {
    border-color: #ff9832;
    background: linear-gradient(140deg, #ffa223, #ff5e22);
    box-shadow: 0 4px 10px rgb(255 116 34 / 22%);
    color: #fff;
}

.panel-new > nav .box-item > a > i.front,
.panel-new > nav .box-item > a > i.back {
    display: none;
}

.panel-new > nav .salemdos-menu-icon {
    display: block;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 0;
    background-image: url('/frontend/menu-icons-3d.png');
    background-size: 400% 300%;
    background-repeat: no-repeat;
    color: inherit;
    pointer-events: none;
}

.panel-new > nav a.active > .salemdos-menu-icon {
    background-color: transparent;
}

.panel-new > nav .salemdos-icon-home,
.panel-new > nav .salemdos-icon-settings,
.panel-new > nav .salemdos-icon-card,
.panel-new > nav .salemdos-icon-intercom,
.panel-new > nav .salemdos-icon-people,
.panel-new > nav .salemdos-icon-organization,
.panel-new > nav .salemdos-icon-document,
.panel-new > nav .salemdos-icon-info,
.panel-new > nav .salemdos-icon-camera,
.panel-new > nav .salemdos-icon-requests,
.panel-new > nav .salemdos-icon-vote,
.panel-new > nav .salemdos-icon-car {
    background-image: none;
    background-color: currentColor;
    mask: var(--tile-svg) center / contain no-repeat;
    -webkit-mask: var(--tile-svg) center / contain no-repeat;
}
.panel-new > nav .salemdos-icon-home { --tile-svg: url('/frontend/menu-home.svg'); }
.panel-new > nav .salemdos-icon-car { --tile-svg: url('/frontend/menu-car.svg'); }
.panel-new > nav .salemdos-icon-requests { --tile-svg: url('/frontend/menu-edit.svg'); }
.panel-new > nav .salemdos-icon-vote { --tile-svg: url('/frontend/menu-thumbsup.svg'); }
.panel-new > nav .salemdos-icon-camera { --tile-svg: url('/frontend/menu-camera.svg'); }
.panel-new > nav .salemdos-icon-organization { --tile-svg: url('/frontend/menu-osi.svg?v=2'); }
.panel-new > nav .salemdos-icon-settings { --tile-svg: url('/frontend/menu-setting.svg?v=2'); }
.panel-new > nav .salemdos-icon-document { --tile-svg: url('/frontend/menu-document.svg'); }
.panel-new > nav .salemdos-icon-info { --tile-svg: url('/frontend/menu-information.svg'); }
.panel-new > nav .salemdos-icon-people { --tile-svg: url('/frontend/menu-people.svg'); }
.panel-new > nav .salemdos-icon-intercom { --tile-svg: url('/frontend/menu-intercom.svg'); }
.panel-new > nav .salemdos-icon-card { --tile-svg: url('/frontend/menu-taxi-pin.svg'); }
.panel-new > nav a.active > .salemdos-icon-home,
.panel-new > nav a.active > .salemdos-icon-settings,
.panel-new > nav a.active > .salemdos-icon-card,
.panel-new > nav a.active > .salemdos-icon-intercom,
.panel-new > nav a.active > .salemdos-icon-people,
.panel-new > nav a.active > .salemdos-icon-organization,
.panel-new > nav a.active > .salemdos-icon-document,
.panel-new > nav a.active > .salemdos-icon-info,
.panel-new > nav a.active > .salemdos-icon-camera,
.panel-new > nav a.active > .salemdos-icon-requests,
.panel-new > nav a.active > .salemdos-icon-vote,
.panel-new > nav a.active > .salemdos-icon-car { background-color: currentColor; }
.panel-new > nav .salemdos-icon-intercom { background-position: 66.666667% 0%; }
.panel-new > nav .salemdos-icon-card { background-position: 100% 0%; }
.panel-new > nav .salemdos-icon-camera { background-position: 0% 50%; }
.panel-new > nav .salemdos-icon-requests { background-position: 33.333333% 50%; }
.panel-new > nav .salemdos-icon-vote { background-position: 66.666667% 50%; }
.panel-new > nav .salemdos-icon-people { background-position: 100% 50%; }
.panel-new > nav .salemdos-icon-organization { background-position: 0% 100%; }
.panel-new > nav .salemdos-icon-settings { background-position: 33.333333% 100%; }
.panel-new > nav a > .salemdos-menu-icon.salemdos-icon-plus { background-image: none; background-color: currentColor; mask: url('/frontend/Registration.svg') center / contain no-repeat; -webkit-mask: url('/frontend/Registration.svg') center / contain no-repeat; }
.panel-new > nav .salemdos-icon-document { background-position: 66.666667% 100%; }
.panel-new > nav .salemdos-icon-info { background-position: 100% 100%; }

.panel-new > nav .salemdos-tile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    color: #25282e;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.panel-new > nav a.active > .salemdos-tile-label {
    color: #fff;
}

.panel-new > nav .box-item > a:focus-visible {
    outline: 2px solid #a13c11;
    outline-offset: 1px;
}

.panel-new > .box-result {
    flex-shrink: 0;
    min-height: 52px;
    margin: 8px 10px 12px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background-image: linear-gradient(110deg, #ff9818, #ff5c25);
    box-shadow: 0 6px 16px rgb(255 111 34 / 16%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    white-space: normal;
}

.panel-new > .box-result > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    color: #fff !important;
    line-height: 1.4;
    white-space: normal;
    text-decoration: none;
}

.panel-new > .box-result > a:focus-visible {
    outline: 3px solid #a43f12;
    outline-offset: -3px;
}

@media (max-width: 360px) {
    .panel-new > nav .box-wrapper .box-item {
        padding: 4px;
    }

    .panel-new > nav .box-wrapper .box-item > a {
        height: auto;
        gap: 0;
        padding: 4px;
        border-radius: 14px;
    }

    .panel-new > nav .salemdos-menu-icon {
        width: 50px;
        height: 50px;
        padding: 0;
    }

    .panel-new > nav .salemdos-tile-label {
        min-height: 0;
        font-size: 10px;
        line-height: 1.2;
    }
}

/* One content offset below the selected tile heading. */
.panel-new > .box-result { margin-bottom: 0; }
.panel-new > .menu-wrapper { padding-top: 0 !important; }
.panel-new > .menu-wrapper > div { padding-top: 20px !important; }
.panel-new > .menu-wrapper > div > :is(.my-osi, .main-menu-wrapper, .osi-avto-wrapper, .card-menu-wrapper):first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Keep a single 16px gap between About and the guest login fields. */
.panel-new > .menu-wrapper > .main-menu:has(> .main-menu-wrapper > #panel-login-form) {
    padding-top: 16px !important;
}
.panel-new #panel-login-form .auth-phone-row {
    margin-top: 0;
}
