/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-cfcvj8ilt2] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-cfcvj8ilt2] {
    flex: 1;
}

.sidebar[b-cfcvj8ilt2] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-cfcvj8ilt2] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-cfcvj8ilt2]  a, .top-row[b-cfcvj8ilt2]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-cfcvj8ilt2]  a:hover, .top-row[b-cfcvj8ilt2]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-cfcvj8ilt2]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-cfcvj8ilt2] {
        justify-content: space-between;
    }

    .top-row[b-cfcvj8ilt2]  a, .top-row[b-cfcvj8ilt2]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-cfcvj8ilt2] {
        flex-direction: row;
    }

    .sidebar[b-cfcvj8ilt2] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-cfcvj8ilt2] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-cfcvj8ilt2]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-cfcvj8ilt2], article[b-cfcvj8ilt2] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-cfcvj8ilt2] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-cfcvj8ilt2] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-was7cwz8lu] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-was7cwz8lu] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-was7cwz8lu] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-was7cwz8lu] {
    font-size: 1.1rem;
}

.bi[b-was7cwz8lu] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-was7cwz8lu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-was7cwz8lu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-was7cwz8lu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-was7cwz8lu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-was7cwz8lu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-was7cwz8lu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-was7cwz8lu]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-was7cwz8lu]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-was7cwz8lu]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-was7cwz8lu] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-was7cwz8lu] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-was7cwz8lu] {
        display: none;
    }

    .nav-scrollable[b-was7cwz8lu] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /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 td:nth-child(n+2)[b-jy9p7hagqd] {
    text-align: right;
}

.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;
}

/* 사용 권한 관리 */
.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);
}

.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;
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ===== 채팅 화면 (ChatGPT 스타일) ===== */
.chat-page[b-0pxh1u99ar] {
    display: flex;
    height: 100vh;
    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;
}

.sidebar-header[b-0pxh1u99ar] {
    padding: 16px 14px 8px;
}

.brand[b-0pxh1u99ar] {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgb(16, 163, 127);
}

.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;
}

/* 즐겨찾기 별 — 켜진 별은 항상 표시 (금색) */
.room-btn.star.on[b-0pxh1u99ar] {
    opacity: 1;
    color: #f0a500;
}

.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[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; /* 메시지·입력 영역은 워터마크 위에 */
}

.chat-messages[b-0pxh1u99ar] {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.chat-empty[b-0pxh1u99ar] {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.3rem;
}

.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;
}

.msg-bubble[b-0pxh1u99ar] {
    max-width: 85%;
    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]  pre {
    background: #1e1e1e;
    color: #eee;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85rem;
}
.from-ai .msg-bubble[b-0pxh1u99ar]  code { font-family: Consolas, monospace; }
.from-ai .msg-bubble[b-0pxh1u99ar]  table {
    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;
}

.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; }
}

/* ----- 첨부 파일 칩 ----- */
.msg-files[b-0pxh1u99ar] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.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: 240px;
    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;
}

/* 문서 다운로드 버튼 (전송 후 말풍선 — 연결 프로그램으로 열기용) */
.chip-download[b-0pxh1u99ar] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
    font-size: 0.75rem;
    vertical-align: middle;
}

.chip-download:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
    color: rgb(13, 138, 108);
}

/* ----- 이미지 확대 (라이트박스) ----- */
.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;
}

/* ----- 문서 추출 텍스트 미리보기 ----- */
.file-chip.clickable[b-0pxh1u99ar] {
    cursor: pointer;
}

.file-chip.clickable:hover[b-0pxh1u99ar] {
    border-color: rgb(16, 163, 127);
}

.text-preview[b-0pxh1u99ar] {
    background: #fff;
    width: min(720px, 92vw);
    max-height: 82vh;
    border-radius: 12px;
    padding: 18px 22px;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.text-preview-header[b-0pxh1u99ar] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.text-preview pre[b-0pxh1u99ar] {
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "맑은 고딕", Consolas, monospace;
    font-size: 0.83rem;
    line-height: 1.6;
    color: #333;
}

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] {
    text-decoration: none;
    font-size: 1.1rem;
    color: #666;
}

.settings-link:hover[b-0pxh1u99ar] {
    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.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-height: 52px;
    max-height: 180px;
    padding: 14px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.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;
}

.token-label[b-0pxh1u99ar] {
    font-size: 0.78rem;
    color: #999;
}

/* ----- 상태등 (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;
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* ===== 로그인 화면 ===== */
.login-notice[b-b4r49q7042] {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 0.74rem;
    line-height: 1.6;
    color: #999;
    text-align: center;
    word-break: keep-all;      /* 한글 단어 중간에서 끊기지 않고 띄어쓰기 단위로만 줄바꿈 */
    overflow-wrap: break-word; /* 아주 긴 단어(예외)는 그때만 줄바꿈 */
}

.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;
}

.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;
}

.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;
}

.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;
}

.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;
}

.save-btn:disabled[b-o9tmj4zs5p] {
    background: #bbb;
}

.saved-msg[b-o9tmj4zs5p] {
    font-size: 0.85rem;
    color: rgb(13, 138, 108);
}
