
/* =========================================================
   teample / style.css
   ─ 팀플 전용 스타일시트 (GnuBoard 테마 위에 올라오는 레이어)
   ─ 로드 순서: GnuBoard mobile.css → 이 파일 (우선순위 높음)
   ========================================================= */


/* =========================================================
   1. CSS 변수 (브랜드 컬러 토큰)
   ========================================================= */
:root {
    --brand-primary:   #16a34a;   /* 메인 그린 */
    --brand-light:     #dcfce7;   /* 연한 그린 배경 */
    --brand-dark:      #14532d;   /* 짙은 그린 */
    --brand-card-bg:   #0f1923;   /* 히어로 카드 배경 (다크 네이비) */
    --brand-accent:    #22c55e;   /* 밝은 그린 강조 */
}


/* =========================================================
   2. 레이아웃 기초
   ========================================================= */

/* 헤더 고정 높이만큼 아래로 밀기 + Safe Area (노치) 대응 */
#wrapper {
    margin-top: calc(env(safe-area-inset-top) + 60px);
}

#container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
	background: #fff;
}
/* 서브 페이지 상단 타이틀 */
#container_title {
    box-shadow: none;
    margin-bottom: 10px;
}
#user_menu{width: clamp(300px, calc(50%), 400px);}
/* =========================================================
   3. 공통 유틸리티
   ========================================================= */
.flex { display: flex; align-items: center; }

.sv-section {
padding: 0 16px;
position: relative;
margin-bottom: 30px;
}
.sv-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.sv-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 800; color: #111; margin: 0;
}
.sv-section-title .material-symbols-outlined { font-size: 18px; }
.sv-title-join   .material-symbols-outlined { color: var(--brand-primary); }
.sv-title-nojoin .material-symbols-outlined { color: #64748b; }
.sv-title-ignore .material-symbols-outlined { color: #94a3b8; }
.sv-cnt { font-size: 13px; font-weight: 700; margin-left: 2px; }
.sv-section-actions { display: flex; gap: 8px; }
.sv-action-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; color: var(--brand-primary);
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
    padding: 5px 10px; text-decoration: none;
}
.sv-action-link .material-symbols-outlined { font-size: 14px; }



.sv-section-label-box{display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;}
.sv-section .sv-section-label{font-size: 13px; color: #6B7280; font-weight: 600;}
.sv-att-num{font-size: 13px; color: #6B7280; font-weight: 400;}
.sv-section-head .sv-title-join{font-weight: 500; font-size: 13px; color: #6B7280;}
.sv-section-head .join-cnt i{color: var(--brand-primary);}


i{font-style: normal;}
pre {
    font-family: 'Noto Sans KR' , sans-serif;
    margin: 0;
    white-space: pre-line;
	overflow: hidden;
	-ms-word-break: keep-all;
	word-break: keep-all;
	line-height: 170%;
	font-size: 0.85rem;
	letter-spacing: -0.25px;
}

img {
	max-width: 100%;
	height: auto;
	width: auto\9; /* ie8 */
}


/* =========================================================
   4. 헤더
   ========================================================= */
header#header {
    position: fixed;
    width: 100%; top: 0; left: 0;
    z-index: 99999999;
    background: #fff;
    border-bottom: 1px solid #E7ECEF;
    /* iOS Safe Area (노치/Dynamic Island) */
    padding-top: calc(constant(safe-area-inset-top));
    padding-top: calc(env(safe-area-inset-top));
}

header#header .hd_wrap {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
    padding: 0 16px;
}
header#header .hd_wrap > div > a { display: block; padding: 10px 0px 5px; }
header#header .hd_wrap h2 { font-size: 13px; font-weight: 400; }

/* 뒤로가기 영역과 메뉴 아이콘 영역 - 같은 너비로 로고 가운데 정렬 */
header#header .hd_wrap .back,
header#header .hd_wrap #hd_menu { flex-basis: 88px; }

/* 로고 이미지 */
#logo img { max-height: 25px; }
header#header .hd_wrap #logo a { padding-top: 5px; }

/* 우측 아이콘 열 */
#hd_menu > div > .flex { gap: 10px; justify-content: flex-end; }
header#header button#us_btn { display: block; border: 0; background: none; }

/* h1 숨김 텍스트 */
header#header h1 a { display: flex; align-items: center; text-transform: uppercase; }
header#header h1 a img { width: 30px; }


.board{text-align: left; margin-top: 10px;  padding: 10px;}
.board li{margin-bottom: 10px;}
.board li a {display: flex;background: #f5f5f5;border-radius: 10px;padding: 10px 20px;align-items: center;gap: 5px;}



/* =========================================================
   5. 하단 네비게이션
   ========================================================= */
#bottom_menu {
    position: fixed;
    bottom: 0; width: 100%; left: 0;
    border-top: 1px solid #e1e1e1;
    background: #fff;
    z-index: 999999999;
}
#bottom_menu .bt_m_wrap ul {
    display: flex;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
#bottom_menu .bt_m_wrap ul li { flex: 1; }
#bottom_menu .bt_m_wrap ul li a {
    padding: 10px 0;
    display: block;
    color: #717073;
}
#bottom_menu .bt_m_wrap ul li.active a { color: #1A7950; }


/* =========================================================
   6. 모달 (공통)
   ========================================================= */
.modal-btn { cursor: pointer; }

/* 아래서 슬라이드 업 */
.modal {
    position: fixed;
    bottom: -100%; left: 0;
    width: 100%; z-index: 9999;
    padding: 0 10px;
    transition: all 0.3s ease-in-out;
}
.modal.active { bottom: 60px; } /* 하단 네비 위로 올라옴 */

.modal .cont {
    min-height: 40vh;
    background: rgb(255 255 255 / 90%);
    padding: 5vw;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border: 1px solid #e1e1e1;
    box-shadow: 0px -5px 10px rgb(0 0 0 / 10%);
    backdrop-filter: blur(5px);
}

/* 닫기 버튼 (원형, 모달 상단 중앙) */
.modal .modal-close-btn {
    background: #fff;
    border: 1px solid #ccc;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; margin: 0 auto;
    align-items: center; justify-content: center;
    margin-bottom: -10px;
    z-index: 9999;
    position: absolute;
    top: -30px; left: calc(50%);
    transform: translate(-50%, 0%);
}

/* 모달 안 niceSelect - 목록 최대 높이 */
.modal .nice-select .list {
    z-index: 100000;
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/* 공간 부족 시 위로 펼치기 (JS에서 .dropup 클래스 추가) */
.modal .nice-select.dropup .list {
    top: auto !important;
    bottom: 100% !important;
    margin-bottom: 5px;
    max-height: 30vh;
}

/* niceSelect 전체 너비 맞춤 */
.nice-select { float: none; }


/* =========================================================
   7. 모달 - 필터
   ========================================================= */
.filter-container > div { margin-bottom: 20px; }

/* 상위/하위 지역 셀렉트 나란히 배치 */
.location-filters { display: flex; gap: 2px; }
.location-filters > div { flex: 1; }

.filter-container .radio { flex-wrap: wrap; gap: 5px; }
.filter-container .form_div label { margin-bottom: 5px; display: block; font-weight: 600; }
.filter-container .radio-wrapper-16 label { min-width: 50px; }


/* =========================================================
   8. 가이드 시스템 (도트 · 툴팁 · 투어)
   ========================================================= */

/* ── 8-1. 반짝이는 가이드 도트 ── */
.guide-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-primary); color: #fff;
    font-size: 11px; font-weight: 700; cursor: pointer;
    position: relative; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
    animation: guide-pulse 2s infinite;
    vertical-align: middle; margin-left: 5px;
    line-height: 1;
}
.guide-dot.seen { background: #ccc; animation: none; box-shadow: none; }

@keyframes guide-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(22,163,74,0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0   rgba(22,163,74,0); }
}

/* ── 8-2. 툴팁 바텀 시트 ── */
.guide-tooltip-box {
    display: none;
    position: fixed; bottom: 60px; left: 0; right: 0;
    background: #fff; border-radius: 20px 20px 0 0;
    padding: 24px 20px 36px; z-index: 9000;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    animation: slide-up 0.25s ease;
}
.guide-tooltip-box.active { display: block; }

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.guide-tooltip-box .guide-tt-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.guide-tooltip-box .guide-tt-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
}
.guide-tooltip-box .guide-tt-icon .material-symbols-outlined { font-size: 22px; color: var(--brand-primary); }
.guide-tooltip-box .guide-tt-close {
    width: 32px; height: 32px; border-radius: 50%; background: #f3f3f3;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none;
}
.guide-tooltip-box .guide-tt-close .material-symbols-outlined { font-size: 18px; color: #666; }
.guide-tooltip-box h4 { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 8px; }
.guide-tooltip-box p  { font-size: 14px; color: #555; line-height: 1.7; margin: 0; }
.guide-tooltip-box .guide-tt-tip {
    margin-top: 14px; padding: 10px 14px;
    background: var(--brand-light); border-radius: 10px;
    font-size: 12px; color: var(--brand-dark); line-height: 1.6;
}

/* ── 8-3. 배경 딤 오버레이 ── */
.guide-overlay-dim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 8999;
}
.guide-overlay-dim.active { display: block; }

/* ── 8-4. 첫방문 투어 카드 ── */
#guide-tour {
    display: none;
    position: fixed; bottom: 60px !important; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.6);
    align-items: flex-end; justify-content: center;
}
#guide-tour.active { display: flex; }

.guide-tour-card {
    background: #fff; border-radius: 24px 24px 0 0;
    padding: 28px 24px 44px; width: 100%; max-width: 480px;
}
.guide-tour-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.guide-tour-step-dot {
    height: 4px; border-radius: 2px; flex: 1;
    background: #e5e7eb; transition: background 0.3s;
}
.guide-tour-step-dot.active { background: var(--brand-primary); }
.guide-tour-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.guide-tour-icon .material-symbols-outlined { font-size: 28px; color: var(--brand-primary); }
.guide-tour-card h3 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 10px; }
.guide-tour-card p  { font-size: 14px; color: #666; line-height: 1.7; margin: 0 0 24px; }
.guide-tour-actions { display: flex; gap: 10px; }
.guide-tour-btn-next {
    flex: 1; padding: 14px;
    background: var(--brand-primary); color: #fff;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
}
.guide-tour-btn-skip {
    padding: 14px 18px;
    background: #f3f3f3; color: #777;
    border: none; border-radius: 12px;
    font-size: 14px; cursor: pointer;
}


/* =========================================================
   9. 홈 - 나의 팀 섹션
   ========================================================= */

/* ── 9-1. 섹션 래퍼 & 헤더 ── */
#my_teample { margin: 0 0 24px; overflow: hidden; }
#my_teample .section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
}
#my_teample .section-header h2 { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
#my_teample .section-header a {
    font-size: 12px; color: var(--brand-primary); font-weight: 600;
    display: flex; align-items: center; gap: 3px;
}

/* ── 9-2. 히어로 팀 카드 (싱글 & 스와이퍼 공용) ── */
.hero-team-card {
    background: var(--brand-card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
/* 싱글팀: 좌우 여백 */
.hero-team-card.single { margin: 0 16px; }

/* 팀 로고 배경 (투명 워터마크) */
.hero-team-card .hero-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.1;
}
.hero-team-card .hero-bg img {
    width: 200px; height: 200px;
    object-fit: contain; filter: grayscale(1);
}

/* 하단 그라디언트 오버레이 */
.hero-team-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(to top, rgba(15,25,35,0.85) 0%, transparent 100%);
    pointer-events: none;
}

.hero-team-card .hero-body {
    position: relative; z-index: 1;
    padding: 20px 20px 0;
}
.hero-team-card .hero-logo {
    width: 52px; height: 52px; border-radius: 12px;
    background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-team-card .hero-logo img { width: 44px; height: 44px; object-fit: contain; }

/* D-Day 배지 */
.hero-dday {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--brand-primary); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 20px; margin-bottom: 6px;
}
.hero-dday.today { background: #dc2626; } /* 당일 경기는 빨간색 */

.hero-team-card h3 {
    font-size: 21px; font-weight: 800; color: #fff;
    margin: 0 0 4px; letter-spacing: -0.5px;
}
.hero-team-card .hero-meta {
    font-size: 12px; color: rgba(255,255,255,0.5);
    display: flex; align-items: center; gap: 6px; margin-bottom: 0;
}
.hero-team-card .hero-meta span { display: flex; align-items: center; gap: 2px; }
.hero-team-card .hero-meta .dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

/* 가입 대기중 배지 */
.hero-pending-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.2); color: #f59e0b;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 20px; margin-bottom: 6px;
}

/* ── 9-3. 히어로 카드 하단 액션 버튼 바 ── */
.hero-actions {
    position: relative; z-index: 1;
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 16px;
    background: rgba(22,163,74,0.15);
}
.hero-actions a {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    padding: 12px 0;
    color: rgba(255,255,255,0.7);
    font-size: 11px; font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.15s;
}
.hero-actions a:last-child { border-right: none; }
.hero-actions a .material-symbols-outlined { font-size: 20px; color: var(--brand-accent); }
.hero-actions a:active { background: rgba(34,197,94,0.15); color: #fff; }

/* ── 9-4. 멀티팀 스와이퍼 ── */
.multi-team-swiper { padding: 0 16px 12px; overflow: hidden; }
.multi-team-swiper .swiper-slide { width: 100% !important; box-sizing: border-box; }

/* ── 9-5. 비로그인 온보딩 (게스트 히어로) ── */
.guest-hero { margin: 0 16px; }

.guest-hero-head { text-align: center; padding: 4px 0 20px; }
.guest-hero-badge {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: var(--brand-primary); background: #f0fdf4;
    border-radius: 20px; padding: 4px 12px; margin-bottom: 12px;
}
.guest-hero-head h2 {
    font-size: 26px; font-weight: 900; color: #111;
    letter-spacing: -0.8px; line-height: 1.25; margin: 0 0 10px;
}
.guest-social-proof { font-size: 12px; color: #888; }
.guest-social-proof strong { color: var(--brand-primary); font-weight: 700; }

/* CTA 버튼 그룹 */
.guest-cta-btns { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.guest-cta-btns .btn-make-team-big { flex: 7; margin-bottom: 0; min-width: 0; }
.guest-cta-btns .btn-make-team-big.btn-find-team-outline { flex: 3; min-width: 0; }
.guest-cta-btns .btn-find-team-link { flex: 1 0 100%; color: #aaa; text-align: center; }




/* 사용 흐름 화살표 */
.guest-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; margin-bottom: 24px;
    background: #fff; border-radius: 14px; padding: 14px 10px;
    border: 1px solid #f0f0f0;
}
.guest-flow-step {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    flex: 1;
}
.guest-flow-step .material-symbols-outlined { font-size: 22px; color: var(--brand-primary); }
.guest-flow-step span:last-child { font-size: 10px; font-weight: 600; color: #555; white-space: nowrap; }
.guest-flow-arrow { font-size: 16px; color: #ccc; flex-shrink: 0; }

/* 기능 소개 카드 3장 */
.guest-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.guest-feature-card {
    background: #fff; border-radius: 14px; border: 1px solid #f0f0f0;
    padding: 16px;
    display: flex; align-items: flex-start; gap: 14px;
}
.gf-icon { font-size: 24px; flex-shrink: 0; margin-top: 1px; }
.guest-feature-card h4 { font-size: 14px; font-weight: 700; color: #111; margin: 0 0 4px; }
.guest-feature-card p  { font-size: 12px; color: #888; line-height: 1.6; margin: 0; word-break: keep-all; }

/* ── 9-6. 로그인O / 팀 없음 온보딩 CTA 카드 ── */
.onboard-cta {
    margin: 0 16px;
    background: linear-gradient(135deg, #0f1923 0%, #0d2818 100%);
    border-radius: 20px; padding: 28px 20px 24px; text-align: center;
}
.onboard-icon { font-size: 36px; margin-bottom: 12px; }
.onboard-cta h3 {
    font-size: 18px; font-weight: 800; color: #fff;
    margin: 0 0 8px; letter-spacing: -0.3px;
}
.onboard-cta p { font-size: 13px; color: rgba(255,255,255,0.55); margin: 0 0 20px; line-height: 1.6; }

/* ── 9-7. 공통 CTA 버튼 ── */

/* 큰 초록 버튼 (팀 만들기 등) */
.btn-make-team-big {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--brand-primary); color: #fff;
    font-size: 15px; font-weight: 700; border-radius: 12px;
    padding: 14px 0; width: 100%; margin-bottom: 12px;
    text-decoration: none; transition: background 0.15s;
}
.btn-make-team-big .material-symbols-outlined { font-size: 20px; }
.btn-make-team-big:active { background: var(--brand-dark); }

/* 링크형 서브 버튼 */
.btn-find-team-link {
    display: block;
    font-size: 12px; color: rgba(255,255,255,0.4);
    text-decoration: none; text-align: center;
}

/* 아웃라인형 팀 찾기 버튼 */
.btn-find-team-outline {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary); border-radius: 12px;
    font-size: 15px; font-weight: 700; padding: 14px 0; width: 100%;
    text-decoration: none; transition: all 0.15s;
}
.btn-find-team-outline .material-symbols-outlined { font-size: 20px; }
.btn-find-team-outline:active { background: var(--brand-light); color: var(--brand-primary); }

/* 히어로 카드 하단 "새 팀 만들기" 행 */
.make-team-row { padding: 10px 16px 0; display: flex; gap: 10px; }
.make-team-row a:first-child { flex: 7; }
.make-team-row a:last-child  { flex: 3; }
.make-team-row a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #fff; color: var(--brand-primary);
    border: 1px solid var(--brand-primary); border-radius: 12px;
    font-size: 14px; font-weight: 700; padding: 12px 0;
    text-decoration: none; transition: all 0.15s;
}
.make-team-row a .material-symbols-outlined { font-size: 18px; }
.make-team-row a:active { background: var(--brand-light); }


/* =========================================================
   10. 홈 - 팀 찾기
   ========================================================= */

/* ── 10-1. 섹션 헤더 & 뷰 토글 ── */
#main_team { padding: 0; }
#main_team .section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px 12px;
}
#main_team .section-header h2 { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
#main_team .section-header .filter-btn {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: #555;
    background: #fff; border: 1px solid #e0e0e0; border-radius: 20px;
    padding: 5px 12px; cursor: pointer;
}
#main_team .section-header .filter-btn .material-symbols-outlined { font-size: 16px; }

/* 리스트 / 그리드 뷰 전환 버튼 */
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
    width: 30px; height: 30px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fff; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s; padding: 0;
}
.view-toggle button.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary); color: #fff;
}
.view-toggle button .material-symbols-outlined { font-size: 16px; }

/* ── 10-2. 배지 (실력 / 연령대 / 성별) ── */
.tl-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; line-height: 1.6; }
.tl-badge.skill  { background: #eff6ff; color: #1d4ed8; }
.tl-badge.age    { background: #f0fdf4; color: var(--brand-primary); }
.tl-badge.gender { background: #fdf4ff; color: #7e22ce; }

/* ── 10-3. 리스트 카드 (가로형) ── */
.team-list-grid {
    padding: 0 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.team-list-item {
    background: #fff; border-radius: 14px; border: 1px solid #efefef;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; text-decoration: none;
}
.team-list-item .tl-logo {
    width: 52px; height: 52px; border-radius: 10px; background: #f5f5f5;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.team-list-item .tl-logo img { width: 48px; height: 48px; object-fit: contain; }
.team-list-item .tl-info { flex: 1; min-width: 0; }
.team-list-item .tl-name {
    font-size: 14px; font-weight: 700; color: #111;
    margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-list-item .tl-badges { display: flex; gap: 4px; margin: 4px 0; flex-wrap: wrap; }
.team-list-item .tl-meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.team-list-item .tl-meta span {
    font-size: 11px; color: #888;
    display: flex; align-items: center; gap: 2px;
}
.team-list-item .tl-meta span .material-symbols-outlined { font-size: 14px; color: #bbb; }
.team-list-item .tl-meta .tl-divider {
    width: 3px; height: 3px; border-radius: 50%; background: #ddd;
}
.team-list-item .tl-desc {
    font-size: 11px; color: #aaa;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}
.team-list-item .tl-dday-line {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--brand-primary);
    margin-top: 4px;
}
.team-list-item .tl-dday-line .material-symbols-outlined { font-size: 12px; }
.team-list-item .tl-arrow { color: #ccc; }
.team-list-item .tl-arrow .material-symbols-outlined { font-size: 18px; }

/* ── 10-4. 그리드 카드 (2열) ── */
.team-card-grid {
    padding: 0 16px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.team-card-item {
    background: #fff; border-radius: 16px; border: 1px solid #efefef;
    padding: 14px 12px; text-decoration: none;
    display: flex; flex-direction: column;
}
.team-card-item:active { box-shadow: 0 0 0 2px var(--brand-primary); }
.team-card-item .tc-logo {
    width: 44px; height: 44px; border-radius: 10px; background: #f5f5f5;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; flex-shrink: 0;
}
.team-card-item .tc-logo img { width: 40px; height: 40px; object-fit: contain; }
.team-card-item .tc-name {
    font-size: 13px; font-weight: 700; color: #111;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 5px;
}
.team-card-item .tc-badges { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.team-card-item .tc-meta {
    font-size: 11px; color: #888;
    display: flex; flex-direction: column; gap: 3px;
}
.team-card-item .tc-meta-row { display: flex; align-items: center; gap: 3px; }
.team-card-item .tc-meta-row .material-symbols-outlined { font-size: 13px; color: #ccc; }
.team-card-item .tc-desc {
    font-size: 11px; color: #aaa; margin-top: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5;
}
.team-card-item .tc-dday {
    margin-top: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700; color: var(--brand-primary);
    background: #f0fdf4; padding: 3px 7px; border-radius: 20px; align-self: flex-start;
}
.team-card-item .tc-dday .material-symbols-outlined { font-size: 12px; }
.team-card-item .tc-nodata { font-size: 10px; color: #ddd; margin-top: 8px; }


/* =========================================================
   11. 홈 - 라이브 매치
   ========================================================= */

.live-now-section { margin: 0 0 28px; }

/* 헤더 (제목 + 더보기 링크) */
.live-now-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 14px;
}
.live-now-head h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.2; color: #111827; font-weight: 800; }
.live-now-head p  { margin-top: 6px; font-size: 14px; line-height: 1.6; color: #6b7280; }

/* "LIVE" 아이브로우 태그 */
.live-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 800; letter-spacing: .08em;
    color: #15803d; text-transform: uppercase;
}
/* 빨간 점멸 도트 */
.live-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239,68,68,.12);
}

/* 더보기 링크 */
.live-more-link {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 14px; font-weight: 700; color: #166534;
}
.live-more-link .material-symbols-outlined { font-size: 18px; }

/* 카드 목록 */
.live-inline-board { display: flex; flex-direction: column; gap: 10px; }

.live-inline-item {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px; border-radius: 18px;
    background: #fff; border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    transition: transform .14s ease, box-shadow .14s ease;
}
.live-inline-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.09); }

/* 카드 상단 행: 팀명 / 스코어 / 시간 */
.live-inline-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center; gap: 12px;
}
.live-inline-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-inline-kind {
    display: inline-flex; align-items: center;
    padding: 4px 8px; border-radius: 999px;
    background: #f0fdf4; color: #15803d;
    font-size: 11px; font-weight: 800; white-space: nowrap;
    border: 1px solid #bbf7d0;
}
.live-inline-name {
    min-width: 0;
    font-size: 16px; font-weight: 800; color: #111827;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.live-inline-score {
    font-size: 22px; line-height: 1; font-weight: 900;
    color: #166534; letter-spacing: -0.03em; white-space: nowrap;
}
.live-inline-time {
    min-width: 58px; text-align: right;
    font-size: 14px; font-weight: 800; color: #111827; white-space: nowrap;
}

/* 카드 하단 행: 상태 + 최근 이벤트 텍스트 */
.live-inline-bottom { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.live-inline-state {
    flex-shrink: 0;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    color: #ef4444; text-transform: uppercase;
}

/* 이벤트 롤링 텍스트 */
.live-inline-event-window {
    position: relative; display: block;
    min-width: 0; flex: 1; overflow: hidden;
}
.live-inline-event-text {
    display: block;
    font-size: 13px; line-height: 1.5; color: #4b5563; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 1; transform: translateY(0);
    will-change: transform, opacity;
    transition: opacity .22s ease, transform .22s ease;
}
.live-inline-event-text.is-leaving  { opacity: .12; transform: translateY(-9px); }
.live-inline-event-text.is-entering { opacity: 1;  transform: translateY(9px); animation: liveEventRollIn .26s ease forwards; }

@keyframes liveEventRollIn {
    0%   { opacity: .12; transform: translateY(9px); }
    100% { opacity: 1;   transform: translateY(0); }
}

/* 라이브 경기 없을 때 빈 카드 */
.live-empty-card {
    padding: 28px 22px; border-radius: 20px;
    background: #fff; border: 1px solid #e5e7eb; text-align: center;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.live-empty-icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 22px; background: #f0fdf4; color: #16a34a;
}
.live-empty-icon .material-symbols-outlined { font-size: 32px; }
.live-empty-card strong { display: block; font-size: 17px; color: #111827; margin-bottom: 6px; }
.live-empty-card p { font-size: 14px; line-height: 1.6; color: #6b7280; }

/* 라이브 전용 페이지 래퍼 */
.live-page-wrap { padding-bottom: 20px; }
.live-now-section--page .live-inline-board { gap: 12px; }

/* 모바일 홈 전용 변형 */
.live-now-section--mobile { margin: 0 0 28px; }
.live-now-section--mobile .live-now-head { align-items: flex-start; flex-direction: column; }
.live-now-section--mobile .live-more-link { margin-top: -4px; }


/* =========================================================
   12. 미디어 쿼리
   ========================================================= */
@media (max-width: 768px) {
    /* 라이브 헤더 - 작은 화면에서 세로 배치 */
    .live-now-head { align-items: flex-start; flex-direction: column; }
    .live-now-head h2 { font-size: 22px; }
    .live-more-link { margin-top: -6px; }

    /* 라이브 카드 - 스코어를 별도 행으로 */
    .live-inline-item { padding: 14px; }
    .live-inline-top {
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas:
            "title time"
            "score score";
        gap: 8px 10px;
    }
    .live-inline-title { grid-area: title; flex-wrap: wrap; gap: 6px; }
    .live-inline-time  { grid-area: time; }
    .live-inline-score { grid-area: score; font-size: 20px; }
    .live-inline-name  { font-size: 15px; max-width: 100%; }
    .live-inline-event-text { font-size: 12px; }
}












/* =========================================================
   팀 생성/수정 폼
   ========================================================= */
.team-form-wrap { padding: 0 0 40px; }
.form-section {
    background: #fff; border-radius: 16px; padding: 20px;
    margin: 0 0px 12px;
}

/* 섹션 타이틀 */
.form-section-title {
    font-size: 14px; font-weight: 700; color: #222;
    margin: 0 0 18px; display: flex; align-items: center; gap: 6px;
    padding-bottom: 14px; border-bottom: 1px solid #f0f0f0;
}
.form-section-title .material-symbols-outlined { font-size: 18px; color: var(--brand-primary); }
.form-section-title small { font-size: 11px; font-weight: 400; color: #bbb; margin-left: 2px; }

/* form_div */
.form-section .form_div { margin-bottom: 18px; }
.form-section .form_div:last-child { margin-bottom: 0; }
.form-section .form_div > label {
    display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 8px; line-height: 1;
}

/* 텍스트 입력 / 셀렉트 공통 */
.form-section .frm_input {
    width: 100%; border: 1px solid #e8e8e8; border-radius: 10px;
    padding: 12px 14px; font-size: 14px; color: #111;
    outline: none; transition: border 0.15s; background: #fafafa;
    box-sizing: border-box; height: 46px;
}
.form-section .frm_input:focus { border-color: var(--brand-primary); background: #fff; }
.form-section textarea.frm_input { min-height: 100px; resize: vertical; height: auto; }

/* 지역 선택 2-컬럼 */
.location-row { display: flex; gap: 8px; }
.location-col { flex: 1; min-width: 0; }
.location-col .nice-select,
.location-col select.frm_input { width: 100%; }


.form-section .nice-select {
    height: 46px !important;
    line-height: 43px !important;
    padding: 0 36px 0 14px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #111 !important;
    float: none !important;
}
.form-section .nice-select:focus,
.form-section .nice-select:active,
.form-section .nice-select.open { border-color: var(--brand-primary) !important; }
.form-section .nice-select .current { font-size: 14px; }
/* required 별표 억제 */
.form-section .nice-select.required::before { display: none !important; }

/* 요일 체크박스 칩 */
.day-grid { display: flex; gap: 7px; flex-wrap: wrap; }
.day-chip { position: relative; }
.day-chip input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.day-chip label {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid #e5e5e5; font-size: 14px; font-weight: 700;
    color: #bbb; cursor: pointer; transition: all 0.15s; background: #fafafa;
    line-height: 1;
}
.day-chip input:checked + label {
    background: var(--brand-primary); border-color: var(--brand-primary); color: #fff;
}

/* 성별 라디오 칩 */
.gender-group { display: flex; gap: 8px; }
.gender-chip { flex: 1; position: relative; }
.gender-chip input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.gender-chip label {
    display: flex; align-items: center; justify-content: center;
    padding: 13px 4px; border-radius: 10px; border: 1px solid #e5e5e5;
    font-size: 14px; font-weight: 600; color: #bbb; cursor: pointer;
    width: 100%; background: #fafafa; transition: all 0.15s; line-height: 1;
}
.gender-chip input:checked + label {
    border-color: var(--brand-primary); color: var(--brand-primary); background: #f0fdf4;
}

/* 토글 옵션 행 */
.form-section .ch-toggle-box { margin-bottom: 16px; }
.form-section .ch-toggle-box:last-child { margin-bottom: 0; }
.form-section .ch-toggle-box dl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-section .ch-toggle-box dt { font-size: 14px; color: #222; font-weight: 500; }
.form-section .ch-toggle-box dt small { display: block; font-size: 12px; color: #aaa; margin-top: 3px; font-weight: 400; }
.form-section .ch-toggle-box dd { flex-shrink: 0; }

/* 접기/펼치기 섹션 */
.form-section-collapsible .form-section-title {
    cursor: pointer; margin-bottom: 0; padding-bottom: 0; border-bottom: none;
    justify-content: space-between;
}
.form-section-collapsible .form-section-title.is-open { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.form-section-collapsible .collapse-body { display: none; }
.form-section-collapsible .collapse-icon { font-size: 20px; color: #ccc; transition: transform 0.2s; }
.form-section-collapsible .form-section-title.is-open .collapse-icon { transform: rotate(180deg); }

/* ── 팀 로고 업로드 영역 ── */
.custom-file-upload { width: 100%; }
.preview-box {
    width: 100%; height: 130px;
    border: 2px dashed #dde0e3; border-radius: 14px;
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer; position: relative;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 10px;
}
.preview-box:hover { border-color: var(--brand-primary); background: #f0fdf4; }
.preview-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    pointer-events: none;
}
.preview-placeholder .upload-icon { font-size: 38px; color: #c8cdd2; }
.preview-placeholder .upload-text { font-size: 12px; color: #bbb; font-weight: 500; }
.preview-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview-image img { width: auto; height: 100%; object-fit: cover; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.file-actions .btn-upload {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f3f4f6; border: none; border-radius: 8px;
    padding: 9px 14px; font-size: 13px; color: #555; font-weight: 600; cursor: pointer;
}
.file-actions .btn-delete {
    background: none; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 8px 13px; font-size: 13px; color: #999; cursor: pointer;
}
.file-info { font-size: 12px; color: #888; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 관리자 변경 섹션 */
.form-admin-box {
    background: #fffbeb; border-radius: 14px; padding: 16px;
    margin: 0 16px 12px; border: 1px solid #fde68a;
}
.form-admin-box h4 { font-size: 13px; font-weight: 700; color: #92400e; margin: 0 0 10px; display: flex; align-items: center; gap: 5px; }
.form-admin-box p { font-size: 13px; color: #555; margin: 0 0 6px; }
.form-admin-box .move-adm-btn { font-size: 13px; color: var(--brand-primary); font-weight: 600; text-decoration: underline; }
.form-admin-box .flex { gap: 8px; margin-top: 8px; }
.form-admin-box input[type=text] { flex: 1; border: 1px solid #e8e8e8; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.form-admin-box a.btn { background: var(--brand-primary); color: #fff; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; line-height: normal;}

/* 약관 섹션 */
.form-terms-box {
    background: #fff; border-radius: 16px; padding: 20px;
    margin: 0 16px 12px;
}
.form-terms-box .terms-scroll {
    max-height: 120px; overflow-y: auto; background: #f8f8f8;
    border-radius: 8px; padding: 12px; font-size: 12px; color: #666;
    line-height: 1.6; margin-bottom: 10px;
}
.form-terms-box .agree-chk label.cbx { font-size: 13px; }

/* 폼 제출 버튼 */
.form-action-btns {
    display: flex; gap: 10px; padding: 8px 16px 0;
}
.form-action-btns .btn-form-cancel {
    flex: 0 0 76px; background: #f0f0f0; color: #777; border: none;
    border-radius: 12px; padding: 15px 0; font-size: 15px; font-weight: 600; cursor: pointer;
}
.form-action-btns .btn-form-submit {
    flex: 1; background: var(--brand-primary); color: #fff; border: none;
    border-radius: 12px; padding: 15px 0; font-size: 15px; font-weight: 700; cursor: pointer;
}
.form-action-btns .btn-form-submit:active { background: var(--brand-dark); }

/* 팀 삭제 영역 */
.form-danger-zone {
    margin: 20px 16px 0; padding-top: 20px; border-top: 1px solid #f0f0f0; text-align: center;
}
.btn-danger-delete {
    background: none; border: 1px solid #dc2626; color: #dc2626;
    border-radius: 10px; padding: 10px 24px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.form-danger-zone p { font-size: 11px; color: #ccc; margin-top: 6px; }

/* 폼 인라인 에러 메시지 */
.form-error-msg {
    margin: 0 16px 10px;
    padding: 12px 16px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; font-size: 13px; color: #dc2626; font-weight: 500;
}
/* 팀명 중복 체크 피드백 */
.input-feedback { font-size: 12px; margin-top: 5px; font-weight: 500; }
.input-feedback.ok   { color: var(--brand-primary); }
.input-feedback.error { color: #dc2626; }

/* 폼 섹션 내 radio-wrapper-16 오버라이드 (브랜드 색상 + 폰트 통일) */
.form-section .radio-wrapper-16 label {
    font-size: 13px; padding: 7px 14px; min-width: 44px;
}
.form-section .radio-wrapper-16 input:checked ~ label {
    background: var(--brand-primary) !important;
    box-shadow: var(--brand-primary) 0 0 0 2px inset !important;
    color: #fff;
}
.team-card-item .tc-nodata { font-size: 10px; color: #ddd; margin-top: 8px; }





/* ================================================================
   일정 등록 폼 (team_schedule/form.php)
   ================================================================ */

.sf-wrap { padding: 0 0 30px; }

/* 일정 유형 칩 (경기/풋살/훈련...) */
.sf-type-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sf-type-chip input[type="radio"] { display: none; }
.sf-type-chip label {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 12px; border-radius: 20px;
    border: 1px solid #e5e5e5; background: #fafafa;
    font-size: 13px; font-weight: 600; color: #777;
    cursor: pointer; transition: all 0.15s;
    line-height: 1;
}
.sf-type-chip label .material-symbols-outlined { font-size: 15px; }
.sf-type-chip input:checked + label {
    border-color: var(--brand-primary);
    background: #f0fdf4; color: var(--brand-primary);
}
.sf-type-chip.chip-soccer input:checked + label  { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.sf-type-chip.chip-futsal input:checked + label  { border-color: #8b5cf6; background: #f5f3ff; color: #7c3aed; }

/* gubun2 칩 (일반전/자체전...) */
.sf-sub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-sub-chip input[type="radio"] { display: none; }
.sf-sub-chip label {
    display: inline-block; padding: 6px 14px;
    border-radius: 20px; border: 1px solid #e5e5e5;
    background: #fafafa; font-size: 12px; font-weight: 600;
    color: #777; cursor: pointer; transition: all 0.15s;
}
.sf-sub-chip input:checked + label {
    border-color: var(--brand-primary);
    background: #f0fdf4; color: var(--brand-primary);
}

/* 날짜+시간 한 행 */
.sf-datetime-row {
    display: flex; gap: 8px; align-items: center;
}
.sf-datetime-row .frm_input { flex: 1; min-width: 0; }
.sf-datetime-row .frm_input[type="time"] { flex: 0 0 130px; }

/* 자주 쓰는 경기장 빠른 선택 */
.sf-quick-stadiums { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sf-stadium-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid #e5e5e5; background: #fafafa;
    font-size: 12px; font-weight: 600; color: #555;
    cursor: pointer; transition: all 0.15s;
}
.sf-stadium-chip .material-symbols-outlined { font-size: 14px; color: var(--brand-primary); }
.sf-stadium-chip:active { border-color: var(--brand-primary); background: #f0fdf4; }

/* ── 경기장명 행 (input + 지도 버튼) ── */
.sf-location-row { display: flex; gap: 8px; align-items: center; }
.sf-location-row .frm_input { flex: 1; min-width: 0; }
.sf-map-btn {
    flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-primary); color: #fff;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background .18s;
}
.sf-map-btn:active { background: #15803d; }
.sf-map-btn .material-symbols-outlined { font-size: 20px; }

/* ── 상대팀 자동완성 ── */
.sf-autocomplete-wrap { position: relative; }
.sf-search-drop {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden;
    max-height: 200px; overflow-y: auto;
}
.sf-drop-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.sf-drop-item:last-child { border-bottom: none; }
.sf-drop-item:active { background: #f0fdf4; }
.sf-drop-item .material-symbols-outlined { font-size: 16px; color: var(--brand-primary); flex-shrink: 0; }
.sf-drop-name { flex: 1; font-size: 14px; color: #111; font-weight: 500; }
.sf-drop-badge { font-size: 10px; color: #fff; background: var(--brand-primary); padding: 2px 6px; border-radius: 10px; flex-shrink: 0; }

/* ── 카카오맵 바텀 시트 모달 ── */
.sf-map-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sf-map-overlay.active { opacity: 1; pointer-events: auto; }

.sf-map-modal {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
    background: #fff; border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.15);
    transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    max-height: 90dvh;
}
.sf-map-modal.active { transform: translateY(-60px); }

.sf-map-drag-bar {
    width: 40px; height: 4px; background: #e0e0e0; border-radius: 2px;
    margin: 10px auto 0;
}
.sf-map-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px 10px; border-bottom: 1px solid #f0f0f0;
}
.sf-map-head h4 {
    display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 700; color: #111; margin: 0;
}
.sf-map-head h4 .material-symbols-outlined { font-size: 18px; color: var(--brand-primary); }
.sf-map-close {
    background: none; border: none; padding: 4px; cursor: pointer; color: #aaa;
}
.sf-map-close .material-symbols-outlined { font-size: 22px; }

.sf-map-search-bar {
    display: flex; gap: 8px; padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.sf-map-search-input {
    flex: 1; height: 40px; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 0 12px; font-size: 14px; outline: none; background: #f9fafb;
}
.sf-map-search-input:focus { border-color: var(--brand-primary); background: #fff; }
.sf-map-search-btn {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--brand-primary); color: #fff;
    border: none; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.sf-map-search-btn .material-symbols-outlined { font-size: 18px; }

.sf-map-myloc-btn {
    width: 40px; height: 40px; flex-shrink: 0;
    background: #fff; color: #374151;
    border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sf-map-myloc-btn .material-symbols-outlined { font-size: 18px; }


.sf-kakao-map-wrap { width: 100%; height: 260px; flex-shrink: 0; }

.sf-map-results {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    min-height: 60px; max-height: 220px;
}
.sf-map-result-item {
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
    cursor: pointer; transition: background .15s;
}
.sf-map-result-item:last-child { border-bottom: none; }
.sf-map-result-item:active { background: #f0fdf4; }
.sf-map-ri-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 3px; }
.sf-map-ri-addr { font-size: 12px; color: #888; }
.sf-map-custom-pin { background: #f8fffe; }
.sf-map-use-btn {
    margin-top: 8px; padding: 7px 16px;
    background: var(--brand-primary); color: #fff;
    border: none; border-radius: 8px; font-size: 13px; cursor: pointer;
    font-weight: 600;
}
.sf-map-empty { padding: 20px; text-align: center; color: #aaa; font-size: 13px; }
.sf-map-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 8px; color: #aaa;
}
.sf-map-loading .material-symbols-outlined { font-size: 36px; animation: sf-pulse 1.2s ease-in-out infinite; }
.sf-map-loading p { font-size: 13px; margin: 0; }
@keyframes sf-pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── 팀 폼 경기장 자동제안 ── */
.stadium-suggest-box {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 10px;
}
.ssb-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--brand-primary); font-weight: 600;
    margin-bottom: 8px;
}
.ssb-label .material-symbols-outlined { font-size: 14px; }
/* 자동 제안 칩 — 순위 선택 UX */
.ssb-chips { display: flex; flex-direction: column; gap: 8px; }
.ssb-chip-wrap {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border: 1px solid #86efac; border-radius: 10px;
    padding: 7px 10px; gap: 8px;
}
.ssb-chip-name {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: #222; flex: 1; min-width: 0;
}
.ssb-chip-name .material-symbols-outlined { font-size: 15px; color: var(--brand-primary); flex-shrink: 0; }
.ssb-rank-btns { display: flex; gap: 5px; flex-shrink: 0; }
.ssb-rank-btn {
    font-size: 12px; font-weight: 600; padding: 3px 10px;
    border: 1px solid var(--brand-primary); border-radius: 14px;
    background: #fff; color: var(--brand-primary); cursor: pointer;
    transition: background .15s, color .15s;
}
.ssb-rank-btn:active, .ssb-rank-btn:hover { background: var(--brand-primary); color: #fff; }
.ssb-slot-label {
    font-size: 11px; font-weight: 700; color: var(--brand-primary);
    margin-bottom: 4px; letter-spacing: 0.3px;
}
.ssb-cnt { font-size: 10px; color: #aaa; margin-left: 2px; }

/* ── 팀 폼 경기장 입력행 ── */
.stadium-input-row { display: flex; gap: 8px; align-items: center; }
.stadium-input-row .frm_input { flex: 1; min-width: 0; }
.stadium-map-btn {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
    color: var(--brand-primary); text-decoration: none;
    transition: background .15s;
}
.stadium-map-btn:active { background: #f0fdf4; }
.stadium-map-btn .material-symbols-outlined { font-size: 18px; }

/* 폼 섹션 내 small 레이블 */
.form-section .form_div label small {
    font-size: 11px; color: #bbb; font-weight: 400; margin-left: 4px;
}
.form-section .form_div label .req { color: var(--brand-primary); margin-left: 2px; }

/* 일정 상세보기 뷰 (view.php) 개선 */
.sv-header {
    background: #fff; border-radius: 16px; padding: 20px;
    margin-bottom: 12px; position: relative; overflow: hidden;
}
.sv-header::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--brand-primary); border-radius: 4px 0 0 4px;
}
.sv-header.type-soccer::before { background: #3b82f6; }
.sv-header.type-futsal::before { background: #8b5cf6; }

/* ── 일정 뷰 — 장소 / 구장번호 / 주소 / 지도 ── */
.sv-court {
    display: inline-block; margin-left: 6px;
    background: var(--brand-primary); color: #fff;
    font-size: 11px; font-weight: 700; padding: 1px 7px;
    border-radius: 10px; vertical-align: 1px;
}
.sv-address {
    display: block; margin-top: 3px;
    font-size: 12px; color: #888;
}
.sv-map-preview {
    margin-top: 10px;
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e5e7eb;
}







/* ================================================================
   팀 헤더 & 탭 (tab.php redesign)
   ================================================================ */

#team-header {
    background: #fff;
    overflow: hidden;
}
.th-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 16px 14px;
}
.th-logo {
    width: 70px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
	background: #f8fafb;
    border-radius: 5px;
}
.th-logo img { width: 60px; height: auto; object-fit: cover; }
.th-info { flex: 1; min-width: 0; }
.th-name { display: flex; align-items: center; gap: 6px; }
.th-name h2 {
    font-size: 18px; font-weight: 800; color: #111; margin: 0;
    flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.th-settings {
    color: #6B7280; display: flex; align-items: center;
    flex-shrink: 0; text-decoration: none;
}
.th-settings .material-symbols-outlined { font-size: 18px; }
.th-loc {
    font-size: 12px; color: #999; margin-bottom: 6px;
    display: flex; align-items: center; gap: 2px;
}
.th-loc .material-symbols-outlined { font-size: 13px; }
.th-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.th-badge { font-size: 13px; font-weight: 400;  color: #6B7280;}
.th-badge.skill  { background: #eff6ff; color: #1d4ed8; }
.th-badge.age    { background: #f0fdf4; color: var(--brand-primary); }
.th-badge.gender { background: #fdf4ff; color: #7e22ce; }

/* 팀 액션 버튼 행 */
.th-actions { display: flex; border-top: 1px solid #f3f4f6; }
.th-action-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 11px 0; gap: 3px;
    color: #444; text-decoration: none;`
    border-right: 1px solid #f3f4f6;
    font-size: 11px; font-weight: 600;
    transition: background 0.1s;
}
.th-action-item:last-child { border-right: none; }
.th-action-item .material-symbols-outlined { font-size: 20px; color: var(--brand-primary); }
.th-action-item:active { background: #f9fafb; }

/* 탭 네비게이션 */
.team-tab {
    display: flex;
    background: #fff;
    margin-bottom: 30px;
    border-bottom: 1.5px solid #E7ECEF;
	padding: 0px 16px 0px;
	gap:20px;
}
.team-tab a {
    text-align: center;
    padding: 12px 2px 10px;
    font-size: 15px; font-weight: 600; color: #6B7280;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.team-tab a .material-symbols-outlined { font-size: 16px; }
.team-tab a.active { color: #111; border-bottom-color: var(--brand-primary); }
.tab-pending-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: #EF4444;
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: middle;
    flex-shrink: 0;
}



/* ================================================================
   일정 카드 (ajax.list.php redesign)
   ================================================================ */

.sched-section-label {
    font-size: 13px; font-weight: 700; color: #111;
    padding: 10px 2px 6px;
    display: flex; align-items: center; gap: 8px;
}


.sched-card {
    background: #fff; border-radius: 10px;
    padding: 14px 16px;
    display: flex; gap: 14px; align-items: flex-start;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    margin-bottom: 8px; cursor: pointer;
    transition: box-shadow 0.15s;
	border: 1px solid #e1e1e1;
}
.sched-card:active { box-shadow: 0 0 0 2px var(--brand-primary); }


/* 날짜 블록 */
.sched-date-col {
    display: flex; flex-direction: column;
    align-items: center; min-width: 40px; padding-top: 2px;
}
.sched-month { font-size: 9px; font-weight: 700; color: #aaa; letter-spacing: 0.5px; }
.sched-day   { font-size: 28px; font-weight: 800; color: #111; line-height: 1; }
.sched-dow   { font-size: 10px; color: #777; font-weight: 600; }
.sched-card.old .sched-day,
.sched-card.old .sched-dow { color: #ccc; }

/* 내용 블록 */
.sched-body { flex: 1; min-width: 0; }
.sched-top  { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }

.sched-type-badge {
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px; line-height: 1.6;
    background: #f0fdf4; color: var(--brand-primary);
}
.sched-type-badge.soccer { background: #eff6ff; color: #1d4ed8; }
.sched-type-badge.futsal { background: #f5f3ff; color: #7c3aed; }
.sched-type-badge.old    { background: #f3f4f6; color: #9ca3af; }

.sched-dday {
    margin-left: auto; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    background: var(--brand-primary); color: #fff;
    white-space: nowrap; flex-shrink: 0;
}
.sched-dday.dday-today { background: #ef4444; }

.sched-name {
    font-size: 14px; font-weight: 700; color: #111;
    margin-bottom: 2px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.sched-vs   { font-size: 14px; font-weight: 800; color: #111; margin-bottom: 3px; }
.sched-time {
    font-size: 12px; color: #6B7280; margin-bottom: 3px;
    display: flex; align-items: center; gap: 3px;
}
.sched-time .material-symbols-outlined { font-size: 13px; }
.sched-loc {
    font-size: 12px; color: #6B7280; margin-bottom: 3px;
    display: flex; align-items: center; gap: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sched-attend {font-size: 12px; color: #6B7280;
    display: flex; align-items: center; gap: 3px;
}
.sched-attend b{color: #000;}
.sched-attend .material-symbols-outlined {
    font-size: 15px;
}

.layout-section{padding: 0 16px; position: relative; margin-bottom: 30px; border-bottom: 1px solid #E7ECEF; padding-bottom: 30px;}
.main_btn{display: flex; align-items: center; justify-content: center; background: var(--brand-primary); color: #fff; font-size:15px; font-weight: 600; height: 60px; border-radius:10px; box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 20%); width: 100%; border: 0; gap:5px;}
.schedule-list{margin-top: 30px;}

.view-btn{}
.view-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 첫 줄: 참석하기 100% */
.view-btn .dos-btn {
    flex: 0 0 100%;
}

.view-btn .dos-btn .main_btn {
    width: 100%;
}

/* 둘째 줄: 불참 / 게스트 / 공유 3등분 */
.view-btn .sv-btn-nojoin,
.view-btn .sv-btn-guest,
.view-btn .sv-share-btn {
    flex: 1 1 0;
    min-width: 0;
}


.view-btn .dos-btn .main_btn {width: 100%;}

.sub-btn{display: flex; background: #fff; border: 1px solid #e1e1e1; align-items: center; justify-content: center; border-radius:10px; flex: 1 1 0; gap:5px; font-size: 15px; color: #6B7280; height: 50px;}
.sub-btn span{font-size: 18px;}
.btn-nojoin.is-active{border: 1px solid #16a34a; color: #16a34a;}
.btn-nojoin.is-active span{color: #16a34a;}



.sched-loc .material-symbols-outlined { font-size: 13px; flex-shrink: 0; }
.sched-card.old .sched-name,
.sched-card.old .sched-vs,
.sched-card.old .sched-time,
.sched-card.old .sched-loc,
.sched-card.old .sched-attend { color: #bbb; }
.sched-card.old .sched-attend b{color: #bbb;}

/* FAB (일정 추가 버튼) */
.sched-add-fab {
    position: fixed; right: 20px; bottom: 80px;
    width: 54px; height: 54px;
    background: var(--brand-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(22,163,74,0.4);
    z-index: 50; color: #fff; text-decoration: none;
    transition: transform 0.15s;
}
.sched-add-fab .material-symbols-outlined { font-size: 26px; }
.sched-add-fab:active { transform: scale(0.93); }

/* 일정 없음 empty state */
.sched-empty { text-align: center; padding: 48px 20px; }
.sched-empty .material-symbols-outlined { font-size: 52px; color: #e5e7eb; display: block; margin-bottom: 12px; }
.sched-empty p { font-size: 15px; margin: 0 0 6px; font-weight: 700; color: #888; }
.sched-empty small { font-size: 12px; color: #bbb; display: block; margin-bottom: 20px; line-height: 1.7; }
.sched-empty a.sched-empty-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-primary); color: #fff;
    padding: 12px 22px; border-radius: 12px;
    font-size: 14px; font-weight: 700; text-decoration: none;
}
.sched-empty a.sched-empty-btn .material-symbols-outlined { font-size: 18px; }

/* 일정 카드 리스트 ul 래퍼 */
.sched-card-list { list-style: none; margin: 0; padding: 0; }
.sched-card-list li { display: block; }

/* ================================================================
   팀 관리자 대시보드 카드
   ================================================================ */

.admin-dashboard {
    background: #fff;
    overflow: hidden;
}
/* 대시보드 헤더 */
.adm-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 16px;
}
.adm-dash-head h4 {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.adm-dash-head h4 .material-symbols-outlined { font-size: 15px; color: var(--brand-primary); }
.adm-dash-head a {
    font-size: 11px;
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.adm-dash-head a .material-symbols-outlined { font-size: 13px; }

/* 통계 3열 */
.adm-stats {
    display: flex;
}
.adm-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    text-decoration: none;
    color: inherit;
    gap: 5px;
    transition: background 0.1s;
}
.adm-stat-item:last-child { border-right: none; }
.adm-stat-item:active { background: #f9fafb; }
.adm-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}
.adm-stat-num.highlight { color: var(--brand-primary); }
.adm-stat-num.warning  { color: #f59e0b; }
.adm-stat-label {
    font-size: 12px;
    color: #6B7280;
    font-weight:400;
}
.adm-stat-sub {
    font-size: 10px;
    color: var(--brand-primary);
    font-weight: 600;
    background: #f0fdf4;
    padding: 1px 6px;
    border-radius: 10px;
}

/* 알림 항목 */
.adm-alerts { margin: 0 16px 20px; border-top: 1px solid #E7ECEF; padding-top: 10px;}
.adm-alert-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 11px;
    transition: background 0.1s;
}
.adm-alert-item:active { background: #f9fafb; }
.adm-alert-item .material-symbols-outlined { font-size: 16px; color: #f59e0b; flex-shrink: 0; }
.adm-alert-item span.adm-alert-go {
    margin-left: auto;
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 400;
    white-space: nowrap;
}
.adm-no-alerts {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: 12px;
    color: var(--brand-primary);
}
.adm-no-alerts .material-symbols-outlined { font-size: 16px; }

/* 가입 대기 배지 */
.adm-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    margin: 0 12px 8px;
    text-decoration: none;
    width: calc(100% - 24px);
}
.adm-pending-badge .material-symbols-outlined { font-size: 14px; }
.adm-pending-badge span.go { margin-left: auto; color: #92400e; font-size: 11px; }

/* 플랜 배너 */
.adm-plan-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 16px 16px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    gap: 8px;
}
.adm-plan-free {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid #86EFAC;
}
.adm-plan-active {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}
.adm-plan-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.adm-plan-free .adm-plan-banner-left .material-symbols-outlined {
    font-size: 22px;
    color: #16A34A;
}
.adm-plan-active .adm-plan-banner-left .material-symbols-outlined {
    font-size: 20px;
    color: #6B7280;
}
.adm-plan-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.adm-plan-banner-desc {
    font-size: 11px;
    color: #6B7280;
    margin-top: 1px;
}
.adm-plan-banner-btn {
    font-size: 12px;
    font-weight: 700;
    color: #16A34A;
    white-space: nowrap;
    flex-shrink: 0;
}
.adm-plan-banner-arrow {
    font-size: 14px;
    color: #9CA3AF;
    flex-shrink: 0;
}




/* ── 일정 상세 뷰 (view.php) — 전면 재설계 ── */
.sv-wrap { display: flex; flex-direction: column; padding-bottom: 40px; }

/* 일정 카드 */
.sv-card {

}



/* 관리 버튼 */
.sv-admin-btns { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.sv-admin-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: #f1f5f9; color: #64748b; text-decoration: none;
    transition: background .15s;
}
.sv-admin-btn:hover { background: #e2e8f0; }
.sv-admin-btn--del:hover { background: #fee2e2; color: #ef4444; }
.sv-admin-btn .material-symbols-outlined { font-size: 16px; }

/* 뱃지 */
.sv-card-badges { display: flex; gap: 5px; flex-wrap: wrap; align-items: center;}
.sv-badge {
    display: inline-block; font-size: 13px; font-weight: 500;
}
.sv-badge--past   { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; padding: 0 5px; border-radius: 5px;}
.sv-badge--type   {color: var(--brand-primary);}
.sv-badge--sub    {color: var(--brand-primary);}
.sv-badge--attend { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* 제목 */
.sv-card-title { font-size: 20px; font-weight: 800; color: #111; margin: 5px 0 10px; }

/* VS 행 */
.sv-vs-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sv-vs-team { font-size: 15px; font-weight: 700; color: #222; }
.sv-vs-label {
    font-size: 12px; font-weight: 900; color: #fff;
    background: #374151; padding: 2px 8px; border-radius: 6px;
}

/* 정보 행 */
.sv-info-row { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #6B7280;}
.sv-info-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.sv-info-row p    { margin: 0; }
.sv-court-badge {
    display: inline-block; margin-left: 2px;
    color: var(--brand-primary);
    font-size: 13px; font-weight: 600; 
}
.sv-address-text { display: block; font-size: 12px; color: #9ca3af; margin-top: 2px; }

.sv-info-row.date{font-weight: 600;}
.sv-info-row.date .time{color: #111;}
.sv-info-row .address{}
.sv-info-row .address a{display: flex; align-items: center; gap:5px; color: #6B7280;}
.sv-info-row .address a .sv-info-icon{font-size: 18px;}

.sv-info-icon{line-height: normal;}

/* 지도 미리보기 */
.sv-map-preview { border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; }

/* ─ 액션 카드 ─ */
.sv-action-card {
    background: #fff; border-radius: 16px;
    padding: 20px 18px; border: 1px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* 진행바 */
.sv-progress-wrap { margin-bottom: 18px; }
.sv-progress-stats {
    display: flex; gap: 6px; margin-bottom: 10px;
}
.sv-prog-item {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; padding: 10px 6px; border-radius: 12px; background: #f8fafc;
}
.sv-prog-num {
    font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 3px;
}
.sv-prog-label { font-size: 11px; font-weight: 600; }
.sv-prog-join  .sv-prog-num   { color: var(--brand-primary); }
.sv-prog-join  .sv-prog-label { color: var(--brand-primary); }
.sv-prog-nojoin .sv-prog-num  { color: #374151; }
.sv-prog-nojoin .sv-prog-label{ color: #6b7280; }
.sv-prog-ignore .sv-prog-num  { color: #9ca3af; }
.sv-prog-ignore .sv-prog-label{ color: #9ca3af; }
/* 하위 호환 */
.sv-prog-join   { color: var(--brand-primary); display: flex; align-items: center; gap: 3px; }
.sv-prog-nojoin { color: #64748b; display: flex; align-items: center; gap: 3px; }
.sv-prog-ignore { color: #94a3b8; display: flex; align-items: center; gap: 3px; }
.sv-progress-stats .material-symbols-outlined { font-size: 15px; }
.sv-progress-stats strong { font-weight: 800; }
.sv-progress-bar {
    height: 7px; background: #f1f5f9; border-radius: 99px; overflow: hidden;
}
.sv-prog-bar-join {
    height: 100%; background: var(--brand-primary); border-radius: 99px;
    transition: width .5s ease;
    min-width: 0;
}

/* 참석/불참/게스트 버튼 */
.sv-attend-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.sv-btn-join, .sv-btn-nojoin, .sv-btn-guest {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 16px 8px; border-radius: 14px; border: 1px solid #e5e7eb;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: all .18s;
    background: #fafafa; color: #6b7280;
}
.sv-btn-join { background: #f6fef9; border-color: #bbf7d0; color: #4b7a5a; }
.sv-btn-join .material-symbols-outlined,
.sv-btn-nojoin .material-symbols-outlined,
.sv-btn-guest .material-symbols-outlined { font-size: 24px; }
.sv-btn-join.is-active {
    background: #f0fdf4; color: var(--brand-primary);
    border-color: var(--brand-primary); border-width: 2px;
    box-shadow: 0 0 0 4px #dcfce7;
}
.sv-btn-nojoin.is-active { background: #f8fafc; color: #374151; border-color: #94a3b8; border-width: 2px; }

/* 마감 안내 */
.sv-past-notice {
    display: flex; align-items: center; gap: 7px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; color: #94a3b8; font-size: 13px; font-weight: 600;
    margin-bottom: 14px !important; 
}
.sv-past-notice .material-symbols-outlined { font-size: 18px; }

/* 공유 버튼 */
.sv-share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.sv-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 8px; border-radius: 12px; font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none; border: none;
    transition: opacity .15s; box-sizing: border-box; width: 100%;
}
.sv-share-btn:active { opacity: .85; }
.sv-share-kakao { background: #FEE500; color: #3C1E1E; }
.sv-share-kakao img { width: 18px; height: 18px; flex-shrink: 0; }
.sv-share-copy  { background: #f1f5f9; color: #374151; border: 1px solid #e5e7eb; }
.sv-share-copy .material-symbols-outlined { font-size: 17px; }



/* 참석자 그리드 */
.sv-player-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px;}
.sv-player-card {
	display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px 10px;
    position: relative;
    border: 1px solid #e1e1e1;
    text-align: center;
	gap:5px;
}
.sv-player-photo {
    width: 52px; height: 52px; border-radius: 50%;
    background-size: cover; background-position: center;
    background-color: #e2e8f0;
    border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.sv-player-photo--sm {
    width: 36px; height: 36px; flex-shrink: 0;
}
.sv-player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.sv-player-name { font-size: 13px; font-weight: 700; color: #111; }
.sv-player-role { font-size: 11px; color: #94a3b8; }
.sv-player-role.is-guest { color: #f97316; font-weight: 700; }
.sv-player-del {
    position: absolute; top: 5px; right: 5px;
    background: none; border: none; padding: 2px; cursor: pointer;
    color: #cbd5e1;
}
.sv-player-del .material-symbols-outlined { font-size: 14px; }
.sv-player-del:hover { color: #ef4444; }
.sv-empty { font-size: 13px; color: #94a3b8; text-align: center; padding: 16px 0; }

/* 불참/미응답 리스트 */
.sv-player-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sv-player-row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; border-bottom: 1px solid #f1f5f9;
}
.sv-player-row:last-child { border-bottom: none; }


.sv-section-label-box{display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;}
.sv-section .sv-section-label{font-size: 13px; color: #6B7280; font-weight: 600;}
.sv-att-num{font-size: 13px; color: #6B7280; font-weight: 400;}
.sv-section-head .sv-title-join{font-weight: 500; font-size: 13px; color: #6B7280;}
.sv-section-head .join-cnt i{color: var(--brand-primary);}


/* 접기/펼치기 */
.sv-collapsible-toggle { cursor: pointer; margin-bottom: 0; }
.sv-collapsible-toggle:hover .sv-section-title { color: #374151; }
.sv-chevron { font-size: 20px; color: #94a3b8; transition: transform .2s; }
.sv-collapsible-body { padding-top: 12px; }

/* 로그 */
.sv-log-section { padding: 20px 16px; }
.sv-log-list { display: flex; flex-direction: column; gap: 0; margin-top: 4px; max-height: 220px; overflow-y: auto; }
.sv-log-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #f1f5f9; }
.sv-log-item:last-child { border-bottom: none; }
.sv-log-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; color: #94a3b8; }
.sv-log-item.log-join   .sv-log-icon { color: #16a34a; }
.sv-log-item.log-nojoin .sv-log-icon { color: #ef4444; }
.sv-log-item.log-guest  .sv-log-icon { color: #f97316; }
.sv-log-body { display: flex; flex-direction: column; gap: 2px; }
.sv-log-text { font-size: 13px; color: #374151; line-height: 1.4; }
.sv-log-time { font-size: 11px; color: #9ca3af; }




/* 참석자 부족 안내 */
.sv-team-wait {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; border: 1px dashed #e5e7eb; border-radius: 14px;
    padding: 14px 16px; font-size: 13px; color: #94a3b8;
}
.sv-team-wait .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.sv-team-wait strong { color: #374151; }




/* 게스트 추가 모달 */
.sv-dim {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 9998;
    animation: svDimIn .2s ease;
}
.sv-dim.active { display: block; }
@keyframes svDimIn { from { opacity: 0; } to { opacity: 1; } }

.sv-guest-modal .cont {
    min-height: auto !important;
    padding: 20px 20px 28px !important;
    border-radius: 24px 24px 0 0 !important;
}
.sv-guest-form { display: flex; flex-direction: column; gap: 14px; }
.sv-guest-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 16px; font-weight: 700; color: #111827; margin: 0;
}
.sv-guest-title .material-symbols-outlined { font-size: 20px; color: #16a34a; }
.sv-guest-input {
    width: 100%; box-sizing: border-box;
    border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 14px 16px; font-size: 15px; color: #111827;
    outline: none; transition: border-color .15s;
    font-family: inherit;
}
.sv-guest-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.sv-guest-input::placeholder { color: #9ca3af; }
.sv-guest-btn {
    width: 100%; height: 52px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #16a34a; color: #fff; border: 0;
    border-radius: 14px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .15s; font-family: inherit;
}
.sv-guest-btn .material-symbols-outlined { font-size: 18px; }
.sv-guest-btn:active { background: #15803d; }

















/* ── 액션 바 ── */
.st-action-bar {
    display: flex; gap: 10px; margin-top: 20px;
}
.st-btn-back {
    flex: 0 0 auto; display: flex; align-items: center; gap: 4px;
    background: #f3f4f6; color: #555; border: 0; border-radius: 12px;
    padding: 0 18px; height: 48px; font-size: 14px; font-weight: 600;
    cursor: pointer;
}
.st-btn-back .material-symbols-outlined { font-size: 18px; }
.st-btn-save {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    background: var(--brand-primary, #16a34a); color: #fff;
    border: 0; border-radius: 12px; height: 60px;
    font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 20%);
    transition: background .15s;
}
.st-btn-save:active { background: #15803d; }
.st-btn-save .material-symbols-outlined { font-size: 18px; }

.st-action-bar .sub-btn.sv-share-kakao{height: 60px;}






.profile_img {width: 100%; max-width:40px; display: block;}

#ol_after_hd .profile_img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/* ══════════════════════════════════════
   팀원 목록 (t-member-list)
   ══════════════════════════════════════ */
.t-member-list { padding-bottom: 80px; }

/* 섹션 헤더 */
.t-member-list .member-section {margin: 0 16px 30px;}
.t-member-list .member-section h6 {
    font-size: 13px;
    color: #6B7280;
    font-weight: 600;
	margin-bottom: 10px;

}

/* 목록 레이아웃 — 모바일 1컬럼 */
.t-member-list .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 카드 */
.t-member-list .list .round {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
    padding: 14px 16px;
    position: relative;
    transition: box-shadow .15s;
}
.t-member-list .list .round:hover {
    box-shadow: 0 4px 14px rgba(15,23,42,.09);
}

/* 카드 내부 링크 */
.t-member-list .round > a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

/* 프로필 사진 */
.t-member-list .photo { position: relative; display: inline-block; flex-shrink: 0; }
.t-member-list .photo i {
    display: grid;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    align-items: center; justify-content: center;
    background: #F9FAFB;
}
.t-member-list .photo i.noimg img { position: relative; top: 12px; width: 36px; opacity: .5; }

/* 등번호 배지 — 초록으로 통일 */
.t-member-list .photo span.img_no {
    letter-spacing: -1px;
    color: #fff;
    position: absolute;
    font-size: 12px; font-weight: 800;
    text-align: center;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    min-width: 24px;
    background: #16A34A;       /* 검정 → 초록 */
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 1px 4px;
    white-space: nowrap;
}

/* 정보 영역 */
.t-member-list .info { flex: 1; min-width: 0; }
.t-member-list .info .flex { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.t-member-list .info .name { font-size: 15px; font-weight: 700; color: #111827; white-space: nowrap; }

/* 포지션 배지 — 초록 계열 */
.t-member-list .info .position { display: flex; gap: 4px; flex-wrap: wrap; }
.t-member-list .info .position i {
    display: block;
    background: #DCFCE7; color: #16A34A;
    font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    font-style: normal;
}

/* 성별·소개 */
.t-member-list .info .gender {
    display: inline-block;
    color: #9CA3AF;
    font-size: 12px;
    margin-right: 4px;
    background: transparent;
    padding: 0;
}
.t-member-list .info small:last-child {
    display: block;
    color: #6B7280;
    font-size: 12px;
    margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 대기중 배지 (CSS 정의 없어서 추가) */
.status-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    vertical-align: middle; line-height: 1.5;
}
.status-badge.pending {
    background: #FEF3C7; color: #D97706;
}

/* more 메뉴 */
.t-member-list .more { position: absolute; right: 12px; top: 12px; }
.t-member-list .more button {
    border: 0; background: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #9CA3AF;
    display: flex; align-items: center; justify-content: center;
}
.t-member-list .more button:hover { background: #F3F4F6; color: #374151; }
.t-member-list .more .floating {
    position: absolute; right: 36px; top: -4px;
    opacity: 0; z-index: -9;
    transition: opacity .15s, transform .15s;
    transform: translateX(4px);
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 6px 0;
    width: max-content;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.t-member-list .more .floating.active { opacity: 1; z-index: 99; transform: translateX(0); }
.t-member-list .more .floating .set { text-align: right; }
.t-member-list .more .floating .set a {
    display: block;
    padding: 7px 16px;
    font-size: 13px; font-weight: 500;
    color: #374151;
    white-space: nowrap;
}
.t-member-list .more .floating .set a:hover { background: #F9FAFB; }
.t-member-list .more .floating .set a.del  { color: #EF4444; }
.t-member-list .more .floating .set a.approval { color: #F59E0B; }

#result_area .member-title { margin-bottom: 10px; }

/* 팀 목록 가입 상태 배지 */
.join-status {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
    white-space: nowrap;
}
.join-status.pending {
    background: #FEF3C7;
    color: #D97706;
}

/* 히어로 카드 대기중 배지 */
.hero-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(254,243,199,0.9);
    color: #D97706;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.hero-pending-badge .material-symbols-outlined {
    font-size: 14px;
}

/* 가입 대기중 액션 버튼 */
.th-action-item.pending-action {
    color: #D97706;
    cursor: default;
    pointer-events: none;
}
.th-action-item.pending-action .material-symbols-outlined {
    animation: spin-slow 2s linear infinite;
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 가입 대기중 배너 */
.pending-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 16px;
}
.pending-notice .material-symbols-outlined {
    color: #D97706;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.pending-notice p {
    font-size: 14px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 3px;
}
.pending-notice small {
    font-size: 12px;
    color: #B45309;
    line-height: 1.5;
}

/* 승인 완료 모달 */
.approve-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.approve-modal {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.approve-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.approve-modal h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.approve-modal p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 24px;
}
.approve-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.approve-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
}
.approve-btn.primary {
    background: #16A34A;
    color: #fff;
}
.approve-btn.secondary {
    background: #F3F4F6;
    color: #6B7280;
}





/* 프로필 사진 */
.t-member-list .photo { position: relative; display: inline-block; flex-shrink: 0; }
.t-member-list .photo i {
    display: grid;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    align-items: center; justify-content: center;
    background: #F9FAFB;
	align-content: center;

}
.t-member-list .photo i.noimg img { position: relative; top: 12px; width: 36px; opacity: .5; }











/* =========================================================
   팀 생성 후 온보딩 모달
   ========================================================= */
#welcomeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.welcome-modal-inner {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 44px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    margin-bottom: 60px;
}
.welcome-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.welcome-modal-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}
.welcome-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}
.welcome-modal-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.welcome-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.welcome-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}
.welcome-step-icon {
    font-size: 26px;
    flex-shrink: 0;
}
.welcome-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}
.welcome-step-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}
.welcome-modal-btn {
    width: 100%;
    padding: 15px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.welcome-step-action {
    align-items: center;
}


.btn-kakao-invite {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 8px 14px;
    background: #FEE500;
    color: #3A1D1D;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}
.btn-kakao-invite:active {
    background: #e6cf00;
}



#ft {
    padding-bottom: 70px;
}




/* Teample Terms Document */
.terms-doc {
    --terms-bg: #f6f8fb;
    --terms-card: #ffffff;
    --terms-text: #1f2937;
    --terms-muted: #6b7280;
    --terms-soft: #eef2f7;
    --terms-line: #eee;
    --terms-primary: #2563eb;
    --terms-primary-soft: #eff6ff;
    --terms-radius: 22px;

    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px 64px;
    color: var(--terms-text);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
    font-size: 15px;
    line-height: 1.78;
    letter-spacing: -0.02em;
    box-sizing: border-box;
}

.terms-doc *,
.terms-doc *::before,
.terms-doc *::after {
    box-sizing: border-box;
}

.terms-head {
    position: relative;
    overflow: hidden;
    padding: 38px 40px;
    margin-bottom: 28px;
    border: 1px solid var(--terms-line);
    border-radius: var(--terms-radius);
}

.terms-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
}

.terms-date {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--terms-primary-soft);
    color: var(--terms-primary);
    font-size: 13px;
    font-weight: 700;
}

.terms-body {
    display: grid;
    gap: 16px;
}

.terms-sec {
    padding: 28px 30px;
    border: 1px solid var(--terms-line);
    border-radius: 18px;
    background: var(--terms-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.terms-sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.terms-sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 18px;
    border-radius: 999px;
    background: var(--terms-primary);
}

.terms-content {
    color: var(--terms-text);
	margin-bottom: 50px;
}

.terms-p {
    margin: 8px 0;
}

.terms-list {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.terms-item {
    position: relative;
    padding-left: 15px;
    color: var(--terms-text);
}

.terms-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9ca3af;
}

.terms-num-list {
    display: grid;
    gap: 6px;
    margin: 10px 0;
}

.terms-num-item {
    color: var(--terms-text);
}

.terms-table {
    overflow: hidden;
    margin: 16px 0 18px;
    border: 1px solid var(--terms-line);
    border-radius: 14px;
    background: #fff;
}

.terms-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.7fr;
    border-top: 1px solid var(--terms-line);
}

.terms-row:first-child {
    border-top: 0;
}

.terms-row.is-head {
    background: #f9fafb;
    color: #374151;
    font-weight: 800;
}

.terms-cell {
    min-width: 0;
    padding: 14px 16px;
    border-left: 1px solid var(--terms-line);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.terms-cell:first-child {
    border-left: 0;
}

.terms-formula {
    margin: 14px 0;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: var(--terms-primary-soft);
    color: #1d4ed8;
    font-weight: 800;
    text-align: center;
}

.terms-foot {
    margin-top: 22px;
    padding: 26px 30px;
    border: 1px solid #eee;
    border-radius: 18px;
    color: #1f2937;
}

.terms-foot-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.terms-strong {
    font-weight: 800;
}

@media (max-width: 768px) {
    .terms-doc {
        padding: 24px 14px 48px;
        font-size: 14px;
        line-height: 1.72;
    }

    .terms-head {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .terms-title {
        font-size: 24px;
    }

    .terms-sec {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .terms-sec-title {
        font-size: 16px;
    }

    .terms-row {
        grid-template-columns: 1fr;
    }

    .terms-cell {
        border-left: 0;
        border-top: 1px solid var(--terms-line);
        padding: 12px 14px;
    }

    .terms-cell:first-child {
        border-top: 0;
    }

    .terms-row.is-head {
        display: none;
    }

    .terms-row:not(.is-head) .terms-cell::before {
        display: block;
        margin-bottom: 2px;
        color: var(--terms-muted);
        font-size: 12px;
        font-weight: 800;
    }

    .terms-row:not(.is-head) .terms-cell:nth-child(1)::before { content: "플랜"; }
    .terms-row:not(.is-head) .terms-cell:nth-child(2)::before { content: "월간 결제"; }
    .terms-row:not(.is-head) .terms-cell:nth-child(3)::before { content: "연간 결제"; }
}






/* ── 컨트롤 카드 ── */
.st-controls-card {
    background: #fff; border-radius: 16px;
    margin: 10px 16px 0; padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.st-cnt-row {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.st-label {
    font-size: 13px; color: #555; font-weight: 700; white-space: nowrap;
}
.st-cnt-pills { display: flex; gap: 6px; }
.st-cnt-pill {
    border: 0px solid #e0e0e0;
    background: #e7eaed;
    color: #6B7280;
    border-radius: 5px;
    padding: 5px 5px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all .15s;
}
.st-cnt-pill.is-active {
    border-color: var(--brand-primary, #16a34a);
    background: var(--brand-primary, #16a34a); color: #fff;
}
.st-shuffle-row { display: flex; gap: 8px; }
.st-shuffle-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid #e1e1e1; background: #fff; color: #6B7280;
    border-radius: 10px; 
    font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s;
	height: 50px;
}
.st-shuffle-btn .material-symbols-outlined { font-size: 17px; }
.st-shuffle-btn.is-active {
    border-color: #000;
    background: #fff; color: #000;
}
.st-btn-random.is-active {
    border-color: #000; background: #fff; color: #000;
}


/* ── 결과 wrapper ── */
.st-result-inner {}

/* ── 팀 요약 ── */
.st-team-summary {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center;
}
.st-summary-item {
	text-align: center;
}
.st-summary-item p{
	margin-top: 5px;
	color: #6B7280;
	font-size: 13px;
}
.st-team-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.st-summary-label {width: 50px; height: 50px; border-radius:50%;  font-weight: 600; color: #fff; display: grid; align-items: center; justify-content: center;}
.st-summary-cnt   { font-weight: 800; font-size: 20px;}

/* ── 뷰 탭 ── */
.st-view-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.st-view-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
    background: #fff; border: 1px solid #e0e0e0; color: #777;
    border-radius: 10px; padding: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.st-view-tab .material-symbols-outlined { font-size: 16px; }
.st-view-tab.is-active {
    border-color: var(--brand-primary, #16a34a);
    background: #f0fdf4; color: var(--brand-primary, #16a34a);
}

/* ── 배정 뷰 — 선수 행 ── */
.st-assign-view { display: flex; flex-direction: column; gap: 7px; }
.st-player-row {display: flex;align-items: center; gap:5px; border-bottom: 1px solid #e7ecef; padding-bottom: 10px;}
.st-player-row .st-player-info .st-player-avatar{
	width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
	display: grid;
    align-items: center; justify-content: center;
	align-content: center;
}


.st-player-row .st-player-info .st-player-avatar img{max-width:50px; }
.st-player-row.st-team-a { border-left-color: var(--st-a); }
.st-player-row.st-team-b { border-left-color: var(--st-b); }
.st-player-row.st-team-c { border-left-color: var(--st-c); }
.st-player-row.st-team-d { border-left-color: var(--st-d); }
.st-player-row.st-team-e { border-left-color: var(--st-e); }

.st-player-info {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; flex: 1; min-width: 0;
}
.st-player-num {
	font-size: 13px; color: #6B7280;
}
.st-player-name  { font-size: 13px; font-weight: 600; color: #111; }
.st-player-gender { font-size: 11px; color: #999; }
.st-player-pos   {
    font-size: 10px; color: #2563eb; background: #eff6ff;
    border-radius: 2px; padding: 1px 4px;
}
.st-guest-badge  {
    font-size: 10px; background: #fef3c7; color: #92400e;
    border-radius: 4px; padding: 1px 5px; font-weight: 700;
}
.st-player-meta u{text-decoration: none;}

/* ── 팀 배정 pill 버튼 ── */
.st-team-pills ul{ display: flex; gap: 5px; flex-shrink: 0; }
.st-team-pill {
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: 25px; height: 25px; border-radius: 3px;
    border: 0px solid var(--pill-color, #ccc);
	background: #E7EAED;
    color: #A2ABBE ;
    font-size: 12px; font-weight: 400;
    transition: background .15s, color .15s;
}
.st-team-pill input[type="radio"] { display: none; }
/* checked state via :has() — 최신 브라우저 지원 */
.st-team-pill:has(input:checked) {
    background: var(--pill-color, #ccc);
    color: #fff;
}

/* ── 팀별 그룹 뷰 ── */
.st-group-view { display: flex; flex-direction: column; gap: 12px; }
.st-group-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-top: 4px solid var(--team-color, #e0e0e0);
}
.st-group-header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
}
.st-group-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.st-group-title  { font-size: 15px; font-weight: 700; color: #111; flex: 1; }
.st-group-cnt    {
    font-size: 12px; color: #777; background: #f5f5f5;
    border-radius: 12px; padding: 2px 10px;
}
.st-group-players {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
    padding: 10px 14px; margin: 0; list-style: none;
}
.st-group-player {
    display: flex; align-items: center; gap: 5px;
    background: #f9f9f9; border-radius: 8px; padding: 7px 9px;
    font-size: 13px;
}

/* ── 액션 바 ── */
.st-action-bar {
    display: flex; gap: 10px; margin-top: 20px;
}
.st-btn-back {
    flex: 0 0 auto; display: flex; align-items: center; gap: 4px;
    background: #f3f4f6; color: #555; border: 0; border-radius: 12px;
    padding: 0 18px; height: 48px; font-size: 14px; font-weight: 600;
    cursor: pointer;
}
.st-btn-back .material-symbols-outlined { font-size: 18px; }
.st-btn-save {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    background: var(--brand-primary, #16a34a); color: #fff;
    border: 0; border-radius: 12px; height: 60px;
    font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 20%);
    transition: background .15s;
}
.st-btn-save:active { background: #15803d; }
.st-btn-save .material-symbols-outlined { font-size: 18px; }

.st-action-bar .sub-btn.sv-share-kakao{height: 60px;}











/* ── 타이머 카드 ── */
.futsal-timer-card {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    border-radius: 20px; padding: 28px 24px 24px;
    margin: 0 16px 16px; color: #fff; text-align: center;
    box-shadow: 0 8px 24px rgba(22,163,74,0.3);
}
.futsal-round-label { font-size: 13px; font-weight: 600; opacity: 0.85; margin-bottom: 16px; }
.futsal-teams-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.futsal-team-col { text-align: center; min-width: 80px; }
.futsal-team-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; opacity: 0.9; }
.futsal-score { font-size: 52px; font-weight: 800; line-height: 1; }
.futsal-vs { font-size: 20px; font-weight: 700; opacity: 0.6; }
.futsal-timer { font-size: 64px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.futsal-timer.is-alarm { color: #FEF08A; animation: futsal-blink 0.5s ease infinite; }
@keyframes futsal-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.futsal-timer-bar-wrap { background: rgba(255,255,255,0.25); border-radius: 4px; height: 6px; margin-bottom: 10px; overflow: hidden; }
.futsal-timer-bar { height: 100%; background: #fff; border-radius: 4px; transition: width 1s linear; }
.futsal-timer-status { font-size: 13px; opacity: 0.8; }

/* ── 팀원 패널 ── */
.futsal-teams-panel {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; padding: 0 16px; margin-bottom: 16px;
}
.futsal-team-col-panel { background: #fff; border-radius: 14px; border: 1px solid #E5E7EB; overflow: hidden; }
.ftcp-header {
    padding: 8px 12px; font-size: 13px; font-weight: 700;
    text-align: center; color: #fff;
}
.ftcp-a { background: #16A34A; }
.ftcp-b { background: #3F8FE0; }
.ftcp-c { background: #BC8D38; }
.ftcp-d { background: #169EA3; }
.futsal-player-btn {
    display: block; width: 100%;
    padding: 11px 10px; text-align: center;
    background: #fff; border: none; border-top: 1px solid #F3F4F6;
    font-size: 13px; font-weight: 600; color: #111827;
    cursor: pointer; transition: background 0.1s;
}
.futsal-player-btn:active { background: #F0FDF4; color: #16A34A; }
/* 어웨이팀 +골 버튼 (일반전/리그전) */
.futsal-away-goal-btn { color: #3B82F6; font-size: 15px; padding: 18px 10px; }
.futsal-away-goal-btn:active { background: #EFF6FF; color: #2563EB; }
/* 고정 팀명 표시 (일반전/리그전 새 라운드 카드) */
.futsal-fixed-team {
    padding: 10px 12px; background: #F9FAFB; border: 1px solid #E5E7EB;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    color: #111827; text-align: center;
}

/* ── 이벤트 바텀 시트 ── */
.futsal-event-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    z-index: 9000; display: flex; align-items: flex-end;
	bottom: 60px;
}
.futsal-event-sheet {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; padding: 20px 20px 32px;
}
.futsal-event-info {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.futsal-event-player { font-size: 16px; font-weight: 700; color: #111827; }
.futsal-event-timebadge {
    background: #16A34A; color: #fff;
    border-radius: 20px; padding: 4px 12px;
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.futsal-event-types {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.fet-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 8px; border-radius: 14px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; transition: transform 0.1s;
}
.fet-btn:active { transform: scale(0.96); }
.fet-btn .material-symbols-outlined { font-size: 26px; }
.fet-goal  { background: #DCFCE7; color: #15803D; }
.fet-assist { background: #DBEAFE; color: #1D4ED8; }
.fet-yellow { background: #FEF9C3; color: #A16207; }
.fet-red   { background: #FEE2E2; color: #DC2626; }
.futsal-event-cancel {
    width: 100%; padding: 14px; border-radius: 12px;
    border: 1.5px solid #D1D5DB; background: #fff;
    color: #6B7280; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ── 기록 목록 ── */
.futsal-section-title {
    display: flex; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 10px;
}
.futsal-section-title span{font-size: 18px;}
.futsal-records-wrap { margin-bottom: 16px; }
.futsal-record-list {display: flex; flex-direction: column; gap: 6px; }
.futsal-empty { text-align: center; color: #9CA3AF; font-size: 13px; padding: 20px 0; }
.futsal-record-item {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 10px; padding: 10px 14px;
    border: 1px solid #E5E7EB; font-size: 13px;
}
.futsal-record-item .material-symbols-outlined { font-size: 16px; }
.futsal-record-item.goal .material-symbols-outlined { color: #16A34A; }
.futsal-record-item.assist .material-symbols-outlined { color: #3B82F6; }
.futsal-record-item.yellow .material-symbols-outlined { color: #CA8A04; }
.futsal-record-item.red .material-symbols-outlined { color: #DC2626; }
.futsal-rec-team-badge { background: #F3F4F6; border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 700; color: #374151; }
.futsal-rec-type { margin-left: auto; font-size: 11px; color: #9CA3AF; }
.futsal-rec-min { font-size: 11px; color: #9CA3AF; }
.futsal-rec-del { margin-left: 4px; background: none; border: none; cursor: pointer; color: #D1D5DB; padding: 2px; }
.futsal-rec-del .material-symbols-outlined { font-size: 15px; }

/* ── 라운드 종료 버튼 ── */
.futsal-btn-finish-round {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 14px;
    background: #fff; border: 2px solid #EF4444; color: #EF4444;
    border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 20%);
}

/* ── 라운드 없을 때 ── */
.futsal-no-round-card {
    text-align: center; background: #fff; margin: 0 0 30px; color: #9CA3AF;
}
.futsal-no-round-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.futsal-no-round-card p {font-size: 13px; }
.futsal-no-round-sub { font-size: 12px; }

/* ── 새 라운드 카드 ── */
.futsal-new-round-card { background: #fff; border-radius: 16px; padding: 20px; margin: 20px 16px 30px; border: 1px solid #E5E7EB; }
.futsal-form-row {}
.futsal-form-label { display: block; font-size: 12px; font-weight: 600; color: #6B7280; margin-bottom: 6px; }
.futsal-select { width: 100%; border: 1px solid #D1D5DB; border-radius: 10px; font-size: 14px; background: #F9FAFB; }
.futsal-duration-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.futsal-dur-btn { padding: 10px; border-radius: 10px; border: 1px solid #D1D5DB; background: #fff; color: #374151; font-size: 13px; font-weight: 600; cursor: pointer; flex:1;}
.futsal-dur-btn.is-active { background: #16A34A; border-color: #16A34A; color: #fff; }
.futsal-btn-start {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 15px; background: #16A34A; color: #fff;
    border: none; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 6px;
}

/* ── 히스토리 ── */
.futsal-history-wrap { padding: 0 16px; }
.futsal-history-card { background: #fff; border-radius: 14px; border: 1px solid #E5E7EB; margin-bottom: 10px; overflow: hidden; }
.futsal-history-card.is-active {
    border-color: #000000;
    box-shadow: 0 5px 10px 0px rgb(0 0 0 / 20%);
}

.futsal-history-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px; background: #F9FAFB; border-bottom: 1px solid #EEF0F3;
}
.futsal-history-round { font-size: 12px; font-weight: 700; color: #374151; }
.futsal-history-teams { font-size: 13px; font-weight: 700; color: #111827; flex: 1; }
.futsal-history-score { font-size: 16px; font-weight: 800; color: #16A34A; }
.futsal-history-status { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 3px 8px; }
.futsal-history-status.playing { background: #DCFCE7; color: #15803D; }
.futsal-history-status.finished { background: #F3F4F6; color: #6B7280; }
.futsal-history-records { padding: 8px 16px; display: flex; flex-direction: column; gap: 4px; }
.futsal-history-rec { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; padding: 4px 0; }
.futsal-history-rec .material-symbols-outlined { font-size: 14px; }
.futsal-history-rec.goal .material-symbols-outlined { color: #16A34A; }
.futsal-history-rec.assist .material-symbols-outlined { color: #3B82F6; }
.futsal-history-rec.yellow .material-symbols-outlined { color: #CA8A04; }
.futsal-history-rec.red .material-symbols-outlined { color: #EF4444; }
.futsal-round-del-btn {
    background: none; border: none; cursor: pointer;
    color: #D1D5DB; padding: 2px; margin-left: auto;
}
.futsal-round-del-btn .material-symbols-outlined { font-size: 16px; }
.futsal-round-del-btn:hover { color: #EF4444; }

/* ── 경기 종료 버튼 ── */
.futsal-finish-all-btn {
    background: #EF4444; cursor: pointer;
}



.fres-wrap { padding-bottom: 40px; }

/* 헤더 */
.fres-header { background: linear-gradient(135deg,#16A34A 0%,#15803D 100%); padding: 28px 20px 24px; color:#fff; margin-bottom:12px; }
.fres-header-label { font-size:12px; opacity:.75; margin-bottom:4px; }
.fres-header-title { font-size:20px; font-weight:800; margin-bottom:8px; }
.fres-header-meta { font-size:13px; opacity:.8; display:flex; align-items:center; gap:6px; }
.fres-header-meta .material-symbols-outlined { font-size:15px; }

/* 스코어보드 */
.fres-scoreboard {}
.fres-scoreboard-title { font-size:13px; font-weight:700; color:#9CA3AF; text-align:center; margin-bottom:16px; }
.fres-team-scores { display:flex; align-items:center; justify-content:center; gap:12px; align-items: flex-start; margin-bottom: 30px;}
.fres-team-item { text-align:center; flex:1; }
.fres-team-badge { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; font-size:18px; font-weight:800; color:#fff; margin-bottom:8px; }
.fres-team-score-num { font-size:44px; font-weight:900; color:#111827; line-height:1; }
.fres-team-name { font-size:13px; color:#6B7280; margin-top:4px; }
.fres-team-item.is-winner .fres-team-score-num { color:#16A34A; }
.fres-score-sep { font-size:24px; font-weight:300; color:#D1D5DB; padding-bottom:28px; }
.fres-winner-badge { display:inline-flex; align-items:center; gap:4px; background:#DCFCE7; color:#16A34A; border-radius:20px; padding:4px 12px; font-size:12px; font-weight:700; margin-top:6px; }
.fres-draw-badge { text-align:center; margin-top:10px; font-size:13px; color:#9CA3AF; font-weight:600; }

/* 섹션 카드 */
.fres-section { background:#fff; border-radius:16px; margin:0 16px 12px; padding:18px; box-shadow:0 2px 8px rgba(15,23,42,.04); }
.fres-section-title { font-size:15px; font-weight:700; color:#111827; margin-bottom:14px; display:flex; align-items:center; gap:6px; }
.fres-section-title .material-symbols-outlined { font-size:18px; color:#16A34A; }

/* 라운드 */
.fres-round-item { border:1px solid #EEF0F3; border-radius:12px; overflow:hidden; margin-bottom:10px; }
.fres-round-item:last-child { margin-bottom:0; }
.fres-round-head { display:flex; align-items:center; background:#F9FAFB; padding:10px 14px; gap:8px; }
.fres-round-num { font-size:12px; font-weight:700; color:#9CA3AF; }
.fres-round-teams { font-size:14px; font-weight:700; color:#111827; flex:1; }
.fres-round-score { font-size:18px; font-weight:800; color:#16A34A; }
.fres-round-status { font-size:11px; font-weight:600; border-radius:8px; padding:2px 8px; background:#F3F4F6; color:#6B7280; }
.fres-round-records { padding:8px 14px; display:flex; flex-direction:column; gap:4px; }
.fres-round-rec { display:flex; align-items:center; gap:6px; font-size:13px; color:#374151; padding:3px 0; }
.fres-round-rec .material-symbols-outlined { font-size:14px; }
.fres-round-rec.goal .material-symbols-outlined { color:#16A34A; }
.fres-round-rec.assist .material-symbols-outlined { color:#3B82F6; }
.fres-round-rec.yellow .material-symbols-outlined { color:#CA8A04; }
.fres-round-rec.red .material-symbols-outlined { color:#EF4444; }
.fres-rec-team { background:#F3F4F6; border-radius:4px; padding:1px 6px; font-size:10px; font-weight:700; }
.fres-rec-min { margin-left:auto; font-size:11px; color:#9CA3AF; }
.fres-round-empty { font-size:12px; color:#9CA3AF; padding:8px 14px; }

/* 선수 기록 테이블 */
.fres-stats-table { width:100%; border-collapse:collapse; }
.fres-stats-table th { padding:8px 6px; font-size:11px; font-weight:700; color:#9CA3AF; text-align:center; border-bottom:2px solid #EEF0F3; background:#F9FAFB; }
.fres-stats-table th:first-child { text-align:left; padding-left:4px; }
.fres-stats-table td { padding:10px 6px; text-align:center; border-bottom:1px solid #EEF0F3; font-size:13px; color:#374151; }
.fres-stats-table td:first-child { text-align:left; padding-left:4px; }
.fres-stats-table tr:last-child td { border-bottom:none; }
.fres-player-name { font-weight:700; color:#111827; font-size:14px; }
.fres-player-team { display:inline-block; width:20px; height:20px; border-radius:50%; font-size:11px; font-weight:800; color:#fff; text-align:center; line-height:20px; margin-right:6px; }
.fres-stat-goal { color:#16A34A; font-weight:800; font-size:15px; }
.fres-stat-assist { color:#3B82F6; font-weight:700; }
.fres-stat-yellow { color:#CA8A04; font-weight:700; }
.fres-stat-red { color:#DC2626; font-weight:700; }
.fres-stat-zero { color:#D1D5DB; }

/* ── 평가 폼 ── */
.fres-eval-deadline {font-size: 13px; font-weight: 400;}
.fres-eval-deadline b {}
.fres-eval-group { margin-bottom:22px; }
.fres-eval-group-title {
    font-size:13px; font-weight:700; color:#374151;
    margin-bottom:10px; display:flex; align-items:center; gap:6px;
}
.fres-badge-req { background:#FEE2E2; color:#DC2626; border-radius:6px; padding:2px 7px; font-size:10px; font-weight:700; }
.fres-badge-opt { background:#F3F4F6; color:#9CA3AF; border-radius:6px; padding:2px 7px; font-size:10px; font-weight:700; }

/* MVP 선택 그리드 */
.fres-mvp-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.fres-mvp-card {
    display:flex; flex-direction:column; align-items:center;
    padding:12px 6px; border-radius:12px; border:2px solid #E5E7EB;
    background:#fff; cursor:pointer; text-align:center; position:relative;
    transition:border-color .15s, background .15s;
}
.fres-mvp-card.is-selected { border-color:#16A34A; background:#F0FDF4; }
.fres-mvp-card.is-selected::after { content:'✓'; position:absolute; top:5px; right:8px; color:#16A34A; font-size:11px; font-weight:800; }
.fres-mvp-avatar { width:42px; height:42px; border-radius:50%; background:#F3F4F6; display:flex; align-items:center; justify-content:center; font-size:18px; color:#9CA3AF; margin-bottom:6px; }
.fres-mvp-nm { font-size:12px; font-weight:700; color:#111827; word-break:break-all; }

/* 선수별 별점 + 태그 */
.fres-player-eval-list { display:flex; flex-direction:column; gap:10px; }
.fres-player-eval-row { background:#F9FAFB; border-radius:12px; padding:12px; }
.fres-player-eval-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.fres-player-eval-name { font-size:14px; font-weight:700; color:#111827; }
.fres-star-input { display:flex; gap:4px; }
.fres-star-btn { font-size:22px; color:#D1D5DB; cursor:pointer; line-height:1; transition:color .1s; }
.fres-star-btn.is-filled { color:#F59E0B; }
.fres-player-eval-row.is-unrated { border:1.5px solid #FCA5A5; background:#FFF5F5; animation:fres-shake .3s ease; }
@keyframes fres-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.fres-tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.fres-tag-chip {
    padding:5px 10px; border-radius:20px; font-size:12px; font-weight:600;
    background:#fff; border:1.5px solid #E5E7EB; color:#374151;
    cursor:pointer; transition:all .15s; user-select:none;
}
.fres-tag-chip.is-selected { background:#DCFCE7; border-color:#86EFAC; color:#15803D; }

/* 제출 버튼 */
.fres-eval-submit {
    width:100%; padding:15px; border-radius:14px; margin-top:6px;
    background:#16A34A; border:none; color:#fff;
    font-size:16px; font-weight:700; cursor:pointer;
}
.fres-eval-submit:disabled { background:#D1D5DB; cursor:not-allowed; }

/* ── 평가 결과 ── */
.fres-eval-done-badge { display:inline-flex; align-items:center; gap:4px; background:#F0FDF4; color:#16A34A; border-radius:8px; padding:6px 12px; font-size:12px; font-weight:600; margin-bottom:14px; }

/* MVP 내 선택 뱃지 */
.fres-my-pick-badge { text-align:center; background:#fff; border:1.5px solid #86EFAC; border-radius:10px; padding:6px 10px; font-size:11px; color:#6B7280; line-height:1.4; flex-shrink:0; }
.fres-my-pick-badge b { display:block; font-size:13px; font-weight:800; color:#15803D; }

/* 인라인 내 평가 */
.fres-my-inline-rating { display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding:5px 0 5px 30px; }
.fres-my-inline-label { font-size:11px; font-weight:700; color:#9CA3AF; background:#F3F4F6; border-radius:6px; padding:2px 7px; flex-shrink:0; }
.fres-my-inline-stars { font-size:14px; display:flex; gap:1px; }
.fres-my-tag { background:#E0F2FE; color:#0369A1; border-radius:20px; padding:2px 9px; font-size:11px; font-weight:600; }

/* MVP 결과 카드 */
.fres-mvp-result-card {
    display:flex; align-items:center; gap:14px;
    background:linear-gradient(135deg,#F0FDF4,#DCFCE7);
    border:2px solid #86EFAC; border-radius:14px;
    padding:16px; margin-bottom:16px;
}
.fres-mvp-crown { font-size:32px; flex-shrink:0; }
.fres-mvp-result-label { font-size:11px; font-weight:700; color:#16A34A; letter-spacing:.5px; }
.fres-mvp-result-name { font-size:20px; font-weight:800; color:#111827; }
.fres-mvp-result-sub { font-size:12px; color:#6B7280; margin-top:2px; }

/* 별점 랭킹 */
.fres-rating-list { display:flex; flex-direction:column; gap:12px; }
.fres-rating-item { display:flex; flex-direction:column; gap:6px; padding-bottom:12px; border-bottom:1px solid #EEF0F3; }
.fres-rating-item:last-child { border-bottom:none; padding-bottom:0; }
.fres-rating-item-head { display:flex; align-items:center; gap:10px; }
.fres-rating-rank { font-size:14px; font-weight:800; color:#9CA3AF; width:20px; flex-shrink:0; }
.fres-rating-rank.gold { color:#F59E0B; }
.fres-rating-rank.silver { color:#9CA3AF; }
.fres-rating-rank.bronze { color:#BC8D38; }
.fres-rating-name { font-size:14px; font-weight:700; color:#111827; flex:1; }
.fres-stars-display { display:flex; align-items:center; gap:2px; }
.fres-star-filled { color:#F59E0B; font-size:16px; }
.fres-star-empty { color:#E5E7EB; font-size:16px; }
.fres-avg-score { font-size:13px; font-weight:800; color:#111827; margin-left:4px; }
.fres-rate-cnt { font-size:11px; color:#9CA3AF; }
.fres-result-tags { display:flex; flex-wrap:wrap; gap:5px; padding-left:30px; }
.fres-result-tag { display:inline-flex; align-items:center; gap:3px; background:#F0FDF4; color:#15803D; border-radius:20px; padding:3px 10px; font-size:11px; font-weight:600; }
.fres-result-tag b { font-weight:800; }

/* 빈 상태 */
.fres-empty { text-align:center; padding:32px 0; color:#9CA3AF; font-size:14px; }
.fres-empty .material-symbols-outlined { font-size:40px; display:block; margin-bottom:8px; }
.fres-no-eval { text-align:center; color:#9CA3AF; font-size:13px; padding:12px 0; }

/* 하단 버튼 */
.fres-btn-wrap { padding:0 16px; margin-top:4px; display:flex; gap:10px; }
.fres-btn-back { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:14px; border-radius:14px; border:1.5px solid #E5E7EB; background:#fff; color:#374151; font-size:15px; font-weight:600; text-decoration:none; }
.fres-btn-manage { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:14px; border-radius:14px; background:#16A34A; border:none; color:#fff; font-size:15px; font-weight:700; text-decoration:none; }

/* 재평가 버튼 */
.fres-reeval-btn { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:8px; border:1.5px solid #E5E7EB; background:#fff; color:#6B7280; font-size:12px; font-weight:600; cursor:pointer; }
.fres-reeval-btn:hover { border-color:#16A34A; color:#16A34A; }

/* 토스트 */
.fres-toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%) translateY(20px); background:#1F2937; color:#fff; border-radius:10px; padding:10px 20px; font-size:13px; font-weight:600; opacity:0; transition:all .25s; z-index:9999; white-space:nowrap; }
.fres-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }



#result_area .join-please {text-align: center;margin: 50px 0 0; min-height:50vh;}
#result_area .join-please .link_btn{display: flex; align-items: center; justify-content: center; background: var(--brand-primary); color: #fff; font-size:15px; font-weight: 600; height: 60px; border-radius:10px; box-shadow: 0px 5px 10px 0px rgb(0 0 0 / 20%); width: 50%; border: 0; gap:5px; margin: 20px auto;}



#ad{text-align: center;}