        :root {
            --bg: #0a0a0f;
            --bg-card: #111118;
            --bg-hover: #16161f;
            --bg-chat: #1a1a26;
            --border: #1e1e2a;
            --border-hover: #2a2a3a;
            --accent: #d4a84a;
            --accent-dim: rgba(212, 168, 74, .12);
            --text: #e8e6e3;
            --text-muted: #8888a0;
            --text-dim: #555568;
            --success: #22c55e;
            --danger: #ef4444;
            --radius: 12px;
            --radius-sm: 8px;
            --header-h: 60px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Noto Sans JP', sans-serif;
            background: var(--bg);
            color: var(--text);
            height: 100vh;
            overflow: hidden;
        }

        /* Layout */
        .msg-app {
            display: flex;
            height: calc(100vh - var(--header-h));
            margin-top: var(--header-h);
        }

        .msg-sidebar {
            width: 360px;
            min-width: 300px;
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            background: var(--bg);
        }

        .msg-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--bg-card);
        }

        .sidebar-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 800;
            flex: 1;
        }

        .btn-new-dm {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--accent);
            border: none;
            color: #000;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s;
        }

        .btn-new-dm:hover {
            transform: scale(1.1);
        }

        /* Search */
        .sidebar-search {
            padding: 8px 16px;
            border-bottom: 1px solid var(--border);
        }

        .search-input {
            width: 100%;
            padding: 10px 14px 10px 36px;
            background: var(--bg-chat);
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text);
            font-size: 13px;
            outline: none;
            transition: border-color .2s;
        }

        .search-input:focus {
            border-color: var(--accent);
        }

        .search-wrap {
            position: relative;
        }

        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 14px;
            pointer-events: none;
        }

        /* Conv list */
        .conv-list {
            flex: 1;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(212, 168, 74, .2) transparent;
        }

        .conv-list::-webkit-scrollbar {
            width: 4px;
        }

        .conv-list::-webkit-scrollbar-thumb {
            background: rgba(212, 168, 74, .2);
            border-radius: 2px;
        }

        .conv-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            transition: background .15s;
            border-bottom: 1px solid rgba(30, 30, 42, .5);
        }

        .conv-item:hover {
            background: var(--bg-hover);
        }

        .conv-item.active {
            background: rgba(212, 168, 74, .08);
            border-left: 3px solid var(--accent);
        }

        .conv-item.has-unread .conv-name {
            font-weight: 700;
        }

        .conv-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3a3a5c, #2a2a4a);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: var(--accent);
            flex-shrink: 0;
        }

        .conv-info {
            flex: 1;
            min-width: 0;
        }

        .conv-name {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .conv-preview {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .conv-meta {
            text-align: right;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .conv-date {
            font-size: 10px;
            color: var(--text-dim);
        }

        .conv-unread {
            min-width: 18px;
            height: 18px;
            line-height: 18px;
            text-align: center;
            background: var(--accent);
            color: #000;
            border-radius: 9px;
            font-size: 10px;
            font-weight: 700;
            padding: 0 5px;
        }

        /* Empty states */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            gap: 12px;
            padding: 40px;
            text-align: center;
        }

        .empty-state svg {
            opacity: .4;
        }

        .empty-state-text {
            font-size: 14px;
        }

        .empty-state-sub {
            font-size: 12px;
            color: var(--text-dim);
        }

        /* Chat header */
        .chat-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            border-bottom: 1px solid var(--border);
            background: rgba(17, 17, 24, .95);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            position: relative;
            z-index: 10;
        }

        .chat-back {
            display: none;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 20px;
            cursor: pointer;
            padding: 4px;
        }

        .chat-header-info {
            flex: 1;
        }

        .chat-header-name {
            font-size: 15px;
            font-weight: 700;
        }

        .chat-header-company {
            font-size: 11px;
            color: var(--text-muted);
        }

        .chat-header-typing {
            font-size: 11px;
            color: var(--accent);
            display: none;
        }

        /* Messages area */
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            scrollbar-width: thin;
            scrollbar-color: rgba(212, 168, 74, .15) transparent;
        }

        .chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(212, 168, 74, .15);
            border-radius: 2px;
        }

        /* Date divider */
        .msg-date-divider {
            text-align: center;
            font-size: 11px;
            color: var(--text-dim);
            padding: 8px 0;
        }

        .msg-date-divider span {
            background: var(--bg-card);
            padding: 2px 12px;
            border-radius: 10px;
            border: 1px solid var(--border);
        }

        /* Bubbles */
        .msg-row {
            display: flex;
            max-width: 75%;
            position: relative;
        }

        .msg-row.sent {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .msg-row.received {
            align-self: flex-start;
        }

        .msg-bubble {
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 14px;
            line-height: 1.6;
            word-break: break-word;
            white-space: pre-wrap;
            position: relative;
        }

        .msg-row.received .msg-bubble {
            background: #1e1e35;
            border-bottom-left-radius: 4px;
        }

        .msg-row.sent .msg-bubble {
            background: rgba(212, 168, 74, .15);
            border-bottom-right-radius: 4px;
        }

        .msg-bubble.deleted {
            opacity: .5;
            font-style: italic;
            color: var(--text-muted);
        }

        .msg-footer {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 3px;
        }

        .msg-row.sent .msg-footer {
            justify-content: flex-end;
        }

        .msg-time {
            font-size: 10px;
            color: var(--text-dim);
        }

        .msg-read-status {
            font-size: 11px;
        }

        .msg-read-status.read {
            color: var(--accent);
        }

        .msg-read-status.unread {
            color: var(--text-dim);
        }

        /* Reply quote */
        .msg-reply-quote {
            padding: 6px 10px;
            margin-bottom: 6px;
            border-left: 3px solid var(--accent);
            background: rgba(255, 255, 255, .04);
            border-radius: 0 6px 6px 0;
            font-size: 12px;
            color: var(--text-muted);
            cursor: pointer;
            max-height: 40px;
            overflow: hidden;
        }

        .msg-reply-quote .reply-name {
            font-weight: 600;
            color: var(--text);
            font-size: 11px;
        }

        /* Reactions */
        .msg-reactions {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 4px;
        }

        .msg-reaction {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 2px 6px;
            background: rgba(255, 255, 255, .06);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all .15s;
        }

        .msg-reaction:hover {
            border-color: var(--accent);
            background: var(--accent-dim);
        }

        .msg-reaction.mine {
            border-color: var(--accent);
            background: var(--accent-dim);
        }

        .msg-reaction-count {
            font-size: 10px;
            color: var(--text-muted);
        }

        /* Reaction picker */
        .reaction-picker {
            display: none;
            position: absolute;
            top: -40px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 4px 6px;
            gap: 2px;
            z-index: 10;
            box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
        }

        .reaction-picker.show {
            display: flex;
        }

        .msg-row.sent .reaction-picker {
            right: 0;
        }

        .msg-row.received .reaction-picker {
            left: 0;
        }

        .reaction-pick {
            font-size: 18px;
            cursor: pointer;
            padding: 4px;
            border-radius: 8px;
            transition: transform .15s;
        }

        .reaction-pick:hover {
            transform: scale(1.3);
            background: rgba(255, 255, 255, .08);
        }

        /* Message actions */
        .msg-actions {
            display: none;
            position: absolute;
            top: -28px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: visible;
            z-index: 10;
            box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
            padding: 2px;
        }

        /* ホバー途切れ防止: 下方向にパディングエリアを追加 */
        .msg-actions::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 0;
            right: 0;
            height: 12px;
        }

        .msg-row:hover .msg-actions {
            display: flex;
        }

        .msg-row.sent .msg-actions {
            left: -4px;
            top: 50%;
            transform: translate(-100%, -50%);
        }

        .msg-row.received .msg-actions {
            right: -4px;
            top: -28px;
        }

        .msg-action-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            padding: 6px 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all .15s;
        }

        .msg-action-btn:hover {
            background: var(--bg-hover);
            color: var(--text);
        }

        /* 削除残り時間ラベル */
        .msg-delete-btn {
            position: relative;
        }

        .delete-timer {
            display: none;
            position: absolute;
            bottom: -16px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 9px;
            color: var(--text-muted);
            white-space: nowrap;
            pointer-events: none;
        }

        .msg-delete-btn:hover .delete-timer {
            display: block;
        }

        /* sent用のホバー途切れ防止: 右方向にパディング */
        .msg-row.sent .msg-actions::after {
            content: '';
            position: absolute;
            top: 0;
            right: -12px;
            width: 12px;
            height: 100%;
            bottom: auto;
            left: auto;
        }

        /* Input area */
        .chat-input-area {
            padding: 12px 20px;
            border-top: 1px solid var(--border);
            background: var(--bg-card);
        }

        .reply-preview {
            display: none;
            padding: 8px 12px;
            margin-bottom: 8px;
            background: rgba(255, 255, 255, .03);
            border-left: 3px solid var(--accent);
            border-radius: 0 8px 8px 0;
            font-size: 12px;
            color: var(--text-muted);
        }

        .reply-preview.show {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .reply-preview-close {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 14px;
        }

        .input-row {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }

        .chat-textarea {
            flex: 1;
            padding: 10px 16px;
            background: var(--bg-chat);
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--text);
            font-size: 14px;
            font-family: inherit;
            outline: none;
            resize: none;
            min-height: 20px;
            max-height: 120px;
            transition: border-color .2s;
            line-height: 1.5;
        }

        .chat-textarea:focus {
            border-color: var(--accent);
        }

        .input-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s;
            flex-shrink: 0;
        }

        .btn-schedule {
            background: rgba(26, 115, 232, .15);
            color: #4a9eff;
            font-size: 16px;
        }

        .btn-schedule:hover {
            background: rgba(26, 115, 232, .25);
        }

        .btn-send {
            background: var(--accent);
            color: #000;
            font-size: 16px;
        }

        .btn-send:hover {
            transform: scale(1.05);
        }

        .btn-send:disabled {
            opacity: .3;
            cursor: not-allowed;
            transform: none;
        }

        /* New DM Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(0, 0, 0, .7);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.show {
            display: flex;
        }

        .modal-box {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            width: 90%;
            max-width: 480px;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: modalIn .2s ease;
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
        }

        .modal-title {
            font-size: 16px;
            font-weight: 700;
        }

        .modal-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 20px;
            cursor: pointer;
        }

        .modal-search {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }

        .modal-search input {
            width: 100%;
            padding: 10px 14px;
            background: var(--bg-chat);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 13px;
            outline: none;
        }

        .modal-list {
            flex: 1;
            overflow-y: auto;
            max-height: 400px;
        }

        .modal-user-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            cursor: pointer;
            transition: background .15s;
        }

        .modal-user-item:hover {
            background: var(--bg-hover);
        }

        .modal-user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3a3a5c, #2a2a4a);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            color: var(--accent);
            flex-shrink: 0;
        }

        .modal-user-name {
            font-size: 14px;
            font-weight: 600;
        }

        .modal-user-company {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Loading / spinner */
        .spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin .6s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            gap: 8px;
            color: var(--text-muted);
            font-size: 13px;
        }

        /* Mobile */
        @media (max-width:768px) {

            /* === App Layout === */
            .msg-app {
                height: calc(100vh - var(--header-h));
                height: calc(100dvh - var(--header-h));
            }

            /* === Sidebar === */
            .msg-sidebar {
                width: 100%;
                min-width: unset;
                border-right: none;
            }

            .sidebar-header {
                padding: 10px 12px;
                gap: 6px;
                flex-wrap: wrap;
            }

            .sidebar-title {
                font-size: 16px;
                flex: 0 0 auto;
            }

            .header-action-buttons {
                gap: 6px;
                flex: 1;
                justify-content: flex-end;
            }

            .action-btn-nav {
                padding: 8px 12px;
                font-size: 12px;
                min-height: 36px;
                border-radius: 18px;
            }

            .sidebar-search {
                padding: 6px 12px;
            }

            .search-input {
                padding: 12px 14px 12px 36px;
                font-size: 14px;
                border-radius: 22px;
            }

            /* === Conversation List === */
            .conv-item {
                padding: 12px;
                gap: 10px;
                min-height: 64px;
            }

            .conv-avatar {
                width: 44px;
                height: 44px;
                font-size: 16px;
            }

            .conv-name {
                font-size: 14px;
            }

            .conv-company {
                font-size: 10px;
            }

            .conv-preview {
                font-size: 12px;
            }

            .conv-date {
                font-size: 9px;
            }

            .conv-unread {
                min-width: 20px;
                height: 20px;
                line-height: 20px;
                font-size: 11px;
            }

            /* === Main Chat === */
            .msg-main {
                display: none;
                position: fixed;
                inset: 0;
                top: var(--header-h);
                z-index: 50;
            }

            .msg-main.active {
                display: flex;
            }

            /* === Chat Header === */
            .chat-header {
                padding: 10px 12px;
                gap: 10px;
            }

            .chat-back {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: rgba(255, 255, 255, .06);
                font-size: 18px;
                transition: background .15s;
            }

            .chat-back:active {
                background: rgba(255, 255, 255, .12);
            }

            .chat-header .conv-avatar {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }

            .chat-header-name {
                font-size: 14px;
            }

            .chat-header-company {
                font-size: 10px;
            }

            .chat-header-profile {
                gap: 3px;
                margin-top: 3px;
            }

            .profile-tag {
                font-size: 10px;
                padding: 1px 6px;
            }

            .chat-header-typing {
                font-size: 10px;
            }

            /* === Messages === */
            .chat-messages {
                padding: 12px 10px;
                gap: 4px;
            }

            .msg-row {
                max-width: 88%;
            }

            .msg-bubble {
                padding: 8px 12px;
                font-size: 14px;
                border-radius: 14px;
            }

            .msg-row.received .msg-bubble {
                border-bottom-left-radius: 3px;
            }

            .msg-row.sent .msg-bubble {
                border-bottom-right-radius: 3px;
            }

            .msg-footer {
                margin-top: 2px;
            }

            .msg-time {
                font-size: 9px;
            }

            .msg-read-status {
                font-size: 10px;
            }

            .msg-date-divider {
                font-size: 10px;
                padding: 6px 0;
            }

            .msg-date-divider span {
                padding: 2px 10px;
                font-size: 10px;
            }

            /* === Message Actions (touch-friendly) === */
            .msg-actions {
                display: none !important;
            }

            .msg-row.touch-active .msg-actions {
                display: flex !important;
                top: auto;
                bottom: -4px;
                transform: translateY(100%);
                left: 0;
                right: auto;
                border-radius: 10px;
                padding: 2px;
            }

            .msg-row.sent.touch-active .msg-actions {
                left: auto;
                right: 0;
                transform: translateY(100%);
            }

            .msg-action-btn {
                padding: 8px 10px;
                font-size: 16px;
                min-width: 40px;
                min-height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            /* === Reaction Picker (mobile) === */
            .reaction-picker {
                border-radius: 24px;
                padding: 6px 8px;
                gap: 4px;
            }

            .reaction-picker.show {
                position: fixed;
                left: 50%;
                transform: translateX(-50%);
                bottom: 100px;
                top: auto;
                z-index: 100;
                box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
            }

            .reaction-pick {
                font-size: 24px;
                padding: 6px 8px;
            }

            /* === Reactions === */
            .msg-reaction {
                padding: 3px 8px;
                font-size: 14px;
            }

            .msg-reaction-count {
                font-size: 11px;
            }

            /* === Reply Quote === */
            .msg-reply-quote {
                padding: 5px 8px;
                font-size: 11px;
                max-height: 36px;
            }

            /* === Input Area === */
            .chat-input-area {
                padding: 8px 10px;
                padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
                border-top: 1px solid var(--border);
            }

            .reply-preview {
                margin-bottom: 6px;
                padding: 6px 10px;
                font-size: 11px;
            }

            .input-row {
                gap: 6px;
            }

            .chat-textarea {
                font-size: 16px;
                padding: 10px 14px;
                border-radius: 22px;
                min-height: 22px;
                max-height: 100px;
                line-height: 1.4;
            }

            .input-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .btn-schedule {
                font-size: 16px;
            }

            /* === Entrepreneur Panel (mobile) === */
            .entrepreneur-panel {
                position: fixed;
                inset: 0;
                top: var(--header-h);
                z-index: 51;
                background: var(--bg-card);
            }

            .entrepreneur-panel-header {
                padding: 12px 14px;
            }

            .entrepreneur-panel-title {
                font-size: 15px;
            }

            .entrepreneur-panel-close {
                width: 36px;
                height: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                font-size: 16px;
            }

            .entrepreneur-cards {
                padding: 12px;
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .entrepreneur-card {
                padding: 14px;
            }

            .entrepreneur-card-header {
                gap: 10px;
                margin-bottom: 8px;
            }

            .entrepreneur-card-avatar {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }

            .entrepreneur-card-name {
                font-size: 13px;
            }

            .entrepreneur-card-company {
                font-size: 11px;
            }

            .entrepreneur-card-tag {
                font-size: 10px;
                padding: 3px 8px;
            }

            .entrepreneur-card-btn {
                padding: 10px;
                font-size: 13px;
                border-radius: 8px;
                min-height: 42px;
            }

            /* === Modals (bottom-sheet on mobile) === */
            .modal-overlay {
                align-items: flex-end;
            }

            .modal-box {
                width: 100%;
                max-width: 100%;
                max-height: 85vh;
                border-radius: 16px 16px 0 0;
                animation: slideUpMobile .25s ease;
                padding-bottom: env(safe-area-inset-bottom, 0px);
            }

            @keyframes slideUpMobile {
                from {
                    transform: translateY(100%);
                    opacity: 0;
                }

                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }

            .modal-header {
                padding: 14px 16px;
            }

            .modal-title {
                font-size: 15px;
            }

            .modal-search input {
                padding: 12px 14px;
                font-size: 14px;
            }

            .modal-user-item {
                padding: 14px 16px;
                gap: 12px;
                min-height: 56px;
            }

            .modal-user-avatar {
                width: 40px;
                height: 40px;
            }

            .modal-user-name {
                font-size: 14px;
            }

            .modal-user-company {
                font-size: 12px;
            }

            /* === Empty States === */
            .empty-state {
                padding: 32px 20px;
            }

            .empty-state svg {
                width: 48px;
                height: 48px;
            }

            .empty-state-text {
                font-size: 13px;
            }

            .empty-state-sub {
                font-size: 11px;
            }
        }

        /* Small phones */
        @media (max-width:360px) {
            .sidebar-header {
                padding: 8px 10px;
            }

            .action-btn-nav {
                padding: 6px 8px;
                font-size: 11px;
            }

            .conv-item {
                padding: 10px 8px;
            }

            .conv-avatar {
                width: 38px;
                height: 38px;
                font-size: 14px;
            }

            .conv-name {
                font-size: 13px;
            }

            .msg-row {
                max-width: 92%;
            }

            .chat-messages {
                padding: 10px 8px;
            }

            .entrepreneur-cards {
                padding: 10px 8px;
            }
        }

        /* Conv company */
        .conv-company {
            font-size: 11px;
            color: var(--text-dim);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Profile inline tags */
        .chat-header-profile {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 2px;
        }

        /* Name row: name + tags inline */
        .chat-header-name-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .chat-header-name {
            cursor: pointer;
        }

        .chat-header-name:hover {
            text-decoration: underline;
            color: var(--accent);
        }

        .profile-tag {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .profile-tag-category {
            background: var(--accent-dim);
            color: var(--accent);
        }

        .profile-tag-survey {
            background: rgba(255, 255, 255, .06);
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Action Buttons (in sidebar header) */
        .header-action-buttons {
            display: flex;
            gap: 4px;
            flex-shrink: 0;
        }

        .action-btn-nav {
            padding: 5px 10px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: transparent;
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
            text-align: center;
            white-space: nowrap;
        }

        .action-btn-nav:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-dim);
        }

        .action-btn-nav.active {
            border-color: var(--accent);
            color: #000;
            background: var(--accent);
        }

        .action-btn-nav.disabled {
            opacity: 0.35;
            cursor: not-allowed;
            pointer-events: none;
            position: relative;
        }

        .action-btn-nav .coming-soon {
            display: block;
            font-size: 8px;
            font-weight: 400;
            color: var(--text-dim);
            line-height: 1.1;
            margin-top: 1px;
        }

        /* Entrepreneur Cards Panel */
        .entrepreneur-panel {
            display: none;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        .entrepreneur-panel.show {
            display: flex;
        }

        .entrepreneur-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
        }

        .entrepreneur-panel-title {
            font-size: 16px;
            font-weight: 700;
        }

        .entrepreneur-panel-close {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 18px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .entrepreneur-panel-close:hover {
            color: var(--text);
            background: var(--bg-hover);
        }

        .entrepreneur-cards {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 12px;
            align-content: start;
        }

        .entrepreneur-card {
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 16px;
            cursor: pointer;
            transition: all .2s;
        }

        .entrepreneur-card:hover {
            border-color: var(--accent);
            background: var(--bg-hover);
            transform: translateY(-2px);
        }

        .entrepreneur-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .entrepreneur-card-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-dim), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: #000;
            flex-shrink: 0;
        }

        .entrepreneur-card-name {
            font-size: 14px;
            font-weight: 700;
        }

        .entrepreneur-card-company {
            font-size: 12px;
            color: var(--text-dim);
        }

        .entrepreneur-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .entrepreneur-card-tag {
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 10px;
            background: rgba(255, 255, 255, .06);
            color: var(--text-muted);
            font-weight: 500;
        }

        .entrepreneur-card-tag.category {
            background: var(--accent-dim);
            color: var(--accent);
            font-weight: 600;
        }

        .entrepreneur-card-actions {
            display: flex;
            gap: 8px;
        }

        .entrepreneur-card-btn {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
        }

        .entrepreneur-card-btn.primary {
            background: var(--accent);
            color: #000;
        }

        .entrepreneur-card-btn.primary:hover {
            background: #e0b550;
        }

        .entrepreneur-card-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 20px;
            color: var(--text-dim);
        }

        .entrepreneur-card-empty svg {
            display: block;
            margin: 0 auto 12px;
            opacity: .4;
        }

        .chat-header-name {
            font-size: 15px;
            font-weight: 700;
        }