/* 전체 스타일 초기화 */
* {
    box-sizing: border-box;
    font-family: system-ui, sans-serif, -apple-system, BlinkMacSystemFont;
}
/* 바디 스타일 */
body {
    margin: 0;
    background: #fff;
}
/* 메인 컨테이너 스타일 설정 */
.main {
    max-width: 393px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
/* 헤더 스타일 설정 */
header {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid #000;
    font-weight: bold;
}
/* 헤더 제목 스타일 */
header h1 {
    font-size: 20px;
    margin: 0;
}
/* 헤더 서브타이틀 스타일 */
header p.sub {
    font-size: 14px;
}

/* 로그인 섹션 스타일 */
.login {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #000;
}

/* 로그인 버튼 컨테이너 스타일 */
.login-button {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #000;
}

/* 로그인 버튼 스타일 */
.login-btn {
    margin-top: 10px;
    width: 200px;
    height: 40px;
    background: #00ffa3;
    color: #000;
    border: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 30px;
}
/* 닫기 버튼 스타일 */
.close-btn {
    margin-top: 10px;
    width: 80px;
    height: 30px;
    background: #b8fffb;
    color: #000;
    border: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
}
/* 확인 버튼 스타일 */
.confirm-btn {
    margin-top: 10px;
    width: 80px;
    height: 30px;
    background: #c1c1fa;
    color: #000;
    border: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
}
/* 모달 로그인 버튼 스타일 */
.modal-login-btn {
    margin-top: 10px;
    width: 120px;
    height: 30px;
    background: #00ffa3;
    color: #000;
    border: none;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
}
/* 멤버 선택 섹션 스타일 */
.member-section {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
}

/* 멤버 선택 제목 스타일 */
.member-section h2 {
    text-align : center;
    margin-bottom: 16px;
}

/* 멤버 리스트 스타일 */
.member-list {
    display : grid;
    grid-template-columns : repeat(2, 1fr);
    gap : 16px;
/* 스크롤 끝 여백 */
    padding-bottom: 24px;
}

/* 개별 멤버 카드 스타일 */
.member {
    border : 1px solid #000;
    background : #fff;
    padding : 8px;
    cursor : pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 멤버 이미지 스타일 */
.member img {
    aspect-ratio : 1 / 1;
    width : 100%;
    height : auto;
    object-fit: cover;
    image-rendering: auto;
    image-rendering: smooth;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
}

/* 멤버 선택 이름 스타일 */
.member span {
    display : block;
    margin-top : 6px;
    font-size : 13px;
    text-align : center;
}

/* 멤버 선택 비활성화 스타일 */
.member.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* 하단 스타일 */
footer {
    padding: 12px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #000;
}

/* 모달 백드롭 스타일 */
#modal-backdrop {
    position: fixed;
    top : 0;
    left : 0;
    width : 100vw;
    height : 100vh;
/* 반투명 검정 배경 */
    background : rgba(0, 0, 0, 0.5);
    z-index: 9999;
/* 모달 컨텐츠 중앙 정렬 */
    display: flex;
    justify-content: center;
    align-items: center;
/* 모바일 터치 차단 */
    touch-action: none;
}

/* 모달 백드롭 숨김 스타일 */
#modal-backdrop.hidden {
    display: none;
}

/* 모달 스타일 */
#modal {
    width : calc(100% - 40px);
    max-width : 420px;
    text-align: center;
    background-color: #fff;
    border-radius : 14px;
    padding : 20px;
/* 모달 그림자 효과 */
    box-shadow : 0 10px 30px rgba(0,0,0,0.25);
}

/* 숨김 클래스 */
.hidden {
    display: none !important;
}

/* 모달 css */
.modal-wrapper {
    width : calc(100% - 40px);
    max-width : 420px;
    background: #fff;
    border: 1px solid #000;
    padding: 20px;
    font-family: sans-serif;
    margin: 0 auto;
}
/* 모달 헤더 스타일 */
.modal-header {
    text-align: center;
    font-weight: bold;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 모달 구분선 */
.modal-hr{
    border-color : black;
}

/* 멤버 컬러 텍스트 스타일 */
.member-color-text {
    font-size: 700;
}

/* 정보 row 스타일 */
.info-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

/* 구분선 스타일 */
.divider {
    border-top : 1px solid #000;
    margin: 20px 0;
    text-align: center;
    position: relative;
}

/* 구분선 span 스타일 */
.divider span {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 10px;
    font-weight: bold;
}
/* 2번째 구역 */
.nd_sec {
    display: flex;
    align-items: center;
    padding: 20px 0;
}
/* 2번째 구역 이미지 스타일 */
.nd_img {
    width: 102px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
}
/* 2번째 구역 div 스타일 */
.nd_div {
    margin-left:40px;
}
/* 2번째 구역 첫번째 p 스타일 */
.nd_p1 {
    width: 173px;
    height: 50px;
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}
/* 2번째 구역 두번재 p 스타일 */
.nd_p2 {
    width: 173px;
    height: 50px;
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}
/* 3번째 구역 span 스타일 */
.th_span {
    width: 393px;
    height: 70px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #000;
}

/* 라인 스타일 */
.line {
    flex-grow: 1;
    height: 2px;
    background: black;
    margin: 20px 0;
    position: relative;
}
/* 라인 텍스트 스타일 */
.divider-text {
    padding: 0 10px;
    font-weight: bold;
    font-size: 16px;
}
/* 라인 컨테이터 스타일 */
.divider-container {
    display: flex;
    align-items: center;

}
/* 다크모드 스타일 */
[data-theme='dark'] .divider-container .line {
    background-color: #444 !important;
}
@media (prefers-color-scheme: dark) {
    /* 다크모드 스타일 */
.divider-container .line {
    background-color: #444 !important;
}
}
/* 정보 row 스타일 */
.info-row {
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 16px;
}