/* The SNS navigation stays in document flow, independent of sticky-header plugins. */
body.voicepa-product-ui #page.vp-sns-page {
    --vp-sns-accent: #94385f;
    --vp-sns-ink: #302935;
    --vp-sns-muted: #776d79;
    position: relative !important;
    inset: auto !important;
    margin-top: 0 !important;
    padding-top: 0;
    transform: none !important;
    align-items: flex-start;
}
#page.vp-sns-page > #content.article {
    position: relative !important;
    inset: auto !important;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
}
#page .voicepa-sns-tabs-wrap {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 0 12px !important;
    padding: 0;
    transform: none !important;
    overflow: visible;
    color: #302935;
    background: #fff;
    border: 1px solid #e9e2e7;
    border-radius: 12px;
    box-sizing: border-box;
}
#page .voicepa-sns-tabs-wrap > .voicepa-sns-primary-tabs {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 !important;
    padding: 4px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid #e9e2e7;
    border-radius: 11px 11px 0 0;
    background: #fff;
    box-shadow: none;
    transform: none !important;
    overflow: visible;
    pointer-events: auto;
}
#page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab {
    position: relative !important;
    inset: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #776d79;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-shadow: none;
    white-space: normal;
    letter-spacing: 0;
    transform: none !important;
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
    transition: color .15s ease, background-color .15s ease;
}
#page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab:hover { background: #fbf8fa; color: #302935; }
#page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab[aria-selected="true"] {
    color: #94385f;
    background: #f8f1f5;
    box-shadow: inset 0 -2px 0 #94385f;
}
#page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab:focus-visible { outline: 2px solid #94385f; outline-offset: -2px; }
#page .voicepa-sns-primary-tabs .voicepa-sns-tab-icon { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; }
#page .voicepa-sns-primary-tabs .voicepa-sns-tab-icon svg { display: block; width: 100%; height: 100%; }
#page .voicepa-sns-primary-tabs .voicepa-sns-tab-text { min-width: 0; color: inherit; white-space: normal; overflow-wrap: anywhere; }
#page .voicepa-sns-primary-tabs #unread-notifications-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 1px 5px;
    border-radius: 20px;
    background: #94385f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
#page .voicepa-sns-primary-tabs #unread-notifications-count:empty { display: none; }
#page .voicepa-sns-tabs-wrap > .content-timeline {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}
#page .voicepa-sns-tabs-wrap > .content-timeline > .tab-content-timeline {
    position: relative;
    inset: auto;
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #302935;
}
#page .voicepa-sns-tabs-wrap > .content-timeline > .tab-content-timeline[hidden] { display: none !important; }
#page.vp-sns-page #content1 > div { min-width: 0; }
@media (max-width: 900px) {
    body.voicepa-product-ui #page.vp-sns-page {
        /* 50px header + 36px rail minus the legacy 40px flow shell, until measured. */
        padding-top: var(--vp-sns-header-clearance, 46px) !important;
    }
    #page .voicepa-sns-tabs-wrap { border-inline: 0; border-radius: 0; }
    #page .voicepa-sns-tabs-wrap > .voicepa-sns-primary-tabs { border-radius: 0; }
    #page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab { padding: 8px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    #page .voicepa-sns-primary-tabs > .voicepa-sns-primary-tab { transition: none; }
}
