* {
    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;
    }

}


/* DOGSOCIAL_ACCOUNT_MENU_REAL_20260923 */

.ds-account-menu{
    position:relative;
}

.ds-account-trigger{
    border:0;
    background:transparent;
    cursor:pointer;
    padding:3px 6px;
    font:inherit;
    color:inherit;
}

.ds-account-trigger:hover{
    background:#f0f2f5;
    border-radius:22px;
}

.ds-account-panel{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:360px;
    max-width:calc(100vw - 20px);
    padding:12px;
    background:#fff;
    border-radius:12px;
    box-shadow:
        0 2px 4px rgba(0,0,0,.12),
        0 12px 32px rgba(0,0,0,.20);
    z-index:3000;
}

.ds-account-panel[hidden]{
    display:none !important;
}

.ds-account-profile-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px;
    border-radius:9px;
    color:#050505;
    text-decoration:none;
}

.ds-account-profile-card:hover,
.ds-account-row:hover{
    background:#f0f2f5;
}

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

.ds-account-profile-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.ds-account-profile-text{
    display:flex;
    flex-direction:column;
}

.ds-account-profile-text strong{
    font-size:16px;
}

.ds-account-profile-text small,
.ds-account-managed small{
    color:#65676b;
    font-size:12px;
    margin-top:3px;
}

.ds-account-divider{
    height:1px;
    background:#dddfe2;
    margin:8px 4px;
}

.ds-account-managed{
    padding:8px;
    display:flex;
    flex-direction:column;
}

.ds-account-row{
    width:100%;
    min-height:48px;
    border:0;
    border-radius:9px;
    background:transparent;
    display:flex;
    align-items:center;
    gap:10px;
    padding:7px 8px;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    color:#050505;
}

.ds-account-row-icon{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#e4e6eb;
    display:grid;
    place-items:center;
}

.ds-account-row-label{
    flex:1;
    text-align:left;
}

.ds-account-row-arrow{
    font-size:24px;
    color:#65676b;
}

.ds-account-logout-form{
    margin:0;
}

@media(max-width:680px){
    .ds-account-panel{
        position:fixed;
        top:62px;
        right:8px;
        width:min(360px,calc(100vw - 16px));
    }
}


/* DOGSOCIAL_REAL_POST_CORE_20260923 */

.ds-real-composer{
    padding:12px 14px;
    margin-bottom:14px;
}

.ds-real-composer-form{
    display:grid;
    gap:10px;
}

.ds-real-composer-head{
    display:flex;
    gap:10px;
    align-items:flex-start;
}

.ds-real-composer-avatar img,
.ds-real-post-avatar{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:50%;
}

.ds-real-composer textarea{
    flex:1;
    min-height:76px;
    resize:vertical;

    border:0;
    outline:0;

    background:#f0f2f5;
    border-radius:18px;

    padding:12px 14px;

    font:inherit;
    font-size:15px;

    box-sizing:border-box;
}

.ds-real-composer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;

    border-top:1px solid #e4e6eb;
    padding-top:10px;
}

.ds-real-composer-bottom span{
    color:#65676b;
    font-size:13px;
    font-weight:600;
}

.ds-real-composer-bottom button{
    border:0;
    border-radius:7px;

    background:#1877f2;
    color:#fff;

    min-height:38px;
    padding:0 20px;

    font-weight:800;
    cursor:pointer;
}

.ds-real-composer-bottom button:hover{
    background:#166fe5;
}

.ds-real-post{
    margin-bottom:14px;
}

.ds-empty-feed{
    padding:30px 20px;
    text-align:center;
    color:#65676b;
}

.ds-post-success{
    margin-bottom:10px;
    padding:10px 12px;

    border-radius:8px;

    background:#e8f5e9;
    color:#18763c;

    font-size:13px;
    font-weight:700;
}

.ds-post-error{
    margin-bottom:10px;
    padding:10px 12px;

    border-radius:8px;

    background:#ffebe9;
    color:#b42318;

    font-size:13px;
    font-weight:700;
}


/* DOGSOCIAL_POST_PHOTO_20260923 */

.ds-my-dogs-link{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-height:40px;

    text-align:center !important;

    box-sizing:border-box;
}


.ds-real-composer-bottom{
    gap:12px;
}


.ds-composer-tools{
    display:flex;
    align-items:center;
    gap:8px;
}


.ds-photo-upload-btn{
    min-height:38px;

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

    gap:7px;

    padding:0 13px;

    border-radius:8px;

    background:#e4e6eb;

    color:#050505;

    font-size:14px;
    font-weight:700;

    cursor:pointer;
}


.ds-photo-upload-btn:hover{
    background:#d8dadf;
}


.ds-composer-publish{
    margin-left:auto;

    display:flex;
    align-items:center;

    gap:14px;
}


.ds-post-visibility{
    color:#65676b;

    font-size:13px;
    font-weight:600;
}


.ds-post-photo-preview{
    position:relative;

    margin-top:6px;

    border:1px solid #e4e6eb;

    border-radius:10px;

    overflow:hidden;

    background:#f0f2f5;
}


.ds-post-photo-preview[hidden]{
    display:none !important;
}


.ds-post-photo-preview img{
    width:100%;
    max-height:520px;

    display:block;

    object-fit:contain;

    background:#000;
}


.ds-post-photo-preview button{
    position:absolute;

    top:10px;
    right:10px;

    width:36px;
    height:36px;

    border:0;
    border-radius:50%;

    background:rgba(255,255,255,.92);

    color:#050505;

    font-size:25px;
    line-height:1;

    cursor:pointer;

    box-shadow:
        0 2px 8px rgba(0,0,0,.18);
}


.ds-post-photo{
    width:100%;

    margin-top:10px;

    background:#000;

    overflow:hidden;
}


.ds-post-photo img{
    width:100%;
    max-height:760px;

    display:block;

    object-fit:contain;

    margin:0 auto;
}


@media(max-width:680px){

    .ds-real-composer-bottom{
        align-items:flex-end;
    }

    .ds-composer-publish{
        gap:8px;
    }

    .ds-post-visibility{
        display:none;
    }

}



/* =========================================================
   DOGSOCIAL_CREATE_POST_MODAL_20260923
   ========================================================= */


/* COMPOSER COMPATTO */

.ds-fb-composer{
    padding:12px 14px;
    margin-bottom:14px;
}


.ds-fb-composer-main{
    display:flex;
    align-items:center;
    gap:10px;
}


.ds-fb-composer-avatar{
    flex:0 0 auto;
}


.ds-fb-composer-avatar img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    border-radius:50%;
}


.ds-fb-composer-trigger{
    flex:1;

    min-height:44px;

    padding:0 15px;

    border:0;
    border-radius:24px;

    background:#f0f2f5;

    color:#65676b;

    font:inherit;
    font-size:15px;

    text-align:left;

    cursor:pointer;
}


.ds-fb-composer-trigger:hover{
    background:#e4e6eb;
}


.ds-fb-composer-divider{
    height:1px;

    margin:10px 0 4px;

    background:#e4e6eb;
}


.ds-fb-composer-actions{
    display:grid;

    grid-template-columns:
        repeat(3,1fr);
}


.ds-fb-composer-action{
    min-height:42px;

    border:0;
    border-radius:8px;

    background:transparent;

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

    gap:8px;

    color:#65676b;

    font:inherit;
    font-size:14px;
    font-weight:700;

    cursor:pointer;
}


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


.ds-composer-action-icon{
    font-size:20px;
}


.ds-live-action
.ds-composer-action-icon{
    color:#f3425f;
}


.ds-photo-action
.ds-composer-action-icon{
    color:#45bd62;
}


.ds-reel-action
.ds-composer-action-icon{
    color:#f55368;
}



/* BACKDROP */

.ds-create-post-backdrop{
    position:fixed;

    inset:0;

    z-index:6000;

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

    padding:18px;

    background:rgba(
        244,
        244,
        244,
        .82
    );

    backdrop-filter:
        blur(1px);
}


.ds-create-post-backdrop[hidden]{
    display:none !important;
}



/* MODALE */

.ds-create-post-modal{
    width:100%;

    max-width:500px;

    max-height:
        calc(100vh - 36px);

    overflow-y:auto;

    background:#fff;

    border-radius:12px;

    box-shadow:
        0 4px 8px rgba(0,0,0,.12),
        0 12px 28px rgba(0,0,0,.22);
}



/* HEADER */

.ds-create-post-header{
    position:relative;

    min-height:58px;

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

    border-bottom:
        1px solid #e4e6eb;
}


.ds-create-post-title{
    color:#050505;

    font-size:20px;
    font-weight:800;
}


.ds-create-post-close{
    position:absolute;

    top:10px;
    right:12px;

    width:38px;
    height:38px;

    border:0;
    border-radius:50%;

    background:#e4e6eb;

    color:#65676b;

    font-size:28px;
    line-height:1;

    cursor:pointer;
}


.ds-create-post-close:hover{
    background:#d8dadf;
}



/* FORM */

.ds-create-post-form{
    padding:12px 14px 16px;
}



/* UTENTE */

.ds-create-post-user{
    display:flex;
    align-items:center;

    gap:10px;

    margin-bottom:8px;
}


.ds-create-post-user-avatar{
    width:42px;
    height:42px;

    flex:0 0 42px;

    display:grid;
    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:#dbeafe;

    color:#1769d2;

    font-size:13px;
    font-weight:800;
}


.ds-create-post-user-avatar img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
}


.ds-create-post-user-info{
    display:flex;
    flex-direction:column;

    gap:3px;
}


.ds-create-post-user-info strong{
    color:#050505;

    font-size:15px;
}


.ds-create-post-audience{
    min-height:24px;

    padding:2px 7px;

    border:0;
    border-radius:6px;

    background:#e4e6eb;

    color:#050505;

    font-size:12px;
    font-weight:700;

    cursor:default;
}



/* TESTO */

.ds-create-post-text-area{
    position:relative;
}


.ds-create-post-text-area textarea{
    width:100%;

    min-height:130px;

    box-sizing:border-box;

    padding:10px 0 36px;

    border:0;
    outline:0;

    resize:none;

    background:#fff;

    color:#050505;

    font:inherit;
    font-size:24px;

    line-height:1.3;
}


.ds-create-post-text-area
textarea::placeholder{
    color:#65676b;
}


.ds-create-post-text-tools{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-top:-30px;
    margin-bottom:12px;
}


.ds-create-post-background{
    width:34px;
    height:34px;

    border:0;
    border-radius:7px;

    color:#fff;

    font-weight:800;

    cursor:pointer;

    background:
        linear-gradient(
            135deg,
            #ff5f6d,
            #ffc371,
            #45bd62,
            #1877f2
        );
}


.ds-create-post-emoji{
    width:32px;
    height:32px;

    border:0;

    background:transparent;

    color:#65676b;

    font-size:24px;

    cursor:pointer;
}



/* AGGIUNGI FOTO */

.ds-create-post-media-box{
    min-height:120px;

    margin-top:8px;

    border:
        1px solid #ced0d4;

    border-radius:8px;

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

    background:#f7f8fa;
}


.ds-create-post-media-box[hidden]{
    display:none !important;
}


.ds-create-post-media-button{
    border:0;

    background:transparent;

    display:flex;
    flex-direction:column;
    align-items:center;

    gap:7px;

    color:#050505;

    cursor:pointer;
}


.ds-create-post-media-circle{
    width:40px;
    height:40px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:#e4e6eb;

    color:#45bd62;

    font-size:21px;
}



/* ANTEPRIMA */

.ds-create-post-photo-preview{
    position:relative;

    margin-top:8px;

    overflow:hidden;

    border:
        1px solid #ced0d4;

    border-radius:8px;

    background:#f0f2f5;
}


.ds-create-post-photo-preview[hidden]{
    display:none !important;
}


.ds-create-post-photo-preview img{
    width:100%;

    max-height:430px;

    display:block;

    object-fit:contain;

    background:#000;
}


.ds-create-post-photo-remove{
    position:absolute;

    top:10px;
    right:10px;

    z-index:2;

    width:36px;
    height:36px;

    border:0;
    border-radius:50%;

    background:
        rgba(255,255,255,.94);

    color:#050505;

    font-size:25px;

    cursor:pointer;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.18);
}



/* TOOLBAR */

.ds-create-post-tools{
    min-height:52px;

    margin-top:12px;

    padding:4px 12px;

    box-sizing:border-box;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    border:
        1px solid #ced0d4;

    border-radius:8px;
}


.ds-create-post-tools > strong{
    color:#050505;

    font-size:14px;
}


.ds-create-post-tools-icons{
    display:flex;
    align-items:center;

    gap:3px;
}


.ds-create-post-tools-icons button{
    width:35px;
    height:35px;

    display:grid;
    place-items:center;

    padding:0;

    border:0;
    border-radius:50%;

    background:transparent;

    font-size:18px;

    cursor:pointer;
}


.ds-create-post-tools-icons button:hover{
    background:#f0f2f5;
}


.ds-post-tool-photo{
    color:#45bd62;
}



/* PUBBLICA */

.ds-create-post-submit{
    width:100%;

    min-height:40px;

    margin-top:12px;

    border:0;
    border-radius:7px;

    background:#1877f2;

    color:#fff;

    font:inherit;
    font-size:15px;
    font-weight:800;

    cursor:pointer;
}


.ds-create-post-submit:hover{
    background:#166fe5;
}



/* MOBILE */

@media(max-width:680px){

    .ds-fb-composer-action{
        font-size:12px;
    }


    .ds-create-post-backdrop{
        padding:0;

        align-items:flex-end;
    }


    .ds-create-post-modal{
        max-width:none;

        max-height:94vh;

        border-radius:
            16px
            16px
            0
            0;
    }


    .ds-create-post-text-area textarea{
        min-height:160px;

        font-size:22px;
    }

}



/* =========================================================
   DOGSOCIAL_SOCIAL_FEATURES_20260923
   ========================================================= */


/* BACKGROUND PICKER */

.ds-background-picker{
    display:flex;
    gap:7px;

    overflow-x:auto;

    padding:8px 2px;

    scrollbar-width:thin;
}

.ds-background-picker[hidden],
.ds-emoji-picker[hidden]{
    display:none !important;
}

.ds-background-picker button{
    width:32px;
    height:32px;

    min-width:32px;

    border:2px solid #fff;
    border-radius:7px;

    cursor:pointer;

    box-shadow:
        0 0 0 1px #ccd0d5;
}

.ds-bg-none{
    background:#e4e6eb;
    color:#65676b;
    font-weight:800;
}


/* 20 SFONDI */

.ds-bg-choice.ds-bg-blue,
.ds-post-bg-blue{
    background:
        linear-gradient(
            135deg,
            #1877f2,
            #00a6ff
        );
}

.ds-bg-choice.ds-bg-purple,
.ds-post-bg-purple{
    background:
        linear-gradient(
            135deg,
            #6f2dbd,
            #a663cc
        );
}

.ds-bg-choice.ds-bg-pink,
.ds-post-bg-pink{
    background:
        linear-gradient(
            135deg,
            #ff006e,
            #d000ff
        );
}

.ds-bg-choice.ds-bg-sunset,
.ds-post-bg-sunset{
    background:
        linear-gradient(
            180deg,
            #ffcc33,
            #ff5e62,
            #c33764
        );
}

.ds-bg-choice.ds-bg-ocean,
.ds-post-bg-ocean{
    background:
        linear-gradient(
            135deg,
            #005c97,
            #363795
        );
}

.ds-bg-choice.ds-bg-forest,
.ds-post-bg-forest{
    background:
        linear-gradient(
            135deg,
            #11998e,
            #38ef7d
        );
}

.ds-bg-choice.ds-bg-fire,
.ds-post-bg-fire{
    background:
        linear-gradient(
            135deg,
            #f12711,
            #f5af19
        );
}

.ds-bg-choice.ds-bg-night,
.ds-post-bg-night{
    background:
        linear-gradient(
            135deg,
            #141e30,
            #243b55
        );
}

.ds-bg-choice.ds-bg-mint,
.ds-post-bg-mint{
    background:
        linear-gradient(
            135deg,
            #00b09b,
            #96c93d
        );
}

.ds-bg-choice.ds-bg-gold,
.ds-post-bg-gold{
    background:
        linear-gradient(
            135deg,
            #f7971e,
            #ffd200
        );
}

.ds-bg-choice.ds-bg-rose,
.ds-post-bg-rose{
    background:
        linear-gradient(
            135deg,
            #ff758c,
            #ff7eb3
        );
}

.ds-bg-choice.ds-bg-violet,
.ds-post-bg-violet{
    background:
        linear-gradient(
            135deg,
            #654ea3,
            #eaafc8
        );
}

.ds-bg-choice.ds-bg-sky,
.ds-post-bg-sky{
    background:
        linear-gradient(
            135deg,
            #36d1dc,
            #5b86e5
        );
}

.ds-bg-choice.ds-bg-coral,
.ds-post-bg-coral{
    background:
        linear-gradient(
            135deg,
            #ff9966,
            #ff5e62
        );
}

.ds-bg-choice.ds-bg-lime,
.ds-post-bg-lime{
    background:
        linear-gradient(
            135deg,
            #a8ff78,
            #78ffd6
        );
}

.ds-bg-choice.ds-bg-midnight,
.ds-post-bg-midnight{
    background:
        linear-gradient(
            135deg,
            #232526,
            #414345
        );
}

.ds-bg-choice.ds-bg-hearts,
.ds-post-bg-hearts{
    background-color:#ff5c77;

    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(255,255,255,.22) 0 8%,
            transparent 9%
        ),
        radial-gradient(
            circle at 70% 65%,
            rgba(255,255,255,.20) 0 10%,
            transparent 11%
        );
}

.ds-bg-choice.ds-bg-confetti,
.ds-post-bg-confetti{
    background-color:#35194f;

    background-image:
        radial-gradient(
            circle at 20% 30%,
            #ffcf33 0 2%,
            transparent 2.5%
        ),
        radial-gradient(
            circle at 70% 20%,
            #36a2ff 0 2%,
            transparent 2.5%
        ),
        radial-gradient(
            circle at 60% 75%,
            #ff6b81 0 2%,
            transparent 2.5%
        );
}

.ds-bg-choice.ds-bg-dogblue,
.ds-post-bg-dogblue{
    background:
        linear-gradient(
            135deg,
            #061b33,
            #0e4f83,
            #1877f2
        );
}

.ds-bg-choice.ds-bg-doggold,
.ds-post-bg-doggold{
    background:
        linear-gradient(
            135deg,
            #2f2500,
            #9d7900,
            #ffd54a
        );
}


/* TEXTAREA CON SFONDO */

.ds-create-post-text-area[class*="ds-post-bg-"]{
    min-height:300px;

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

    margin-left:-14px;
    margin-right:-14px;

    padding:22px;
}

.ds-create-post-text-area[class*="ds-post-bg-"]
textarea{
    min-height:170px;

    padding:20px;

    display:block;

    color:#fff;

    background:transparent;

    text-align:center;

    font-size:28px;
    font-weight:800;

    text-shadow:
        0 1px 2px
        rgba(0,0,0,.18);
}

.ds-create-post-text-area[class*="ds-post-bg-"]
textarea::placeholder{
    color:rgba(255,255,255,.8);
}

.ds-create-post-text-area[class*="ds-post-bg-"]
.ds-create-post-text-tools{
    position:absolute;
    left:12px;
    right:12px;
    bottom:8px;
}


/* POST PUBBLICATO CON SFONDO */

.ds-post-background-card{
    width:100%;

    min-height:380px;

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

    padding:35px;

    box-sizing:border-box;

    color:#fff;

    text-align:center;

    font-size:30px;
    font-weight:800;

    line-height:1.25;

    text-shadow:
        0 1px 2px
        rgba(0,0,0,.20);
}


/* EMOJI */

.ds-emoji-picker{
    display:grid;

    grid-template-columns:
        repeat(8,1fr);

    gap:4px;

    max-height:190px;

    overflow-y:auto;

    padding:8px;

    margin-bottom:8px;

    border:1px solid #e4e6eb;
    border-radius:8px;

    background:#fff;
}

.ds-emoji-picker button{
    width:100%;
    aspect-ratio:1;

    border:0;
    border-radius:7px;

    background:transparent;

    font-size:22px;

    cursor:pointer;
}

.ds-emoji-picker button:hover{
    background:#f0f2f5;
}


/* META SELEZIONATI */

.ds-create-post-selected-meta{
    margin:5px 0 8px;

    padding:8px 10px;

    border-radius:7px;

    background:#f0f2f5;

    color:#65676b;

    font-size:13px;
    line-height:1.4;
}

.ds-create-post-selected-meta[hidden]{
    display:none !important;
}


/* SUBPANEL */

.ds-composer-subpanel{
    min-height:500px;

    background:#fff;
}

.ds-composer-subpanel[hidden]{
    display:none !important;
}

.ds-subpanel-header{
    position:relative;

    min-height:58px;

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

    border-bottom:
        1px solid #e4e6eb;
}

.ds-subpanel-header strong{
    font-size:19px;
}

.ds-subpanel-header button{
    position:absolute;

    left:12px;

    width:38px;
    height:38px;

    border:0;
    border-radius:50%;

    background:#e4e6eb;

    font-size:21px;

    cursor:pointer;
}

.ds-subpanel-body{
    padding:12px 14px;
}

.ds-subpanel-search{
    width:100%;

    min-height:40px;

    box-sizing:border-box;

    border:0;
    border-radius:22px;

    background:#f0f2f5;

    padding:0 14px;

    outline:0;

    font:inherit;
}


/* FEELINGS */

.ds-feeling-grid{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:4px;

    margin-top:10px;
}

.ds-feeling-grid button{
    min-height:45px;

    border:0;
    border-radius:8px;

    background:#fff;

    display:flex;
    align-items:center;

    gap:10px;

    padding:6px 10px;

    text-align:left;

    cursor:pointer;

    font:inherit;
}

.ds-feeling-grid button:hover{
    background:#f0f2f5;
}

.ds-feeling-grid button span{
    font-size:24px;
}


/* TAG */

.ds-tag-results{
    margin-top:10px;
}

.ds-tag-result{
    width:100%;

    min-height:52px;

    border:0;
    border-radius:8px;

    background:#fff;

    display:flex;
    align-items:center;

    gap:10px;

    padding:6px 8px;

    text-align:left;

    cursor:pointer;
}

.ds-tag-result:hover{
    background:#f0f2f5;
}

.ds-tag-avatar{
    width:38px;
    height:38px;

    flex:0 0 38px;

    display:grid;
    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:#dbeafe;

    color:#1769d2;

    font-size:12px;
    font-weight:800;
}

.ds-tag-avatar img{
    width:100%;
    height:100%;

    object-fit:cover;
}

.ds-selected-tags{
    display:flex;
    flex-wrap:wrap;

    gap:5px;

    margin-top:8px;
}

.ds-tag-chip{
    border:0;
    border-radius:18px;

    background:#e7f3ff;

    color:#1877f2;

    padding:6px 10px;

    font-weight:700;

    cursor:pointer;
}


/* LOCATION */

.ds-location-confirm{
    width:100%;

    min-height:42px;

    margin-top:12px;

    border:0;
    border-radius:7px;

    background:#1877f2;

    color:#fff;

    font-weight:800;

    cursor:pointer;
}


/* META NEL POST */

.ds-post-social-meta{
    margin-top:1px;

    color:#65676b;

    font-size:12px;
}

.ds-post-social-meta strong{
    color:#050505;
}


/* MOBILE */

@media(max-width:680px){

    .ds-background-picker button{
        width:30px;
        height:30px;

        min-width:30px;
    }

    .ds-create-post-text-area[class*="ds-post-bg-"]{
        min-height:260px;
    }

    .ds-post-background-card{
        min-height:320px;

        font-size:26px;

        padding:25px;
    }

    .ds-emoji-picker{
        grid-template-columns:
            repeat(6,1fr);
    }

    .ds-feeling-grid{
        grid-template-columns:1fr;
    }

}


/* =========================================================
   DOGSOCIAL POST INTERACTIONS 1.0
   ========================================================= */

.ds-real-post{
    position:relative;
}


/* STATS */

.ds-post-stats{
    display:flex;
    justify-content:space-between;
    gap:12px;

    padding:8px 14px;

    color:#65676b;
    font-size:13px;

    border-bottom:1px solid #e4e6eb;
}


/* ACTIONS */

.ds-post-actions{
    position:relative;
}

.ds-reaction-control,
.ds-share-control{
    position:relative;

    flex:1;

    display:flex;
}

.ds-reaction-control
.ds-post-action,
.ds-share-control
.ds-post-action{
    width:100%;
}

.ds-post-action.is-reacted{
    color:#1877f2;
}


/* REACTION PICKER */

.ds-reaction-picker{
    position:absolute;

    left:0;
    bottom:calc(100% + 7px);

    z-index:100;

    display:flex;
    align-items:center;

    gap:3px;

    padding:5px 7px;

    border-radius:30px;

    background:#fff;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.22);
}

.ds-reaction-picker[hidden]{
    display:none !important;
}

.ds-reaction-picker form{
    margin:0;
}

.ds-reaction-picker button{
    width:42px;
    height:42px;

    border:0;
    border-radius:50%;

    background:transparent;

    font-size:28px;

    cursor:pointer;

    transition:
        transform .12s ease;
}

.ds-reaction-picker button:hover{
    transform:
        scale(1.28)
        translateY(-4px);
}


/* SHARE MENU */

.ds-share-menu{
    position:absolute;

    right:0;
    bottom:calc(100% + 7px);

    z-index:110;

    width:270px;

    padding:7px;

    border-radius:10px;

    background:#fff;

    box-shadow:
        0 4px 18px
        rgba(0,0,0,.22);
}

.ds-share-menu[hidden]{
    display:none !important;
}

.ds-share-menu form{
    margin:0;
}

.ds-share-menu button,
.ds-share-menu a{
    width:100%;

    min-height:46px;

    box-sizing:border-box;

    display:flex;
    align-items:center;

    gap:10px;

    padding:7px 10px;

    border:0;
    border-radius:8px;

    background:transparent;

    color:#050505;

    text-decoration:none;

    font:inherit;
    font-weight:600;

    text-align:left;

    cursor:pointer;
}

.ds-share-menu button:hover,
.ds-share-menu a:hover{
    background:#f0f2f5;
}

.ds-share-future{
    opacity:.58;
}


/* COMMENTI */

.ds-post-comments{
    padding:
        5px
        12px
        12px;
}

.ds-comment{
    display:flex;
    align-items:flex-start;

    gap:7px;

    margin-top:9px;
}

.ds-comment-avatar{
    width:32px;
    height:32px;

    flex:0 0 32px;

    overflow:hidden;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:#dbeafe;

    color:#1769d2;

    font-size:11px;
    font-weight:800;
}

.ds-comment-avatar img{
    width:100%;
    height:100%;

    display:block;

    object-fit:cover;
}

.ds-comment-content{
    min-width:0;
}

.ds-comment-bubble{
    display:inline-block;

    max-width:100%;

    padding:8px 11px;

    border-radius:17px;

    background:#f0f2f5;

    color:#050505;

    font-size:13px;
    line-height:1.35;
}

.ds-comment-bubble strong{
    display:block;

    margin-bottom:2px;

    font-size:12px;
}

.ds-comment-content small{
    display:block;

    margin:
        3px
        0
        0
        10px;

    color:#65676b;

    font-size:11px;
}


/* COMMENT FORM */

.ds-comment-form{
    display:flex;
    align-items:flex-start;

    gap:7px;

    margin-top:10px;
}

.ds-comment-input-wrap{
    position:relative;

    flex:1;
}

.ds-comment-input-wrap textarea{
    width:100%;

    min-height:38px;
    max-height:120px;

    box-sizing:border-box;

    padding:
        9px
        78px
        8px
        13px;

    border:0;
    border-radius:20px;

    outline:0;

    resize:none;

    overflow-y:auto;

    background:#f0f2f5;

    color:#050505;

    font:inherit;
    font-size:13px;
}

.ds-comment-emoji-button,
.ds-comment-send{
    position:absolute;

    top:4px;

    width:30px;
    height:30px;

    border:0;
    border-radius:50%;

    display:grid;
    place-items:center;

    background:transparent;

    cursor:pointer;
}

.ds-comment-emoji-button{
    right:37px;

    font-size:17px;
}

.ds-comment-send{
    right:5px;

    color:#1877f2;

    font-size:17px;
}

.ds-comment-emoji-button:hover,
.ds-comment-send:hover{
    background:#e4e6eb;
}


/* EMOJI COMMENTO */

.ds-comment-emoji-picker{
    position:absolute;

    right:0;
    bottom:46px;

    z-index:120;

    width:280px;

    display:grid;

    grid-template-columns:
        repeat(6,1fr);

    gap:3px;

    padding:8px;

    border-radius:10px;

    background:#fff;

    box-shadow:
        0 4px 18px
        rgba(0,0,0,.22);
}

.ds-comment-emoji-picker[hidden]{
    display:none !important;
}

.ds-comment-emoji-picker button{
    width:100%;
    aspect-ratio:1;

    border:0;
    border-radius:7px;

    background:transparent;

    font-size:21px;

    cursor:pointer;
}

.ds-comment-emoji-picker button:hover{
    background:#f0f2f5;
}


/* SHARED POST */

.ds-shared-post{
    margin:
        10px
        12px;

    border:
        1px solid #ced0d4;

    border-radius:9px;

    overflow:hidden;

    background:#fff;
}

.ds-shared-post-head{
    display:flex;
    flex-direction:column;

    padding:10px 12px 5px;
}

.ds-shared-post-head small{
    color:#65676b;
}

.ds-shared-post-text{
    padding:
        7px
        12px
        12px;
}

.ds-shared-post-image{
    width:100%;

    max-height:600px;

    display:block;

    object-fit:contain;

    background:#000;
}


/* PAGINA POST DIRETTO */

.ds-single-post-page{
    width:min(
        720px,
        calc(100% - 24px)
    );

    margin:
        28px
        auto;
}


@media(max-width:680px){

    .ds-reaction-picker{
        left:-8px;

        gap:0;

        padding:
            4px
            5px;
    }

    .ds-reaction-picker button{
        width:36px;
        height:36px;

        font-size:24px;
    }

    .ds-share-menu{
        position:fixed;

        left:8px;
        right:8px;
        bottom:10px;

        width:auto;
    }

    .ds-comment-emoji-picker{
        position:fixed;

        left:8px;
        right:8px;
        bottom:10px;

        width:auto;

        grid-template-columns:
            repeat(8,1fr);
    }
}


/* =========================================
   DOG SOCIAL - CHAT 1.0
========================================= */

.ds-chat-top-trigger .ds-chat-top-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ds-chat-floating-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.22);
    z-index: 9998;
    font-size: 24px;
}

.ds-chat-floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ds-chat-panel {
    position: fixed;
    right: 18px;
    bottom: 88px;
    width: 340px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 9998;
    display: none;
    flex-direction: column;
}

.ds-chat-panel.open {
    display: flex;
}

.ds-chat-panel-header,
.ds-chat-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
}

.ds-chat-close {
    border: none;
    background: #f0f2f5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.ds-chat-search-wrap {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ds-chat-search {
    width: 100%;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
}

.ds-chat-panel-section-title {
    padding: 10px 14px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.ds-chat-search-results,
.ds-chat-conversations {
    overflow-y: auto;
    max-height: 220px;
}

.ds-chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f4f4f4;
}

.ds-chat-conversation-item:hover {
    background: #f7f9fb;
}

.ds-chat-conversation-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 42px;
}

.ds-chat-conversation-meta {
    flex: 1;
    min-width: 0;
}

.ds-chat-conversation-name {
    font-weight: 700;
    color: #1f2328;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-chat-conversation-preview {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-chat-unread {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: 700;
}

.ds-chat-empty {
    padding: 14px;
    color: #777;
    font-size: 14px;
}

.ds-chat-window {
    position: fixed;
    right: 372px;
    bottom: 18px;
    width: 360px;
    height: 540px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ds-chat-window.open {
    display: flex;
}

.ds-chat-window-user {
    font-weight: 700;
}

.ds-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7f8fa;
}

.ds-chat-message-row {
    display: flex;
    margin-bottom: 10px;
}

.ds-chat-message-row.mine {
    justify-content: flex-end;
}

.ds-chat-message-row.other {
    justify-content: flex-start;
}

.ds-chat-bubble {
    max-width: 78%;
    background: #fff;
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.05);
}

.ds-chat-message-row.mine .ds-chat-bubble {
    background: #1877f2;
    color: #fff;
}

.ds-chat-message-text {
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.45;
}

.ds-chat-message-image-wrap {
    margin-top: 8px;
}

.ds-chat-message-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

.ds-chat-like-message {
    font-size: 34px;
    line-height: 1;
}

.ds-chat-message-time {
    font-size: 11px;
    opacity: .75;
    margin-top: 6px;
}

.ds-chat-emoji-bar {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: #fff;
    overflow-x: auto;
}

.ds-chat-emoji-bar button {
    border: none;
    background: #f0f2f5;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 18px;
}

.ds-chat-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #fff;
}

.ds-chat-composer textarea {
    flex: 1;
    resize: none;
    height: 42px;
    max-height: 120px;
    border: 1px solid #dfe3e8;
    border-radius: 20px;
    padding: 10px 12px;
    outline: none;
    font-size: 14px;
}

.ds-chat-image-btn,
.ds-chat-like-btn,
.ds-chat-send-btn {
    border: none;
    background: #f0f2f5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ds-chat-send-btn {
    background: #1877f2;
    color: #fff;
}

@media (max-width: 1100px) {
    .ds-chat-window {
        right: 18px;
        width: calc(100vw - 36px);
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .ds-chat-panel,
    .ds-chat-window {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .ds-chat-panel {
        bottom: 82px;
        max-height: 65vh;
    }

    .ds-chat-window {
        height: 72vh;
        bottom: 82px;
    }
}


/* =========================================================
   DOGSOCIAL_TOPBAR_CHAT_DROPDOWN_RECOVERY
   ========================================================= */


/* Nessun vecchio pulsante Chat flottante */

.ds-chat-floating-launcher{
    display:none !important;
}


/* Destra topbar */

.ds-topbar-clean-actions{
    display:flex;
    align-items:center;
    gap:8px;
}


.ds-top-chat-anchor{
    position:relative;
}


.ds-top-circle-button{
    position:relative;

    width:40px;
    height:40px;

    flex:0 0 40px;

    display:grid;
    place-items:center;

    padding:0;

    border:0;
    border-radius:50%;

    background:#e4e6eb;
    color:#050505;

    cursor:pointer;
}


.ds-top-circle-button:hover{
    background:#d8dadf;
}


.ds-top-circle-button svg{
    width:20px;
    height:20px;

    fill:none;
    stroke:currentColor;
    stroke-width:2;

    stroke-linecap:round;
    stroke-linejoin:round;
}


.ds-top-circle-badge{
    position:absolute;

    top:-5px;
    right:-5px;

    min-width:19px;
    height:19px;

    padding:0 5px;

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

    border:2px solid #fff;
    border-radius:999px;

    background:#e41e3f;
    color:#fff;

    font-size:10px;
    font-weight:800;
}


.ds-top-circle-badge[hidden]{
    display:none !important;
}



/* CHAT DROPDOWN */

.ds-chat-dropdown{
    position:absolute;

    top:calc(100% + 10px);
    right:-96px;

    z-index:6000;

    width:365px;

    max-height:
        calc(100vh - 78px);

    overflow:hidden;

    border-radius:12px;

    background:#fff;

    box-shadow:
        0 12px 36px
        rgba(0,0,0,.22);
}


.ds-chat-dropdown[hidden]{
    display:none !important;
}


.ds-chat-dropdown-header{
    min-height:58px;

    padding:10px 14px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}


.ds-chat-dropdown-header strong{
    font-size:23px;
}


.ds-chat-new-button{
    width:36px;
    height:36px;

    border:0;
    border-radius:50%;

    display:grid;
    place-items:center;

    background:#f0f2f5;

    font-size:18px;

    cursor:pointer;
}


.ds-chat-search-wrap{
    padding:0 12px 10px;
}


.ds-chat-search{
    width:100%;

    min-height:40px;

    box-sizing:border-box;

    padding:0 14px;

    border:0;
    border-radius:22px;

    outline:0;

    background:#f0f2f5;

    font:inherit;
}


.ds-chat-tabs{
    display:flex;

    gap:5px;

    padding:0 12px 8px;
}


.ds-chat-tabs button{
    min-height:34px;

    padding:0 13px;

    border:0;
    border-radius:18px;

    background:transparent;

    font-weight:700;
}


.ds-chat-tabs button.active{
    background:#e7f3ff;
    color:#1877f2;
}


.ds-chat-tabs button:disabled{
    opacity:.4;
}


.ds-chat-recent-title{
    padding:3px 14px 7px;

    color:#65676b;

    font-size:13px;
    font-weight:700;
}


.ds-chat-search-results{
    max-height:260px;

    overflow-y:auto;

    border-top:1px solid #f0f2f5;
    border-bottom:1px solid #f0f2f5;
}


.ds-chat-search-results[hidden]{
    display:none !important;
}


.ds-chat-conversations{
    min-height:100px;

    max-height:
        calc(100vh - 260px);

    overflow-y:auto;

    padding-bottom:8px;
}


.ds-chat-conversation-item{
    width:100%;

    min-height:63px;

    padding:7px 12px;

    display:flex;
    align-items:center;

    gap:10px;

    border:0;

    background:#fff;

    color:#050505;

    text-align:left;

    cursor:pointer;
}


.ds-chat-conversation-item:hover{
    background:#f2f2f2;
}


.ds-chat-conversation-item img{
    width:48px;
    height:48px;

    flex:0 0 48px;

    border-radius:50%;

    object-fit:cover;
}


.ds-chat-conversation-meta{
    min-width:0;

    flex:1;

    display:flex;
    flex-direction:column;

    gap:3px;
}


.ds-chat-conversation-meta strong,
.ds-chat-conversation-meta small{
    overflow:hidden;

    white-space:nowrap;
    text-overflow:ellipsis;
}


.ds-chat-conversation-meta strong{
    font-size:14px;
}


.ds-chat-conversation-meta small{
    color:#65676b;
    font-size:12px;
}


.ds-chat-unread{
    min-width:21px;
    height:21px;

    padding:0 5px;

    display:grid;
    place-items:center;

    border-radius:999px;

    background:#1877f2;
    color:#fff;

    font-size:11px;
    font-weight:800;
}


.ds-chat-empty,
.ds-chat-loading{
    padding:22px 14px;

    color:#65676b;

    text-align:center;

    font-size:13px;
}



/* THREAD CHAT */

.ds-chat-thread-window{
    position:fixed;

    top:68px;
    right:385px;

    z-index:6001;

    width:370px;
    height:570px;

    max-height:
        calc(100vh - 82px);

    display:flex;
    flex-direction:column;

    overflow:hidden;

    border-radius:12px;

    background:#fff;

    box-shadow:
        0 12px 36px
        rgba(0,0,0,.22);
}


.ds-chat-thread-window[hidden]{
    display:none !important;
}


.ds-chat-window-header{
    min-height:54px;

    padding:8px 10px 8px 14px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    border-bottom:
        1px solid #e4e6eb;
}


.ds-chat-window-user{
    overflow:hidden;

    white-space:nowrap;
    text-overflow:ellipsis;

    font-size:15px;
    font-weight:800;
}


.ds-chat-thread-close{
    width:34px;
    height:34px;

    border:0;
    border-radius:50%;

    background:#f0f2f5;

    color:#65676b;

    font-size:23px;

    cursor:pointer;
}


.ds-chat-messages{
    flex:1;

    overflow-y:auto;

    padding:12px;

    background:#fff;
}


.ds-chat-message-row{
    display:flex;
    margin:6px 0;
}


.ds-chat-message-row.mine{
    justify-content:flex-end;
}


.ds-chat-message-row.other{
    justify-content:flex-start;
}


.ds-chat-bubble{
    max-width:78%;

    padding:8px 11px;

    border-radius:18px;

    background:#e4e6eb;
    color:#050505;
}


.ds-chat-message-row.mine
.ds-chat-bubble{
    background:#1877f2;
    color:#fff;
}


.ds-chat-message-text{
    word-break:break-word;

    font-size:14px;
    line-height:1.35;
}


.ds-chat-message-image{
    max-width:100%;
    max-height:330px;

    margin-top:5px;

    display:block;

    border-radius:12px;

    object-fit:contain;
}


.ds-chat-like-message{
    font-size:34px;
}


.ds-chat-message-time{
    margin-top:4px;

    opacity:.65;

    font-size:9px;
}


.ds-chat-emoji-bar{
    padding:6px 9px;

    display:flex;

    gap:4px;

    overflow-x:auto;

    border-top:
        1px solid #f0f2f5;
}


.ds-chat-emoji-bar button{
    width:30px;
    height:30px;

    flex:0 0 30px;

    border:0;
    border-radius:50%;

    background:transparent;

    font-size:18px;

    cursor:pointer;
}


.ds-chat-composer{
    min-height:56px;

    padding:7px 8px;

    display:flex;
    align-items:center;

    gap:6px;

    border-top:
        1px solid #e4e6eb;
}


.ds-chat-composer textarea{
    flex:1;

    height:38px;
    min-height:38px;
    max-height:100px;

    box-sizing:border-box;

    padding:9px 12px;

    border:0;
    border-radius:20px;

    outline:0;

    resize:none;

    background:#f0f2f5;

    font:inherit;
    font-size:13px;
}


.ds-chat-image-btn,
.ds-chat-like-btn,
.ds-chat-send-btn{
    width:36px;
    height:36px;

    flex:0 0 36px;

    padding:0;

    display:grid;
    place-items:center;

    border:0;
    border-radius:50%;

    background:transparent;

    color:#1877f2;

    font-size:18px;

    cursor:pointer;
}



/* MOBILE */

@media(max-width:760px){

    .ds-chat-dropdown{
        position:fixed;

        top:58px;
        left:8px;
        right:8px;

        width:auto;

        max-height:
            calc(100vh - 70px);
    }


    .ds-chat-thread-window{
        top:58px;
        left:8px;
        right:8px;

        width:auto;
        height:
            calc(100vh - 70px);

        max-height:none;
    }

}

