        :root {
            --bg: #0a0a0a;
            --bg-card: #111;
            --bg-card2: #161616;
            --border: #222;
            --border-hover: #333;
            --text: #e8e8e8;
            --text-muted: #888;
            --text-dim: #555;
            --accent: #d4a84a;
            --accent-dim: rgba(212, 168, 74, 0.12);
            --accent-border: rgba(212, 168, 74, 0.3);
            --danger: #ff4d4f;
            --success: #22c55e;
            --radius: 10px;
            --radius-sm: 6px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        overflow-y: scroll;
        }

        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: rgba(10, 10, 10, 0.95);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .nav-brand {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 16px;
            letter-spacing: 1px;
            color: var(--accent);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .nav-link {
            font-size: 13px;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }

        .nav-link:hover {
            color: var(--accent);
        }

        .main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 100px 20px 60px;
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        .page-title {
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .grid {
            display: grid;
            grid-template-columns: 260px minmax(0, 1fr);
            gap: 30px;
            align-items: start;
            max-width: 1100px;
            margin: 0 auto;
            flex: 1;
            width: 100%;
        }

        @media (max-width: 1024px) {
            .grid {
                grid-template-columns: 260px 1fr;
            }

            .col-messages {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .grid {
                grid-template-columns: 1fr;
            }

            .col-messages {
                position: static;
                max-height: none;
            }
        }

        .col-messages {
            position: sticky;
            top: 80px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(212, 168, 74, 0.3) transparent;
        }

        .col-messages::-webkit-scrollbar {
            width: 4px;
        }

        .col-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .col-messages::-webkit-scrollbar-thumb {
            background: rgba(212, 168, 74, 0.25);
            border-radius: 4px;
        }

        .col-messages::-webkit-scrollbar-thumb:hover {
            background: rgba(212, 168, 74, 0.5);
        }

        /* Settings Dashboard UI */
        .settings-sidebar {
            position: sticky;
            top: 80px;
            display: flex;
            flex-direction: column;
            gap: 32px;
        }

        .sidebar-user-profile {
            padding: 0 12px;
        }

        .settings-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--accent-dim);
            border: 1px solid var(--accent-border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
            cursor: pointer;
            overflow: hidden;
            margin-bottom: 16px;
            transition: border-color 0.2s;
        }

        .settings-avatar:hover {
            border-color: var(--accent);
        }

        .settings-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sidebar-name {
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 4px;
        }

        .sidebar-company {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .sidebar-title {
            font-size: 12px;
            color: var(--text-dim);
        }

        .settings-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .settings-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            text-align: left;
            transition: all 0.2s ease;
        }

        .settings-nav-item:hover {
            color: var(--text);
            background: rgba(255, 255, 255, 0.03);
        }

        .settings-nav-item.active {
            color: var(--text);
            background: rgba(212, 168, 74, 0.05);
            border-left: 2px solid var(--accent);
            border-radius: 0 6px 6px 0;
        }

        .settings-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 16px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .settings-card-header {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
        }

        .settings-card-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 6px 0;
            color: var(--text);
        }

        .settings-card-desc {
            font-size: 13px;
            color: var(--text-muted);
            margin: 0;
        }

        .settings-card-body {
            padding: 12px 16px;
        }

        .settings-card-footer {
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.01);
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
        }
        
        .settings-card-footer .btn-save {
            width: auto;
            min-width: 120px;
            padding: 10px 24px;
            border-radius: 6px;
            margin: 0;
        }

        /* Profile Card (Legacy) */
        /* ===== MOBILE RESPONSIVE (480px) ===== */
        @media (max-width: 480px) {
            .navbar {
                padding: 12px 14px;
            }

            .nav-brand {
                font-size: 13px;
            }

            .nav-links {
                gap: 10px;
            }

            .nav-link {
                font-size: 11px;
            }

            .main {
                padding: 140px 12px 40px; /* 固定ヘッダーとの重なりを回避 */
            }

            .page-title {
                font-size: 18px;
            }

            }

            /* Profile card 窶・no sticky on mobile */
        /* ===== 鄙ｻ險ｳ譎ゅ・繝ｬ繧､繧｢繧ｦ繝亥ｴｩ繧碁亟豁｢ ===== */
        body,
        .main,
        .grid {
            overflow-wrap: break-word;
            word-break: break-word;
        }

        /* ===== スマホ追加改行 (375px) ===== */
        @media (max-width: 375px) {
            .main {
                padding: 130px 8px 40px;
            }
        }
@media (max-width: 768px) {
    .settings-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 16px;
        gap: 16px;
    }
}

/* ===== Toast Notification ===== */
.vpo-toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.vpo-toast {
    background: rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: vpoToastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.vpo-toast.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}
@keyframes vpoToastEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes vpoToastExit {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== Skeleton Loader ===== */
.skeleton-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
    display: block;
}
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-circle {
    border-radius: 50%;
}
.skeleton-sidebar-profile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}

/* Avatar Upload UX Improvements added automatically */
.settings-avatar { position: relative; }
.settings-card .active-signal-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.settings-card .signal-btn { background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #777 !important; padding: 8px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.settings-card .signal-btn:hover { border-color: var(--accent) !important; color: var(--text) !important; background: rgba(212,168,74,0.05) !important; }
.settings-card .signal-btn.active { background: var(--accent-dim) !important; border-color: var(--accent) !important; color: var(--accent) !important; font-weight: 600; box-shadow: 0 0 10px rgba(212,168,74,0.1); }
.last-updated-badge { position: absolute; top: 20px; right: 24px; font-size: 11px; color: var(--fg-muted); background: rgba(255, 255, 255, 0.05); padding: 4px 8px; border-radius: 12px; }
.form-label-sub { font-size: 11px; font-weight: normal; color: var(--fg-muted); }
.warning-box { background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); padding: 12px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 13px; line-height: 1.6; color: var(--text); }
.settings-avatar::after {
    content: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>');
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.settings-avatar:hover::after { opacity: 1; }

/* ===== Profile Preview Modal (mpv-*) ===== */
.mpv-trigger-btn {
    position: absolute; top: 20px; right: 24px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: rgba(212, 168, 74, 0.12);
    border: 1px solid rgba(212, 168, 74, 0.35);
    border-radius: 20px;
    color: var(--accent);
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.mpv-trigger-btn:hover {
    background: rgba(212, 168, 74, 0.22);
    box-shadow: 0 0 12px rgba(212, 168, 74, 0.2);
}
.mpv-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.mpv-overlay.show { display: flex !important; }
.mpv-modal {
    position: relative;
    width: 90%; max-width: 780px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex; flex-direction: column;
    animation: mpvSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mpvSlideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mpv-banner {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.18), rgba(212, 168, 74, 0.08));
    border-bottom: 1px solid rgba(212, 168, 74, 0.3);
    color: var(--accent);
    font-size: 12px; font-weight: 600;
    padding: 10px 20px;
    text-align: center;
    flex-shrink: 0;
}
.mpv-close-btn {
    position: absolute; top: 8px; right: 14px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 18px; cursor: pointer;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}
.mpv-close-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.mpv-content { overflow-y: auto; padding: 32px 28px 40px; flex: 1; }
.mpv-loading { display: flex; justify-content: center; padding: 60px 0; }
.mpv-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.mpv-avatar {
    width: 80px; height: 80px; border-radius: 16px;
    background: rgba(212, 168, 74, 0.12);
    border: 1px solid rgba(212, 168, 74, 0.2);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: var(--accent);
    overflow: hidden;
}
.mpv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mpv-hero-info { flex: 1; min-width: 0; }
.mpv-company { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.mpv-name { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.mpv-website a { font-size: 12px; color: var(--accent); text-decoration: none; }
.mpv-website a:hover { text-decoration: underline; }
.mpv-signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.mpv-signal-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px;
    background: rgba(212, 168, 74, 0.12);
    border: 1px solid rgba(212, 168, 74, 0.3);
    border-radius: 20px;
    font-size: 12px; font-weight: 600; color: var(--accent);
}
.mpv-section { margin-bottom: 24px; }
.mpv-section-title {
    font-size: 11px; font-weight: 700;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px;
}
.mpv-section-body {
    font-size: 13px; color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.mpv-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.mpv-meta-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px; color: var(--text-muted);
}
.mpv-meta-chip span { color: var(--text); font-weight: 600; }
.mpv-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.mpv-cta-row { display: flex; justify-content: center; margin-top: 16px; }
.mpv-external-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: rgba(212, 168, 74, 0.1);
    border: 1px solid rgba(212, 168, 74, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent); font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all 0.2s;
}
.mpv-external-link:hover { background: rgba(212, 168, 74, 0.2); }
.mpv-empty { text-align: center; padding: 40px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 600px) {
    .mpv-modal { width: 96%; max-height: 85vh; border-radius: 16px; }
    .mpv-content { padding: 20px 16px 32px; }
    .mpv-hero { flex-direction: column; align-items: center; text-align: center; }
    .mpv-company { font-size: 18px; }
    .mpv-trigger-btn { position: static; margin-top: 8px; }
}

/* === Sticky Save Button Footer === */
.settings-card-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === Section Heading (unified) === */
.sp-section-heading {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-weight: 600;
}

.form-label-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Skeleton Loader Extracted Styles */
.sk-wrapper { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
.sk-avatar { width: 48px; height: 48px; margin-bottom: 8px; }
.sk-name { width: 140px; height: 20px; margin-bottom: 4px; }
.sk-title { width: 100px; height: 14px; margin-bottom: 8px; }
.sk-btn { width: 100%; height: 36px; border-radius: 6px; margin-top: 16px; }
.sk-btn2 { width: 100%; height: 36px; border-radius: 6px; }
.sk-main { width: 100%; height: 400px; border-radius: 12px; }

/* cache bump 20260417 */
