/* 회원 화면 (모바일 우선). 공통 컴포넌트는 /admin/admin.css 를 함께 쓴다 */

.member-app { background: var(--bg); }

/* 로그인 */
.app-login { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 32px 16px; }
.app-login-brand { text-align: center; display: grid; justify-items: center; gap: 10px; }
.app-login-brand .logo-mark.lg { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 8px 20px -6px rgba(22, 163, 74, .5); }
.app-login-brand h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.app-login-brand p { color: var(--text-2); }
.app-login .auth-card { background: var(--surface); padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* 레이아웃 */
.app-shell { min-height: 100vh; }
.app-top {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
    background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border);
}
.app-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 58px; padding: 0 16px; padding-top: env(safe-area-inset-top);
}
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-brand > span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.app-brand strong { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-content { width: 100%; max-width: 720px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.app-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.back { margin-bottom: 0; }

/* 위쪽 메뉴 (헤더 아래) */
.tabbar { display: grid; max-width: 720px; margin: 0 auto; padding: 0 8px; }
.tabbar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px;
    color: var(--muted); font-size: 13.5px; font-weight: 600; border-bottom: 2.5px solid transparent;
}
.tabbar a .i { width: 18px; height: 18px; }
.tabbar a:hover { color: var(--text); }
.tabbar a.active { color: var(--primary-hover); border-bottom-color: var(--primary); }
.tabbar a.active .i { color: var(--primary); }
@media (max-width: 400px) {
    .tabbar a { flex-direction: column; gap: 1px; height: 50px; font-size: 11.5px; }
}

.tabbar { grid-template-columns: repeat(4, 1fr); }
.tabbar a span { white-space: nowrap; }

/* 내 기록 · 내 정보 */
.soon-list h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.soon-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.soon-list li span { color: var(--text-2); font-size: 13.5px; }
.profile { display: grid; gap: 16px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head div { display: grid; line-height: 1.3; }
.profile-head strong { font-size: 18px; }
.profile-head small { color: var(--muted); }
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.menu-list { display: grid; overflow: hidden; }
.menu-list a, .menu-list button {
    display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--border);
    background: none; font: inherit; font-weight: 500; color: var(--text); text-align: left; cursor: pointer;
}
.menu-list > :last-child { border-bottom: 0; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list .i { color: var(--text-2); }
.menu-list span { flex: 1; }
.menu-list .chev { color: var(--muted); width: 16px; height: 16px; }
.menu-list button { color: var(--danger); }
.menu-list button .i { color: var(--danger); }
.admin-link { text-align: center; }

/* 마스터 도구 */
.master-panel { display: grid; gap: 10px; }
.master-panel-head { display: flex; align-items: center; gap: 8px; }
.master-panel-head h2 { font-size: 16px; font-weight: 700; }
.roster.editable li { flex-wrap: wrap; row-gap: 6px; }
.roster.editable .p-name { min-width: 0; }
.roster select.role { width: 96px; height: 34px; padding: 0 8px; font-weight: 600; box-shadow: none; flex: none; }
.roster select.role-LEADER { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.roster select.role-MANAGER { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.roster select.role-COMMITTEE { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.roster .remove-placeholder { width: 34px; flex: none; }
.p-name .joined { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.roster.editable .p-name .joined { display: block; }

/* 가입 신청 */
.applicants label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.applicants input[type=checkbox], .check-all input { width: 18px; height: 18px; box-shadow: none; accent-color: var(--primary); flex: none; }
.applicants .call-link { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; background: var(--surface); }
.applicants .call-link .i { width: 15px; height: 15px; }
.applicant-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.applicant-actions .check-all { display: flex; align-items: center; gap: 6px; margin-right: auto; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.pending { display: grid; gap: 8px; justify-items: start; }
.pending-head { display: flex; align-items: center; gap: 8px; }
.pending.rejected { border-color: #fecaca; }
.badge.st-REJECTED { background: var(--danger-soft); color: var(--danger); }
.society-pick { list-style: none; margin: 0; padding: 4px 16px 12px; }
.society-pick li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.society-pick li:last-child { border-bottom: 0; }
.society-pick li div { flex: 1; display: grid; min-width: 0; }
.society-pick small { color: var(--muted); font-size: 12.5px; }

/* 우리 동호회 */
.roster-summary { display: grid; gap: 4px; }
.roster-summary .officers { margin-top: 8px; }
.stat strong.small { font-size: 15px; line-height: 1.5; display: block; }
.roster { padding: 12px 16px 16px; }
.roster li.me { background: var(--primary-soft); }
.roster .role-tag { flex: none; }
.me-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-left: 4px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--text); color: #fff; vertical-align: 1px; }

/* 달력 */
.cal { padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.cal-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; min-width: 118px; text-align: center; }
.cal-head #today-btn { margin-left: auto; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-week span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.cal-week .sun, .cal-day.sun .num { color: #dc2626; }
.cal-week .sat, .cal-day.sat .num { color: #2563eb; }
.cal-grid { gap: 2px; }
.cal-day {
    position: relative; min-height: 74px; padding: 4px 3px; border: 0; border-radius: 8px; background: transparent;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; font: inherit; cursor: pointer; color: var(--text);
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { opacity: .38; }
.cal-day .day-head { display: flex; align-items: center; justify-content: center; gap: 2px; }
.cal-day .count { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--text-2); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.cal-day .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 600; }
.cal-day.today .num { background: var(--text); color: #fff !important; }
.cal-day.selected { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip-m {
    display: block; padding: 1px 4px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.chip-m.OFFICIAL { background: var(--primary); }
.chip-m.PRIVATE { background: #3b82f6; }
.chip-m.mine { box-shadow: inset 0 0 0 2px #facc15; }
.more { font-size: 10.5px; color: var(--muted); text-align: center; }
.cal-legend { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.kind-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.kind-dot.OFFICIAL { background: var(--primary); }
.kind-dot.PRIVATE { background: #3b82f6; }
.kind-dot.mine { background: var(--surface); box-shadow: inset 0 0 0 2px #facc15; }

/* 선택한 날 */
.day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.day-head h3 { font-size: 16px; font-weight: 700; }
.meeting-list { display: grid; gap: 10px; }
.m-card { display: grid; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: inherit; }
.m-card:hover { border-color: var(--border-strong); }
.m-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-card h4 { font-size: 16px; font-weight: 700; margin: 0; min-width: 0; }
.m-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.m-organizer { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.m-organizer .i { width: 14px; height: 14px; color: var(--muted); align-self: center; }
.m-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); font-size: 13px; }
.m-meta span { display: inline-flex; align-items: center; gap: 4px; }
.m-meta .i { width: 14px; height: 14px; color: var(--muted); }
.empty-day { padding: 22px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge.OFFICIAL { background: var(--primary-soft); color: var(--primary-hover); }
.badge.PRIVATE { background: #eff6ff; color: #1d4ed8; }
.badge.st-OPEN { background: #ecfdf3; color: #15803d; }
.badge.st-FULL { background: #fff7ed; color: #c2410c; }
.badge.st-CLOSED, .badge.st-ENDED { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.me-CONFIRMED { background: #fef9c3; color: #854d0e; }
.badge.me-WAITING { background: #fef9c3; color: #854d0e; }

/* 상세 */
.meeting-detail { padding: 18px; display: grid; gap: 14px; }
.meeting-detail h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.info-list { display: grid; gap: 10px; margin: 0; }
.info-list div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }
.capacity-bar { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; margin-top: 6px; }
.capacity-bar span { display: block; height: 100%; background: var(--primary); }
.notice { white-space: pre-line; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.p-list .p-name { flex: 1; font-weight: 600; }
.p-list .muted-sm { white-space: nowrap; }
.p-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.action-bar:empty { display: none; }
.action-bar .btn { flex: 1 1 140px; }
.action-bar .btn.lg { height: 48px; }
.manage-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 폼 */
.form-stack { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: #e9ecf0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 0; border-radius: 8px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }

@media (max-width: 420px) {
    .cal-day { min-height: 62px; }
    .cal-day .day-head { gap: 1px; }
    .cal-day .count { min-width: 14px; height: 14px; padding: 0 3px; font-size: 9px; line-height: 14px; }
    .chip-m { font-size: 9.5px; padding: 0 3px; }
    .cal-head h2 { font-size: 16px; min-width: 104px; }
}

/* 팀 편성 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.team-box { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.team-box.mine { background: var(--primary-soft); border-color: var(--primary); }
.team-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.team-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.team-box.edit li { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.team-box.edit select { width: auto; min-width: 74px; padding: 4px 6px; font-size: 13px; }
.team-grid:has(.team-box.edit) { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.team-tools .btn .i { width: 16px; height: 16px; }
.team-setup { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.team-setup .field { width: 110px; margin: 0; }
.team-setup p { margin: 0 0 10px; }
.team-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.team-help { margin: 0 0 10px; }
.alert.info { background: var(--primary-soft); color: #166534; border: 1px solid #bbf7d0; margin-bottom: 10px; }

/* 참가자 직접 추가 */
.card-head .btn .i { width: 16px; height: 16px; }
.add-picker { border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.add-picker .muted-sm { margin: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.pick-list label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.pick-list input[type=checkbox] { width: 18px; height: 18px; box-shadow: none; accent-color: var(--primary); flex: none; }
.pick-list .p-name { flex: 1; font-weight: 600; }
.add-picker .team-tools { margin-top: 4px; }

/* 스코어 기록자 */
.keeper-badge { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; margin-left: 2px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: #fef3c7; color: #92400e; vertical-align: 1px; }
.keeper-badge .i { width: 11px; height: 11px; }
.keeper-missing { margin: 6px 0 0; font-size: 12px; color: var(--danger); }
.keeper-pick { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; font-weight: 600; color: #92400e; }
.keeper-pick .i { width: 14px; height: 14px; }
.keeper-pick select { flex: 1; min-width: 0; padding: 4px 6px; font-size: 13px; }
.alert.info .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.self-note { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.self-note .i { width: 12px; height: 12px; }

/* 코스 순서 */
.course-order-list { display: grid; gap: 6px; }
.course-order-list label { display: flex; align-items: center; gap: 10px; }
.course-order-list label span { width: 72px; font-size: 13px; color: var(--text-2); flex: none; }
.course-order-list select { flex: 1; }

/* 스코어 입력 */
.score-btn .i { width: 18px; height: 18px; }
.score-title .app-title { margin-bottom: 2px; }
.score-title p { margin: 0 0 12px; }
.score-entry { padding: 14px 16px; display: grid; gap: 12px; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.hole-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hole-chip { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.hole-chip.done { background: var(--primary-soft); border-color: #86efac; color: var(--primary-hover); }
.hole-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.hole-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--surface-2); }
.hole-info div { display: grid; text-align: center; }
.hole-info strong { font-size: 20px; font-weight: 800; }
.hole-info span { font-size: 14px; color: var(--text-2); }
.hole-info .icon-btn { width: 44px; height: 44px; }
.hole-info .icon-btn .i { width: 24px; height: 24px; }
.stroke-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stroke-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.stroke-list .who { display: grid; min-width: 0; }
.stroke-list .who strong { font-size: 17px; }
.stroke-list .who small { color: var(--muted); font-size: 12.5px; }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); font: inherit; font-size: 28px; font-weight: 700; line-height: 1; color: var(--text); cursor: pointer; touch-action: manipulation; }
.stepper button:active { background: var(--primary-soft); }
.stepper span { width: 46px; text-align: center; font-size: 30px; font-weight: 800; }
.stepper span.draft { color: var(--muted); }
.stepper span.edited { text-decoration: underline dotted #f59e0b; }
.score-hint { margin: -4px 0 0; text-align: center; }
.score-tables { display: grid; gap: 12px; }
.score-table-wrap { overflow-x: auto; }
.score-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; white-space: nowrap; }
.score-table th, .score-table td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.score-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.score-table tr.par td, .score-table tr.par th { color: var(--muted); font-size: 12px; background: var(--surface-2); }
.score-table tbody th { text-align: left; font-weight: 600; padding-right: 8px; }
.score-table tbody th small { margin-left: 4px; color: var(--muted); font-weight: 500; font-size: 11px; }
.score-table td.under { color: #2563eb; font-weight: 700; }
.score-table td.over { color: #dc2626; }
.score-table td.edited { position: relative; }
.score-table td.edited::after { content: '●'; position: absolute; top: 1px; right: 1px; font-size: 7px; color: #f59e0b; }
.score-table td.sum { font-weight: 800; }
.rank-title { font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.rank-list { margin: 0; padding: 0 0 0 22px; display: grid; gap: 4px; }
.rank-list li { padding: 4px 0; }
.rank-list li > * { margin-right: 8px; }
.rank-list .p-name { font-weight: 600; }
.rank-list small { color: var(--muted); }
.edited-dot { color: #f59e0b; }
.refresh-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 12px; }
.refresh-bar .btn .i { width: 15px; height: 15px; }

/* 개인 기록 (GPS) */
.play-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.play-top .app-title { margin-bottom: 2px; }
.play-top p { margin: 0; }
.play-card { padding: 14px 16px; display: grid; gap: 12px; }
.gps-box { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: #0f172a; color: #fff; min-height: 96px; align-content: center; }
.gps-box .muted-sm { color: #cbd5e1; margin: 0; }
.gps-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gps-main span { font-size: 15px; color: #cbd5e1; font-weight: 600; }
.gps-main strong { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.gps-main small { font-size: 22px; margin-left: 2px; color: #cbd5e1; }
.gps-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
.gps-others div { display: grid; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.gps-others span { font-size: 12px; color: #94a3b8; }
.gps-others b { font-size: 20px; }
.gps-status { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; font-size: 12.5px; color: var(--text-2); }
.gps-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex: none; }
.gps-dot.good { background: #16a34a; }
.gps-dot.fair { background: #f59e0b; }
.gps-dot.poor { background: #dc2626; }
.shot-row { display: grid; grid-template-columns: 1fr 1.1fr 1.4fr; align-items: center; gap: 10px; }
.shot-undo { height: 64px; font-size: 16px; }
.shot-count { display: grid; justify-items: center; }
.shot-count strong { font-size: 52px; line-height: 1; font-weight: 800; }
.shot-count span { font-size: 13px; color: var(--text-2); }
.shot-add { height: 84px; font-size: 26px; font-weight: 800; border-radius: 16px; touch-action: manipulation; }
.holeout { height: 54px; background: var(--text); color: #fff; border-color: var(--text); }
.holeout .i { width: 18px; height: 18px; }
.holeout:disabled { opacity: .45; }

/* 동호회 전환 */
.app-header { position: relative; }
.society-switch { margin-left: auto; margin-right: 6px; gap: 2px; padding: 0 8px 0 10px; }
.society-switch .i { width: 14px; height: 14px; transform: rotate(90deg); }
.society-menu { display: grid; gap: 4px; padding: 8px 12px 10px; background: var(--surface); border-bottom: 1px solid var(--border); }
.society-menu button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.society-menu button.on { border-color: var(--primary); background: var(--primary-soft); }
.society-menu strong { flex: 1; }
.society-menu small { color: var(--muted); }
.society-menu .i { width: 16px; height: 16px; color: var(--primary); }
.my-society { display: block; }
.my-society small { color: var(--muted); }
.my-society.pending-line { color: var(--text-2); font-size: 13px; }

/* 내 기록 */
.rec-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-summary div { display: grid; align-content: start; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.rec-summary span { font-size: 12px; color: var(--muted); }
.rec-summary strong { font-size: 22px; font-weight: 800; }
.rec-summary strong small { font-size: 13px; font-weight: 600; margin-left: 1px; color: var(--text-2); }
.rec-summary .muted-sm { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-score { display: flex; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.rec-score strong { font-size: 24px; font-weight: 800; }
.rec-score strong small { font-size: 13px; margin-left: 1px; }
.rec-score span.under { color: #2563eb; font-weight: 800; }
.rec-score span.over { color: #dc2626; font-weight: 800; }
.rec-score small { color: var(--muted); }
.rec-score .go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--primary); }
.rec-score .go .i { width: 14px; height: 14px; }
.badge.soc { background: var(--surface-2); color: var(--text-2); }
.player-link { color: inherit; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.player-tables { display: grid; gap: 12px; }
.player-table th, .player-table td { padding: 7px 6px; }
.player-table tbody th { text-align: center; font-weight: 700; padding-right: 6px; }
.player-table tfoot th, .player-table tfoot td { font-weight: 800; background: var(--surface-2); }
.player-table td.under { color: #2563eb; font-weight: 800; }
.player-table td.over { color: #dc2626; font-weight: 700; }
.player-links { display: flex; flex-wrap: wrap; gap: 6px; }
.player-links .chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--text-2); }
.soon-list h3 .muted-sm { font-weight: 500; margin-left: 4px; }
.player-table { table-layout: fixed; }
.board-links { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.board-links .btn .i { width: 15px; height: 15px; }

/* 핸디캡 */
.hcp { display: grid; justify-items: center; min-width: 44px; padding: 2px 6px; border-radius: 8px; background: var(--surface-2); font-size: 15px; font-weight: 800; line-height: 1.1; }
.hcp small { font-size: 10px; font-weight: 600; color: var(--muted); }
.hcp-big { font-size: 18px; font-weight: 800; margin-right: 4px; color: var(--text); }

/* 나홀로 라운딩 */
.chip-m.PERSONAL { background: #8b5cf6; }
.kind-dot.PERSONAL { background: #8b5cf6; }
.badge.PERSONAL { background: #ede9fe; color: #6d28d9; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.title-row .btn .i { width: 15px; height: 15px; }
.companion-inputs { display: grid; gap: 6px; }
.companions { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.companions .muted-sm { margin: 0; }
.companion-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.companion-row > span { font-weight: 700; }
.stepper.sm button { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
.stepper.sm span { width: 36px; font-size: 22px; }
