        /* Marka accent: açık = siyah · koyu = beyaz */
        :root {
            --anca-accent: 10 10 10;
            --anca-accent-hover: 39 39 42;
            --anca-on-accent: 255 255 255;
            --anca-left-rail: 260px;
            --anca-verified-bg: #0a0a0a;
            --anca-verified-fg: #ffffff;
        }
        .dark {
            --anca-accent: 255 255 255;
            --anca-accent-hover: 228 228 231;
            --anca-on-accent: 10 10 10;
            --anca-verified-bg: #fafafa;
            --anca-verified-fg: #0a0a0a;
        }

        /* Onaylı hesap — Meta tarzı rozet (açık: siyah, koyu: beyaz) */
        .anca-verified {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            border-radius: 999px;
            background: var(--anca-verified-bg);
            color: var(--anca-verified-fg);
            flex-shrink: 0;
            line-height: 1;
            vertical-align: middle;
            box-shadow: 0 0 0 1px rgb(0 0 0 / 6%);
        }
        .anca-verified i {
            font-size: 8px;
            line-height: 1;
            transform: translateY(0.5px);
        }
        .anca-verified--sm {
            width: 13px;
            height: 13px;
        }
        .anca-verified--sm i {
            font-size: 7px;
        }
        .anca-verified--lg {
            width: 18px;
            height: 18px;
        }
        .anca-verified--lg i {
            font-size: 10px;
        }

        /* Profil avatarları — HiDPI'da yumuşak/piksel görünümü azalt */
        .anca-avatar {
            object-fit: cover;
            object-position: center;
            flex-shrink: 0;
            background: #e4e4e7;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            transform: translateZ(0);
            image-rendering: -webkit-optimize-contrast;
            image-rendering: high-quality;
        }
        .dark .anca-avatar {
            background: #27272a;
        }
        .anca-avatar--feed {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 0.75rem;
        }
        @media (min-width: 768px) {
            .anca-avatar--feed {
                width: 3rem;
                height: 3rem;
                border-radius: 0.9rem;
            }
        }
        .anca-avatar--profile {
            width: 5rem;
            height: 5rem;
            border-radius: 1rem;
        }
        @media (min-width: 768px) {
            .anca-avatar--profile {
                width: 6rem;
                height: 6rem;
                border-radius: 1.15rem;
            }
        }
        .anca-avatar--sm {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.65rem;
        }
        .anca-avatar--xs {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 0.45rem;
        }

        html, body {
            margin: 0;
            padding: 0;
            touch-action: manipulation;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        /* iOS: input focus zoom engeli (16px altı otomatik yakınlaştırır) */
        @media (max-width: 767px) {
            input,
            textarea,
            select,
            .anca-dm-search input,
            .anca-dm-composer textarea,
            #threadMessageInput,
            #inlineComposerText,
            #detailReplyTextarea,
            #mobileSearchInput,
            #messagesSearchInput,
            #newMessageUserSearch,
            #drawerLafSearchInput,
            #authLoginInput,
            #authLoginPassword,
            #authRegName,
            #authRegHandle,
            #authRegEmail,
            #authRegPassword,
            #authRegPassword2,
            #modalComposeTextarea,
            #modalLafInput,
            #editProfileName,
            #editProfileHandle,
            #editProfileRole,
            #editProfileBio {
                font-size: 16px !important;
            }
        }

        /* Sol menü: header altında, tam solda */
        .anca-left-rail {
            position: fixed;
            top: 4rem; /* header h-16 */
            left: 0;
            bottom: 0;
            width: var(--anca-left-rail);
            z-index: 30;
            background: #fff;
            border-right: 1px solid #e5e7eb;
        }
        .dark .anca-left-rail {
            background: rgb(24 24 27);
            border-right-color: rgb(39 39 42);
        }
        .anca-left-rail-scroll {
            scrollbar-width: thin;
        }
        @media (min-width: 1024px) {
            body.has-left-rail .anca-shell-pad,
            body.has-left-rail #guestBanner {
                margin-left: var(--anca-left-rail);
            }
            /* Header tam genişlik — logo en solda */
            body.has-left-rail > header .anca-shell-inner {
                max-width: none;
                margin-left: 0;
                margin-right: 0;
                padding-left: 1.25rem;
                padding-right: 1.25rem;
            }
            body.has-left-rail #guestBanner .anca-shell-inner,
            body.has-left-rail main .anca-shell-inner {
                max-width: 1280px;
                margin-left: auto;
                margin-right: auto;
            }
        }
        .left-nav-item.is-active {
            background: #f4f4f5;
            color: #18181b;
            font-weight: 600;
        }
        .dark .left-nav-item.is-active {
            background: rgb(39 39 42);
            color: #fff;
        }
        .left-rail-profile.is-active {
            background: #f4f4f5;
        }
        .dark .left-rail-profile.is-active {
            background: rgb(39 39 42);
        }
        /* Botlar okusun, görsel UI’yi bozmasın */
        #ancaSeoContent.sr-only {
            position: absolute !important;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        body.post-detail-open #mobileBottomNav {
            display: none !important;
        }
        body.is-guest [data-auth-only] {
            display: none !important;
        }
        body.is-member [data-guest-only] {
            display: none !important;
        }
        #globalSearchResults:not([hidden]) {
            display: block;
        }
        #globalSearchResults button {
            width: 100%;
            text-align: left;
        }
        body {
            font-family: 'Inter', sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        /* Mobilde header üst boşluğunu engelle */
        body > header {
            position: sticky;
            top: 0;
            margin: 0;
        }
        /* SUXS 1.0 Klavye Erişilebilirlik Halkası (:focus-visible) */
        button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
            outline: 2px solid rgb(var(--anca-accent));
            outline-offset: 2px;
        }
        /* İnce Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(161, 161, 170, 0.25);
            border-radius: 3px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgb(var(--anca-accent) / 0.45);
        }

        /* Bildirim paneli — kaymasız sabit konum */
        html {
            scrollbar-gutter: stable;
        }
        body.notif-lock {
            overflow: hidden !important;
            overscroll-behavior: none;
            touch-action: manipulation;
        }
        .notif-backdrop {
            position: fixed;
            inset: 0;
            z-index: 60;
            background: transparent;
            opacity: 0;
            transition: opacity 140ms ease;
            pointer-events: none;
        }
        .notif-backdrop.is-open {
            opacity: 1;
            pointer-events: auto;
        }
        .notif-panel {
            position: fixed;
            z-index: 70;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            width: min(380px, calc(100vw - 2rem));
            max-width: calc(100vw - 2rem);
            background: #fff;
            border: 1px solid #e4e4e7;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transition: opacity 140ms ease;
        }
        .dark .notif-panel {
            background: #121216;
            border-color: #24242c;
        }
        .notif-panel.is-open {
            opacity: 1;
            pointer-events: auto;
        }
        .notif-mobile-back {
            display: none;
        }
        .notif-panel-header {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #e4e4e7;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            flex-shrink: 0;
        }
        .dark .notif-panel-header {
            border-bottom-color: #24242c;
        }
        .notif-panel-tabs {
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid #f4f4f5;
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 0.375rem;
            flex-shrink: 0;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scrollbar-width: none;
        }
        .notif-panel-tabs::-webkit-scrollbar {
            display: none;
        }
        .dark .notif-panel-tabs {
            border-bottom-color: #24242c;
        }
        .notif-panel-tabs .notif-tab-btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }
        .notif-panel-list {
            flex: 1 1 auto;
            min-height: 0;
            min-width: 0;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }
        .notif-panel-list > * + * {
            border-top: 1px solid #f4f4f5;
        }
        .dark .notif-panel-list > * + * {
            border-top-color: #24242c;
        }
        .notif-panel-list button {
            max-width: 100%;
            box-sizing: border-box;
        }

        /* Mobil: bildirimler normal sekme (#view-notifications) — popover kapalı */
        @media (max-width: 767px) {
            .notif-backdrop,
            .notif-panel {
                display: none !important;
                pointer-events: none !important;
                opacity: 0 !important;
            }
        }

        /* Masaüstü: zil altına hizalanan popover (left/top JS ile) */
        @media (min-width: 768px) {
            .notif-panel {
                max-height: min(70vh, 520px);
                border-radius: 1rem;
            }
            .notif-backdrop.is-open {
                /* tıklanınca kapatmak için görünmez hit-area */
                pointer-events: auto;
            }
        }

        /* Mobil Threads nav + drawers */
        .mobile-pill-btn.is-active {
            background: rgba(0, 0, 0, 0.08);
            color: #18181b;
        }
        .dark .mobile-pill-btn.is-active {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }
        .no-scrollbar {
            scrollbar-width: none;
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        #feedsDrawer.is-open {
            transform: translateX(0);
        }
        #feedsDrawerBackdrop.is-open {
            opacity: 1;
        }
        #newMessageSheet.is-open {
            transform: translateY(0);
        }
        #newMessageBackdrop.is-open {
            opacity: 1;
        }

        /* Gündem / sorular: mobilde her sayfanın altında görünmesin */
        @media (max-width: 1023px) {
            #rightContextColumn {
                display: none !important;
            }
        }

        /* Tailwind build'de lg:col-span-12 yok — yan sütun kapalıyken ana alan tam genişlik */
        @media (min-width: 1024px) {
            #mainContentColumn.is-wide {
                grid-column: 1 / -1;
            }
        }

        /* İstatistik metrik kartları: etiket + değer ayrımı */
        #view-stats .stats-metric {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            min-width: 0;
        }
        #view-stats .stats-metric-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #71717a;
            line-height: 1.25;
            word-break: break-word;
        }
        #view-stats .stats-metric-value {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.2;
            color: #18181b;
        }
        .dark #view-stats .stats-metric-value {
            color: #fff;
        }
        #view-stats .stats-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.75rem;
        }
        #view-stats .stats-row-label {
            min-width: 0;
            flex: 1 1 auto;
            color: #71717a;
            line-height: 1.35;
        }
        #view-stats .stats-row-value {
            flex: 0 0 auto;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-weight: 600;
            color: #18181b;
        }
        .dark #view-stats .stats-row-value {
            color: #fff;
        }

        /* ===== DM SHELL (Instagram/Threads tarzı) ===== */
        body.dm-open #guestBanner,
        body.dm-open #rightContextColumn {
            display: none !important;
        }
        body.dm-open main.anca-shell-pad {
            padding-top: 0;
            padding-bottom: 0;
        }
        body.dm-open main .anca-shell-inner {
            max-width: none;
            padding-left: 0;
            padding-right: 0;
        }
        body.dm-open main .lg\:grid-cols-12 {
            display: block;
        }
        body.dm-open #view-messages {
            margin: 0;
        }

        .anca-dm-shell {
            display: grid;
            grid-template-columns: 1fr;
            background: #fff;
            min-height: calc(100dvh - 3.5rem);
            border: none;
        }
        .dark .anca-dm-shell {
            background: #09090b;
        }
        @media (min-width: 768px) {
            .anca-dm-shell {
                grid-template-columns: minmax(300px, 360px) 1fr;
                min-height: calc(100dvh - 4rem);
                border-top: 1px solid #e4e4e7;
            }
            .dark .anca-dm-shell {
                border-top-color: #27272a;
            }
            body.has-left-rail.dm-open .anca-dm-shell {
                min-height: calc(100dvh - 4rem);
            }
        }

        .anca-dm-inbox {
            display: flex;
            flex-direction: column;
            min-height: 0;
            border-right: 1px solid transparent;
            background: #fff;
        }
        .dark .anca-dm-inbox {
            background: #09090b;
        }
        @media (min-width: 768px) {
            .anca-dm-inbox {
                border-right-color: #e4e4e7;
            }
            .dark .anca-dm-inbox {
                border-right-color: #27272a;
            }
        }

        .anca-dm-inbox-head {
            padding: 1rem 1rem 0.75rem;
            position: sticky;
            top: 0;
            z-index: 5;
            background: inherit;
        }
        .anca-dm-title {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            color: #18181b;
        }
        .dark .anca-dm-title { color: #fff; }

        .anca-dm-icon-btn {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #18181b;
            background: transparent;
            border: 0;
            transition: background 140ms ease;
        }
        .anca-dm-icon-btn:hover { background: #f4f4f5; }
        .dark .anca-dm-icon-btn { color: #fafafa; }
        .dark .anca-dm-icon-btn:hover { background: #27272a; }

        .anca-dm-search {
            margin-top: 0.85rem;
            position: relative;
        }
        .anca-dm-search i {
            position: absolute;
            left: 0.9rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.7rem;
            color: #a1a1aa;
        }
        .anca-dm-search input {
            width: 100%;
            height: 2.5rem;
            border-radius: 9999px;
            border: 0;
            background: #f4f4f5;
            padding: 0 1rem 0 2.35rem;
            font-size: 0.875rem;
            color: #18181b;
            outline: none;
        }
        .dark .anca-dm-search input {
            background: #18181b;
            color: #fafafa;
        }

        .anca-dm-pills {
            display: flex;
            gap: 0.5rem;
            overflow-x: auto;
            margin-top: 0.85rem;
            padding-bottom: 0.15rem;
            scrollbar-width: none;
        }
        .anca-dm-pills::-webkit-scrollbar { display: none; }
        .anca-dm-pills button {
            flex: 0 0 auto;
            height: 2rem;
            padding: 0 0.9rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            border: 1px solid #e4e4e7;
            background: transparent;
            color: #52525b;
        }
        .anca-dm-pills button.is-on {
            background: #e4e4e7;
            border-color: transparent;
            color: #18181b;
        }
        .dark .anca-dm-pills button {
            border-color: #3f3f46;
            color: #a1a1aa;
        }
        .dark .anca-dm-pills button.is-on {
            background: #27272a;
            color: #fff;
        }

        .anca-dm-inbox-scroll {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }

        .anca-dm-section-label {
            padding: 0.75rem 1rem 0.35rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: #18181b;
        }
        .dark .anca-dm-section-label { color: #fafafa; }

        .anca-dm-empty {
            text-align: center;
            padding: 3.5rem 1.5rem;
        }
        .anca-dm-empty-icon {
            width: 4.25rem;
            height: 4.25rem;
            margin: 0 auto 1rem;
            border-radius: 9999px;
            background: #f4f4f5;
            color: #71717a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
        }
        .anca-dm-empty-icon.lg {
            width: 5.5rem;
            height: 5.5rem;
            font-size: 2rem;
        }
        .dark .anca-dm-empty-icon { background: #18181b; color: #a1a1aa; }
        .anca-dm-empty h3,
        .anca-dm-chat-placeholder h3 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #18181b;
        }
        .dark .anca-dm-empty h3,
        .dark .anca-dm-chat-placeholder h3 { color: #fff; }
        .anca-dm-empty p,
        .anca-dm-chat-placeholder p {
            margin: 0.5rem auto 0;
            max-width: 16rem;
            font-size: 0.875rem;
            line-height: 1.45;
            color: #71717a;
        }
        .anca-dm-primary-btn {
            margin-top: 1.25rem;
            height: 2.75rem;
            padding: 0 1.25rem;
            border-radius: 0.85rem;
            background: #18181b;
            color: #fff;
            font-size: 0.875rem;
            font-weight: 700;
            border: 0;
        }
        .dark .anca-dm-primary-btn {
            background: #fff;
            color: #18181b;
        }

        .anca-dm-conv-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.85rem 1rem;
            text-align: left;
            border: 0;
            background: transparent;
            transition: background 120ms ease;
        }
        .anca-dm-conv-item:hover,
        .anca-dm-conv-item.is-active {
            background: #f4f4f5;
        }
        .dark .anca-dm-conv-item:hover,
        .dark .anca-dm-conv-item.is-active {
            background: #18181b;
        }
        .anca-dm-conv-item img {
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 9999px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .anca-dm-conv-meta { min-width: 0; flex: 1; }
        .anca-dm-conv-top {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.5rem;
        }
        .anca-dm-conv-name {
            font-size: 0.9rem;
            font-weight: 700;
            color: #18181b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .anca-dm-conv-name { color: #fafafa; }
        .anca-dm-conv-time {
            font-size: 0.7rem;
            color: #a1a1aa;
            flex-shrink: 0;
        }
        .anca-dm-conv-preview {
            margin-top: 0.15rem;
            font-size: 0.8rem;
            color: #71717a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .anca-dm-conv-preview.unread {
            color: #18181b;
            font-weight: 600;
        }
        .dark .anca-dm-conv-preview.unread { color: #fafafa; }
        .anca-dm-unread-dot {
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 9999px;
            background: rgb(var(--anca-accent));
            flex-shrink: 0;
        }

        .anca-dm-suggest-row {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border: 0;
            background: transparent;
            text-align: left;
        }
        .anca-dm-suggest-row img {
            width: 2.85rem;
            height: 2.85rem;
            border-radius: 9999px;
            object-fit: cover;
        }
        .anca-dm-suggest-cta {
            height: 2rem;
            padding: 0 0.75rem;
            border-radius: 0.55rem;
            background: #18181b;
            color: #fff;
            font-size: 0.7rem;
            font-weight: 700;
            border: 0;
            flex-shrink: 0;
        }
        .dark .anca-dm-suggest-cta {
            background: #fff;
            color: #18181b;
        }

        .anca-dm-chat {
            position: relative;
            min-height: 0;
            display: none;
            flex-direction: column;
            background: #fff;
        }
        .dark .anca-dm-chat { background: #09090b; }

        .anca-dm-chat-placeholder {
            display: none;
            flex: 1;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 2rem;
        }

        .anca-dm-chat-active {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
            height: 100%;
        }
        .anca-dm-chat-active.hidden { display: none !important; }

        .anca-dm-chat-head {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.65rem 0.75rem;
            border-bottom: 1px solid #e4e4e7;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(12px);
            position: sticky;
            top: 0;
            z-index: 6;
        }
        .dark .anca-dm-chat-head {
            border-bottom-color: #27272a;
            background: rgba(9,9,11,0.92);
        }
        .anca-dm-peer {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 0.65rem;
            border: 0;
            background: transparent;
            text-align: left;
            padding: 0.15rem 0.25rem;
            border-radius: 0.75rem;
        }
        .anca-dm-peer:hover { background: #f4f4f5; }
        .dark .anca-dm-peer:hover { background: #18181b; }
        .anca-dm-peer img {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 9999px;
            object-fit: cover;
        }
        .anca-dm-peer-name {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            color: #18181b;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .anca-dm-peer-name { color: #fff; }
        .anca-dm-peer-handle {
            display: block;
            font-size: 0.7rem;
            color: #71717a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .anca-dm-chat-body {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            padding: 1rem 0.9rem 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            background: #fafafa;
            -webkit-overflow-scrolling: touch;
        }
        .dark .anca-dm-chat-body {
            background: #09090b;
        }

        .anca-dm-day {
            align-self: center;
            margin: 0.65rem 0 0.85rem;
            font-size: 0.7rem;
            font-weight: 600;
            color: #a1a1aa;
            letter-spacing: 0.02em;
        }

        .anca-dm-row {
            display: flex;
            align-items: flex-end;
            gap: 0.35rem;
            width: 100%;
        }
        .anca-dm-row.mine { justify-content: flex-end; }
        .anca-dm-row.theirs { justify-content: flex-start; }
        .anca-dm-row img.avatar {
            width: 1.15rem;
            height: 1.15rem;
            border-radius: 9999px;
            object-fit: cover;
            flex-shrink: 0;
        }
        .anca-dm-row > span[aria-hidden] {
            width: 1.15rem;
            flex-shrink: 0;
        }
        .anca-dm-stack {
            display: flex;
            flex-direction: column;
            max-width: 17rem;
            min-width: 0;
        }
        .anca-dm-row.mine .anca-dm-stack { align-items: flex-end; }
        .anca-dm-row.theirs .anca-dm-stack { align-items: flex-start; }
        @media (min-width: 768px) {
            .anca-dm-stack { max-width: 20rem; }
        }
        .anca-dm-bubble {
            display: inline-block;
            width: max-content;
            max-width: 100%;
            box-sizing: border-box;
            padding: 0.45rem 0.75rem;
            font-size: 0.875rem;
            line-height: 1.35;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            background: #fff;
            color: #18181b;
            border: 1px solid #e8e8ea;
            border-radius: 0.85rem;
        }
        .anca-dm-bubble.mine {
            border-radius: 0.85rem 0.85rem 0.25rem 0.85rem;
        }
        .anca-dm-bubble.theirs {
            border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
        }
        .dark .anca-dm-bubble,
        .dark .anca-dm-bubble.mine,
        .dark .anca-dm-bubble.theirs {
            background: #18181b;
            color: #f4f4f5;
            border-color: #3f3f46;
        }
        .anca-dm-bubble-time {
            margin-top: 0.15rem;
            padding: 0 0.2rem;
            font-size: 0.65rem;
            line-height: 1;
            color: #a1a1aa;
        }

        .anca-dm-composer {
            padding: 0.55rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
            border-top: 1px solid #e4e4e7;
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(12px);
        }
        .dark .anca-dm-composer {
            border-top-color: #27272a;
            background: rgba(9,9,11,0.96);
        }
        @media (max-width: 767px) {
            .anca-dm-composer {
                padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
            }
            body.dm-thread-open .anca-dm-composer {
                padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
            }
            body.dm-thread-open #mobileBottomNav {
                display: none !important;
            }
        }
        .anca-dm-composer-inner {
            display: flex;
            align-items: flex-end;
            gap: 0.5rem;
            background: #f4f4f5;
            border-radius: 1.5rem;
            padding: 0.35rem 0.35rem 0.35rem 0.9rem;
        }
        .dark .anca-dm-composer-inner { background: #18181b; }
        .anca-dm-composer-inner textarea {
            flex: 1;
            border: 0;
            background: transparent;
            resize: none;
            outline: none;
            max-height: 7.5rem;
            min-height: 1.5rem;
            padding: 0.45rem 0;
            font-size: 0.9rem;
            line-height: 1.35;
            color: #18181b;
        }
        .dark .anca-dm-composer-inner textarea { color: #fafafa; }
        .anca-dm-send {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 9999px;
            border: 0;
            background: #18181b;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .dark .anca-dm-send {
            background: #fff;
            color: #18181b;
        }
        .anca-dm-send:disabled {
            opacity: 0.35;
        }

        /* Mobil: liste veya sohbet tam ekran */
        @media (max-width: 767px) {
            .anca-dm-shell.dm-mode-list .anca-dm-inbox { display: flex; }
            .anca-dm-shell.dm-mode-list .anca-dm-chat { display: none; }
            .anca-dm-shell.dm-mode-thread .anca-dm-inbox { display: none; }
            .anca-dm-shell.dm-mode-thread .anca-dm-chat { display: flex; }
            body.dm-open.dm-thread-open > header.md\:hidden {
                display: none !important;
            }
            /* Liste modu: site header altında sabit kabuk; kaydırma yalnızca sohbet listesinde */
            body.dm-open:not(.dm-thread-open) .anca-dm-shell {
                position: fixed;
                top: 3.5rem;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 40;
                min-height: 0;
                height: auto;
            }
            body.dm-open:not(.dm-thread-open) .anca-dm-inbox {
                height: 100%;
                max-height: 100%;
                overflow: hidden;
            }
            body.dm-open:not(.dm-thread-open) .anca-dm-inbox-head {
                position: sticky;
                top: 0;
                z-index: 6;
                background: #fff;
            }
            .dark body.dm-open:not(.dm-thread-open) .anca-dm-inbox-head {
                background: #09090b;
            }
            body.dm-open:not(.dm-thread-open) {
                overflow: hidden;
            }
            body.dm-thread-open .anca-dm-shell {
                min-height: 100dvh;
                position: fixed;
                inset: 0;
                z-index: 45;
            }
        }
        @media (min-width: 768px) {
            .anca-dm-inbox { display: flex !important; }
            .anca-dm-chat { display: flex !important; }
            .anca-dm-shell.dm-mode-list #dmChatPlaceholder { display: flex; }
            .anca-dm-shell.dm-mode-list #dmChatActive.hidden + #dmChatPlaceholder,
            .anca-dm-shell.dm-mode-list #dmChatPlaceholder { display: flex; }
            .anca-dm-shell.dm-mode-thread #dmChatPlaceholder { display: none; }
        }

        @media (max-width: 767px) {
            main.anca-shell-pad {
                padding-top: 0.75rem;
            }
            body.dm-open main.anca-shell-pad {
                padding-top: 0;
            }
        }
