/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-2k1snhqv67],
.components-reconnect-repeated-attempt-visible[b-2k1snhqv67],
.components-reconnect-failed-visible[b-2k1snhqv67],
.components-pause-visible[b-2k1snhqv67],
.components-resume-failed-visible[b-2k1snhqv67],
.components-rejoining-animation[b-2k1snhqv67] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-retrying[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-failed[b-2k1snhqv67],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-2k1snhqv67] {
    display: block;
}


#components-reconnect-modal[b-2k1snhqv67] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-2k1snhqv67 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-2k1snhqv67 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-2k1snhqv67 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-2k1snhqv67]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-2k1snhqv67 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-2k1snhqv67 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-2k1snhqv67 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-2k1snhqv67 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-2k1snhqv67] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-2k1snhqv67] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-2k1snhqv67] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-2k1snhqv67] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-2k1snhqv67] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-2k1snhqv67] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-2k1snhqv67] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-2k1snhqv67 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-2k1snhqv67] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-2k1snhqv67 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Admin.razor.rz.scp.css */
/* ===== 관리자 페이지 ===== */
.admin-page[b-jy9p7hagqd] {
    min-height: 100vh;
    background: #f7f7f8;
    padding: 32px 16px;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
}

.admin-box[b-jy9p7hagqd] {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 32px 36px;
}

.admin-header[b-jy9p7hagqd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1[b-jy9p7hagqd] {
    margin: 0;
    font-size: 1.4rem;
    color: rgb(16, 163, 127);
}

.back-link[b-jy9p7hagqd] {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

.back-link:hover[b-jy9p7hagqd] {
    color: rgb(16, 163, 127);
}

.denied[b-jy9p7hagqd] {
    margin-top: 20px;
    color: #d33;
}

/* 목차 (탭) */
.admin-tabs[b-jy9p7hagqd] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 18px 0 20px;
    border-bottom: 2px solid #eee;
}

.admin-tab[b-jy9p7hagqd] {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    font-family: inherit;
}

.admin-tab:hover[b-jy9p7hagqd] {
    color: rgb(16, 163, 127);
}

.admin-tab.active[b-jy9p7hagqd] {
    color: rgb(13, 138, 108);
    font-weight: 700;
    border-bottom-color: rgb(16, 163, 127);
}

.section-title[b-jy9p7hagqd] {
    margin: 30px 0 10px;
    font-size: 1.05rem;
    color: #222;
    border-bottom: 2px solid rgb(16, 163, 127);
    padding-bottom: 6px;
}

.sub-title[b-jy9p7hagqd] {
    margin: 16px 0 8px;
    font-size: 0.92rem;
    color: #444;
}

.section-desc[b-jy9p7hagqd] {
    font-size: 0.83rem;
    color: #888;
    margin: 6px 0 12px;
}

/* 표 */
.admin-table[b-jy9p7hagqd] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.admin-table th[b-jy9p7hagqd],
.admin-table td[b-jy9p7hagqd] {
    border: 1px solid #e5e5e5;
    padding: 6px 10px;
    text-align: left;
}

.admin-table th[b-jy9p7hagqd] {
    background: #f4faf8;
    color: #333;
    font-weight: 600;
}

/* 사용량 통계 합계 행 */
.admin-table .total-row td[b-jy9p7hagqd] {
    background: #f3faf7;
    border-top: 2px solid rgb(16, 163, 127);
}

.admin-table td:nth-child(n+2)[b-jy9p7hagqd] {
    text-align: right;
}

/* 사용 권한 표 — 통계용 우측 정렬을 해제하고 전 칸 가운데 정렬 (2026-07-22) */
.perm-table th[b-jy9p7hagqd],
.perm-table td[b-jy9p7hagqd],
.perm-table td:nth-child(n+2)[b-jy9p7hagqd] {
    text-align: center;
    vertical-align: middle;
}

.perm-table input[type="number"][b-jy9p7hagqd] {
    text-align: center;
}

.admin-table td:nth-child(3):not(:last-child)[b-jy9p7hagqd] {
    text-align: right;
}

/* 설정 편집 */
.setting-row[b-jy9p7hagqd] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.setting-key[b-jy9p7hagqd] {
    width: 200px;
    min-width: 200px;
    font-size: 0.85rem;
    color: #555;
    padding-top: 8px;
    font-family: Consolas, monospace;
}

.setting-row input[b-jy9p7hagqd],
.setting-row textarea[b-jy9p7hagqd] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
}

.setting-row input:focus[b-jy9p7hagqd],
.setting-row textarea:focus[b-jy9p7hagqd] {
    outline: none;
    border-color: rgb(16, 163, 127);
}

.admin-actions[b-jy9p7hagqd] {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.save-btn[b-jy9p7hagqd] {
    padding: 10px 28px;
    background: rgb(16, 163, 127);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.save-btn:disabled[b-jy9p7hagqd] {
    background: #bbb;
}

.saved-msg[b-jy9p7hagqd] {
    font-size: 0.85rem;
    color: rgb(13, 138, 108);
}

.restore-btn[b-jy9p7hagqd] {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid rgb(16, 163, 127);
    border-radius: 6px;
    color: rgb(13, 138, 108);
    font-size: 0.8rem;
    cursor: pointer;
}

.restore-btn:hover[b-jy9p7hagqd] {
    background: #eef7f4;
}

/* 영구 삭제 (2026-08-10) — 위험 동작이라 빨강 계열로 구분 */
.purge-btn[b-jy9p7hagqd] {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #d9534f;
    border-radius: 6px;
    color: #c0392b;
    font-size: 0.8rem;
    cursor: pointer;
}

.purge-btn:hover[b-jy9p7hagqd] {
    background: #fdecea;
}

.purge-all-row[b-jy9p7hagqd] {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.purge-notice[b-jy9p7hagqd] {
    font-size: 0.85rem;
    color: #0d8a6c;
}

/* 사용 권한 관리 */
.perm-search[b-jy9p7hagqd] {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.perm-search:focus[b-jy9p7hagqd] {
    outline: none;
    border-color: rgb(16, 163, 127);
}

/* 월 토큰 한도 일괄 적용 (2026-07-23) */
.bulk-limit-row[b-jy9p7hagqd] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    font-size: 0.85rem;
    color: #555;
}

.perm-badge[b-jy9p7hagqd] {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

.perm-badge.on[b-jy9p7hagqd] {
    background: #e4f3ee;
    color: rgb(13, 138, 108);
}

.perm-badge.off[b-jy9p7hagqd] {
    background: #f3e4e4;
    color: #c0392b;
}

.perm-toggle[b-jy9p7hagqd] {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #ccc;
    background: transparent;
}

.perm-toggle.to-allow[b-jy9p7hagqd] {
    border-color: rgb(16, 163, 127);
    color: rgb(13, 138, 108);
}

.perm-toggle.to-allow:hover[b-jy9p7hagqd] {
    background: #eef7f4;
}

.perm-toggle.to-block[b-jy9p7hagqd] {
    border-color: #d99;
    color: #c0392b;
}

.perm-toggle.to-block:hover[b-jy9p7hagqd] {
    background: #fbeeee;
}

/* ===== 모바일 (좁은 화면) — 표·설정 행이 화면을 뚫고 나가 옆으로 밀리던 문제 방지 ===== */
@media (max-width: 640px) {
    .admin-page[b-jy9p7hagqd] { padding: 20px 10px; }
    .admin-box[b-jy9p7hagqd] { padding: 20px 14px 28px; }

    /* 통계·권한 표: 열이 많아 좁은 화면을 넘으므로 표 자체를 가로 스크롤 컨테이너로
       (예상 비용·허용/차단 등 오른쪽 열이 화면 밖으로 밀리던 것 방지 — 표는 안에서 좌우 스크롤) */
    .admin-table[b-jy9p7hagqd] {
        display: block;
        width: max-content;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* 공용 설정: 라벨(200px 고정)+입력이 한 줄에 안 들어가 입력칸이 잘리던 것 →
       라벨을 위로 올리고 입력을 전체 폭으로 (세로 배치) */
    .setting-row[b-jy9p7hagqd] { flex-wrap: wrap; }
    .setting-key[b-jy9p7hagqd] { width: 100%; min-width: 0; padding-top: 0; }
    .setting-row input[b-jy9p7hagqd],
    .setting-row textarea[b-jy9p7hagqd] { min-width: 0; width: 100%; }

    /* 버튼·입력 탭 영역 확대 (손가락으로 누르기 편하게) */
    .perm-toggle[b-jy9p7hagqd],
    .restore-btn[b-jy9p7hagqd] { padding: 8px 14px; min-height: 36px; }
    .perm-table input[type="number"][b-jy9p7hagqd] { min-height: 32px; }
}

/* ===== 건의·신고 탭 (2026-09-04) ===== */
.fb-table .fb-body em[b-jy9p7hagqd] {
    display: block;
    font-style: normal;
    color: #8a9199;
    font-size: 0.75rem;
    margin-top: 3px;
}

.fb-peek[b-jy9p7hagqd] {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.fb-peek h3[b-jy9p7hagqd] {
    margin: 0 0 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-peek-q[b-jy9p7hagqd] {
    padding: 9px 12px;
    border-radius: 9px;
    background: #10a37f;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.55;
}

.fb-peek-a[b-jy9p7hagqd] {
    padding: 9px 12px;
    border-radius: 9px;
    background: #f0f0f2;
    line-height: 1.6;
    white-space: pre-wrap;
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ===== 채팅 화면 (ChatGPT 스타일) ===== */
.chat-page[b-0pxh1u99ar] {
    display: flex;
    height: 100vh;        /* 구형 브라우저 폴백 */
    height: 100dvh;       /* 모바일 사파리: 주소창·하단바 제외한 실제 보이는 높이 — 입력창 가림 방지 */
    position: relative;   /* 접기 화살표 위치 기준 */
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
    background: #fff;
}

/* ----- 사이드바 ----- */
.sidebar[b-0pxh1u99ar] {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    border-right: 1px solid #e5e5e5;
    transition: width 0.15s ease, min-width 0.15s ease;
}

/* 접힘: 사이드바 숨김 */
.chat-page.sidebar-collapsed .sidebar[b-0pxh1u99ar] {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: none;
}

/* 접기/펼치기 — 사이드바 아이콘, 경계 상단에 반쯤 걸침 */
.sidebar-toggle[b-0pxh1u99ar] {
    position: absolute;
    top: 14px;
    left: 260px;
    transform: translateX(-50%);
    z-index: 20;
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.15s ease;
}

.sidebar-toggle svg[b-0pxh1u99ar] {
    width: 20px;
    height: 20px;
}

.sidebar-toggle:hover[b-0pxh1u99ar] {
    background: #f0f0f0;
    color: rgb(16, 163, 127);
}

.chat-page.sidebar-collapsed .sidebar-toggle[b-0pxh1u99ar] {
    left: 0;
    transform: translateX(0);
    border-radius: 0 8px 8px 0;
}

/* 모바일 오버레이 배경 (데스크톱은 숨김) */
.sidebar-backdrop[b-0pxh1u99ar] {
    display: none;
}

/* ===== 모바일(좁은 화면): 사이드바는 오버레이, 기본 접힘 (ChatGPT 모바일처럼) ===== */
@media (max-width: 768px) {
    .sidebar[b-0pxh1u99ar] {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 78vw;
        max-width: 300px;
        min-width: 0;
        z-index: 200;
        transform: translateX(0);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.18);
        transition: transform 0.2s ease;
    }

    /* 접힘: 화면 밖으로 밀어 숨김 (인라인 width:0 대신 슬라이드) */
    .chat-page.sidebar-collapsed .sidebar[b-0pxh1u99ar] {
        width: 78vw;
        max-width: 300px;
        min-width: 0;
        overflow: visible;
        transform: translateX(-100%);
        border-right: 1px solid #e5e5e5;
    }

    /* 토글: 접힘 = 좌상단(열기), 열림 = 사이드바 오른쪽 위 X(닫기) */
    .chat-page.sidebar-collapsed .sidebar-toggle[b-0pxh1u99ar] {
        left: 10px;
        transform: translateX(0);
        z-index: 210;
        border-radius: 8px;
    }
    .chat-page:not(.sidebar-collapsed) .sidebar-toggle[b-0pxh1u99ar] {
        left: min(78vw, 300px);
        transform: translateX(calc(-100% - 8px));
        z-index: 210;
        border-radius: 8px;
    }

    /* 오버레이 배경 (사이드바 열렸을 때만) */
    .sidebar-backdrop.show[b-0pxh1u99ar] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 150;
    }
}

.sidebar-header[b-0pxh1u99ar] {
    padding: 16px 14px 8px;
}

.brand[b-0pxh1u99ar] {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgb(16, 163, 127);
    cursor: pointer;
}

.brand:hover[b-0pxh1u99ar] {
    color: rgb(13, 138, 108);
}

.brand-ver[b-0pxh1u99ar] {
    margin-left: 6px;
    font-size: 0.72rem;
    color: #9aa0a6;
    font-weight: 600;
}

.new-chat-btn[b-0pxh1u99ar] {
    margin: 8px 12px;
    padding: 10px;
    background: rgb(16, 163, 127);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.new-chat-btn:hover[b-0pxh1u99ar] {
    background: rgb(13, 138, 108);
}

.room-search-box[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 12px 6px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.room-search-box:focus-within[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
}

.room-search-icon[b-0pxh1u99ar] {
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1;
}

.room-search[b-0pxh1u99ar] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: #333;
    min-width: 0;
}

.room-search-clear[b-0pxh1u99ar] {
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 2px;
    line-height: 1;
}

.room-search-clear:hover[b-0pxh1u99ar] {
    color: #333;
}

.room-empty[b-0pxh1u99ar] {
    padding: 16px 10px;
    text-align: center;
    color: #999;
    font-size: 0.82rem;
}

.room-list[b-0pxh1u99ar] {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.room-item[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #333;
}

.room-item:hover[b-0pxh1u99ar] {
    background: #ececec;
}

.room-item.active[b-0pxh1u99ar] {
    background: #e4f3ee;
    color: rgb(13, 138, 108);
    font-weight: 600;
}

.room-title[b-0pxh1u99ar] {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-btn[b-0pxh1u99ar] {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.room-item:hover .room-btn[b-0pxh1u99ar] {
    opacity: 0.6;
}

.room-btn:hover[b-0pxh1u99ar] {
    opacity: 1 !important;
}

/* 터치 기기: hover가 없어 방 관리 버튼(별·공유·이름변경·삭제)이 계속 숨겨져
   폰에서 방 관리가 불가능하던 문제 → 항상 은은히 표시 + 탭 영역 확대 */
@media (hover: none) {
    .room-item .room-btn[b-0pxh1u99ar] { opacity: 0.55; padding: 6px 7px; }
}

/* 즐겨찾기 별 — 켜진 별은 항상 표시 (금색) */
.room-btn.star.on[b-0pxh1u99ar] {
    opacity: 1;
    color: #f0a500;
}

/* 공유 버튼 — 공유 중이면 항상 표시 (브랜드 초록) */
.room-btn.share.on[b-0pxh1u99ar] {
    opacity: 1;
    filter: none;
}

.room-btn.share[b-0pxh1u99ar] {
    filter: grayscale(1);
}

/* 공유된 채팅방 섹션 */
.room-divider[b-0pxh1u99ar] {
    margin: 14px 4px 4px;
    padding: 8px 6px 2px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.72rem;
    color: #999;
}

/* 공유 구역 헤더 접기/펼치기 (클릭) — 상단 배치라 border-top 대신 아래 구분선만 */
.room-divider.clickable[b-0pxh1u99ar] {
    cursor: pointer;
    user-select: none;
}

.room-divider.shared-head[b-0pxh1u99ar] {
    margin-top: 4px;
    border-top: none;
}

/* 공유 목록 — 많아져도 4~5줄 높이에서 자체 스크롤 (내 방 목록을 밀어내지 않음) */
.shared-scroll[b-0pxh1u99ar] {
    max-height: 168px;
    overflow-y: auto;
}

.shared-scroll[b-0pxh1u99ar]::-webkit-scrollbar { width: 5px; }
.shared-scroll[b-0pxh1u99ar]::-webkit-scrollbar-thumb { background: #d5d8db; border-radius: 3px; }

.room-divider.clickable:hover[b-0pxh1u99ar] { color: #555; }

.divider-arrow[b-0pxh1u99ar] { font-size: 0.65rem; }

.divider-count[b-0pxh1u99ar] {
    float: right;
    background: #eceef0;
    border-radius: 8px;
    padding: 0 6px;
    font-size: 0.68rem;
}

/* 날짜 구간 헤더 (GPT식 — ★ 즐겨찾기 / 오늘 / 어제 / 지난 7일 / …) */
.room-group[b-0pxh1u99ar] {
    margin: 12px 4px 2px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8a8f95;
}

.room-group:first-child[b-0pxh1u99ar] { margin-top: 4px; }

.room-item.shared .shared-icon[b-0pxh1u99ar] {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.shared-owner[b-0pxh1u99ar] {
    font-size: 0.7rem;
    color: #aaa;
    flex-shrink: 0;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-rename-input[b-0pxh1u99ar] {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid rgb(16, 163, 127);
    border-radius: 6px;
    font-size: 0.85rem;
}

.sidebar-footer[b-0pxh1u99ar] {
    padding: 12px 14px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info[b-0pxh1u99ar] {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.logout-btn[b-0pxh1u99ar] {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.logout-btn:hover[b-0pxh1u99ar] {
    border-color: #999;
    color: #333;
}

/* ----- 채팅 영역 ----- */
.chat-main[b-0pxh1u99ar] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative; /* 상태등 우상단 고정 기준 */
}

/* 회사 로고 워터마크 — 새 채팅(빈 상태)일 때만 배경 중앙에 은은하게 (wwwroot/brand-logo.png) */
.chat-main.empty-state[b-0pxh1u99ar]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('brand-logo.png') center / min(340px, 60%) no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.chat-main > *[b-0pxh1u99ar] {
    position: relative;
    z-index: 1; /* 메시지·입력 영역은 워터마크 위에 */
}

/* ----- 대화 목차 (클로드식, 2026-07-24) — 왼쪽 레일: 평소엔 짧은 선(dot)만, hover하면 질문 제목 확장 ----- */
.chat-toc[b-0pxh1u99ar] {
    position: absolute;
    left: 8px;
    top: 60px;
    max-height: calc(100% - 200px);   /* 아래 입력창 영역 침범 방지 */
    overflow-y: auto;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    scrollbar-width: none;            /* 레일 자체 스크롤바는 숨김 (좁아서 거슬림) */
}

.toc-item[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    padding: 3px 2px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.toc-dot[b-0pxh1u99ar] {
    flex-shrink: 0;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: #cdd2d6;
    transition: background 0.12s;
}

.toc-item:hover .toc-dot[b-0pxh1u99ar] {
    background: rgb(16, 163, 127);
}

/* 제목 라벨 — 레일에 마우스를 올렸을 때만 표시 (평소엔 선만 보여 대화를 안 가림) */
.toc-label[b-0pxh1u99ar] {
    display: none;
    font-size: 0.78rem;
    color: #555;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e3e6e8;
    border-radius: 7px;
    padding: 2px 9px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-toc:hover .toc-label[b-0pxh1u99ar] {
    display: block;
}

.toc-item:hover .toc-label[b-0pxh1u99ar] {
    color: rgb(13, 138, 108);
    border-color: rgb(16, 163, 127);
}

/* 모바일: 화면이 좁아 레일이 말풍선을 가림 — 숨김 */
@media (max-width: 768px) {
    .chat-toc[b-0pxh1u99ar] { display: none; }
}

.chat-messages[b-0pxh1u99ar] {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.chat-empty[b-0pxh1u99ar] {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #999;
}

.chat-empty-title[b-0pxh1u99ar] {
    font-size: 1.3rem;
}

.chat-empty-notice[b-0pxh1u99ar] {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    max-width: 380px;
    line-height: 1.6;
}

/* 새 채팅 추천 카드 — 클릭하면 예시를 placeholder로 표시 (모바일은 표시 안 함) */
.suggest-grid[b-0pxh1u99ar] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: min(680px, 92%);
    margin-top: auto;      /* 카드를 빈 영역 아래(입력창 위)로 — 중앙의 배경 로고를 가리지 않게 */
    margin-bottom: 4px;
    text-align: left;
}

.suggest-card[b-0pxh1u99ar] {
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 15px 18px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    word-break: keep-all;   /* 한글이 단어 중간에서 잘리지 않게 (전송하/세요 방지) — 공백 단위 줄바꿈 */
}

.suggest-card:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
    background: #f2faf7;
}

.suggest-icon[b-0pxh1u99ar] {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.suggest-name[b-0pxh1u99ar] {
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.suggest-desc[b-0pxh1u99ar] {
    font-size: 0.8rem;
    color: #909090;
    line-height: 1.45;
}

/* PC: 카드가 아래로 가도 제목·안내는 중앙 유지 (auto 마진 둘로 여백 분배) */
@media (min-width: 769px) {
    .chat-empty-title[b-0pxh1u99ar] { margin-top: auto; }
}

/* 모바일: 추천 카드 표시 안 함 (화면이 좁아 배경 로고·안내와 공존 불가 — 사용자 결정) */
@media (max-width: 768px) {
    .suggest-grid[b-0pxh1u99ar] { display: none; }
    /* 상태등이 우상단에 고정 표시되는데, 모바일은 메시지가 거의 전폭이라 첫 메시지 오른쪽
       위 모서리를 가림 → 메시지 목록 상단 여백을 키워 상태등 아래로 내려가게 함
       (데스크톱은 820px 중앙 배치라 상태등이 우측 여백에 숨어 문제없음) */
    .chat-messages[b-0pxh1u99ar] { padding-top: 52px; }
}

.msg-row[b-0pxh1u99ar] {
    display: flex;
    max-width: 820px;
    margin: 0 auto 14px;
    padding: 0 24px;
}

.msg-row.from-user[b-0pxh1u99ar] {
    justify-content: flex-end;
}

.msg-row.from-ai[b-0pxh1u99ar] {
    justify-content: flex-start;
}

/* 말풍선 + 아래 동작 줄을 묶는 세로 컬럼 — 폭 제한(85%)은 여기서 */
.msg-col[b-0pxh1u99ar] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 85%;
    min-width: 0;              /* 플렉스 자식이 넓은 내용(표 등)에 밀려 커지지 않게 */
}

.from-user .msg-col[b-0pxh1u99ar] {
    align-items: flex-end;
}

.msg-bubble[b-0pxh1u99ar] {
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.65;
    word-break: break-word;
    white-space: pre-wrap;
}

.from-user .msg-bubble[b-0pxh1u99ar] {
    background: rgb(16, 163, 127);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.from-ai .msg-bubble[b-0pxh1u99ar] {
    background: #f2f2f2;
    color: #222;
    border-bottom-left-radius: 4px;
    white-space: normal;
}

/* 마크다운 요소 */
.from-ai .msg-bubble[b-0pxh1u99ar]  p { margin: 0 0 8px; }
.from-ai .msg-bubble[b-0pxh1u99ar]  p:last-child { margin-bottom: 0; }
.from-ai .msg-bubble[b-0pxh1u99ar]  h1,
.from-ai .msg-bubble[b-0pxh1u99ar]  h2 { font-size: 1.12rem; margin: 14px 0 8px; }
.from-ai .msg-bubble[b-0pxh1u99ar]  h3,
.from-ai .msg-bubble[b-0pxh1u99ar]  h4 { font-size: 1.0rem; margin: 12px 0 6px; }
.from-ai .msg-bubble[b-0pxh1u99ar]  h1:first-child,
.from-ai .msg-bubble[b-0pxh1u99ar]  h2:first-child,
.from-ai .msg-bubble[b-0pxh1u99ar]  h3:first-child { margin-top: 0; }
.from-ai .msg-bubble[b-0pxh1u99ar]  ul,
.from-ai .msg-bubble[b-0pxh1u99ar]  ol { margin: 4px 0 10px; padding-left: 22px; }
.from-ai .msg-bubble[b-0pxh1u99ar]  li { margin: 3px 0; }
.from-ai .msg-bubble[b-0pxh1u99ar]  li > ul,
.from-ai .msg-bubble[b-0pxh1u99ar]  li > ol { margin: 2px 0 4px; }
.from-ai .msg-bubble[b-0pxh1u99ar]  hr { border: none; border-top: 1px solid #ddd; margin: 12px 0; }
.from-ai .msg-bubble[b-0pxh1u99ar]  blockquote {
    margin: 8px 0;
    padding: 4px 12px;
    border-left: 3px solid rgb(16, 163, 127);
    background: #fafafa;
    color: #555;
}

/* 출처 링크 칩 — ChatGPT식: 파비콘 + 도메인 둥근 칩 (favicon은 chat.js가 주입) */
.from-ai .msg-bubble[b-0pxh1u99ar]  a.src-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e9e9e9;
    color: #444;
    text-decoration: none;
    border-radius: 10px;
    padding: 1px 8px 1px 5px;
    font-size: 0.76rem;
    line-height: 1.5;
    vertical-align: baseline;
    margin: 0 1px;
}

.from-ai .msg-bubble[b-0pxh1u99ar]  a.src-chip:hover { background: #dcdcdc; color: #222; }

.from-ai .msg-bubble[b-0pxh1u99ar]  a.src-chip img {
    width: 13px;
    height: 13px;
    border-radius: 3px;
}

.from-ai .msg-bubble[b-0pxh1u99ar]  .src-chip.src-more {
    cursor: pointer;
    padding: 1px 7px;
    color: #666;
}

/* /양식 선택 메뉴 — 입력이 "/"로 시작하면 입력창 위에 표시 */
.form-menu[b-0pxh1u99ar] {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    margin-bottom: 8px;
    overflow: hidden;
}

.form-menu-title[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #888;
    padding: 8px 14px 4px;
}

.form-menu-item[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
}

.form-menu-item:hover[b-0pxh1u99ar] { background: #f0faf6; }

.form-menu-icon[b-0pxh1u99ar] { font-size: 1.05rem; }

.form-menu-name[b-0pxh1u99ar] {
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.form-menu-desc[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #999;
}

/* 선택된 양식 칩 (입력창 위) */
.form-chip-row[b-0pxh1u99ar] {
    display: flex;
    margin-bottom: 8px;
}

.form-chip[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e7f6f1;
    color: rgb(13, 140, 110);
    border: 1px solid rgb(16, 163, 127);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 0.85rem;
}

/* 공유 방(읽기 전용) → 내 방으로 복사해서 이어가기 버튼 */
.fork-row[b-0pxh1u99ar] {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.fork-btn[b-0pxh1u99ar] {
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    background: rgb(16, 163, 127);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.fork-btn:hover[b-0pxh1u99ar] { background: rgb(13, 140, 110); }

/* 확인 완료 — 목록에서 내리기 (복사 버튼 옆, 흰 바탕 보조 버튼) */
.fork-row[b-0pxh1u99ar] { gap: 8px; flex-wrap: wrap; }
.fork-btn.leave[b-0pxh1u99ar] {
    background: #fff;
    color: #555;
    border: 1px solid #ccc;
}
.fork-btn.leave:hover[b-0pxh1u99ar] { background: #f3f3f3; }

.fork-btn:disabled[b-0pxh1u99ar] {
    opacity: 0.6;
    cursor: default;
}

/* ⏹ 생성 중단 — 스트리밍 중 전송 버튼 자리 교체 */
.send-btn.stop-btn[b-0pxh1u99ar] {
    background: #5a5a5a;
}

.send-btn.stop-btn:hover[b-0pxh1u99ar] { background: #434343; }

/* ↻ 답변 다시 시도 — 답변 없이 남은 질문(중단·실패) 복구 */
.retry-btn[b-0pxh1u99ar] {
    border: 1px solid rgb(16, 163, 127);
    background: #fff;
    color: rgb(13, 140, 110);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.88rem;
    cursor: pointer;
}

.retry-btn:hover[b-0pxh1u99ar] { background: #f0faf6; }

/* ✏️ 질문 인라인 수정 (초록 말풍선 안) */
.msg-bubble .edit-question[b-0pxh1u99ar] {
    width: 100%;
    min-width: min(300px, 60vw);
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
}

.edit-actions[b-0pxh1u99ar] {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}

.edit-actions button[b-0pxh1u99ar] {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.edit-actions .edit-save[b-0pxh1u99ar] {
    background: #fff;
    color: rgb(13, 140, 110);
    font-weight: 600;
}

.edit-actions .edit-cancel[b-0pxh1u99ar] {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.from-ai .msg-bubble[b-0pxh1u99ar]  pre {
    background: #1e1e1e;
    color: #eee;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
    position: relative; /* 복사 버튼(우상단 절대 배치) 기준 */
}

/* 코드블록 복사 버튼 — chat.js가 주입 (마크다운 통짜 HTML엔 Razor 버튼을 못 넣음) */
.from-ai .msg-bubble[b-0pxh1u99ar]  .code-copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
    background: rgba(255, 255, 255, 0.13);
    color: #ccc;
    cursor: pointer;
}

.from-ai .msg-bubble[b-0pxh1u99ar]  .code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.from-ai .msg-bubble[b-0pxh1u99ar]  .code-copy-btn.copied {
    background: rgb(16, 163, 127);
    color: #fff;
}

/* 답변 아래 동작 줄 — 제미나이식: 평소 숨김, 메시지에 마우스를 올리면 표시 */
.msg-actions[b-0pxh1u99ar] {
    height: 30px;
    display: flex;
    align-items: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}

.msg-col:hover .msg-actions[b-0pxh1u99ar] { opacity: 1; }

.msg-copy-btn[b-0pxh1u99ar],
.msg-regen-btn[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 6px;
    color: #5f6368;
    cursor: pointer;
    font-size: 0.78rem;
}

.msg-copy-btn:hover[b-0pxh1u99ar],
.msg-regen-btn:hover[b-0pxh1u99ar] { background: #e9e9e9; }

.msg-copy-btn.copied[b-0pxh1u99ar] {
    color: rgb(16, 163, 127);
    font-weight: 600;
}

/* 모바일: hover가 없으니 은은하게 항상 표시 */
@media (max-width: 768px) {
    .msg-actions[b-0pxh1u99ar] { opacity: 0.55; }
}
.from-ai .msg-bubble[b-0pxh1u99ar]  code { font-family: Consolas, monospace; }
/* 표는 자체 가로 스크롤 컨테이너로 — 열이 많은 표(검색 비교표·실적표)가 좁은 화면에서
   말풍선을 뚫고 나가 대화 전체를 옆으로 밀던 문제 방지(모바일). display:block+max-content로
   작은 표는 자연폭, 넓은 표는 말풍선 안에서 좌우 스크롤(GitHub·ChatGPT식, 셀 정렬 유지) */
.from-ai .msg-bubble[b-0pxh1u99ar]  table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 8px 0;
}
.from-ai .msg-bubble[b-0pxh1u99ar]  th,
.from-ai .msg-bubble[b-0pxh1u99ar]  td {
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 0.88rem;
    white-space: nowrap;       /* 숫자·라벨이 한 줄로 유지돼 좁은 화면에서 세로로 쌓이지 않고 표가 깔끔히 좌우 스크롤 */
}

.from-ai .msg-bubble[b-0pxh1u99ar]  th {
    background: #f5f5f5;
    font-weight: 600;
}

.typing[b-0pxh1u99ar] {
    color: #888;
}

.dots[b-0pxh1u99ar] {
    animation: blink-b-0pxh1u99ar 1.2s infinite;
}

@keyframes blink-b-0pxh1u99ar {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ----- 장소 사진 스트립 (웹검색 장소 추천 답변 상단 — AI 비전 검증 통과분만, GPT식) ----- */
.place-photos[b-0pxh1u99ar] {
    display: flex;
    gap: 10px;
    margin: 2px 0 12px;
}

/* ----- 장소 지도 카드 (카카오맵 — GPT식 답변 맨 위, chat.js initPlaceMaps가 그림) ----- */
.place-map[b-0pxh1u99ar] {
    height: 260px;
    border-radius: 12px;
    margin: 2px 0 10px;
    border: 1px solid #e3e6e8;
    background: #f0f2f4; /* SDK 로드 전 자리 표시 */
    overflow: hidden;
}

/* 마커 위 가게 이름 라벨 — JS(CustomOverlay)가 주입하므로 ::deep 필요 */
.place-map[b-0pxh1u99ar]  .map-label {
    background: #fff;
    border: 1px solid #d8dcdf;
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

/* 지도 아래 주소 목록 (2026-07-29 — 카카오 조회 주소를 그대로 표시, 최신 행정구역 확인용) */
.place-addrs[b-0pxh1u99ar] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: -4px 0 12px;
    padding: 8px 11px;
    background: #f7f8f9;
    border: 1px solid #eceef0;
    border-radius: 10px;
}

.place-addr[b-0pxh1u99ar] {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: 0.82rem;
    line-height: 1.45;
}

.place-addr .pa-name[b-0pxh1u99ar] {
    flex-shrink: 0;
    font-weight: 600;
    color: #0d8a6c;
    text-decoration: none;
}

.place-addr .pa-name:hover[b-0pxh1u99ar] { text-decoration: underline; }

.place-addr .pa-addr[b-0pxh1u99ar] { color: #666; }

/* 길찾기 배지 (2026-07-30) — 줄 오른쪽 끝. 카카오맵 경로 안내로 이동 */
.place-addr .pa-go[b-0pxh1u99ar] {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #e8f5f0;
    border: 1px solid #c9e5da;
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 0.76rem;
    color: #0d8a6c;
    text-decoration: none;
}

.place-addr .pa-go:hover[b-0pxh1u99ar] { background: #dcefe7; }

@media (max-width: 768px) {
    .place-map[b-0pxh1u99ar] { height: 220px; }
    .place-addr[b-0pxh1u99ar] { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 0.78rem; }
    /* 세로로 접히면 auto 마진이 의미 없어짐 */
    .place-addr .pa-go[b-0pxh1u99ar] { margin-left: 0; }
}

/* 타일 래퍼 — "+N" 배지(여분 사진 개수) 오버레이용 */
.pp-tile[b-0pxh1u99ar] {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 260px;
}

.pp-more[b-0pxh1u99ar] {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none; /* 클릭은 밑의 사진으로 통과 — 열고 나서 ‹ ›로 넘김 */
}

.place-photos img[b-0pxh1u99ar] {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f2f4;
    cursor: zoom-in; /* 클릭 = 라이트박스 확대 */
}

/* ----- 첨부 파일 칩 ----- */
.msg-files[b-0pxh1u99ar] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

/* 파일 카드 (2026-09-28 PDF에서 시작 → 2026-09-29 모든 파일로, GPT식) — PDF는 누르면 오른쪽 미리보기 창
   (chat.js openPdfViewer), 도면·3D는 기존 뷰어, 엑셀·PPT·글 파일은 바로 내려받기. 오른쪽 작은 아이콘이 그 구분(눈/화살표).
   .active는 지금 미리보기 창에 열린 PDF — JS가 붙였다 뗀다(격리 속성은 요소에 남아 있어 이 규칙이 그대로 먹는다) */
.file-card[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(320px, 100%);
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e1e5e7;
    border-radius: 14px;
    color: #1f2328;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.file-card:hover[b-0pxh1u99ar] { background: #f7f8f8; }
.file-card:hover .file-card-act[b-0pxh1u99ar] { color: rgb(16, 163, 127); }
.file-card:focus-visible[b-0pxh1u99ar] { outline: 2px solid rgb(16, 163, 127); outline-offset: 2px; }
.file-card.active[b-0pxh1u99ar] { border-color: rgb(16, 163, 127); background: #e9f6f1; }
.file-card-icon[b-0pxh1u99ar] { flex: none; width: 28px; height: 32px; }
.file-card-meta[b-0pxh1u99ar] { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.file-card-name[b-0pxh1u99ar] { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card-sub[b-0pxh1u99ar] { font-size: 0.75rem; color: #6a737b; }
.file-card-act[b-0pxh1u99ar] { flex: none; width: 18px; height: 18px; color: #9aa1a7; transition: color 0.15s; }

.pending-files[b-0pxh1u99ar] {
    max-width: 820px;
    margin: 0 auto 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.file-chip[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font-size: 0.8rem;
}

.pending-files .file-chip[b-0pxh1u99ar] {
    background: #eef7f4;
    border-color: rgb(16, 163, 127);
    color: rgb(13, 138, 108);
}

.chip-remove[b-0pxh1u99ar] {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.75rem;
    color: inherit;
    padding: 0 2px;
}

/* 전송 전 이미지 미리보기 타일 — 용량은 오른쪽에 (칩과 통일) */
.pending-thumb[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.thumb-img-wrap[b-0pxh1u99ar] {
    position: relative;
    display: inline-block;
}

.pending-thumb img[b-0pxh1u99ar] {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgb(16, 163, 127);
    cursor: zoom-in;
    display: block;
}

.thumb-img-wrap .chip-remove[b-0pxh1u99ar] {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 0.65rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-image[b-0pxh1u99ar] {
    max-width: min(240px, 100%);  /* 좁은 화면에서 말풍선 밖으로 삐져나가지 않게 */
    max-height: 240px;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
}

/* 첨부 용량 표시 (전송 전 대기 목록에만) */
.attach-size[b-0pxh1u99ar] {
    font-size: 0.72rem;
    opacity: 0.7;
}

.pending-thumb .attach-size[b-0pxh1u99ar] {
    color: #777;
}

/* ----- 이미지 확대 (라이트박스) ----- */
.lightbox[b-0pxh1u99ar] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img[b-0pxh1u99ar] {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close[b-0pxh1u99ar] {
    position: absolute;
    top: 18px;
    right: 26px;
    color: #fff;
    font-size: 1.6rem;
    opacity: 0.8;
}

/* 장소 사진 넘기기 (GPT식) — ‹ › 버튼 + "2/6" 카운터 + 가게 이름 */
.lb-nav[b-0pxh1u99ar] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    width: 46px;
    height: 68px;
    border-radius: 10px;
    cursor: pointer;
}

.lb-nav:hover[b-0pxh1u99ar] {
    background: rgba(255, 255, 255, 0.32);
}

.lb-prev[b-0pxh1u99ar] { left: 18px; }
.lb-next[b-0pxh1u99ar] { right: 18px; }

.lb-count[b-0pxh1u99ar] {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.85;
    font-size: 0.95rem;
}

.lb-name[b-0pxh1u99ar] {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.9;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lb-nav[b-0pxh1u99ar] { width: 38px; height: 56px; font-size: 1.8rem; }
    .lb-prev[b-0pxh1u99ar] { left: 8px; }
    .lb-next[b-0pxh1u99ar] { right: 8px; }
    /* 라이트박스 가게 이름: 긴 상호가 화면 양옆으로 삐져나가지 않게 폭 제한 + 말줄임 */
    .lb-name[b-0pxh1u99ar] { max-width: 84vw; overflow: hidden; text-overflow: ellipsis; }
    /* 첨부 삭제(✕) 버튼 탭 영역 확대 (기본 18px는 손가락으로 누르기 작음) */
    .chip-remove[b-0pxh1u99ar] { min-width: 30px; min-height: 30px; }
    .thumb-img-wrap .chip-remove[b-0pxh1u99ar] { width: 26px; height: 26px; top: -9px; right: -9px; }
}

/* ----- 문서 추출 텍스트 미리보기 ----- */
.file-chip.clickable[b-0pxh1u99ar] {
    cursor: pointer;
}

.file-chip.clickable:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
}

a.file-chip[b-0pxh1u99ar] {
    text-decoration: none;
    color: inherit;
}

a.file-chip:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
}

.footer-actions[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-link[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #666;
}

.settings-link:hover[b-0pxh1u99ar] {
    background: #ececee;
    color: rgb(16, 163, 127);
}

/* ----- 입력 영역 ----- */
.chat-input-area[b-0pxh1u99ar] {
    padding: 12px 24px 16px;
    border-top: 1px solid #eee;
}

.attach-btn[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 52px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
}

.attach-btn:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
}

.attach-btn .clip-icon[b-0pxh1u99ar] {
    width: 20px;
    height: 20px;
    color: #666;
}

.attach-btn:hover .clip-icon[b-0pxh1u99ar] {
    color: rgb(16, 163, 127);
}

.attach-btn[b-0pxh1u99ar]  input[type="file"] {
    display: none;
}

/* 파일 확장자 아이콘 배지 (XLS·PPT·PDF) — 채팅 칩·대기 목록 통일 */
.file-type-icon[b-0pxh1u99ar] {
    display: inline-block;
    min-width: 26px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.file-type-icon.xls[b-0pxh1u99ar] { background: #1f7145; } /* 엑셀 초록 */
.file-type-icon.ppt[b-0pxh1u99ar] { background: #c34524; } /* PPT 주황 */
.file-type-icon.pdf[b-0pxh1u99ar] { background: #c0392b; } /* PDF 빨강 */
.file-type-icon.cad[b-0pxh1u99ar] { background: #1f3864; } /* 도면 남색 (2026-08-11) */
.file-type-icon.stp[b-0pxh1u99ar] { background: #6b3fa0; } /* 3D 보라 (2026-08-12) */

/* 도면 SVG 인라인 표시 (2026-08-13) — 답변 말풍선에 도면이 바로 보임, 클릭=확대 뷰어 */
.drawing-inline[b-0pxh1u99ar] {
    display: block;
    max-width: min(440px, 100%);
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    margin: 6px 0;
    cursor: zoom-in;
}
.file-type-icon.etc[b-0pxh1u99ar] { background: #888; }

.chat-error[b-0pxh1u99ar] {
    max-width: 820px;
    margin: 0 auto 8px;
    color: #d33;
    font-size: 0.85rem;
}

.chat-input-box[b-0pxh1u99ar] {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-box textarea[b-0pxh1u99ar] {
    flex: 1;
    min-width: 0;              /* 폼 컨트롤이 flex에서 안 줄어드는 브라우저(WebKit) 대비 — 전송 버튼이 화면 밖으로 밀리지 않게 */
    box-sizing: border-box;
    height: 52px;              /* 시작 1줄 — 첨부 버튼(52px)과 높이 정렬 */
    min-height: 52px;
    max-height: 180px;         /* 약 6줄까지 자동 확장(chat.js), 그 이상은 스크롤 */
    padding: 13px 16px;
    line-height: 24px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;              /* 수동 손잡이 제거 — 자동 확장으로 대체 */
    overflow-y: auto;
}

.chat-input-box textarea:focus[b-0pxh1u99ar] {
    outline: none;
    border-color: rgb(16, 163, 127);
}

.send-btn[b-0pxh1u99ar] {
    padding: 14px 22px;
    background: rgb(16, 163, 127);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.send-btn:disabled[b-0pxh1u99ar] {
    background: #bbb;
    cursor: default;
}

.input-footer[b-0pxh1u99ar] {
    max-width: 820px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;           /* 좁은 화면에서 게이지 안내(≥80%)와 토큰 라벨이 겹치지 않고 줄바꿈되게 */
    gap: 2px 12px;
}

.token-label[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #999;
}

/* 대화 누적 게이지 (2026-07-23) — 토큰 사용량 줄 왼쪽, 압축 임계 대비 비율 */
.ctx-gauge[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;      /* 게이지는 왼쪽, 토큰 라벨은 오른쪽 유지 */
    font-size: 0.78rem;
    color: #999;
    cursor: default;
}

.ctx-note[b-0pxh1u99ar] {
    color: #ef9f27;
}

/* ----- 답변할 AI 선택 (2026-10-23, 시안 5-B) — 앱은 초록 그대로, 단추·점·표시만 AI 색 (GPT 초록 / Claude 주황) ----- */
.ai-picker-wrap[b-0pxh1u99ar] {
    position: relative;
    display: inline-flex;
}

.ai-picker[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: 14px;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.ai-picker.claude[b-0pxh1u99ar] {
    background: #fdf4f0;
    border-color: #e3b9a8;
}

.ai-picker:disabled[b-0pxh1u99ar] {
    opacity: 0.6;
    cursor: default;
}

.ai-dot[b-0pxh1u99ar] {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-menu-backdrop[b-0pxh1u99ar] {          /* 메뉴 밖을 누르면 닫힘 */
    position: fixed;
    inset: 0;
    z-index: 40;
}

.ai-menu[b-0pxh1u99ar] {
    position: absolute;
    left: 0;
    bottom: 36px;
    z-index: 41;
    width: 330px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-menu-head[b-0pxh1u99ar] {
    font-size: 0.75rem;
    color: #666;
    padding: 6px 10px 4px;
}

.ai-opt[b-0pxh1u99ar] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.ai-opt:hover[b-0pxh1u99ar] { background: #f5f5f5; }
.ai-opt.on[b-0pxh1u99ar] { background: #eef7f3; }
.ai-opt .ai-dot[b-0pxh1u99ar] { margin-top: 6px; }

.ai-opt-text[b-0pxh1u99ar] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-opt-name[b-0pxh1u99ar] { font-size: 0.88rem; font-weight: 600; color: #222; }
.ai-opt-model[b-0pxh1u99ar] { font-weight: 400; color: #666; }
.ai-opt-desc[b-0pxh1u99ar] { font-size: 0.75rem; color: #666; }

.ai-menu-note[b-0pxh1u99ar] {
    margin-top: 4px;
    padding: 8px 10px 4px;
    border-top: 1px solid #eee;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #666;
}

/* 답변 아래 "○○로 답변" — 동작 줄(마우스 올릴 때만)과 달리 항상 보임 */
.ai-label[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #666;
}

/* 방 목록 — 그 방에서 고른 AI 점 */
.room-ai-dot[b-0pxh1u99ar] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 4px;
}

/* ----- 상태등 (1차 GIF 상태등의 CSS 재현) — 채팅 영역 오른쪽 위 고정 -----
   원본 GIF 팔레트: 대기 #787882 / 웹검색·검색 #28B464 / 파일 #E6961E */
.status-area[b-0pxh1u99ar] {
    position: absolute;
    top: 12px;
    right: 22px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #eee;
    border-radius: 16px;
    backdrop-filter: blur(2px);
}

.status-caption[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #888;
}

.status-gif[b-0pxh1u99ar] {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

/* ----- 전송 열: 간단답변 토글 + 전송 버튼 ----- */
.send-col[b-0pxh1u99ar] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.switch-wrap[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.switch-wrap input[b-0pxh1u99ar] {
    display: none;
}

.switch-label[b-0pxh1u99ar] {
    font-size: 0.75rem;
    color: #666;
}

.switch-slider[b-0pxh1u99ar] {
    position: relative;
    width: 34px;
    height: 18px;
    background: #ccc;
    border-radius: 9px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.switch-slider[b-0pxh1u99ar]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch-wrap input:checked + .switch-slider[b-0pxh1u99ar] {
    background: rgb(16, 163, 127);
}

.switch-wrap input:checked + .switch-slider[b-0pxh1u99ar]::after {
    left: 18px;
}

/* ===== 공유 선택창 (2026-08-21) — 전 직원 공개 / 지정 인원 2택 ===== */
.share-ovl[b-0pxh1u99ar] { position: fixed; inset: 0; background: rgba(20,24,28,.45); display: flex;
             align-items: center; justify-content: center; z-index: 1000; }
.share-dlg[b-0pxh1u99ar] { width: 400px; max-width: 92vw; background: #fff; border-radius: 14px; padding: 22px 24px;
             box-shadow: 0 12px 40px rgba(0,0,0,.25); position: relative; }
.share-close[b-0pxh1u99ar] { position: absolute; top: 14px; right: 16px; border: none; background: none;
               font-size: 17px; color: #aab1ba; cursor: pointer; }
.share-title[b-0pxh1u99ar] { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; padding-right: 24px; }
.share-room-nm[b-0pxh1u99ar] { color: #10a37f; }
.share-warn[b-0pxh1u99ar] { font-size: 12px; color: #a05a1f; background: #fdf6ec; border-radius: 7px;
              padding: 8px 11px; margin: 10px 0 14px; line-height: 1.5; }
.share-cur[b-0pxh1u99ar] { font-size: 13.5px; color: #444; margin-bottom: 10px; }
.share-big[b-0pxh1u99ar] { width: 100%; background: #10a37f; color: #fff; border: none; border-radius: 9px;
             padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.share-big:hover[b-0pxh1u99ar] { background: #0d8a6b; }
.share-alt[b-0pxh1u99ar] { width: 100%; background: none; border: none; color: #556069; font-size: 13.5px;
             margin-top: 12px; cursor: pointer; font-family: inherit; padding: 6px; }
.share-alt:hover[b-0pxh1u99ar] { color: #10a37f; }
.share-unshare[b-0pxh1u99ar] { width: 100%; background: #fff; border: 1.5px solid #d64545; color: #c0392b;
                 border-radius: 9px; padding: 10px; font-size: 14px; font-weight: 700;
                 cursor: pointer; font-family: inherit; margin-top: 8px; }
.share-picker[b-0pxh1u99ar] { margin-top: 10px; border-top: 1px solid #eceef0; padding-top: 12px; }
.share-search[b-0pxh1u99ar] { width: 100%; border: 1px solid #d5d8dc; border-radius: 7px; padding: 7px 11px;
                font-size: 13px; font-family: inherit; margin-bottom: 8px; box-sizing: border-box; }
.share-plist[b-0pxh1u99ar] { max-height: 168px; overflow-y: auto; border: 1px solid #eceef0; border-radius: 8px; }
.share-p[b-0pxh1u99ar] { display: flex; align-items: center; gap: 8px; padding: 7px 11px; font-size: 13.5px;
           cursor: pointer; }
.share-p:hover[b-0pxh1u99ar] { background: #f4f6f7; }
.share-p small[b-0pxh1u99ar] { color: #9aa1a9; }
.share-p-empty[b-0pxh1u99ar] { padding: 12px; font-size: 13px; color: #9aa1a9; text-align: center; }
.share-selbtn[b-0pxh1u99ar] { width: 100%; margin-top: 10px; background: #2b5ea7; color: #fff; border: none;
                border-radius: 9px; padding: 11px; font-size: 14px; font-weight: 700;
                cursor: pointer; font-family: inherit; }
.share-selbtn:disabled[b-0pxh1u99ar] { background: #c3cbd3; cursor: default; }

/* 방 목록 공유 뱃지 — 전체(초록) / N명·지정(파랑) */
.share-badge[b-0pxh1u99ar] { font-size: 10px; border-radius: 9px; padding: 1px 6px; margin-left: 4px;
               flex: none; white-space: nowrap; }
.share-badge.all[b-0pxh1u99ar] { background: #e6f2ef; color: #0c6b52; border: 1px solid #bfe0cf; }
.share-badge.sel[b-0pxh1u99ar] { background: #eef3fb; color: #2b5ea7; border: 1px solid #c7d8f0; }

/* ===== 건의·신고 (2026-09-04) ===== */
.msg-flag-btn[b-0pxh1u99ar] {
    background: none;
    border: 0;
    padding: 3px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1;
    opacity: 0.75;
}

.msg-flag-btn:hover[b-0pxh1u99ar] {
    background: #f3f3f5;
    opacity: 1;
}

.fb-link[b-0pxh1u99ar] {
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.fb-veil[b-0pxh1u99ar] {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 26, 0.42);
    z-index: 60;
}

.fb-modal[b-0pxh1u99ar] {
    position: fixed;
    z-index: 61;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 20px 22px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.fb-modal h3[b-0pxh1u99ar] {
    margin: 0 0 3px;
    font-size: 1rem;
}

.fb-lead[b-0pxh1u99ar] {
    margin: 0 0 15px;
    font-size: 0.78rem;
    color: #6e7681;
    line-height: 1.5;
}

.fb-kinds[b-0pxh1u99ar] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 13px;
}

.fb-kinds label[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
}

.fb-kinds label.on[b-0pxh1u99ar] {
    border-color: #10a37f;
    background: #f0faf7;
    color: #0d8a6b;
    font-weight: 600;
}

.fb-text[b-0pxh1u99ar] {
    width: 100%;
    min-height: 74px;
    resize: vertical;
    padding: 10px 12px;
    font: inherit;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.fb-auto[b-0pxh1u99ar] {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f7f8;
    font-size: 0.72rem;
    color: #6e7681;
    line-height: 1.6;
}

.fb-auto b[b-0pxh1u99ar] {
    display: block;
    color: #4d5157;
    margin-bottom: 3px;
}

.fb-err[b-0pxh1u99ar] {
    margin-top: 10px;
    font-size: 0.78rem;
    color: #c0392b;
}

.fb-btns[b-0pxh1u99ar] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.fb-btn[b-0pxh1u99ar] {
    padding: 8px 16px;
    border-radius: 7px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #4d5157;
    cursor: pointer;
}

.fb-btn.go[b-0pxh1u99ar] {
    background: #10a37f;
    border-color: #10a37f;
    color: #fff;
    font-weight: 600;
}

.fb-btn.go:hover[b-0pxh1u99ar] {
    background: #0d8a6b;
}

/* ----- 대화창 진행 카드 (2026-10-15) — 파일을 만드는 동안 답변 자리에 단계·경과 시간 ----- */
.prog-card[b-0pxh1u99ar] {
    width: min(380px, 100%);
    display: grid;
    gap: 8px;
}
.prog-head[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
}
.prog-head img[b-0pxh1u99ar] { width: 24px; height: 24px; flex-shrink: 0; }
.prog-el[b-0pxh1u99ar] {
    margin-left: auto;
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}
.prog-steps[b-0pxh1u99ar] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}
.prog-steps li[b-0pxh1u99ar] {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 0.84rem;
    color: #6a737b;
}
.prog-steps li.done[b-0pxh1u99ar] { color: #222; }
.prog-steps li.now[b-0pxh1u99ar] { color: #222; font-weight: 700; }
.prog-dot[b-0pxh1u99ar] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #b8bfc4;
    justify-self: center;
    position: relative;
}
.prog-steps li.done .prog-dot[b-0pxh1u99ar] { border-color: rgb(16, 163, 127); background: rgb(16, 163, 127); }
.prog-steps li.done .prog-dot[b-0pxh1u99ar]::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.prog-steps li.now .prog-dot[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
    border-top-color: transparent;
    animation: prog-spin-b-0pxh1u99ar 0.9s linear infinite;
}
.prog-s[b-0pxh1u99ar] {
    font-weight: 400;
    font-size: 0.78rem;
    color: #888;
    font-variant-numeric: tabular-nums;
}
.prog-hint[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #6a737b;
    border-top: 1px dashed #d6dadc;
    padding-top: 7px;
}
@keyframes prog-spin-b-0pxh1u99ar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .prog-steps li.now .prog-dot[b-0pxh1u99ar] { animation: none; border-top-color: rgb(16, 163, 127); }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* ===== 로그인 화면 ===== */
.login-wrap[b-b4r49q7042] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f8;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
}

.login-box[b-b4r49q7042] {
    width: 360px;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.login-brand[b-b4r49q7042] {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: rgb(16, 163, 127); /* 브랜드 초록 */
    text-align: center;
}

/* 버전 표시 — 사이드바 v1.0과 동일 톤 (2026-07-23) */
.login-ver[b-b4r49q7042] {
    font-size: 0.8rem;
    color: #9aa0a6;
    font-weight: 600;
}

.login-desc[b-b4r49q7042] {
    margin: 6px 0 28px;
    text-align: center;
    color: #6b6b6b;
    font-size: 0.9rem;
}

.login-label[b-b4r49q7042] {
    display: block;
    margin: 14px 0 6px;
    font-size: 0.85rem;
    color: #333;
}

[b-b4r49q7042] .login-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

[b-b4r49q7042] .login-input:focus {
    outline: none;
    border-color: rgb(16, 163, 127);
}

.login-button[b-b4r49q7042] {
    width: 100%;
    margin-top: 24px;
    padding: 11px 0;
    background: rgb(16, 163, 127);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover[b-b4r49q7042] {
    background: rgb(13, 138, 108);
}

[b-b4r49q7042] .login-error {
    display: block;
    margin-top: 6px;
    color: #d33;
    font-size: 0.85rem;
}
/* /Components/Pages/Preferences.razor.rz.scp.css */
/* ===== 내 설정 (개인 설정) ===== */
.pref-page[b-o9tmj4zs5p] {
    min-height: 100vh;
    background: #f7f7f8;
    padding: 32px 16px;
    font-family: "맑은 고딕", "Malgun Gothic", sans-serif;
}

.pref-box[b-o9tmj4zs5p] {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 32px;
}

.pref-header[b-o9tmj4zs5p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pref-header h1[b-o9tmj4zs5p] {
    margin: 0;
    font-size: 1.4rem;
    color: rgb(16, 163, 127);
}

.back-link[b-o9tmj4zs5p] {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

.back-link:hover[b-o9tmj4zs5p] {
    color: rgb(16, 163, 127);
}

.pref-desc[b-o9tmj4zs5p] {
    margin: 12px 0 20px;
    font-size: 0.85rem;
    color: #777;
}

.pref-row[b-o9tmj4zs5p] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.pref-label[b-o9tmj4zs5p] {
    width: 140px;
    min-width: 140px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    padding-top: 6px;
}

.pref-control[b-o9tmj4zs5p] {
    flex: 1;
    min-width: 0;              /* 좁은 화면에서 컨트롤이 라벨에 밀려 넘치지 않게 */
}

/* '내 지역' 등 한 줄 입력칸 — textarea와 동일하게 폭을 컨트롤 영역에 맞춤
   (width 미지정 시 기본 폭 ~180px로 좁은 화면에서 오른쪽이 잘리던 문제) */
.pref-control input[type="text"][b-o9tmj4zs5p] {
    width: 100%;
    box-sizing: border-box;
}

/* 글자 크기 등 선택 상자 */
.pref-select[b-o9tmj4zs5p] {
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fff;
}

.check-line[b-o9tmj4zs5p] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #333;
    cursor: pointer;
    padding-top: 6px;
}

.pref-control textarea[b-o9tmj4zs5p] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

/* 글자 수 카운터 — chat.js initCharCounter가 클라이언트에서 갱신 */
.char-counter[b-o9tmj4zs5p] {
    text-align: right;
    font-size: 0.76rem;
    color: #999;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.char-counter.over[b-o9tmj4zs5p] {
    color: #d64545;
    font-weight: 700;
}

.pp-warn[b-o9tmj4zs5p] {
    font-size: 0.8rem;
    color: #d64545;
    margin-top: 2px;
}

.pref-control textarea:focus[b-o9tmj4zs5p] {
    outline: none;
    border-color: rgb(16, 163, 127);
}

.pref-hint[b-o9tmj4zs5p] {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #999;
    line-height: 1.5;
}

/* 지금 적용 중인 검색 지역 표시 (2026-08-11) */
.region-now[b-o9tmj4zs5p] {
    margin-top: 8px;
    padding: 7px 11px;
    background: #eef7f4;
    border: 1px solid #cfe7e0;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #23272b;
}

.region-now b[b-o9tmj4zs5p] {
    color: rgb(13, 138, 108);
}

.region-src[b-o9tmj4zs5p] {
    color: #7a8085;
    font-size: 0.76rem;
    margin-left: 4px;
}

.pref-actions[b-o9tmj4zs5p] {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.save-btn[b-o9tmj4zs5p] {
    padding: 10px 28px;
    background: rgb(16, 163, 127);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;            /* 옆의 긴 안내 문구에 눌려 버튼 글자가 두 줄로 찌그러지지 않게 */
    white-space: nowrap;
}

.save-btn:disabled[b-o9tmj4zs5p] {
    background: #bbb;
}

.saved-msg[b-o9tmj4zs5p] {
    font-size: 0.85rem;
    color: rgb(13, 138, 108);
}

/* 실패·차단 안내는 빨간색 (성공 초록과 구분) */
.saved-msg.error[b-o9tmj4zs5p] {
    color: #d64545;
}
