* {
    box-sizing: border-box;
}

:root {
    --ds-blue: #1877f2;
    --ds-cyan: #18bdb5;
    --ds-bg: #f0f2f5;
    --ds-card: #ffffff;
    --ds-text: #050505;
    --ds-muted: #65676b;
    --ds-line: #d8dadf;
    --ds-soft: #e7f3ff;
    --ds-hover: #e4e6eb;
    --ds-green: #31a24c;
    --ds-red: #e41e3f;
    --ds-yellow: #f7b928;
    --ds-radius: 10px;
    --ds-shadow: 0 1px 2px rgba(0,0,0,.10);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--ds-bg);
    color: var(--ds-text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}

svg.ds-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HEADER */

.ds-topbar {
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    align-items: center;
    padding: 0 16px;
}

.ds-top-left,
.ds-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-top-right {
    justify-content: flex-end;
}

.ds-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ds-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ds-blue), var(--ds-cyan));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.ds-brand-name {
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.ds-brand-name .dog {
    color: var(--ds-blue);
}

.ds-brand-name .social {
    color: var(--ds-cyan);
}

.ds-search {
    width: 220px;
    height: 40px;
    border-radius: 22px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: var(--ds-muted);
}

.ds-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.ds-top-nav {
    display: flex;
    height: 56px;
    justify-content: center;
    gap: 4px;
}

.ds-top-tab {
    min-width: 105px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--ds-muted);
    border-bottom: 3px solid transparent;
    position: relative;
}

.ds-top-tab:hover {
    background: #f2f2f2;
    border-radius: 8px 8px 0 0;
}

.ds-top-tab.active {
    color: var(--ds-blue);
    border-bottom-color: var(--ds-blue);
}

.ds-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #e4e6eb;
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
}

.ds-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 12px;
    background: var(--ds-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.ds-user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

/* GENERIC */

.ds-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1769d2;
    display: grid;
    place-items: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.ds-avatar.small {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.ds-avatar.big {
    width: 168px;
    height: 168px;
    font-size: 38px;
    border: 5px solid #fff;
}

.ds-card {
    background: var(--ds-card);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow);
}

/* HOME LAYOUT */

.ds-layout {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(520px, 660px) 300px;
    gap: 16px;
    padding: 16px;
    justify-content: center;
}

.ds-sticky {
    position: sticky;
    top: 72px;
}

.ds-side-link {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.ds-side-link:hover {
    background: var(--ds-hover);
}

.ds-side-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7f3ff;
    color: var(--ds-blue);
    display: grid;
    place-items: center;
}

.ds-side-separator {
    height: 1px;
    background: #ced0d4;
    margin: 10px 0;
}

.ds-side-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--ds-muted);
    padding: 4px 8px 8px;
}

/* STORIES */

.ds-stories {
    padding: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ds-stories-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ds-stories-row::-webkit-scrollbar {
    display: none;
}

.ds-story {
    width: 112px;
    min-width: 112px;
    height: 195px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg,#7db2ef,#395d9b);
}

.ds-story.s2 {
    background: linear-gradient(180deg,#65bea9,#183f43);
}

.ds-story.s3 {
    background: linear-gradient(180deg,#766af3,#19154b);
}

.ds-story.s4 {
    background: linear-gradient(180deg,#e9a655,#4d2608);
}

.ds-story.s5 {
    background: linear-gradient(180deg,#82b873,#173e26);
}

.ds-story:after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent,rgba(0,0,0,.7));
}

.ds-story-avatar {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--ds-blue);
    background: #fff;
    color: var(--ds-blue);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
}

.ds-story-name {
    position: absolute;
    z-index: 2;
    left: 9px;
    right: 9px;
    bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

.ds-create-story {
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
}

.ds-create-story:after {
    display: none;
}

.ds-create-story .ds-story-image {
    height: 135px;
    background: linear-gradient(180deg,#b7d4ff,#85b3f7);
}

.ds-plus {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 117px;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: var(--ds-blue);
    color: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.ds-create-story .ds-story-name {
    color: #111;
    text-align: center;
}

/* COMPOSER */

.ds-composer {
    padding: 12px 16px 8px;
    margin-bottom: 16px;
}

.ds-composer-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e6eb;
}

.ds-composer-input {
    height: 40px;
    flex: 1;
    border-radius: 999px;
    background: #f0f2f5;
    color: var(--ds-muted);
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: pointer;
}

.ds-composer-actions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-top: 8px;
}

.ds-composer-action {
    height: 40px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ds-muted);
}

.ds-composer-action:hover {
    background: #f2f2f2;
}

/* POSTS */

.ds-post {
    margin-bottom: 16px;
    overflow: hidden;
}

.ds-post-head {
    display: flex;
    gap: 10px;
    padding: 12px 16px 8px;
    align-items: flex-start;
}

.ds-post-user {
    flex: 1;
    min-width: 0;
}

.ds-post-name {
    font-size: 15px;
    font-weight: 700;
}

.ds-verified {
    color: var(--ds-blue);
}

.ds-post-meta {
    color: var(--ds-muted);
    font-size: 13px;
    margin-top: 2px;
}

.ds-post-menu {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ds-muted);
}

.ds-post-text {
    padding: 0 16px 12px;
    font-size: 15px;
    line-height: 1.4;
}

.ds-demo-media {
    aspect-ratio: 1.4/1;
    width: 100%;
    position: relative;
    background:
        radial-gradient(circle at 52% 56%, #f7d17f 0 9%, transparent 9.3%),
        linear-gradient(180deg,#83c6ed 0 50%,#d5e4bd 50% 72%,#7da85c 72%);
}

.ds-demo-media:after {
    content: "🐕";
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 145px;
}

.ds-post-stats {
    min-height: 42px;
    padding: 8px 16px;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ds-muted);
    font-size: 13px;
}

.ds-post-actions {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 4px 8px;
}

.ds-post-action {
    height: 38px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: var(--ds-muted);
    font-weight: 600;
}

.ds-post-action:hover {
    background: #f2f2f2;
}

/* RIGHT COLUMN */

.ds-right-card {
    padding: 12px;
    margin-bottom: 14px;
}

.ds-right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ds-right-title {
    font-size: 17px;
    font-weight: 700;
}

.ds-blue-link {
    color: var(--ds-blue);
    font-size: 13px;
}

.ds-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-radius: 7px;
}

.ds-contact:hover {
    background: #f2f2f2;
}

.ds-contact-main {
    flex: 1;
    min-width: 0;
}

.ds-contact-name {
    font-size: 14px;
    font-weight: 600;
}

.ds-contact-sub {
    font-size: 12px;
    color: var(--ds-muted);
}

.ds-follow {
    border: 0;
    background: var(--ds-soft);
    color: var(--ds-blue);
    border-radius: 7px;
    padding: 8px 12px;
    font-weight: 700;
}

/* PROFILE */

.ds-profile-shell {
    max-width: 1050px;
    margin: 0 auto;
}

.ds-cover {
    height: 350px;
    background:
        radial-gradient(circle at 20% 50%, rgba(24,189,181,.25), transparent 30%),
        linear-gradient(120deg,#041c38,#0b355e 55%,#0f5279);
    border-radius: 0 0 10px 10px;
    position: relative;
}

.ds-cover:after {
    content: "DOG SOCIAL";
    position: absolute;
    right: 35px;
    bottom: 28px;
    color: rgba(255,255,255,.16);
    font-size: 42px;
    font-weight: 900;
}

.ds-profile-head {
    background: #fff;
    padding: 0 32px;
}

.ds-profile-main {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
}

.ds-profile-avatar {
    margin-top: -75px;
}

.ds-profile-info {
    flex: 1;
    padding-bottom: 10px;
}

.ds-profile-info h1 {
    margin: 0 0 4px;
    font-size: 32px;
}

.ds-profile-count {
    color: var(--ds-muted);
    font-weight: 600;
}

.ds-profile-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
}

.ds-primary-btn,
.ds-secondary-btn {
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    padding: 0 15px;
    font-weight: 700;
}

.ds-primary-btn {
    background: var(--ds-blue);
    color: #fff;
}

.ds-secondary-btn {
    background: #e4e6eb;
}

.ds-profile-tabs {
    display: flex;
    gap: 2px;
}

.ds-profile-tab {
    padding: 18px 15px 15px;
    font-weight: 600;
    color: var(--ds-muted);
    border-bottom: 3px solid transparent;
}

.ds-profile-tab.active {
    color: var(--ds-blue);
    border-bottom-color: var(--ds-blue);
}

.ds-profile-body {
    max-width: 1050px;
    margin: 16px auto;
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 16px;
}

.ds-profile-box {
    padding: 16px;
    margin-bottom: 16px;
}

.ds-profile-box h3 {
    margin: 0 0 14px;
}

.ds-info-row {
    margin: 12px 0;
    color: #222;
}

/* MOBILE */

.ds-mobile-nav {
    display: none;
}

@media (max-width: 1250px) {
    .ds-topbar {
        grid-template-columns: 300px 1fr 300px;
    }

    .ds-layout {
        grid-template-columns: 270px minmax(520px,660px) 280px;
    }
}

@media (max-width: 1050px) {
    .ds-left {
        display: none;
    }

    .ds-layout {
        grid-template-columns: minmax(500px,660px) 280px;
    }

    .ds-topbar {
        grid-template-columns: 280px 1fr 250px;
    }

    .ds-top-tab {
        min-width: 70px;
    }
}

@media (max-width: 850px) {
    .ds-right {
        display: none;
    }

    .ds-layout {
        grid-template-columns: minmax(0,660px);
    }

    .ds-top-nav {
        display: none;
    }

    .ds-topbar {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 680px) {
    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .ds-topbar {
        padding: 0 10px;
    }

    .ds-brand-name {
        display: none;
    }

    .ds-search {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .ds-search input {
        display: none;
    }

    .ds-user-chip span {
        display: none;
    }

    .ds-layout {
        padding: 8px 0;
        display: block;
    }

    .ds-card,
    .ds-stories,
    .ds-composer,
    .ds-post {
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        margin-bottom: 8px;
    }

    .ds-mobile-nav {
        display: grid;
        grid-template-columns: repeat(5,1fr);
        position: fixed;
        z-index: 2000;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ccd0d5;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .ds-mobile-item {
        height: 62px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: var(--ds-muted);
        gap: 3px;
        font-size: 11px;
        font-weight: 600;
    }

    .ds-mobile-item.active {
        color: var(--ds-blue);
    }

    .ds-mobile-plus {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--ds-blue);
        color: #fff;
        font-size: 25px;
        margin-top: -14px;
    }

    .ds-profile-shell {
        width: 100%;
    }

    .ds-cover {
        height: 230px;
        border-radius: 0;
    }

    .ds-profile-head {
        padding: 0 14px;
    }

    .ds-profile-main {
        display: block;
        text-align: center;
        padding-bottom: 14px;
    }

    .ds-profile-avatar {
        margin-top: -70px;
        display: flex;
        justify-content: center;
    }

    .ds-profile-info {
        padding: 8px 0;
    }

    .ds-profile-info h1 {
        font-size: 26px;
    }

    .ds-profile-actions {
        justify-content: center;
    }

    .ds-profile-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ds-profile-tab {
        white-space: nowrap;
    }

    .ds-profile-body {
        display: block;
        margin: 8px 0;
    }

    .ds-profile-body .ds-card {
        border-radius: 0;
    }
}

/* AUTH */

.ds-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.ds-auth-brand {
    max-width: 560px;
}

.ds-auth-logo {
    font-size: 58px;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.ds-auth-logo .dog {
    color: var(--ds-blue);
}

.ds-auth-logo .social {
    color: var(--ds-cyan);
}

.ds-auth-brand p {
    font-size: 25px;
    line-height: 1.2;
    margin: 0;
}

.ds-auth-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0,0,0,.16);
    padding: 20px;
}

.ds-auth-title {
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 4px;
}

.ds-auth-subtitle {
    color: var(--ds-muted);
    margin: 0 0 18px;
}

.ds-form-group {
    margin-bottom: 12px;
}

.ds-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ds-form-control {
    width: 100%;
    height: 50px;
    border: 1px solid #ccd0d5;
    border-radius: 7px;
    padding: 0 14px;
    outline: 0;
    font-size: 16px;
    background: #fff;
}

.ds-form-control:focus {
    border-color: var(--ds-blue);
    box-shadow: 0 0 0 2px rgba(24,119,242,.12);
}

.ds-auth-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 7px;
    background: var(--ds-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.ds-auth-green {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    background: #42b72a;
    color: #fff;
    border-radius: 7px;
    font-weight: 800;
}

.ds-auth-separator {
    height: 1px;
    background: #dadde1;
    margin: 20px 0;
}

.ds-error-box {
    background: #fff1f2;
    color: #a31124;
    border: 1px solid #fecdd3;
    border-radius: 7px;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.ds-pending-shell {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
    padding: 25px;
}

.ds-pending-card {
    max-width: 560px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--ds-shadow);
    padding: 32px;
    text-align: center;
}

.ds-pending-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--ds-soft);
    color: var(--ds-blue);
    display: grid;
    place-items: center;
    font-size: 36px;
}

@media (max-width: 780px) {
    .ds-auth-page {
        display: block;
        padding: 25px 14px;
    }

    .ds-auth-brand {
        text-align: center;
        margin: 25px auto 30px;
    }

    .ds-auth-logo {
        font-size: 44px;
    }

    .ds-auth-brand p {
        font-size: 20px;
    }
}

/* =========================================================
   DOG SOCIAL - PROFILE DESKTOP WIDTH 1250
   ========================================================= */

@media (min-width: 1291px) {

    .ds-profile-shell,
    .ds-profile-body {
        width: 100%;
        max-width: 1250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

}



/* =========================================================
   DOG SOCIAL
   PROFILE ALIGNMENT RESPONSIVE FIX 1.0
   Avatar pencil + button vertical alignment
   ========================================================= */


/* ---------------------------------------------------------
   AVATAR
   Il contenitore deve avere ESATTAMENTE le dimensioni
   della foto, così la matita resta ancorata al cerchio.
   --------------------------------------------------------- */

.ds-profile-avatar {
    position: relative !important;
    width: 168px !important;
    height: 168px !important;
    min-width: 168px !important;
    flex: 0 0 168px !important;
    overflow: visible !important;
}

.ds-profile-avatar-photo {
    position: relative !important;
    width: 168px !important;
    height: 168px !important;
    max-width: none !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.ds-profile-avatar-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/*
 * Matita foto profilo.
 * È posizionata rispetto al contenitore dell'avatar,
 * non rispetto alla testata del profilo.
 */
.ds-profile-avatar .ds-avatar-edit {
    position: absolute !important;
    right: 2px !important;
    bottom: 7px !important;

    width: 38px !important;
    height: 38px !important;

    min-width: 38px !important;
    min-height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    border-radius: 50% !important;

    z-index: 60 !important;
}


/* ---------------------------------------------------------
   PULSANTI PROFILO
   Centramento verticale indipendente dal browser/font.
   --------------------------------------------------------- */

.ds-profile-actions .ds-primary-btn,
.ds-profile-actions .ds-secondary-btn {
    min-height: 40px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    line-height: 1.2 !important;
    vertical-align: middle !important;

    box-sizing: border-box !important;
}


/* Modifica profilo */
.ds-profile-actions .ds-secondary-btn {
    text-align: center !important;
}


/* Modifica dettagli */
.ds-profile-details-btn {
    min-height: 42px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 14px !important;

    line-height: 1.2 !important;
    text-align: center !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .ds-profile-avatar {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
        flex-basis: 150px !important;
    }

    .ds-profile-avatar-photo {
        width: 150px !important;
        height: 150px !important;
    }

    .ds-profile-avatar .ds-avatar-edit {
        right: 1px !important;
        bottom: 5px !important;
    }

}


/* ---------------------------------------------------------
   SMARTPHONE
   Android / iOS - qualsiasi larghezza comune
   --------------------------------------------------------- */

@media (max-width: 680px) {

    .ds-profile-avatar {
        width: clamp(118px, 32vw, 136px) !important;
        height: clamp(118px, 32vw, 136px) !important;

        min-width: 0 !important;
        flex: 0 0 auto !important;
    }

    .ds-profile-avatar-photo {
        width: 100% !important;
        height: 100% !important;
    }

    .ds-profile-avatar .ds-avatar-edit {
        width: 36px !important;
        height: 36px !important;

        min-width: 36px !important;
        min-height: 36px !important;

        right: -1px !important;
        bottom: 5px !important;

        font-size: 16px !important;
    }


    /*
     * Evita differenze di rendering tra Chrome Android,
     * Samsung Internet e Safari iOS.
     */
    .ds-profile-actions .ds-primary-btn,
    .ds-profile-actions .ds-secondary-btn {
        height: 42px !important;
        min-height: 42px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 0 14px !important;

        line-height: 1 !important;
        white-space: nowrap !important;
    }


    .ds-profile-details-btn {
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 14px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        line-height: 1 !important;
    }

}


/* telefoni molto stretti */
@media (max-width: 380px) {

    .ds-profile-avatar {
        width: 116px !important;
        height: 116px !important;
    }

    .ds-profile-avatar .ds-avatar-edit {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .ds-profile-actions .ds-primary-btn,
    .ds-profile-actions .ds-secondary-btn {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

}

