/* ==========================================================================
   Statuses — Modern UI
   ========================================================================== */

/* ── Design Tokens ── */
:root {
    --st-accent: #6c5ce7;
    --st-accent-2: #00cec9;
    --st-gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
    --st-gradient-soft: linear-gradient(135deg, rgba(108, 92, 231, 0.28) 0%, rgba(0, 206, 201, 0.18) 100%);
    --st-surface: rgba(255, 255, 255, 0.72);
    --st-surface-strong: rgba(255, 255, 255, 0.86);
    --st-border: rgba(20, 24, 40, 0.08);
    --st-text: #161a24;
    --st-text-muted: rgba(22, 26, 36, 0.55);
    --st-ring-unseen: #00cec9;
    --st-ring-seen: #8a8f9c;
    --st-ring-gap: rgba(255, 255, 255, 0.94);
    --st-shadow-sm: 0 1px 3px rgba(16, 20, 34, 0.10), 0 1px 2px rgba(16, 20, 34, 0.06);
    --st-shadow-lg: 0 18px 44px rgba(16, 20, 34, 0.22), 0 6px 16px rgba(16, 20, 34, 0.12);
    --st-radius-sm: 12px;
    --st-radius-md: 18px;
    --st-radius-lg: 26px;
    --st-transition: 0.22s cubic-bezier(0.25, 0.8, 0.35, 1);
}

[data-bs-theme="dark"] {
    --st-surface: rgba(22, 26, 40, 0.66);
    --st-surface-strong: rgba(26, 30, 48, 0.9);
    --st-border: rgba(255, 255, 255, 0.08);
    --st-text: #f2f4fa;
    --st-text-muted: rgba(242, 244, 250, 0.55);
    --st-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.32), 0 1px 2px rgba(0, 0, 0, 0.24);
    --st-shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    --st-ring-gap: rgba(24, 28, 44, 0.94);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   App Shell
   ========================================================================== */
/* ── Header ── */
.st-header {
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-border);
    box-shadow: 0 1px 18px rgba(16, 20, 34, 0.06);
    z-index: 1030;
}

.st-header-inner {
    min-height: 56px;
}

.st-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.st-brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--st-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
    font-size: 1.15rem;
}

.st-brand-title {
    font-family: 'Oswald', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-brand-sub {
    font-size: 0.72rem;
    opacity: 0.55;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
}

/* ── Tabs ── */
.st-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 0.4rem 1rem 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.st-tabs::-webkit-scrollbar {
    display: none;
}

.st-tab {
    flex: 1;
    min-width: max-content;
    padding: 0.45rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--st-text-muted);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    transition: all var(--st-transition);
    cursor: pointer;
}

.st-tab:hover {
    color: var(--st-text);
    background: color-mix(in srgb, var(--st-accent) 10%, transparent);
}

.st-tab[active] {
    color: #fff;
    background: var(--st-gradient);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.38);
}

/* ==========================================================================
   Status List
   ==========================================================================
*/
.st-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem 0.7rem;
    border-radius: var(--st-radius-md);
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform var(--st-transition), box-shadow var(--st-transition);
    animation: st-fade-up 0.4s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

.st-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-lg);
}

.st-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
}

.st-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--st-gradient-soft);
    border: 1px solid var(--st-border);
    color: var(--st-text);
    overflow: hidden;
}

.st-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.st-ring svg {
    width: 100%;
    height: 100%;
}

.st-card-name {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--st-text);
}

.st-card-count {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--st-gradient);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.4);
}

/* ── Self status rows ── */
.st-self-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--st-radius-md);
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: st-fade-up 0.4s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

.st-self-row:hover {
    box-shadow: var(--st-shadow-lg);
}

.st-type-badge {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--st-gradient-soft);
    border: 1px solid var(--st-border);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--st-text);
}

.st-self-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--st-text);
}

.st-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.st-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem 0.55rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--st-text-muted);
    font-size: 0.7rem;
    transition: all var(--st-transition);
}

.st-action:hover {
    color: var(--st-accent);
    background: color-mix(in srgb, var(--st-accent) 10%, transparent);
}

/* ==========================================================================
   FAB — Create status cluster
   ========================================================================== */
.st-fab {
    right: 1.4rem;
    bottom: calc(var(--fbh) + 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 1020;
}

.st-fab-btn {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--st-text);
    transition: transform var(--st-transition), box-shadow var(--st-transition);
    cursor: pointer;
}

.st-fab-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 22px 50px rgba(16, 20, 34, 0.3);
}

.st-fab-btn .st-fab-ic {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
}

.st-fab-btn .st-fab-ic svg {
    width: 100%;
    height: 100%;
}

.st-fab-btn::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--st-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--st-transition), transform var(--st-transition);
}

.st-fab-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.st-fab-btn[data-kind="text"] {
    background: var(--st-gradient);
    color: #fff;
    border: none;
}

.st-fab-btn[data-kind="text"]:hover {
    box-shadow: 0 18px 40px rgba(108, 92, 231, 0.5);
}

/* ==========================================================================
   Status Viewer
   ========================================================================== */
#StatusViewerModule {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(108, 92, 231, 0.18) 0%, transparent 55%),
        var(--st-surface-strong);
    z-index: 1040;
}

.st-progress {
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 4px;
    z-index: 99;
}

progress.st-seg {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

progress.st-seg::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

progress.st-seg::-webkit-progress-value {
    background: #fff;
    border-radius: 999px;
    transition: width 0.1s linear;
}

progress.st-seg::-moz-progress-bar {
    background: #fff;
    border-radius: 999px;
}

.st-view-header {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.st-view-header .st-view-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    overflow: hidden;
}

.st-view-header .st-view-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-view-name {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.st-view-time {
    font-size: 0.72rem;
    opacity: 0.75;
}

.st-view-close,
.st-view-more {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.2s;
    cursor: pointer;
}

.st-view-close:hover,
.st-view-more:hover {
    background: rgba(255, 255, 255, 0.16);
}

.st-view-media {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.st-view-media img,
.st-view-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.st-view-text {
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.35;
    text-align: center;
    padding: 1rem;
    word-break: break-word;
}

.st-view-caption {
    padding: 2.2rem 1rem 1rem;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ── Shared product card (statuses created from the Shops storefront) ── */
.st-view-media-col {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.st-view-media-col .st-view-text {
    font-size: 1.15rem;
    padding: 0;
}

.st-product {
    display: flex;
    flex-direction: column;
    width: min(330px, 86vw);
    max-height: calc(100dvh - 150px);
    overflow: hidden;
    border-radius: var(--st-radius-md);
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-lg);
    color: var(--st-text);
    text-decoration: none;
    transition: transform var(--st-transition), box-shadow var(--st-transition);
}

.st-product:hover,
.st-product:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(16, 20, 34, 0.34);
    color: var(--st-text);
    outline: none;
}

.st-product-thumb {
    flex: 0 0 auto;
    display: block;
    height: var(--st-thumb-h, 132px);
    overflow: hidden;
    background:
        radial-gradient(90% 80% at 50% 15%, rgba(108, 92, 231, 0.16), transparent 70%),
        rgba(16, 20, 34, 0.06);
}

/* Beats `.st-view-media img` (which caps media at 100% and adds a shadow) */
.st-view-media .st-product .st-product-thumb img {
    display: block;
    width: 100%;
    height: var(--st-thumb-h, 132px);
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

@media (max-height: 560px) {
    .st-product {
        --st-thumb-h: 100px;
    }
}

.st-product-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem 1rem;
}

.st-product-kicker {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--st-accent);
}

.st-product-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.st-product-price {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.st-product-lprice {
    font-size: 0.78rem;
    color: var(--st-text-muted);
}

.st-product-buy {
    display: block;
    margin-top: 0.35rem;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: var(--st-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 14px 28px -16px rgba(108, 92, 231, 0.85);
    transition: filter var(--st-transition);
}

.st-product:hover .st-product-buy {
    filter: brightness(1.08);
}

.st-cmt {
    cursor: pointer;
    transition: transform var(--st-transition), backdrop-filter 0.2s;
}

.st-cmt:hover {
    transform: scale(1.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Comment form inside viewer */
.st-cmt-form {
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    box-shadow: var(--st-shadow-lg);
}

/* ==========================================================================
   Composer (csiModal)
   ========================================================================== */
#csiModal {
    z-index: 1055;
    background:
        radial-gradient(130% 100% at 50% 0%, rgba(0, 206, 201, 0.16) 0%, transparent 60%),
        var(--st-surface-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.st-composer-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.st-composer-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--st-text);
}

.st-composer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
}

.st-composer-body img {
    max-height: 76vh;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: var(--st-shadow-lg);
}

.st-composer-body video {
    max-height: 78vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.st-composer-foot {
    padding: 0.85rem;
    background: var(--st-surface);
    border-top: 1px solid var(--st-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.st-composer-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 22px;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
}

.st-composer-bar textarea {
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--st-text);
    flex: 1;
    max-height: 90px;
}

.st-composer-priv,
.st-composer-send {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--st-gradient-soft);
    color: var(--st-text);
    transition: all var(--st-transition);
    cursor: pointer;
}

.st-composer-priv:hover {
    color: var(--st-accent);
    transform: scale(1.06);
}

.st-composer-send {
    background: var(--st-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.st-composer-send:hover {
    transform: scale(1.06);
}

/* Audio composer tile */
.st-audio-tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-sm);
}

.st-audio-tile .st-audio-play {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--st-gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
    cursor: pointer;
    transition: transform var(--st-transition);
}

.st-audio-tile .st-audio-play:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   Text status composer (modal template)
   ========================================================================== */
.st-text-composer {
    border-radius: var(--st-radius-lg) !important;
    overflow: hidden;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: var(--st-shadow-lg);
}

.st-text-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
}

.st-text-toolbar .st-text-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--st-text);
}

.st-text-toolbar .icon {
    font-size: 1.1rem;
}

.st-text-palette {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    background: var(--st-gradient-soft);
    color: var(--st-text);
    cursor: pointer;
    transition: transform var(--st-transition);
}

.st-text-palette:hover {
    transform: rotate(24deg) scale(1.08);
}

.st-text-area {
    color: var(--st-text) !important;
    caret-color: var(--st-accent);
}

.st-text-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
}

/* ==========================================================================
   Comments modal
   ========================================================================== */
.st-comments {
    display: grid;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.st-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 14px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
}

.st-comment .st-comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--st-gradient-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.st-comment .st-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Misc / Animations
   ========================================================================== */
@keyframes st-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.st-loading {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 40vh;
    color: var(--st-text-muted);
}

.st-enter {
    animation: st-fade-up 0.32s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}

/* Keep the raw graddle progress styles from overriding the viewer */
section#statusViewProgress progress.st-seg {
    flex: 1;
}

/* WhatsApp-inspired updates list: quiet surfaces, clear grouping, green actions. */
:root {
    --st-accent: #00a884;
    --st-accent-2: #25d366;
    --st-gradient: linear-gradient(135deg, #00a884 0%, #25d366 100%);
    --st-gradient-soft: linear-gradient(135deg, rgba(0, 168, 132, 0.15) 0%, rgba(37, 211, 102, 0.1) 100%);
    --st-surface: #ffffff;
    --st-surface-strong: #ffffff;
    --st-border: rgba(17, 27, 33, 0.1);
    --st-text: #111b21;
    --st-text-muted: #667781;
    --st-ring-unseen: #00a884;
    --st-ring-seen: #8696a0;
    --st-ring-gap: #ffffff;
    --st-shadow-sm: none;
    --st-shadow-lg: 0 8px 24px rgba(17, 27, 33, 0.12);
    --st-radius-sm: 0;
    --st-radius-md: 0;
    --st-radius-lg: 8px;
}

[data-bs-theme="dark"] {
    --st-surface: #111b21;
    --st-surface-strong: #202c33;
    --st-border: rgba(233, 237, 239, 0.1);
    --st-text: #e9edef;
    --st-text-muted: #8696a0;
    --st-ring-gap: #111b21;
}

body {
    background: var(--st-surface);
    color: var(--st-text);
}

.st-header {
    background: var(--st-surface-strong);
    border-bottom: 1px solid var(--st-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.st-header-inner {
    min-height: 64px;
    padding-top: 0.2rem;
}

.st-brand {
    gap: 0.8rem;
}

.st-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--st-gradient);
    box-shadow: none;
}

.st-brand-title {
    font-family: inherit;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: 0;
}

.st-brand-sub {
    color: var(--st-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
}

.st-tabs {
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--st-border);
}

.st-tab,
.st-tab:hover,
.st-tab[active] {
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--st-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.st-tab[active] {
    color: var(--st-accent);
    box-shadow: inset 0 -4px 0 -1px var(--st-accent);
}

.slist {
    display: block !important;
    background: var(--st-surface);
}

.slist.d-grid {
    display: block !important;
}

/* Let the tab switcher actually hide inactive sections
   (higher specificity than the .slist display override above). */
.slist.d-none {
    display: none !important;
}

.slist::before {
    display: block;
    padding: 1.05rem 1rem 0.45rem;
    color: var(--st-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

#self_statuses::before {
    content: "My status";
}

#latest_statuses::before {
    content: "Recent updates";
}

#recent_statuses::before {
    content: "Viewed updates";
}

.st-card,
.st-self-row {
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--st-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
}

.st-card {
    display: flex;
    width: 100%;
}

.st-card:hover,
.st-self-row:hover {
    transform: none;
    background: color-mix(in srgb, var(--st-accent) 5%, var(--st-surface));
    box-shadow: none;
}

.st-card>.user-id.d-flex.flex-column,
.st-self-row>.user-id.d-flex.flex-column {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 0.85rem !important;
    width: 100%;
}

.st-avatar-wrap {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.st-avatar {
    width: 48px;
    height: 48px;
    background: var(--st-gradient-soft);
    border: 0;
    font-size: 1.2rem;
}

.st-ring {
    inset: -2px;
}

.st-card-name,
.st-self-name {
    width: auto;
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--st-text);
}

.st-card-name:empty::after {
    content: "Contact";
    color: var(--st-text);
}

.st-self-name:empty::after {
    content: "My status";
    color: var(--st-text);
}

.st-card-count {
    position: absolute;
    top: -2px;
    right: -4px;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid var(--st-surface);
    border-radius: 999px;
    background: var(--st-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(17, 27, 33, 0.2);
}

.st-type-badge {
    width: 56px;
    height: 56px;
    border: 0;
    background: var(--st-gradient-soft);
    color: var(--st-accent);
}

.st-actions {
    margin-left: auto;
}

.st-action:hover {
    color: var(--st-accent);
    background: transparent;
}

.st-fab {
    right: 1rem;
    bottom: calc(var(--fbh) + 1rem);
    gap: 0.65rem;
}

.st-fab-btn {
    width: 48px;
    height: 48px;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    box-shadow: 0 3px 12px rgba(17, 27, 33, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.st-fab-btn[data-kind="text"] {
    background: var(--st-accent);
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
}

.st-fab-btn::after {
    display: none;
}

@media (max-width: 480px) {
    .st-tab {
        font-size: 0.76rem;
    }

    .st-card,
    .st-self-row {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}