    :root {
      color-scheme: light;
      --md-sys-color-primary: #0061a4;
      --md-sys-color-on-primary: #ffffff;
      --md-sys-color-primary-container: #d1e4ff;
      --md-sys-color-surface: #fdfbff;
      --md-sys-color-on-surface: #1a1c1e;
      --md-sys-color-surface-variant: #e0e2ec;
      --md-sys-color-outline: #74777f;
      --md-sys-color-surface-container: #f3f3f7;
      --radius-lg: 28px;
      --radius-md: 16px;
      --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
      --max-width: 1248px;
      --chat-me-bg: #fee500;
      --chat-me-text: #000000;
      --chat-other-bg: #ffffff;
      --chat-other-text: #000000;
      --input-area-bg: rgba(0, 0, 0, 0.03);
      --noti-divider: rgba(0, 0, 0, 0.08);
    }
    [data-theme="dark"] {
      color-scheme: dark;
      --md-sys-color-primary: #d1e4ff;
      --md-sys-color-on-primary: #003258;
      --md-sys-color-primary-container: #004977;
      --md-sys-color-surface: #1a1c1e;
      --md-sys-color-on-surface: #e2e2e6;
      --md-sys-color-surface-variant: #44474e;
      --md-sys-color-surface-container: #222426;
      --chat-me-bg: #d1a600;
      --chat-other-bg: #333333;
      --chat-other-text: #ffffff;
      --input-area-bg: rgba(255, 255, 255, 0.03);
      --noti-divider: rgba(255, 255, 255, 0.10);
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Google Sans", "Roboto", sans-serif;
    }
    body {
      background-color: var(--md-sys-color-surface);
      color: var(--md-sys-color-on-surface);
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: var(--transition);
    }

    /* TaskPro in-app toast (bottom-right) */
    .tp-toast-wrap{
      position: fixed;
      right: 18px;
      bottom: 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 99999;
      pointer-events: none;
    }

    .tp-toast{
      min-width: 260px;
      max-width: 360px;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(30, 30, 30, 0.92);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
      font-size: 13px;
      line-height: 1.4;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity .18s ease, transform .18s ease;
    }

    [data-theme="light"] .tp-toast{
      background: rgba(255,255,255,0.95);
      color: #111;
      border: 1px solid rgba(0,0,0,0.10);
      box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

    .tp-toast.show{
      opacity: 1;
      transform: translateY(0);
    }

    .tp-toast .t-title{
      font-weight: 800;
      margin-bottom: 4px;
    }

    .tp-toast .t-body{
      opacity: 0.9;
    }

    /* --- [Lobby] 역량 대시보드 스타일 --- */
    .lobby-stats-container {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    /* 카드 공통 스타일 */
    .stats-card {
        background: var(--md-sys-color-surface-container);
        border-radius: 24px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        min-height: 280px;
        position: relative;
    }

    /* 왼쪽 프로필 카드 */
    .level-badge {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: white;
        padding: 6px 16px;
        border-radius: 99px;
        font-weight: 800;
        font-size: 14px;
        margin-bottom: 12px;
        box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    }

    .user-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 24px;
        color: var(--md-sys-color-on-surface);
        text-align: center;
    }

    .xp-container {
        width: 100%;
        max-width: 240px;
        margin-bottom: 24px;
    }

    .xp-info {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--md-sys-color-on-surface-variant);
        margin-bottom: 6px;
        font-weight: 600;
    }

    .xp-bar-bg {
        width: 100%;
        height: 8px;
        background: rgba(0,0,0,0.1);
        border-radius: 4px;
        overflow: hidden;
    }

    .xp-bar-fill {
        height: 100%;
        background: #3b82f6;
        border-radius: 4px;
        transition: width 1s ease-out;
    }

    .stats-summary {
        font-size: 13px;
        color: var(--md-sys-color-outline);
        text-align: center;
        line-height: 1.5;
    }

    /* 차트 캔버스 사이즈 */
    .chart-card canvas {
        max-height: 240px;
    }

    /* 모바일 대응 */
    @media (max-width: 768px) {
        .lobby-stats-container {
            grid-template-columns: 1fr; /* 모바일은 1단 */
        }
    }
    .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 10px; width: 100%; }
    .chart-header h4 { margin: 0; font-size: 16px; opacity: 0.8; }
    .chart-box { width: 100%; height: 100%; min-height: 220px; }
    .help-tip { position: relative; cursor: help; }
    .help-icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--md-sys-color-outline); color: white; font-size: 12px; font-weight: bold; opacity: 0.5; transition: 0.2s; }
    .help-tip:hover .help-icon { opacity: 1; background: var(--md-sys-color-primary); }
    .help-content { display: none; position: absolute; top: 30px; right: 0; width: 260px; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(4px); color: #fff; padding: 15px; border-radius: 12px; font-size: 12px; line-height: 1.6; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); }
    .help-tip:hover .help-content { display: block; animation: fadeIn 0.2s ease-out; }
    .help-content strong { display: block; font-size: 14px; margin-bottom: 8px; color: #60a5fa; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 4px; }
    .help-content ul { list-style: none; padding: 0; margin: 0; }
    .help-content li { margin-bottom: 6px; color: #e2e8f0; }
    .help-content li b { color: #fff; }
    .help-content p { margin-top: 8px; font-size: 11px; color: #94a3b8; text-align: right; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* ================================
[Lobby] 역량/성향 카드 높이 통일
================================ */

    /* 왼쪽 2개 카드(역량/성향)는 grid stretch로 높이 통일 */
    .lobby-stats-container{
    align-items: stretch;
    }

    /* stats-card는 내용이 짧아도 위로 붙게 해서 시각적 정렬 개선 */
    .lobby-stats-container .stats-card{
    justify-content: flex-start;  /* 기존 center → top 정렬 */
    min-height: 300px;            /* 기존 280px보다 살짝 여유 */
    }

    /* 즐겨찾기 멤버 영역도 동일한 높이 최소값 부여 */
    .g-panel.area-members{
    min-height: 300px;
    display: flex;
    flex-direction: column;
    }

    /* 멤버 리스트가 카드 내부 높이를 자연스럽게 채우게 */
    .g-panel.area-members .member-list{
    flex: 1;
    }

/* ================================
[Light Mode] 로비 카드 가독성 개선
================================ */

    [data-theme="light"] .stats-card{
      background: #ffffff !important;
      border: 1px solid rgba(15, 23, 42, 0.08) !important;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    }

    /* 제목(업무 성향 DNA, 즐겨찾기 등) 글자 진하게 */
    [data-theme="light"] .chart-header h4{
      opacity: 1 !important;
      color: #0f172a !important;
      font-weight: 800 !important;
    }

    /* 카드 내부 작은 글씨(설명/EXP 등)도 더 잘 보이게 */
    [data-theme="light"] .stats-summary{
      color: rgba(15, 23, 42, 0.75) !important;
    }

    [data-theme="light"] .xp-info{
      color: rgba(15, 23, 42, 0.70) !important;
      font-weight: 700 !important;
    }

/* ================================
[Light Mode] ? 도움말(hover) 가독성 개선
================================ */
    [data-theme="light"] .help-content{
      background: rgba(255,255,255,0.96) !important;
      color: #0f172a !important;
      border: 1px solid rgba(15,23,42,0.12) !important;
      box-shadow: 0 12px 28px rgba(15,23,42,0.10) !important;
    }

    [data-theme="light"] .help-content strong{
      color: #1d4ed8 !important;
      border-bottom: 1px solid rgba(15,23,42,0.12) !important;
    }

    [data-theme="light"] .help-content li{
      color: rgba(15,23,42,0.78) !important;
    }

    [data-theme="light"] .help-content li b{
      color: #0f172a !important;
    }

    [data-theme="light"] .help-content p{
      color: rgba(15,23,42,0.55) !important;
    }