.system-bug-report-button{
    position:fixed;
    right:14px;
    bottom:14px;
    z-index:999900;
    display:flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:7px 11px;
    border:1px solid #cbd5e1;
    border-radius:999px;
    background:rgba(255,255,255,.96);
    color:#334155;
    box-shadow:0 8px 24px rgba(15,23,42,.18);
    font-size:10px;
    font-weight:900;
    cursor:pointer;
}
.system-bug-modal-backdrop{
    position:fixed;
    inset:0;
    z-index:1000100;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(15,23,42,.58);
}
.system-bug-modal-backdrop.is-open{display:flex}
.system-bug-modal{
    width:min(520px,94vw);
    border-radius:16px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.35);
    overflow:hidden;
}
.system-bug-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    border-bottom:1px solid #e5e7eb;
}
.system-bug-modal-head strong{font-size:16px;color:#0f172a}
.system-bug-modal-close{width:34px;height:34px;border:0;border-radius:9px;background:#f1f5f9;color:#111827;font-size:22px;cursor:pointer}
.system-bug-modal-body{padding:16px 18px}
.system-bug-modal-body p{margin:0 0 10px;color:#64748b;font-size:11px;line-height:1.5}
.system-bug-modal-body textarea{width:100%;min-height:150px;resize:vertical;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:11px;color:#0f172a;font-size:12px;line-height:1.55;outline:none}
.system-bug-modal-body textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.system-bug-page-info{margin-top:8px;padding:8px 10px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:9px;word-break:break-all}
.system-bug-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #e5e7eb;background:#f8fafc}
.system-bug-modal-foot button{border:0;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:900;cursor:pointer}
.system-bug-cancel{background:#e2e8f0;color:#475569}.system-bug-submit{background:#1d4ed8;color:#fff}
@media(max-width:1024px){.system-bug-report-button{bottom:76px;right:12px}}

/* 최고관리자 전용 미처리 오류 배지 - 일반 레이아웃을 밀지 않는 고정형 */
.system-super-error-alert{
    position:fixed;
    right:18px;
    bottom:86px;
    z-index:999997;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:48px;
    height:42px;
    padding:0 11px;
    border:2px solid #fff;
    border-radius:999px;
    background:#dc2626;
    color:#fff;
    box-shadow:0 10px 28px rgba(185,28,28,.32);
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}
.system-super-error-alert:hover{background:#b91c1c;transform:translateY(-1px)}
.system-super-error-icon{font-size:18px;line-height:1}
.system-super-error-alert strong{font-size:12px;line-height:1}
@media(max-width:1024px){
    .system-super-error-alert{right:12px;bottom:138px;height:40px;min-width:44px;padding:0 9px}
}


/* PATCH 106: 실제 mobile-site에서는 챗봇과 겹치지 않는 소형 버그 신고 버튼 */
@media(max-width:1280px){
    body.mobile-site .system-bug-report-button{
        right:max(12px,env(safe-area-inset-right))!important;
        bottom:calc(var(--m-bottom,76px) + env(safe-area-inset-bottom) + 72px)!important;
        width:44px!important;
        min-width:44px!important;
        height:44px!important;
        min-height:44px!important;
        padding:0!important;
        border-radius:14px!important;
        justify-content:center!important;
        gap:0!important;
        z-index:10008!important;
    }
    body.mobile-site .system-bug-report-button>span:first-child{
        font-size:19px!important;
        line-height:1!important;
    }
    body.mobile-site .system-bug-report-button>span:nth-child(2){display:none!important}
    body.mobile-site .system-super-error-alert{
        right:max(12px,env(safe-area-inset-right))!important;
        bottom:calc(var(--m-bottom,76px) + env(safe-area-inset-bottom) + 124px)!important;
        z-index:10009!important;
    }
}


/* PATCH 107: 고객용 수동 버그신고 플로팅 UI 제거
   - 자동 시스템 오류 수집/관리자 이벤트 로그 기능은 그대로 유지한다. */
.system-bug-report-button,
.system-bug-modal-backdrop{
    display:none!important;
}
