/* 분당33골프클럽 공통 스타일. 휴대폰 우선, 넓은 화면(1024px~)은 왼쪽 메뉴 + 여러 칸 대시보드 */
:root {
  --bg: #f6f5f8;
  --surface: #ffffff;
  --surface-2: #f1eff4;
  --seg-on: #ffffff; /* 고른 칸 (밝은 화면은 흰색, 어두운 화면은 한 단계 밝게) */
  --text: #1d1f2a;
  --muted: #636779;
  --line: #e3e0e8;
  --accent: #4f6587;        /* 로고 남색 (#5e7494)을 글자 대비에 맞게 조금 진하게 */
  --accent-ink: #ffffff;
  --accent-soft: #e7ecf3;
  --danger: #c0392b;
  --danger-solid: #c0392b;  /* 흰 글자를 올리는 빨간 바탕 (어두운 화면에서도 진하게) */
  --warn: #9a5b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --tabbar-h: 62px;
  --win: #c43333; --tie: #b9b8b1; --loss: #1f66bd; --grid: #e9e7ee; /* 승 빨강·패 파랑 (순위 ▲빨강 ▼파랑과 같은 국내 관례). 연한 바탕(#e7ecf3) 위 작은 글자도 4.5:1 넘게 */
  /* 남색 무대 (2026-11-11 디자인 통일): 리더보드 머리 · 홈 클럽 소식 · 월례회 표 · 운영 머리가 같이 쓴다. 화면 모드와 관계없이 늘 어두움 */
  --stage-1: #3c5079; --stage-2: #27334f; --stage-3: #1a2236; --stage-stop: #2c3a59;
  --stage-bg: linear-gradient(160deg, var(--stage-1) 0%, var(--stage-2) 55%, var(--stage-3) 100%);
  --stage-texture: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 20px, transparent 20px 40px);
  --on-stage: #fff; --on-stage-2: rgba(255, 255, 255, .82); --on-stage-3: rgba(255, 255, 255, .7);
  --on-stage-fill: rgba(255, 255, 255, .08); --on-stage-fill-2: rgba(255, 255, 255, .14);
  --gold: #e0b12a; --gold-lite: #ffe9a6; --gold-soft: rgba(224, 177, 42, .18); --silver: #b4bcc6; --bronze: #d0915a; --medal-ink: #1d1f2a;
  --gold-ink: #a87c0c; /* 흰·회색 바탕 위 금색 글자 (어두운 화면은 밝게) */
  --win-on-light: #c43333; --loss-on-light: #1f66bd; /* 늘 흰 알약 위의 오름·내림 (어두운 화면에서도 그대로) */
  --r-sm: 10px; --r-md: 12px; --r-lg: 14px; --r-xl: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --seg-on: #343c50; --bg: #12141a; --surface: #1a1d25; --surface-2: #222632; --text: #e8e9ef; --muted: #9a9fb0; --line: #2c3040;
    --accent: #93a9cf; --accent-ink: #0d1118; --accent-soft: #252d3d; --danger: #ff6b5e; --danger-solid: #c84a3e; --warn: #f0b45a;
    --shadow: none; color-scheme: dark;
    --win: #ec7676; --tie: #7d7c75; --loss: #5a9bec; --grid: #2a2e3a; --gold-ink: #f0c94e;
  }
}
:root[data-theme="dark"] {
  --seg-on: #343c50; --bg: #12141a; --surface: #1a1d25; --surface-2: #222632; --text: #e8e9ef; --muted: #9a9fb0; --line: #2c3040;
  --accent: #93a9cf; --accent-ink: #0d1118; --accent-soft: #252d3d; --danger: #ff6b5e; --danger-solid: #c84a3e; --warn: #f0b45a;
  --shadow: none; color-scheme: dark;
  --win: #ec7676; --tie: #7d7c75; --loss: #5a9bec; --grid: #2a2e3a; --gold-ink: #f0c94e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 페이지 전체는 튕기지 않게 (위 바·아래 메뉴를 끌어도 화면 틀이 밀리지 않게). 내용은 가운데 칸(.scroller) 안에서 튕긴다 */
html, body { overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; word-break: keep-all; overflow-wrap: anywhere; } /* 한글이 낱말 중간에서 끊기지 않게 (아주 긴 글자는 그래도 꺾음) */
h1, h2, h3 { margin: 0; line-height: 1.3; }
h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
h2 small { font-size: 14px; font-weight: 500; color: var(--muted); }
a { color: var(--accent); }
small, .muted { color: var(--muted); }
p { margin: 0; }
[hidden] { display: none !important; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stack { display: grid; gap: 14px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.row-start { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 버튼·입력 */
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, label, [role="button"], [role="tab"], [role="radio"] { touch-action: manipulation; } /* 두 번 눌러도 화면이 커지지 않게 (UX.md '7. 터치') */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) { .btn:hover { border-color: var(--muted); } }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (hover: hover) { .btn-primary:hover { filter: brightness(1.05); border-color: var(--accent); } }
.btn-danger { color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; }
label.check input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; flex: none; accent-color: var(--accent); }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
/* 체크 상자는 글 칸 모양(폭 100%·높이 44px)을 받지 않게 */
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; padding: 0; accent-color: var(--accent); }
input[type="range"] { padding: 0; min-height: 28px; accent-color: var(--accent); background: none; border: 0; }
/* 아이폰 사파리의 날짜 칸은 기본 모양이 제 폭을 고집해 카드 밖으로 나간다: 기본 모양을 끄고 칸 폭에 맞춘다 */
input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; display: block; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* 손가락으로 쓰는 기기: 아이폰 사파리는 16px보다 작은 입력칸을 누르면 화면을 확대한다. 폭과 상관없이(가로로 돌려도) 16px (UX.md '6. 입력칸').
   label(14px) 안의 칸이 글자 크기를 물려받아 14px이 되던 것 → 칸은 16px (따로 크기를 정한 칸은 아래에서 따로) */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
}
input::placeholder, textarea::placeholder { font-weight: 400; color: var(--muted); opacity: .75; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.msg { font-size: 14px; color: var(--danger); }
.msg:empty { display: none; }
.msg.ok { color: var(--accent); }
.warn-text { color: var(--warn); font-weight: 600; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.empty { padding: 24px 0; text-align: center; }
.boot-fail { display: grid; justify-items: center; gap: 12px; } /* 처음에 연결이 끊겼을 때: 문구 + 다시 시도 */

/* 로그인·가입 */
/* 틀은 화면 높이에 딱 맞고 가운데 칸(.login-scroll)만 스크롤된다. 메인 화면(body.app)과 같은 구조 (/srv/infra/shared/UX.md '1. 화면 틀') */
.login-page { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.login-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; display: grid; place-items: center; padding: 24px 16px; }
.login-box { width: min(400px, 100%); display: grid; gap: 20px; padding: 28px 22px; }
.signup-box { width: min(480px, 100%); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.login-form { display: grid; gap: 14px; }
/* 로그인 머리: 앱 안과 같은 남색 무대 (2026-11-11). 상자 위쪽 끝까지 꽉 채운 띠, 로고는 흰 동그라미 위 */
.login-stage { position: relative; overflow: hidden; margin: -28px -22px 0; padding: 26px 22px 22px; border-radius: var(--radius) var(--radius) 0 0; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(224, 177, 42, .22), transparent 55%), var(--stage-bg); box-shadow: inset 0 -2px 0 var(--gold); }
.login-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: var(--stage-texture); }
.login-stage > * { position: relative; }
.login-stage .brand-mark { width: 52px; height: 52px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(224, 177, 42, .45), 0 6px 14px rgba(0, 0, 0, .3); }
.login-stage > span { display: grid; gap: 2px; }
.login-stage small { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--gold-lite); }
.pw-field { display: grid; gap: 6px; } /* 보기 버튼이 label 밖에 있어야 입력 칸 이름이 '비밀번호'로만 읽힘 */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 72px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 60px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.login-note { font-size: 14px; color: var(--muted); }
/* 로그인·가입 화면: 아래 안내 글은 모두 가운데, 맨 아래 줄은 가는 선 위에 (두 화면 같은 모양) */
.login-form > small { text-align: center; word-break: keep-all; }
.login-box > .login-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; word-break: keep-all; }
.signup-cta { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.signup-cta .btn { width: 100%; font-weight: 600; }
.step-label { font-size: 13px; font-weight: 700; color: var(--accent); }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--accent); }
.choice span { display: grid; }
.choice.disabled { opacity: .55; cursor: default; }
.photo-field { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; display: grid; gap: 10px; margin: 0; }
.photo-field legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
#photo-pick { display: grid; gap: 10px; justify-items: center; }
.guide { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); justify-self: stretch; }

/* 사진 자르기 틀 */
.crop-box { position: relative; width: 260px; height: 260px; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px dashed var(--line); touch-action: none; user-select: none; justify-self: center; }
.crop-box.has-photo { cursor: grab; border-style: solid; }
.crop-box.has-photo .crop-empty { display: none; }
.crop-box::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); pointer-events: none; opacity: 0; }
.crop-box.has-photo::after { opacity: 1; } /* 둥근 얼굴 영역 표시 */
.crop-img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; }
.crop-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
#crop-zoom { width: 260px; justify-self: center; }
.file-btn { justify-self: center; }

/* 얼굴 */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-empty { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-md { width: 40px; height: 40px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 16px; }
.avatar-xl { width: 112px; height: 112px; font-size: 28px; }

/* 앱 틀: 머리글 + 가운데 내용(여기만 스크롤) + 아래 탭(휴대폰) (2026-11-03)
   예전에는 페이지 전체가 스크롤되고 아래 탭은 화면에 고정(fixed)이었는데, 아이폰이 키보드·튕김 뒤에 고정 막대 자리를
   잘못 계산해 아래 탭이 화면 중간에 뜨는 일이 되풀이됐다. 이제 틀은 화면 높이에 딱 맞고 가운데(.scroller)만 스크롤된다 */
body.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.scroller { order: 1; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.topbar {
  position: relative; flex: none; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar .brand { font-size: 17px; white-space: nowrap; }
/* 이름(분당33골프클럽 → 분당33클럽 → 33클럽)은 main.js가 실제 자리를 재서 고른다 */
#me-name, #me-role { white-space: nowrap; }
#me-name { font-weight: 600; }
@media (max-width: 480px) {
  #me-role { display: none; }
  .user-chip .btn-ghost { padding: 0 8px; }
}
.topbar .brand-mark { width: 36px; height: 36px; }
.user-chip { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.me-chip { display: flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; padding: 4px 6px; border-radius: 999px; }
@media (hover: hover) { .me-chip:hover { background: var(--surface-2); } }
.me-chip.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tabs {
  order: 2; flex: none; position: relative; z-index: 10; display: flex; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line);
}
.tabs a { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 12px; color: var(--muted); text-decoration: none; }
.tabs a .ti { width: 22px; height: 22px; }
.tabs a.on { color: var(--accent); font-weight: 700; }
/* 휴대폰·태블릿 아래 탭: 고른 탭은 아이콘 뒤에 둥근 띠 (글자 색만으로는 잘 안 보였음, 2026-11-11. 가로 세로 메뉴와 같은 모양) */
@media (max-width: 1023.98px) {
  .tabs a { -webkit-tap-highlight-color: transparent; }
  .tabs a .ti { box-sizing: content-box; padding: 4px 18px; border-radius: 999px; transition: background-color .15s; }
  .tabs a.on .ti { background: var(--accent-soft); }
}
.content { width: min(1440px, 100%); margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.view { display: grid; gap: 16px; }
.notice { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); font-size: 14px; }

/* 홈 */
.tile { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.tile-ico { font-size: 26px; color: var(--accent); display: inline-flex; }

/* 연락처 */
.list-head { display: grid; gap: 10px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 4px 0 8px; }

/* 내 정보 */
.me-grid { display: grid; gap: 16px; align-items: start; }
.me-side, .me-main { display: contents; } /* 휴대폰: 사진 → 연락처 → 관리자 → 계정 차례 */
.me-card { order: 1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#contact-form { order: 2; }
.me-theme { order: 4; } /* 화면 모드는 계정 바로 위 (휴대폰에서 맨 위로 뜨지 않게) */
.me-account { order: 5; }
.me-info { display: grid; gap: 6px; justify-items: start; }
.me-info h2 { flex-wrap: wrap; }

.me-withdraw-row { padding-top: 12px; border-top: 1px solid var(--line); }
.me-withdraw { color: var(--muted); font-size: 13px; }
.form-foot { padding-top: 14px; border-top: 1px solid var(--line); }

/* 관리자 */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }

dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 22px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }

/* 아래 알림은 공통 부품(kit)의 toast가 그린다 (UX.md '4. 아래 알림'). 여기서는 자리만 알려 준다 (색은 kit-theme.css).
   휴대폰 세로: 아래 탭 높이만큼 위에. PC·가로는 탭이 옆에 있어 바닥 바로 위 */
body.app { --ak-toast-b: var(--tabbar-h); }

/* ---- 기록 화면 공통 ---- */
.small { font-size: 13px; }
.stack-sm { display: grid; gap: 6px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 0 2px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 좋아짐 = 빨강, 나빠짐 = 파랑 (승패·순위 등락과 같은 뜻의 색) */
.tone-win { color: var(--win); }
.tone-loss { color: var(--loss); }
.tone-danger { color: var(--danger); font-weight: 600; } /* 경고·할 일 (빨강) */
.tone-warn { color: color-mix(in srgb, var(--warn) 70%, var(--text)); font-weight: 700; } /* 대기 등 주의 */
.subtabs { display: flex; gap: 6px; overflow-x: auto; }
.subtabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.subtabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
/* 휴대폰: 옆으로 밀지 않아도 모든 칸이 보이게 두 줄로 */
/* 좁은 화면에서도 한 줄 그대로 좌우로 밀어 본다 (두 줄로 꺾지 않음, 2026-11-02). 스크롤 막대는 숨김 */
.subtabs { flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; }
.subtabs.fade-r { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.subtabs.fade-l { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
.subtabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
@media (max-width: 480px) { #view-records .subtabs a { padding: 7px 12px; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--muted); min-height: 34px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.list-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.delta { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-up { color: var(--win); }
.delta-down { color: var(--loss); }
.delta-same { color: var(--muted); font-weight: 500; }
.delta-new { display: inline-block; padding: 1px 5px; border-radius: 4px; background: var(--danger-solid); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; line-height: 1.4; vertical-align: middle; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; color: var(--medal-ink); font-variant-numeric: tabular-nums; }
.medal.m1 { background: var(--gold); }
.medal.m2 { background: var(--silver); }
.medal.m3 { background: var(--bronze); }
.back-row a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 16px; font-size: 15px; text-decoration: none; } /* 누르기 쉬운 크기 */

/* 화면 안 카드 사이 간격은 모든 화면 16px (.view와 같게) */
#records-body, #member-body { display: grid; gap: 16px; }

/* 홈 */
.pr-rank { text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-name { font-weight: 600; }
.pr-right { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }

/* 리더보드 */
.board { display: grid; }

tr.me td { background: var(--accent-soft); }
/* 기록 탭: 최근 라운드(순위·사진·이름·타수·1위와 차이), 많이 오른 회원(순위·사진·이름·오름·평균) */

/* 명예의 전당 */
.hof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
@media (min-width: 900px) { .hof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* PC: 3×3 */ .hof-top a { color: inherit; text-decoration: none; }
.hof { display: grid; gap: 6px; align-content: start; }

.hof-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hof-top li { display: flex; align-items: center; gap: 8px; }
.hof-top li b { flex: 1; min-width: 0; }
.hof-top li span:last-child { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 순위 변화 */
/* 순위 레이스 (rc-): 막대 끝에 얼굴, 위 = 선두 3명 · 아래 = 나를 따라가는 5줄. 움직임은 records.js가 transform으로만 */
.rc-headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rc-date { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rc-where { font-size: 13px; }
.rc-cap { margin: 0; min-height: 42px; display: flex; align-items: center; font-size: 14px; line-height: 1.45; word-break: keep-all; text-wrap: balance; }
.rc-cap-in { animation: rc-in .28s ease-out; }
.rc-cap b { font-weight: 800; }
@keyframes rc-in { from { opacity: 0; transform: translateY(4px); } }
.rc-stage { --rc-u: 120px; position: relative; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.rc-axis { position: relative; height: 16px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.rc-pane { position: relative; overflow: hidden; }
.rc-top { height: 120px; }
.rc-main { height: 200px; }
.rc-stage.all .rc-top, .rc-stage.all .rc-gap { display: none; }
.rc-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--grid); }
.rc-gap { height: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-gap::before, .rc-gap::after { content: ""; border-top: 1px dashed var(--line); }
.rc-gap:empty::before, .rc-gap:empty::after { content: none; } /* 건너뛴 순위가 없으면 선도 없이 틈만 */
.rc-row { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 6px; will-change: transform; }
.rc-row[hidden] { display: none; }
.rc-row.me { z-index: 3; }
.rc-row.rise { z-index: 2; } /* 추월하는 줄이 위로 지나감 */
.rc-row.me::before { content: ""; position: absolute; inset: 2px 0; border-radius: 10px; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.rc-rank { position: relative; justify-self: center; display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-row.me .rc-rank:not(.medal) { color: var(--accent); }
.rc-rank.medal { color: #1d1f2a; }
.rc-track { position: relative; height: 100%; min-width: 0; }
.rc-clip { position: absolute; left: 0; top: 9px; width: var(--rc-u); height: 22px; overflow: hidden; border-radius: 3px 11px 11px 3px; }
.rc-bar { display: block; width: 100%; height: 100%; border-radius: 0 11px 11px 0; background: #b9c4d6; background: color-mix(in srgb, var(--accent) 42%, var(--surface)); transition: background-color .25s; will-change: transform; }
.rc-row.me .rc-bar { background: var(--accent); }
.rc-row.up .rc-bar { background: var(--win); }
.rc-row.down .rc-bar { background: var(--loss); }
.rc-head { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 6px; will-change: transform; }
.rc-head .avatar { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--surface); }
.rc-row.me .rc-head .avatar { box-shadow: 0 0 0 2px var(--accent); }
.rc-row.up .rc-head .avatar { box-shadow: 0 0 0 2px var(--win); }
.rc-row.down .rc-head .avatar { box-shadow: 0 0 0 2px var(--loss); }
.rc-row.lead .rc-bar { background: var(--gold); }
.rc-row.lead .rc-head .avatar { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(224, 177, 42, .3); }
.rc-lab { display: grid; line-height: 1.2; white-space: nowrap; }
.rc-name { font-size: 13px; font-weight: 700; }
.rc-val { display: flex; align-items: baseline; gap: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rc-avg { font-weight: 700; color: var(--muted); }
.rc-dl { font-size: 11px; font-weight: 800; }
.rc-dl.up { color: var(--win); }
.rc-dl.down { color: var(--loss); }
.rc-dl.new { padding: 0 4px; border-radius: 4px; background: var(--danger-solid); color: #fff; font-size: 10px; }
/* 그 라운드에 안 나온 회원: 막대·얼굴을 흐리게 (순위는 남이 움직여서 바뀜) */
.rc-row.out .rc-bar { background: #dfe3ea; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.rc-row.out.me .rc-bar { background: #8fa3c4; background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.rc-row.out .rc-head .avatar { opacity: .5; }
.rc-row.out .rc-name { color: var(--muted); font-weight: 600; }
.rc-ctl { display: flex; align-items: center; gap: 12px; }
.rc-time { flex: 1; min-width: 0; display: grid; }
.rc-time input[type="range"] { min-height: 36px; touch-action: pan-y; }
.rc-years { display: flex; justify-content: space-between; margin-top: -4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-play { flex: none; position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.rc-play::before { content: ""; position: absolute; left: 19px; top: 15px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent currentColor; }
.rc-play.on::before { left: 17px; top: 16px; width: 4px; height: 16px; border-width: 0 5px; border-color: currentColor; box-sizing: content-box; }
.rc-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-opts { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rc-opts .seg button { min-height: 36px; padding: 3px 9px; font-size: 13px; }
.rc-opts .rc-all { min-height: 40px; padding: 0 10px; white-space: nowrap; }
.rc-note { margin: 0; }
/* 화면 읽기 프로그램 전용 글자는 fixed: absolute면 위치를 잡을 부모가 없어 문서 전체가 길어지고 스크롤됨 (UX.md 1, 2026-11-11 리더보드) */
.rc-sr { position: fixed; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rc-cap-in { animation: none; } .rc-bar { transition: none; } }

/* 회원 기록 */
/* 회원 기록 첫 화면: 나(사진·이름 + 순위·평균) | 지금(지난 라운드 · 다음 라운드 목표). PC는 두 칸, 휴대폰은 차례로 */
.mh2 { display: grid; gap: 18px; word-break: keep-all; }
.mh2-me { display: grid; gap: 14px; align-content: start; }
.mh2-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mh2-id h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.mh2-id p { margin: 2px 0 0; }
.mh2-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mh-key { display: grid; gap: 2px; padding: 12px 0; min-width: 0; }
.mh-key + .mh-key { padding-left: 16px; border-left: 1px solid var(--line); }
.mh-key small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mh-key b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mh-key > span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mh-key .delta { font-size: 13px; } /* 상승 빨강 · 하락 파랑은 .delta-up/down 색 그대로 */
.mh2-sec { display: grid; gap: 10px; }
.mh2-last { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.mh2-last span span { white-space: nowrap; } /* "평균보다 3.8타 잘 침"은 한 덩어리로 */
.mh2-score { font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.badge-best { background: color-mix(in srgb, var(--win) 14%, transparent); color: var(--win); }

.mh2-sec > p { margin: -2px 0 0; }

@media (min-width: 900px) {
  .mh2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: 'me now' 'recent now'; column-gap: 32px; align-items: start; }
  .mh2-me { grid-area: me; }

}
.mr-cell.drop { outline: 1.5px dashed var(--muted); outline-offset: -1.5px; }
.mr-cell em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* 첫 카드에 합친 스코어 흐름 (2026-11-11): 휴대폰은 지금 → 그래프 → 다음 목표 → 지난 라운드·최근 5라운드 → 풀이,
   넓은 화면은 왼쪽(지금·지난 라운드) · 오른쪽(그래프), 아래에 다음 목표 | 풀이 */
.pf-lead > b { font-size: 15px; }
.pf-lead small .pf-lead-now { font-size: inherit; font-weight: 700; color: var(--text); }
.pf .mh-key b { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 360px) { .pf-spark-box { display: none; } } /* 작은 휴대폰: 순위 숫자가 꺾이지 않게 작은 그림은 뺀다 */
.pf-spark-box { display: inline-flex; }
.pf-spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pf-spark-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.pf-flow { display: grid; gap: 8px; min-width: 0; align-content: start; grid-column: 1 / -1; } /* 좁은 두 칸 배치(가로 모드)에서는 한 줄 전체 */
.pf-next, .pf-last, .pf-facts { grid-column: 1 / -1; }
.pf-chart .series-dot.focus { opacity: 1; }
.pf-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.pf-dot.drop { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 2; }
.pf-best { fill: none; stroke: var(--win); stroke-width: 2; }
.pf-best-lab { fill: var(--win); font-weight: 700; }
.pf-range { fill: var(--accent); opacity: .13; }
.pf-lg-range { width: 16px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .25; }
.pf-zone { fill: var(--win); opacity: .12; }
.pf-goal { stroke: var(--win); stroke-width: 2.5; stroke-linecap: round; }
.pf-goal-lab { fill: var(--text); }
.pf-goal-v { font-weight: 800; fill: var(--win); }
.pf-lg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pf-lg-dot.drop { box-sizing: border-box; background: var(--surface); border: 1.5px dashed var(--muted); } /* 그래프의 점선 빈 점과 같게 */
.pf-slot { fill: none; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 3 3; }
/* 10라운드 평균: 주황은 '견주는 사람' 한 뜻으로 쓰므로 같은 남색의 옅고 굵은 선으로 */
.chart-trends.pf-chart .trend-line-2 { stroke: var(--accent); stroke-width: 6; opacity: .2; }
.pf .chart-legend .lg-line-2 { height: 6px; background: var(--accent); opacity: .25; }

.pf-zone.down { fill: var(--loss); }
.pf-goal.down { stroke: var(--loss); }
.pf-goal-v.down { fill: var(--loss); }
/* 다음 라운드 순위: ▲ 오름 · ▼ 내려감을 크게 (2026-11-11) */
.pf-moves { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-move { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--win) 7%, var(--surface-2)); }
.pf-move.down { background: color-mix(in srgb, var(--loss) 7%, var(--surface-2)); }
.pf-move-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--win); color: var(--surface); font-size: 13px; } /* 어두운 화면에서 밝은 빨강 위 흰 글자는 흐려서 바탕색 글자 */
.pf-move.down .pf-move-ico { background: var(--loss); }
.pf-move > div { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.pf-move b { font-size: 17px; font-weight: 700; word-break: keep-all; }
.pf-move b em { font-style: normal; font-weight: 800; color: var(--win); }
.pf-move.down b em { color: var(--loss); }
.pf-move small { font-size: 12px; color: var(--muted); word-break: keep-all; }
.pf-move .rv-chance { margin-top: 3px; font-size: 12px; }
.pf .pf-move .rv-chance.high.loss { color: var(--loss); }
.pf-move.band { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.pf-move.band .pf-move-ico { background: var(--accent); color: var(--accent-ink); }
.pf-move.band b em { color: var(--accent); }
/* 지금 점수대 꼬리표 (평균 옆) */
.pf-band { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.h-band { justify-self: start; margin: 2px 0 0; } /* 홈: 평균 아래 줄 (옆에 두면 순위·평균이 두 줄로 밀림) */

.pf .rv-chance.high.win { color: var(--win); }
.pf-last > p { margin: -4px 0 0; }
.pf .mr-cell.last { outline: 2px solid var(--accent); outline-offset: -2px; } /* 지난 라운드 */
.pf-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 14px; margin: 0; align-content: start; font-variant-numeric: tabular-nums; }
.pf-facts dt, .pf-facts dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.pf-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.pf-facts dd { font-size: 15px; font-weight: 700; }
.pf-facts dd small { font-size: 12px; font-weight: 400; }
@media (min-width: 900px) {
  .mh2.pf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-template-areas: 'me flow' 'last flow' 'next facts'; column-gap: 32px; align-items: start; }
  .pf .mh2-me { grid-area: me; }
  .pf .pf-flow { grid-area: flow; padding-left: 32px; border-left: 1px solid var(--line); align-self: stretch; }
  .pf .pf-last { grid-area: last; } .pf .pf-next { grid-area: next; }
  .pf .pf-facts { grid-area: facts; padding-left: 32px; }
}
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-tile { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.st-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.st-value { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.st-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
/* 숫자 칸: 제목은 왼쪽, 숫자·부연은 가운데 (2026-11-01) */
.stat-tile .st-value, .stat-tile .st-sub { justify-self: center; text-align: center; }
.rival { font-weight: 600; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { font-size: 11px; fill: var(--muted); }
.series-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 6; opacity: .15; stroke-linejoin: round; stroke-linecap: round; }
.trend-line-2 { stroke: var(--warn); stroke-width: 2.5; opacity: .85; } /* 두 번째 평균선: 주황 */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-line { width: 18px; height: 6px; border-radius: 3px; background: var(--accent); opacity: .3; }
.lg-line-2 { height: 3px; background: var(--warn); opacity: .85; }
.chart-tip .tip-avg { color: var(--muted); }
/* 평균선이 있는 그래프: 타수는 옅게, 평균선(5경기 남색·10경기 주황)을 진하게 */
.chart-trends .series-line { stroke-width: 1.2; opacity: .35; }
.chart-trends .series-dot.focus { opacity: 1; } /* 손가락을 댄 점은 진하게 */
.chart-trends .trend-line { stroke-width: 2.5; opacity: 1; }
.chart-trends .trend-line-2 { stroke-width: 2.5; opacity: 1; }
.lg-raw { width: 18px; height: 2px; border-radius: 1px; background: var(--accent); opacity: .45; } /* 범례: 옅은 가는 선 = 타수 */
.chart-trends .lg-line { height: 3px; opacity: 1; }
.series-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.series-dot.focus { r: 5; }
.crosshair { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; top: 0; white-space: nowrap; display: grid; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; pointer-events: none; }
.chart-tip b { font-size: 15px; }
.small-table td, .small-table th { padding: 6px 8px; }
/* 카드 머리의 '기준' 풀이 (라이벌 기준 · 동반 지수) */
.mu .row-between { align-items: start; }
.mu-help { text-align: right; }
.mu-help[open] { flex-basis: 100%; text-align: left; }
.mu-rules { margin: 10px 0 0; padding: 12px 14px; word-break: keep-all; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.55; }
.fx-help { display: grid; gap: 10px; }
.fx-help p { margin: 0; }
/* 계산식: 왼쪽 변수(오른쪽 맞춤) = 오른쪽 식, '=' 세로선 맞춤 */
.fx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 8px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface); color: var(--text); font-family: 'Cambria Math', 'STIX Two Math', 'Times New Roman', serif; font-size: 15px; line-height: 1.5; overflow-x: auto; }
.fx-l { justify-self: end; white-space: nowrap; font-family: inherit; }
.fx-l:first-child { font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.fx-r { white-space: nowrap; }
.fx i { font-style: italic; }
.frac { display: inline-grid; vertical-align: middle; text-align: center; margin: 0 2px; font-size: .92em; line-height: 1.3; }
.frac > span + span { border-top: 1px solid currentColor; padding-top: 1px; }
.fx-terms sub { font-size: .7em; font-style: normal; font-family: system-ui, sans-serif; }
.fx-terms dd i { font-family: 'Cambria Math', 'Times New Roman', serif; font-size: 15px; }
@media (max-width: 400px) { .fx { font-size: 14px; padding: 12px; } }
.fx sub { font-size: .7em; font-style: normal; font-family: system-ui, sans-serif; }
.fx small { display: block; font-family: system-ui, sans-serif; font-size: 12px; color: var(--muted); white-space: normal; }
.fx-terms { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; }
.fx-terms dt { justify-self: end; color: var(--text); font-family: 'Cambria Math', 'Times New Roman', serif; font-size: 15px; }
.fx-terms dd { margin: 0; }
.fx-ex { font-variant-numeric: tabular-nums; }
.fx-ex b { color: var(--text); }
/* 라이벌 맞대결 (2026-11-11): 한 줄 결론 → 라이벌 고르기 → 흐름 그래프(나 남색 · 고른 라이벌 주황 · 나머지 회색) → 고른 라이벌과 비교 */
.rv { --rv-me: var(--accent); --rv-sel: var(--warn); }
.rv-lead { --c: var(--muted); display: grid; gap: 2px; padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 4px 0 0 var(--c); }
.rv-lead.win { --c: var(--win); } .rv-lead.loss { --c: var(--loss); }
.rv-lead b { font-size: 16px; line-height: 1.4; }
.rv-lead small { font-size: 12px; }
/* 라이벌 고르기: 동반자 사진 줄과 같은 5칸 */
.rv-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.rv-pick > :first-child { grid-column-start: var(--start, 1); }
.rv-p { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; min-height: 44px; padding: 8px 0 6px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: center; cursor: pointer; }
@media (hover: hover) { .rv-p:hover { background: var(--surface-2); } }
.rv-p.on { background: var(--surface-2); }
.rv-ph { display: grid; border-radius: 50%; outline: 2.5px solid transparent; outline-offset: 2px; }
.rv-p.on .rv-ph { outline-color: var(--rv-sel); }
.rv-p .avatar { width: 44px; height: 44px; font-size: 13px; }
.rv-p b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rv-p small { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rv-p small.win, .rv-detail .win { color: var(--win); } .rv-p small.loss, .rv-detail .loss { color: var(--loss); }
@media (max-width: 360px) { .rv-p .avatar { width: 38px; height: 38px; } .rv-p b { font-size: 13px; } }
/* 흐름 그래프 */
.rv-flow { display: grid; gap: 8px; }
.rv-band { fill: var(--surface-2); }
.rv-line { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: .6; stroke-linejoin: round; stroke-linecap: round; }
.rv-line.sel { stroke: var(--rv-sel); stroke-width: 2.5; opacity: 1; }
.rv-line.me { stroke: var(--rv-me); stroke-width: 3.5; opacity: 1; }
.rv-line.rv-next { stroke-dasharray: 2 5; }
.rv-line.rv-next.me { stroke-width: 3; stroke-dasharray: 3 6; }
.rv-dot { stroke: var(--surface); stroke-width: 1.5; }
.rv-dot.me { fill: var(--rv-me); } .rv-dot.sel { fill: var(--rv-sel); }
.rv-end { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.rv-end.sel { stroke: var(--rv-sel); stroke-width: 2.5; } .rv-end.me { stroke: var(--rv-me); stroke-width: 3; }
.rv-leader { stroke: var(--muted); stroke-width: 1; opacity: .4; }
.rv-lab { font-size: 12px; fill: var(--muted); }
.rv-lab.sel { fill: var(--rv-sel); font-weight: 700; } .rv-lab.me { fill: var(--rv-me); font-weight: 800; }
.rv-tip { gap: 2px; z-index: 1; max-width: 100%; }
.rv-tip-h { color: var(--muted); padding-bottom: 2px; overflow: hidden; text-overflow: ellipsis; }
.rv-tip-r { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 54px; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.rv-tip-r i { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; }
.rv-tip-r.me i { background: var(--rv-me); opacity: 1; } .rv-tip-r.sel i { background: var(--rv-sel); opacity: 1; }
.rv-tip-r b { font-size: 13px; text-align: right; }
.rv-tip-r:not(.me):not(.sel) :is(span, b) { font-weight: 400; color: var(--muted); }
.rv-tip-r small { font-size: 11px; text-align: right; }
/* 고른 라이벌과 비교 */
.rv-detail { display: grid; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--rv-sel); }
.rv-vs { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.rv-vs > div { display: grid; min-width: 0; }
.rv-faces { display: flex; }
.rv-faces .avatar { width: 34px; height: 34px; border: 2px solid var(--surface); box-sizing: content-box; }
.rv-faces .avatar + .avatar { margin-left: -8px; }
.rv-now { font-size: 17px; line-height: 1.3; }
.rv-vs small { font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-facts { display: grid; margin: 0; }
.rv-facts dt { margin: 0; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.rv-facts dd { display: grid; gap: 3px; justify-items: start; min-width: 0; margin: 0; padding: 3px 0 11px; }
.rv-facts dd:last-child { padding-bottom: 0; }
.rv-next-lab { font-weight: 700; }
.rv-facts b { font-size: 15px; line-height: 1.4; }
.rv-facts small { font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-form { display: flex; gap: 4px; }
.rv-form i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--tie); }
.rv-form i.w { background: var(--win); } .rv-form i.l { background: var(--loss); }
.rv-form i:not(.w):not(.l) { color: var(--text); } /* 무: 회색 바탕이라 진한 글자 */
.rv-form { align-items: center; } .rv-form small { margin-left: 2px; }
.rv-nw { white-space: nowrap; }
/* 역전 가능성 알약: 높음만 색, 반반·낮음은 회색 */
.rv-chance { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rv-chance.even { color: var(--text); }
.rv-chance.high.win { background: color-mix(in srgb, var(--win) 14%, transparent); }
.rv-chance.high.loss { background: color-mix(in srgb, var(--loss) 14%, transparent); }
:root[data-theme="dark"] .rv-form i { color: #12141a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-form i { color: #12141a; } }
@media (max-width: 360px) { .rv-facts b { font-size: 14px; } .rv-now { font-size: 16px; } .rv-detail { padding: 12px; } }

/* ---- 월례회 ---- */
.badge-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

.card.today { border: 2px solid var(--accent); background: var(--accent-soft); }
label.inline { display: flex; align-items: center; gap: 10px; }
label.inline select { width: auto; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-3 .st-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 이름이 두 줄로 꺾여 숫자 줄이 어긋나지 않게 */
@media (max-width: 360px) { .tiles-3 .stat-tile { padding: 12px 10px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; }
button.pchip { cursor: pointer; font-family: inherit; }
.pchip.pick { min-height: 36px; padding-right: 8px; }
.pchip.selected { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pchip.selected small { color: inherit; }
.pchip.warn { border-style: dashed; border-color: var(--warn); }
.chip-ico { display: inline-flex; color: var(--muted); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.team { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid transparent; }
.team.mine { border-color: var(--accent); background: var(--accent-soft); }
.team.hot { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.team.bad { border-color: var(--danger); }
.team.pool { background: transparent; border: 1.5px dashed var(--line); }
.team.add { place-items: center; min-height: 80px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.team-head { display: flex; align-items: center; gap: 8px; }
.team-head b { font-size: 16px; white-space: nowrap; }
.tee { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.fam { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fam-btn { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: right; }
.fam-btn svg { width: 13px; height: 13px; flex: none; }
.fam-pairs { list-style: none; margin: 0; padding: 0; }
.fam-pairs li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line, #eee); font-variant-numeric: tabular-nums; }
.rule { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
details > div { margin-top: 10px; }

/* ---- 운영 · 회원 관리 (2026-11-01): 찾기·할 일 필터 → 버튼 없는 줄 → 한 화면 편집 ---- */
.mm-top h2 small { margin-left: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.mm-q { width: 100%; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; } /* 옆으로 밀지 않아도 모두 보이게 */
.mm-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer; white-space: nowrap; }
.mm-chip b { font-variant-numeric: tabular-nums; color: var(--muted); }
.mm-chip.todo b { color: var(--danger); }
.mm-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.mm-chip.on b { color: var(--accent-ink); }
.mm-layout { display: grid; gap: 16px; }
.mm-left { display: grid; gap: 4px; align-content: start; min-width: 0; }
.mm-listhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg-sm button { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.mm-list { display: grid; }
.mm-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
@media (hover: hover) { .mm-row:hover { background: var(--surface-2); } }
.mm-row.on { background: var(--accent-soft); }
.mm-who { display: grid; gap: 3px; min-width: 0; }
.mm-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mm-name b { font-size: 15px; white-space: nowrap; }
.mm-who small { font-size: 12px; color: var(--muted); word-break: keep-all; }

.mm-chev { font-style: normal; font-size: 20px; line-height: 1; color: var(--muted); }
.mm-detail { display: none; }
.mm-empty { display: grid; gap: 6px; place-content: center; min-height: 220px; text-align: center; color: var(--muted); }
/* 편집 화면 */
.mm-form { display: grid; gap: 16px; }
.mm-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mm-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 18px; }
.mm-head p { margin: 2px 0 0; word-break: keep-all; }
.mm-group { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.mm-group legend, .mm-group h4 { float: left; width: 100%; margin: 0 0 2px; padding: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.mm-two { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.mm-field { display: grid; gap: 4px; min-width: 0; }
.mm-field > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mm-field em { font-style: normal; font-size: 12px; color: var(--danger); font-weight: 600; }
.mm-field.empty input { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.mm-field small { font-size: 12px; color: var(--muted); }
.mm-field input[readonly] { background: var(--surface-2); color: var(--muted); }
.mm-dup { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 16%, transparent); font-size: 13px; line-height: 1.5; word-break: keep-all; }
.mm-info p { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0; font-size: 14px; }
.mm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.mm-admin { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mm-admin h4 { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) {
  .mm-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); align-items: start; gap: 24px; }
  .mm-detail { display: block; position: sticky; top: 20px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
}
.cell-person { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.muted-row b { color: var(--muted); } /* 탈퇴 회원 줄: 흐리게(투명도) 하면 배지·글자 대비가 모자라서 글자색만 */
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 400; }
.score-input { width: 84px; min-height: 40px; text-align: center; font-size: 17px; font-weight: 700; }
.round-list { display: grid; gap: 4px; }
.round-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; font-variant-numeric: tabular-nums; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.round-item.on { background: var(--surface-2); }
@media (hover: hover) { .round-item:hover { background: var(--surface-2); } }
/* 운영 · 라운드 목록: 연도별 접기, 한 줄 = 날짜 · 골프장 · 인원 · 상태 (줄 전체가 운영 화면으로) */
.year-group > summary { padding: 6px 0; }
.round-rows { display: grid; gap: 2px; margin-top: 6px; }
.seg-wrap { display: flex; }

/* ---- 운영 ---- */
.chart-scroll { overflow-x: auto; }
.chart-scroll svg { display: block; }
.chart-scroll .grid { stroke: var(--grid); stroke-width: 1; }
.chart-scroll .axis { font-size: 11px; fill: var(--muted); }
.chart-scroll .axis-year { font-weight: 700; fill: var(--text); }
.bar-fill { fill: var(--accent); }
@media (hover: hover) { .bar:hover .bar-fill { opacity: .8; } }
.bar-val { font-size: 11px; font-weight: 700; fill: var(--text); }
.th-btn { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; white-space: nowrap; }
.rate-cell { display: inline-flex; align-items: center; gap: 6px; }
.rate-cell .pct { width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.att-table a.cell-person { color: var(--text); text-decoration: none; }
/* 긴 이름 하나가 표를 넓혀 '참석률'·'운전' 칸이 화면 밖으로 밀리지 않게: 이름은 말줄임 */
.att-table .cell-person { max-width: 14em; }
.att-table .cell-person b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .att-table .cell-person { max-width: 8.5em; } }
@media (max-width: 360px) { .att-table .cell-person { max-width: 6.5em; } }
@media (max-width: 480px) { .rate-cell .rate { display: none; } .att-table th, .att-table td { padding: 8px 6px; } .att-table .badge { display: none; } } /* 직책 표시는 PC만 (휴대폰에서 '운전' 칸이 밀려 잘리지 않게) */
.rate { display: inline-block; width: 48px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; vertical-align: middle; }
.rate i { display: block; height: 100%; background: var(--accent); }
/* 관리자 화면: 긴 선택지(이름 · 계정)가 화면을 넓히지 않게 (휴대폰에서 513px로 넘치던 것) */
#merge-row { align-items: end; }
#merge-row > * { min-width: 0; flex: 1 1 140px; }
#merge-row > button { flex: 0 0 auto; }

/* 넓은 화면(PC): 왼쪽 메뉴, 여러 칸 */
@media (min-width: 1024px) {
  /* PC: 위 바는 가로 전체, 그 아래 왼쪽 메뉴(200px) + 오른쪽 내용(여기만 스크롤) */
  body.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
  .app .topbar { grid-column: 1 / -1; grid-row: 1; }
  .app .view-as-bar { grid-column: 1 / -1; grid-row: 2; }
  .scroller { grid-column: 2; grid-row: 3; }
  .tabs { grid-column: 1; grid-row: 3; height: auto; overflow-y: auto; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 16px 12px 12px; border-top: 0; border-right: 1px solid var(--line); z-index: 9; }
  .tabs a { flex: none; display: flex; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .tabs a.on { background: var(--accent-soft); }
  .app .topbar { padding-left: 24px; z-index: 11; }
  .content { padding: 24px; gap: 20px; }
  .list-head { grid-template-columns: 1fr minmax(240px, 360px); align-items: center; top: 0; }
  /* 내 정보: 왼쪽 320px(나) + 오른쪽(바꾸는 것), 너무 넓어지지 않게 1040px까지 */
  .me-grid { grid-template-columns: 320px minmax(0, 1fr); max-width: 1060px; }
  .me-side, .me-main { display: grid; gap: 16px; align-content: start; }
  .me-side { position: sticky; top: 24px; }
  .me-card { flex-direction: column; text-align: center; padding: 28px 20px 20px; gap: 14px; }
  .me-card.me-card-pending { align-items: stretch; text-align: left; padding: 20px; gap: 10px; }
  .me-card .me-info { justify-items: center; width: 100%; }
  .me-card .me-info h2 { justify-content: center; font-size: 22px; }
   /* 세로로 쌓을 때는 높이를 늘리지 않게 */
  body.app { --ak-toast-b: 0px; }

  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 세 칸짜리는 세 칸으로 (네 칸 격자에 놓여 오른쪽 한 칸이 비던 것) */ /* 월례회 머리 카드: 진행 단계를 카드 폭에 맞춤 (왼쪽 절반에 몰리던 것) */
  .member-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  /* 한 줄 전체: 뒤로·이름·나와의 기록·카드·전체 스코어 흐름(.wide). 라이벌 맞대결·함께한 동반자는 두 칸 */
  .member-body > .back-row, .member-body > .wide { grid-column: 1 / -1; }
}

/* 주소 칸: 검색 → 목록에서 고르기 → 상세 주소 */
.addr-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.addr-title small { font-weight: 400; }
.addr-picked { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); font-weight: 400; font-size: 15px; }
.addr-base { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addr-picked .btn { flex: none; }
.addr-list { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; font-weight: 400; }
.addr-list li { display: grid; gap: 2px; padding: 10px; border-radius: 8px; cursor: pointer; }
.addr-list li + li { border-top: 1px solid var(--line); }
.addr-list li.on { background: var(--accent-soft); }
@media (hover: hover) { .addr-list li:hover { background: var(--accent-soft); } }
.addr-list b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.addr-list small { font-size: 13px; overflow-wrap: anywhere; }
.addr-note { margin: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.addr-links { display: flex; justify-content: flex-end; }
.link-btn, .btn-xs { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .link-btn:hover, .btn-xs:hover { border-color: var(--muted); } }

/* 회원 탈퇴 안내 */
.withdraw-info { display: grid; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.withdraw-info p { margin: 2px 0 0; }

/* 관리 메뉴의 승인 대기 숫자, 홈 안내 */
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--danger-solid); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.notice-action { color: inherit; text-decoration: none; border: 1px solid var(--accent); }
.notice-action span { color: var(--accent); font-weight: 600; }

/* 관리: 탈퇴 회원 목록 */

/* 버튼 안 아이콘 (휴지통 등) */
.ico { width: 1.05em; height: 1.05em; flex: none; }

/* 어두운 화면: 로고의 남색 줄이 배경에 묻히지 않게 흰 바탕 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { background: #fff; border-radius: 10px; padding: 3px; } }
:root[data-theme="dark"] .brand-mark { background: #fff; border-radius: 10px; padding: 3px; }

/* 카풀 탈 곳·시간 (각자 적기) */

/* 신청 현황 이름표: 같은 너비 칸에 맞춰 줄을 맞춘다 */
.chips-even { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.chips-even .pchip { min-width: 0; }
.chips-even .pchip > span:not(.avatar):not(.chip-ico) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 홈: 명예의 전당 요약 */

/* 홈 내 기록: 최근 스코어 칸, 한 줄 정보 */
.mr-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mr-cell { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.mr-cell b { font-size: 17px; }
.mr-cell small { font-size: 12px; color: var(--muted); }
.mr-cell.best { background: color-mix(in srgb, var(--win) 12%, var(--surface-2)); color: var(--win); } /* 가장 잘 친 경기 = 빨강 (좋음) */
/* 홈 월례회: 신청 현황 숫자 */

/* 카드 안 내용이 길어도 카드가 화면보다 넓어지지 않게 */
.view > .card, .view .card { min-width: 0; }

/* 운영진: 신청 마감, 단계 잠금 */
.btn-danger-solid { background: var(--danger-solid); border-color: var(--danger-solid); color: #fff; font-weight: 700; }
@media (hover: hover) { .btn-danger-solid:hover { filter: brightness(1.05); border-color: var(--danger-solid); } }
/* 카드 머리의 '전체 →' 같은 링크는 밑줄 없이 ('자세히 →'와 같게) */
/* 카드 머리의 '더 보기' 글자 링크는 어디서나 같은 모양 (2026-11-11 디자인 통일): 남색 14px 굵게, 밑줄 없음 */
:is(.card .row-between > a:not(.btn), .h-head a:not(.btn), .h-head .h-more, .hc-more, .lb-sec-head > a:not(.btn)) { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
@media (hover: hover) { :is(.card .row-between > a:not(.btn), .h-head a:not(.btn), .hc-more):hover { text-decoration: underline; text-underline-offset: 3px; } }

/* 운영진: 코스·티오프 */
.tee-list { display: grid; gap: 6px; }
.tee-item { display: grid; grid-template-columns: minmax(0, 1fr) 110px 72px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

 /* 조원 이름은 두 줄까지 */
.tee-item input { min-height: 36px; padding: 6px 8px; }
.tee-item .time-input { text-align: center; }

/* 홈 카드 제목 아래 기준 설명 */
.card-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
/* 많이 오른 회원: ▲숫자와 순위를 고정 폭 칸에 (줄이 맞게) */

/* ---- 화면 정리 (아이콘·확인 시트·고정 버튼 줄 등) ---- */
/* 글 사이 아이콘: 글자 높이에 맞춤 */
/* 아이콘 + 글: 글은 한 덩어리로 흐르게 (flex로 두면 아이폰이 주소·번호를 자동 링크로 바꿀 때 조각마다 칸이 나뉘었다)
   아이콘은 왼쪽에 걸고 글은 그 오른쪽에서 줄바꿈 */
.icon-line { display: block; position: relative; padding-left: calc(1em + 6px); }
.icon-line > .ico { position: absolute; left: 0; top: .22em; color: var(--muted); }
h2 > .ico { color: var(--accent); }
 .st-label .ico{ vertical-align: -.15em; }

.btn .ico { width: 1.1em; height: 1.1em; }

/* 관리자 들어가기 (내 정보 안) */
.admin-entry { order: 3; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.admin-entry-ico { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.admin-entry-ico .ico { width: 24px; height: 24px; }
.admin-entry-text { flex: 1; min-width: 0; display: grid; }
.admin-entry small { font-size: 13px; }

/* 긴 목록 더 보기 */
.more-btn { justify-self: start; min-height: 40px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

/* 짧은 안내 + 접힌 사용법 */
.help { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.help details summary { font-size: 13px; }
.help details[open] { flex-basis: 100%; }
.help details p { margin-top: 6px; }

/* 확인 시트 (화면 아래에서 올라옴) */
dialog.sheet { margin: auto auto var(--kb, 0px); /* --kb: 키보드에 가려진 높이 (common.js) */ width: min(480px, 100%); max-width: 100%; border: 0; border-radius: 18px 18px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--text); box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
.sheet-msg { font-size: 16px; line-height: 1.55; white-space: pre-line; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { min-height: 48px; font-weight: 600; }
@media (min-width: 720px) { dialog.sheet { margin: auto; border-radius: 16px; padding-bottom: 18px; } }
/* 확인 창(ask): 아래에 붙어 뜰 때는 손잡이가 보이고 끌어 내려 닫는다 (UX.md '2. 끌어 내려 닫기'). 안쪽 칸(.sheet-in)이 손가락을 받도록 여백을 안쪽으로 옮긴다 */
dialog.sheet.sheet-ask { padding: 0; transition: transform .18s ease; }
.sheet-in { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-grab { display: grid; place-items: center; padding: 2px 0 12px; touch-action: none; cursor: grab; }
.sheet-grab i { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
/* 가운데에 뜨는 화면(PC·태블릿)은 끌지 않으니 손잡이도 없다. 높이가 낮은 가로 휴대폰은 아래에 붙인 채로 (common.js ASK_CENTER와 같은 조건) */
@media (min-width: 720px) and (min-height: 521px) { .sheet-in { padding: 22px 18px 18px; } .sheet-grab { display: none; } }
@media (min-width: 720px) and (max-height: 520.98px) { dialog.sheet.sheet-ask { margin: auto auto var(--kb, 0px); border-radius: 18px 18px 0 0; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet.sheet-ask { transition: none; } }

/* 저장·공개 버튼 줄: 화면 아래에 붙어 있음 (긴 조 편성·차량 배정에서 스크롤 없이) */
.sticky-actions { position: sticky; bottom: 0; z-index: 4; margin: 0 -16px -16px; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }

/* 다음 할 일 (월례회 운영 맨 위) */

/* 자동 마감: 날짜 + 시각 */
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; }
.deadline-field { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.deadline-field input[type="date"] { width: auto; flex: 1 1 150px; min-width: 0; }
.deadline-field .time-input { width: 84px; flex: none; }

/* 불러오는 중 뼈대 */
.skeleton { display: grid; gap: 10px; }
.sk { display: block; height: 12px; width: 80%; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.sk-title { height: 18px; width: 40%; }
.sk-short { width: 55%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* 가입 진행 막대 */
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress.p1 i { width: 33%; }
.progress.p2 i { width: 66%; }
.progress.p3 i { width: 100%; }

/* 휴대폰: 설명이 잘리지 않게 둘째 줄로 (2026-11-02) */
@media (max-width: 600px) {

  

  
}
.sticky-actions .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.sticky-actions > .row-start { gap: 6px; }

/* 아래 고정 버튼 줄: 휴대폰에서는 '문구 보내기'를 아이콘만 (줄이 두 줄로 접혀 화면을 가리지 않게) */
.lbl-short { display: none; }
@media (max-width: 480px) { .sticky-actions .lbl-wide { display: none; } .sticky-actions .lbl-short { display: inline; } }

/* 끝난 라운드: 머리의 내 결과 한 줄, 결과 목록에서 내 줄 */
 /* 안쪽 여백만큼 바깥으로 넓혀 얼굴 세로줄은 그대로 */

/* ---- 관리자 · 사용 현황 ---- */
.usage-two { display: grid; gap: 16px; }
@media (min-width: 900px) { .usage-two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
/* 순위: [이름][막대][횟수][사람] 같은 열은 세로줄 맞춤 */
.rank-list { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) 4em 3em; gap: 10px; align-items: center; font-size: 14px; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.rank-num, .rank-users { text-align: right; font-variant-numeric: tabular-nums; }
.rank-num { font-weight: 700; }
/* 요일 × 시간 */
.heat-wrap { display: grid; gap: 8px; min-width: 0; }
.heat { display: grid; grid-template-columns: 1.6em repeat(24, minmax(0, 1fr)); gap: 2px; }
.heat-h { font-size: 11px; color: var(--muted); text-align: left; }
.heat-d { font-size: 12px; color: var(--muted); align-self: center; }
.heat-c { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.heat-c[style] { background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--surface-2)); }
/* 기기 */
.dev-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.dev-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.dev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dev-legend i { width: 10px; height: 10px; border-radius: 3px; }
.dev-phone { background: var(--accent); }
.dev-pc { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.dev-tablet { background: var(--warn); }
/* 회원별: [상태 점][회원·마지막 접속][접속일][열람][기능] */
.uu-head, .uu-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 3.4em 3.6em 3.6em; gap: 10px; align-items: center; }
.uu-rows { display: grid; }
.uu-row { padding: 10px 0; border-top: 1px solid var(--line); }
.uu-head > span:nth-child(n+3) { text-align: right; }
.uu-who { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; min-width: 0; }
.uu-who small { flex-basis: 100%; }
.uu-num { display: grid; justify-items: end; font-variant-numeric: tabular-nums; line-height: 1.2; }
.uu-num small { font-size: 12px; color: var(--muted); }
.fresh { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.fresh-hot { background: #2e9d5b; }
.fresh-warm { background: var(--warn); }
.fresh-cold { background: var(--muted); }
.fresh-none { background: transparent; border: 1.5px solid var(--muted); }
/* 최근 활동: [시각][누가][무엇][기기] */
.act-list { display: grid; }
.act-row { display: grid; grid-template-columns: 5.6em minmax(0, 6em) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.act-row.fail .act-what { color: var(--danger); }
.act-time { font-variant-numeric: tabular-nums; font-size: 13px; }
.act-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 큰 결론 글자 (동반자 카드 '몇 명과 같은 조') ---- */
.rel-lead { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; word-break: keep-all; }
.rel-lead.win { color: var(--win); }
.rel-lead.loss { color: var(--loss); }

/* ---- 나와의 기록 (2026-11-11): 결론 → 평균 타수 흐름 + 같은 날 친 타수 → 숫자와 풀이. 색은 라이벌 카드와 같게 (나 남색 · 상대 주황) ---- */
.vs { --rv-me: var(--accent); --rv-sel: var(--warn); }
.vs .win { color: var(--win); } .vs .loss { color: var(--loss); }
.vs-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.vs-head > div { display: grid; gap: 2px; min-width: 0; }
.vs-head small { font-size: 12px; font-variant-numeric: tabular-nums; }
.vs-lead { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.vs-charts { display: grid; gap: 18px; }
.vs-chart { display: grid; gap: 8px; min-width: 0; align-content: start; }
.vs-gap { opacity: .2; } .vs-gap.win { fill: var(--win); } .vs-gap.loss { fill: var(--loss); }
.vs-cross { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.vs-year { stroke: var(--line); stroke-width: 1; }
.vs-mark { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.vs-seg { stroke-linecap: round; opacity: .85; }
.vs-seg.win { stroke: var(--win); } .vs-seg.loss { stroke: var(--loss); }
.vs-same { fill: var(--muted); }
.vs-band-lab { font-weight: 700; }
.vs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.vs-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vs-legend i { display: inline-block; }
.vs-legend .fill { width: 14px; height: 10px; border-radius: 2px; opacity: .35; }
.vs-legend .fill.win { background: var(--win); } .vs-legend .fill.loss { background: var(--loss); }
.vs-legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.vs-legend .dot.me { background: var(--rv-me); } .vs-legend .dot.sel { background: var(--rv-sel); }
.vs-legend .seg { width: 4px; height: 14px; border-radius: 2px; }
.vs-legend .seg.win { background: var(--win); } .vs-legend .seg.loss { background: var(--loss); }
.vs-legend .same { width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
.vs .rv-tip-r { grid-template-columns: 8px minmax(0, 1fr) auto auto; }
.vs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 28px; }
.vs-fact { display: grid; gap: 3px; justify-items: start; align-content: start; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.vs-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.vs-fact b { font-size: 16px; line-height: 1.4; }
.vs-fact small { font-size: 12px; font-variant-numeric: tabular-nums; }
.vs-fact small b { font-size: 12px; }
@media (min-width: 900px) { .vs-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

/* ---- 동반자: 요약 · 다음 조 편성 예상 · 주요 동반자 · 미동반 회원 · 전체 기록(접힘) ---- */
.cp-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cp-sec-head h3 { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cp-sec-head span { font-size: 12px; color: var(--muted); text-align: right; word-break: keep-all; }
/* 동반 비율 막대: 한 칸 = 회원 한 명 (채움 = 같은 조였음, 빈 칸 = 미동반) */
/* 동반자 카드 (2026-11-11): 결론·횟수 띠 → 동반 지도(가운데가 나, 가까울수록 최근) + 정보 줄 → 최근 같은 조 → 사진 줄 → 표 */
.cm-lead { display: grid; gap: 6px; }
.cm-lead small { font-size: 12px; word-break: keep-all; }
.cm-bins { display: flex; gap: 3px; }
.cm-bin { display: grid; gap: 4px; min-width: 3.6em; }
.cm-bin i { height: 10px; border-radius: 3px; background: var(--accent); }
.cm-bin.b0 i { background: none; border: 1.5px dashed var(--muted); opacity: .7; } /* '아직 없음'은 어디서나 점선 */
.cm-bin.b1 i { opacity: .35; } .cm-bin.b2 i { opacity: .65; }
.cm-bin small { font-size: 11px; line-height: 1.25; color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-bin small b { color: var(--text); white-space: nowrap; }
.cm-map { display: grid; gap: 10px; justify-items: center; }
.cm-orbit { position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, color-mix(in srgb, var(--accent) 5%, transparent) 55%, transparent 78%); }
.cm-ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.cm-ring.r1 { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cm-ring.out { border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); }
.cm-core, .cm-o { position: absolute; display: grid; transform: translate(-50%, -50%); border-radius: 50%; }
.cm-core { left: 50%; top: 50%; padding: 3px; background: var(--surface); box-shadow: 0 0 0 2.5px var(--accent); }
.cm-core .avatar { width: 44px; height: 44px; font-size: 14px; }
.cm-o { box-shadow: 0 0 0 2px var(--surface); transition: transform .15s; text-decoration: none; }
.cm-o::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; } /* 누르는 자리를 넓게 (44px 가까이) */
.cm-o .avatar { font-size: 11px; }
.cm-o.r1 .avatar { width: 38px; height: 38px; font-size: 12px; }
.cm-o.r2 .avatar { width: 32px; height: 32px; }
.cm-o.r3 .avatar { width: 27px; height: 27px; }
.cm-o.out .avatar { width: 26px; height: 26px; }
.cm-o.out img.avatar { filter: grayscale(1); opacity: .6; }
.cm-o.out .avatar-empty { background: var(--surface-2); color: var(--muted); }
.cm-o.out { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px color-mix(in srgb, var(--muted) 45%, transparent); }
.cm-o.c1 { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px color-mix(in srgb, var(--accent) 35%, var(--surface)); } /* 위 막대 칸과 같은 색 */
.cm-o.c2 { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.cm-o.c3 { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--accent); }
.cm-o.on { transform: translate(-50%, -50%) scale(1.18); z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--warn); }
.cm-o:focus-visible { outline: 0; z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--warn); }
@media (max-width: 430px) { /* 휴대폰은 같은 조 횟수 테두리를 가늘게 (얼굴이 붐비지 않게). 고른 얼굴의 주황 테두리는 그대로 */
  .cm-o.c1 { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--accent) 35%, var(--surface)); }
  .cm-o.c2 { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--accent) 65%, var(--surface)); }
  .cm-o.c3 { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3.5px var(--accent); }
  .cm-o.on, .cm-o:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--warn); }
}
.cm-o em { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-style: normal; font-weight: 700; line-height: 14px; }
/* 고른 회원 정보 줄: 사진 · 이름 · 횟수 · [기록 보기] (높이 고정이라 눌러도 화면이 밀리지 않음) */
.cm-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 8px 6px 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--warn); }
.cm-info .avatar { width: 40px; height: 40px; }
.cm-info-t { display: grid; gap: 1px; min-width: 0; }
.cm-info-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-info-t small { font-size: 12px; font-variant-numeric: tabular-nums; }
.cm-info-go { min-height: 40px; display: inline-flex; align-items: center; }
.cm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; font-size: 12px; color: var(--muted); word-break: keep-all; }
.cm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cm-legend i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.cm-legend i.big { background: var(--accent); opacity: .7; }
.cm-legend i.dash { border: 1.5px dashed var(--muted); }
.cm-legend i.tier { background: conic-gradient(color-mix(in srgb, var(--accent) 35%, var(--surface)) 0 33%, color-mix(in srgb, var(--accent) 65%, var(--surface)) 0 66%, var(--accent) 0); }
@media (max-width: 360px) {
  .cm-o.r1 .avatar { width: 31px; height: 31px; } .cm-o.r2 .avatar { width: 27px; height: 27px; } .cm-o.r3 .avatar { width: 24px; height: 24px; } .cm-o.out .avatar { width: 22px; height: 22px; }
  .cm-o .avatar { font-size: 10px; } .cm-core .avatar { width: 34px; height: 34px; font-size: 12px; }
}
.cm-groups { display: grid; }
.cm-g { display: grid; grid-template-columns: minmax(0, 6.2em) minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; }
.cm-g + .cm-g, .cm-more .cm-g:first-child { border-top: 1px solid var(--line); }
.cm-when { display: grid; gap: 1px; min-width: 0; }
.cm-when b { font-size: 14px; white-space: nowrap; }
.cm-when small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-mates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 300px; justify-self: end; }
.cm-m { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 4px 0; border-radius: 10px; color: var(--text); text-decoration: none; }
.cm-m .avatar { width: 30px; height: 30px; font-size: 11px; }
.cm-m small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text); }
.cm-m.guest small { color: var(--muted); }
.cm-m.me .avatar { outline: 2.5px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { a.cm-m:hover { background: var(--surface-2); } }
.cm-more > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--line); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.cm-more > summary::-webkit-details-marker { display: none; }
.cm-more[open] > summary { border-top: 0; }
.cm-more[open] { display: flex; flex-direction: column-reverse; } /* 연 뒤에는 '접기'가 아래에 */
.cm-foot { margin: -2px 0 0; text-align: center; word-break: keep-all; }
.cm-flags { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); word-break: keep-all; }
.cm-flags b { color: var(--text); }
.cp-row { display: grid; gap: 10px; }
.cp-people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cp-p { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 6px 0; border-radius: 10px; color: var(--text); text-decoration: none; text-align: center; }
@media (hover: hover) { .cp-p:hover { background: var(--surface-2); } }
.cp-ph { position: relative; display: grid; }
.cp-p .avatar { width: 44px; height: 44px; font-size: 13px; }
.cp-p b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cp-p > small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-people > :first-child { grid-column-start: var(--start, 1); }
.cp-p > small.cp-when { margin-top: -3px; font-size: 12px; opacity: .8; }
.cp-p.far .avatar { opacity: .7; }
.cp-p.never .avatar { filter: grayscale(1); opacity: .5; outline: 2px dashed var(--muted); outline-offset: 2px; }
.cp-p.me .avatar { outline: 2.5px solid var(--accent); outline-offset: 2px; }
@media (max-width: 360px) { .cp-p .avatar { width: 38px; height: 38px; } .cp-p b { font-size: 13px; } }
.cp-all td { font-variant-numeric: tabular-nums; }
.cp-all { min-width: 0; } /* 표가 넓으면 카드를 밀지 않고 표 안에서 옆으로 넘김 */
.cp-all td a { display: block; max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; text-decoration: none; } /* 긴 이름은 … (2026-11-03 몽키 테스트: 19자 이름에 화면이 63px 옆으로 밀렸음) */

/* ---- 라운드 운영 (2026-11-01 개편 1단계) ---- */
/* 진행 단계 막대: ① 신청 ─ ② 조 편성 ─ ③ 티오프 ─ ④ 차량 ─ ⑤ 스코어. 끝남 ✓ · 지금 강조 · 아직 못 함 흐리게 */

/* 신청: 요약 숫자 · 차량 · 마감 → 묶음별 이름표 */

.ap-close { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.ap-close b { color: var(--accent); }
.ap-close.done b { color: var(--text); }
.ap-list { gap: 18px; }
.ap-group { display: grid; gap: 10px; }
.ap-group + .ap-group, .ap-sub + .ap-group { padding-top: 16px; border-top: 1px solid var(--line); }
.ap-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ap-group-head h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 16px; }
.ap-n { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-sub { display: grid; gap: 8px; }
.ap-sub h4 { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
span.ap-chip { cursor: default; }
@media (hover: hover) { button.ap-chip:hover { border-color: var(--accent); } }
.ap-chip .avatar-sm { width: 26px; height: 26px; }
.ap-chip small { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
/* 라운드 목록: 진행 중인 라운드 */
.rl-title { color: inherit; text-decoration: none; }
.rl-now h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; }
.rl-next { justify-self: start; max-width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px; white-space: normal; text-align: left; }
.rl-next small { color: inherit; opacity: .85; font-weight: 500; }

/* ---- 라운드 운영 2단계 (2026-11-01): 차량 배정 누르고 태우기, 스코어 입력 현황 ---- */
.cp-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
@media (hover: hover) { .cp-tag:hover { border-color: var(--accent); } }
.cp-tag.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-tag.on small { color: var(--accent-ink); opacity: .85; }
.cp-tag .avatar-sm { width: 26px; height: 26px; }
.cp-tag small { font-size: 12px; color: var(--muted); }

.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn.btn-danger { color: var(--danger); }
@media (hover: hover) { .icon-btn:hover { background: var(--surface-2); } }
.sc-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; }
.sc-progress b { font-size: 15px; font-variant-numeric: tabular-nums; }
.sc-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .2s; }
.sc-progress small { grid-column: 1 / -1; word-break: keep-all; }
.score-input.odd { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); color: var(--danger); }

/* ---- 아래에서 올라오는 창 (bottomSheet, 2026-11-01) ---- */
/* 창이 열리면 뒤 화면 스크롤을 막는다. html에만 건다 (2026-11-02 몽키 테스트: body에도 걸면 body가 따로 스크롤 영역이 되어
   위 머리글(sticky)이 위에 붙지 못하고 밀려났고, 아이폰에서는 아래 메뉴바가 중간에 떠 보였다).
   손가락으로 뒤 화면이 밀리는 것은 어두운 바깥(touch-action)과 창 안 스크롤(overscroll-behavior)에서 막는다 */
html.bs-lock .scroller { overflow: hidden; }
@media (pointer: coarse) { html:has(dialog[open]:modal) .scroller { overflow: hidden; } } /* 확인·입력·사진·kit 창도: 열려 있는 동안 뒤 내용은 움직이지 않는다 (UX.md '3. 닫는 방법') */
dialog { overscroll-behavior: contain; } /* 스크롤되는 것은 가운데 칸뿐 (2026-11-03). html에 걸면 body가 따로 스크롤 영역이 될 수 있어 걸지 않는다 */
dialog.bs { overscroll-behavior: contain; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: hidden; overflow: clip; outline: none; } /* clip: 브라우저가 안쪽을 끌어올리지 못하게 */
dialog.bs::backdrop { background: transparent; }
dialog.bs.closing { z-index: 1000; pointer-events: none; } /* 내려가는 중: 보이기만, 누르기는 뒤 화면으로 */
.bs-backdrop { position: absolute; inset: 0; touch-action: none; background: rgba(12, 15, 22, .48); opacity: 0; transition: opacity .25s ease; }
dialog.bs.open .bs-backdrop { opacity: var(--bs-fade, 1); }
.bs-panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: min(90vh, calc(100% - 24px)); max-height: min(90dvh, calc(100% - 24px)); margin: 0 auto; background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .25, 1); }
dialog.bs.open .bs-panel { transform: translateY(0); }
.bs-grab { display: grid; place-items: center; padding: 10px 0 4px; touch-action: none; cursor: grab; }
.bs-grab i { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.bs-head { display: flex; align-items: center; gap: 12px; padding: 4px 20px 14px; border-bottom: 1px solid var(--line); touch-action: none; }
.bs-head h3 { margin: 0; font-size: 18px; }
.bs-x { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.bs-x::after { content: ""; position: absolute; inset: -4px; } /* 누르는 곳은 44px */
.bs-body { display: grid; gap: 18px; padding: 16px 20px 18px; overflow-y: auto; overscroll-behavior: contain; }
.bs-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.bs-foot .btn { width: 100%; min-height: 52px; font-size: 16px; border-radius: 14px; }
.bs-foot .btn:disabled { opacity: .45; }
/* 가운데 카드는 PC·태블릿만. 높이가 낮은 가로 휴대폰(844×390)은 폭이 넓어도 아래 창 + 끌어 내려 닫기 그대로 (kit 창과 같게, common.js BS_CENTER와 같은 조건) */
@media (min-width: 700px) and (min-height: 521px) {
  .bs-panel { bottom: 50%; max-width: 480px; max-height: 84vh; max-height: 84dvh; border-radius: 20px; opacity: 0; transform: translateY(calc(50% + 24px)); transition: transform .25s ease, opacity .2s ease; }
  dialog.bs.open .bs-panel { opacity: 1; transform: translateY(50%); }
  .bs-grab { display: none; }
  .bs-head { padding-top: 18px; }
  .bs-foot { padding-bottom: 16px; border-radius: 0 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .bs-panel, .bs-backdrop { transition: none; } }
/* 신청 고치기 내용 */
.bs-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bs-person small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.bs-sec { display: grid; gap: 8px; }
.bs-sec[hidden], .bs-body > div[hidden] { display: none; }
.bs-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.bs-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.bs-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.bs-seg-btn.on { background: var(--seg-on); color: var(--text); font-weight: 800; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.bs-seg-btn.yes.on { color: var(--accent); }
.bs-seg-btn.no.on { color: var(--danger); }
.bs-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bs-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 6px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.bs-card b { font-size: 14px; }
.bs-card small { font-size: 12px; color: var(--muted); word-break: keep-all; line-height: 1.35; }
.bs-card-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.bs-card-ico .ico { width: 22px; height: 22px; }
.bs-card.on { border-color: var(--accent); background: var(--accent-soft); }
.bs-card.on .bs-card-ico { background: var(--accent); color: var(--accent-ink); }
.bs-tick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.bs-tick .ico { width: 13px; height: 13px; stroke-width: 3; }
.bs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 15px; font-weight: 600; }
.bs-stepper { display: inline-flex; align-items: center; gap: 4px; }
.bs-stepper button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.bs-num { min-width: 3.2em; text-align: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.bs-field { display: grid; gap: 8px; }
.bs-field input { min-height: 48px; font-size: 16px; }
.bs-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: 13px; }

/* ---- 연락처 (2026-11-01 개편): 나 · 운영진 · ㄱㄴㄷ 묶음, 한 줄 + 전화 버튼, 누르면 아래에서 올라오는 창 ---- */
.ct-list { display: grid; gap: 14px; }
.ct-sec { display: grid; gap: 4px; padding: 6px 16px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ct-sec-head { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; font-size: 13px; font-weight: 800; color: var(--accent); }
.ct-sec-head small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ct-rows { display: grid; }
.ct-idx { margin: 12px 0 2px; padding: 3px 10px; border-radius: 6px; background: var(--surface-2); font-size: 13px; font-weight: 800; color: var(--accent); }
.ct-idx + .ct-rows > .ct-item:first-child { border-top: 0; }
.ct-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ct-rows > .ct-item:first-child { border-top: 0; }
.ct-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ct-main { display: grid; gap: 2px; min-width: 0; }
.ct-name { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ct-name b { font-size: 16px; }
.ct-name small { font-size: 12px; color: var(--muted); }
.ct-phone { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ct-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.ct-call .ico { width: 20px; height: 20px; }
.ct-call:active { transform: scale(.94); }
@media (min-width: 1024px) {
  .ct-rows { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
  .ct-rows > .ct-item { border-top: 0; border-bottom: 1px solid var(--line); }
}
/* 한 사람 창 */
.ct-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ct-act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ct-act-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.ct-act-ico .ico { width: 21px; height: 21px; }
.ct-infos { display: grid; border-top: 1px solid var(--line); }
.ct-info { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ct-info small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ct-info span { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ct-copy { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.ct-links { display: grid; gap: 4px; }
.ct-link { padding: 8px 0; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ct-dl { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ct-dl span:last-child { display: grid; gap: 2px; }
.ct-dl small { font-size: 13px; color: var(--muted); }
/* 회원 '내 신청': 운영진 신청 고치기 창과 같은 모양 */
.bs-seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-apply { gap: 16px; }
.my-apply .bs-save { width: 100%; min-height: 52px; font-size: 16px; border-radius: 14px; }
.my-apply .bs-save:disabled { opacity: .45; }
.my-apply .msg { margin: 0; }

/* ---- 기록 › 내려받기 (2026-11-01) ---- */
.dl-hero .list-title { align-items: center; }
.dl-tip { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; word-break: keep-all; }
.dl-group { display: grid; gap: 10px; margin-top: 8px; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.dl-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dl-top { display: flex; align-items: center; gap: 12px; }
.dl-top > div { display: grid; gap: 2px; min-width: 0; }
.dl-top b { font-size: 16px; }
.dl-top small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.dl-ico .ico { width: 20px; height: 20px; }
.dl-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.dl-cols { display: flex; flex-wrap: wrap; gap: 4px; }
.dl-cols span { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text); white-space: nowrap; }
.dl-cols span.more { color: var(--muted); }
.dl-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; } /* 카드 높이가 달라도 버튼은 맨 아래 같은 줄 */
.dl-period { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
@media (pointer: coarse) { .dl-period { font-size: 16px; } } /* 손가락으로 쓰는 기기: 누를 때 화면이 커지지 않게 16px */
.dl-btns { display: inline-flex; gap: 6px; margin-left: auto; }
.dl-prev { max-height: 50vh; max-height: 50dvh; }
.dl-prev th, .dl-prev td { white-space: nowrap; font-size: 13px; }

/* ---- 홈 (2026-11-01 개편): 지금 할 일 → 나 → 클럽 소식 ---- */
#home-grid { display: grid; gap: 16px; }
.h-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1024px) { #home-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.h-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.h-head h2 { margin: 0; }

.h-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h-ask .btn { min-height: 54px; font-size: 17px; font-weight: 800; border-radius: 14px; gap: 6px; }
.h-ask .ico { width: 20px; height: 20px; }
.h-mine { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.h-mine > div { display: grid; gap: 1px; min-width: 0; }
.h-mine b { font-size: 16px; }
.h-mine small { font-size: 12px; color: var(--muted); word-break: keep-all; }
.h-mine-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--surface); background: var(--muted); }
.h-mine-ico.yes { background: var(--accent); color: var(--accent-ink); }

.h-go { justify-self: start; }
.h-staff { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text); text-decoration: none; }

.h-me { color: var(--text); text-decoration: none; }
.h-me-top { display: flex; align-items: center; gap: 16px; }
.h-me-nums { display: flex; align-items: flex-start; gap: 8px 24px; flex-wrap: wrap; }
.h-me-nums > div { display: grid; gap: 2px; }
.h-me-nums span { display: inline-flex; align-items: baseline; gap: 6px; }
.h-me-nums b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.h-me-nums small { font-size: 13px; color: var(--muted); }
.h-me-nums small.tone-win { color: var(--win); } .h-me-nums small.tone-loss { color: var(--loss); }
/* 최근 10라운드 작은 그래프 (홈 내 기록, 2026-11-11). 아래가 좋음 */
.hs { display: grid; gap: 6px; }
.hs-chart { position: relative; min-height: 128px; }
.hs-chart svg { display: block; overflow: visible; }
.hs-base { stroke: var(--line); stroke-width: 1; }
.hs-five { fill: var(--accent-soft); opacity: .7; }
.hs-line { fill: none; stroke: var(--muted); stroke-opacity: .5; stroke-width: 1.5; stroke-linejoin: round; }
.hs-avg { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hs-dot { fill: var(--muted); opacity: .6; }
.hs-dot.on { fill: var(--accent); opacity: 1; stroke: var(--surface); stroke-width: 1.5; }
.hs-dot.drop { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 2; }
.hs-num { font-size: 13px; font-weight: 800; fill: var(--text); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.hs-num.drop { fill: var(--muted); font-weight: 700; }
.hs-date { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.hs-next { font-weight: 700; }
.hs-slot { fill: none; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.2; stroke-dasharray: 3 3; }
.hs-goal { stroke: var(--win); stroke-width: 2.5; stroke-linecap: round; }
.hs-goal.out { stroke-dasharray: 3 3; }
.hs-goal-v { font-size: 12px; font-weight: 800; fill: var(--win); font-variant-numeric: tabular-nums; }
.hs-goal-l { font-size: 11px; fill: var(--muted); }
.hs-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.hs-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hs-legend i { display: inline-block; flex: none; }
.hs-lg-raw { width: 14px; height: 2px; border-radius: 1px; background: var(--muted); opacity: .6; }
.hs-lg-avg { width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }
.hs-lg-dot { box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hs-lg-dot.drop { background: var(--surface); border: 1.5px dashed var(--muted); }
.hs-lg-goal { width: 12px; height: 3px; border-radius: 2px; background: var(--win); }
.hs-lg-goal.down { background: var(--loss); }
.hs-goal.down { stroke: var(--loss); }
.hs-goal-v.down { fill: var(--loss); }
.h-moves .pf-move b { font-size: 15px; } /* 홈은 조금 작게 */
.h-moves .rv-chance.high.win { color: var(--win); } .h-moves .rv-chance.high.loss { color: var(--loss); }
/* 풀이 몇 줄: 다음 목표 · 라이벌 · 1년 변화 */
.h-ins { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.h-ins li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.h-ins li > .ico { justify-self: center; width: 20px; height: 20px; color: var(--accent); }
.h-ins li.win > .ico { color: var(--win); } .h-ins li.loss > .ico { color: var(--loss); }
.h-ins li > div { display: grid; gap: 1px; min-width: 0; }
.h-ins b { font-size: 14px; font-weight: 700; word-break: keep-all; }
.h-ins small { font-size: 12px; color: var(--muted); word-break: keep-all; }
.h-ins .rv-chance { font-size: 12px; padding: 2px 8px; }
.h-ins .rv-chance.high.win { color: var(--win); } .h-ins .rv-chance.high.loss { color: var(--loss); }
@media (max-width: 519px) { .h-ins li > .rv-chance { grid-column: 2; justify-self: start; margin-top: -4px; } .h-ins li { row-gap: 4px; } } /* 휴대폰: 알약은 글 아래 (글이 꺾이지 않게) */

/* ---- 관리자 콘솔 (2026-11-01 개편): 왼쪽 메뉴 + 내용, 휴대폰은 위 가로 메뉴 ---- */

 /* 좁은 휴대폰: 위 막대가 넘치지 않게 */
/* 관리자 페이지(admin.html)도 휴대폰에서는 앱과 같은 틀: 위 바 고정, 가운데만 스크롤 (2026-11-03: 위 바가 같이 올라가 메뉴 위로 내용이 비쳤음).
   PC는 페이지 전체가 스크롤되고 위 바는 위에 붙는다 */

#adm-body { display: grid; gap: 16px; min-width: 0; align-content: start; }

/* 할 일 */

@media (max-width: 480px) { /* 휴대폰: 버튼은 글 아래로 (제목이 세 줄로 꺾이지 않게) */

}

.adm-kpi { display: grid; align-content: start; gap: 2px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.adm-kpi small { font-size: 12px; font-weight: 600; color: var(--muted); }
.adm-kpi b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-kpi span { font-size: 12px; color: var(--muted); word-break: keep-all; }
.adm-kpi.warn b { color: var(--danger); }
 /* 사용 현황 '지금' · '최근 30일' */
/* 나란히 비교 (가입 신청 ↔ 회원 기록, 기록 합치기) */

/* 계정 목록 */

/* 임원 */

/* 회원 정리 */
/* 변경 기록 */

/* ---- 신청 순서·대기 (2026-11-01) ---- */
.pchip-no { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-style: normal; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pchip.waiting .pchip-no, .pick .pchip-no { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--text); }
.wait-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--warn) 60%, var(--line)); }

.gc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.gc-main { display: flex; align-items: center; gap: 10px; }
.gc-note { margin: 0; font-size: 14px; color: var(--muted); word-break: keep-all; }
.gc-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gc-field .bs-num { min-width: 4.5em; }
.gc-note b { color: var(--text); }
@media (max-width: 600px) { .gc-row { grid-template-columns: 1fr auto; } .gc-note { grid-column: 1 / -1; grid-row: 2; } }

.ap-order summary { font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.ap-order ol { display: grid; gap: 2px; margin: 10px 0 0; padding-left: 28px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ap-order li > span:first-child small { margin-left: 8px; color: var(--muted); }
.ap-order li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-move { display: inline-flex; gap: 2px; }
.ap-move .icon-btn { width: 44px; height: 44px; font-size: 14px; } /* 손가락으로 누르기 쉬운 크기 */
.ap-move .icon-btn:disabled { opacity: .3; }
.ap-order li.waiting b { color: var(--muted); }
/* 신청 순서 이름표: 번호·사진·이름·차 아이콘이 다 들어가게 칸을 넓게 (휴대폰 두 칸) */
.chips-order { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.chips-order .pchip { gap: 5px; }
.chips-order .pchip-no { min-width: 22px; padding: 0 4px; }

/* PC에서 너무 넓게 늘어나지 않게: 입력 양식은 640px, 순위표(리더보드·최근 라운드·참석 통계)는 860px */
@media (min-width: 1024px) {
  .narrow { width: 100%; max-width: 640px; }
  #records-body:is([data-view=board], [data-view=round], [data-view=attend]) > .card { width: 100%; max-width: 860px; }
}

/* 신청 시작 전 안내 (월례회 머리) · 신청 기간 한 줄 (운영진 설정) */

.period-note { display: block; margin-top: 4px; }
/* 조 편성 탭: 회원에게 보이는 시각 */
.fam-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; }
.fam-levels li { display: contents; }
.fam-levels b { font-variant-numeric: tabular-nums; }

/* 월례회 머리 카드 (2026-11-02 다시 짬) */

.rh-eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); }
.rh-staff { flex: none; gap: 4px; }
.rh-staff .ico { width: 16px; height: 16px; }

.rh-course { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 600; }
.rh-course .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
 .is-cancelled .rh-course { text-decoration: line-through; color: var(--muted); }

/* 칸 사이 잇는 선: 점 가운데 높이 */

/* 회원 공개 띠 (조 편성·티오프·차량 탭 위, 2026-11-02 정리): 머리 한 줄 · 설명 · 버튼 줄 */
.reveal-bar { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.reveal-bar .rb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reveal-bar .rb-head .ico { flex: none; width: 18px; height: 18px; }
.reveal-bar .rb-head b { font-size: 16px; white-space: nowrap; }
.reveal-bar .rb-pill { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface); color: var(--accent); }
.reveal-bar .rb-sub { margin: 0 0 0 26px; font-size: 13px; line-height: 1.45; color: var(--muted); word-break: keep-all; }
.reveal-bar .rb-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.reveal-bar.wait { background: var(--accent-soft); border-color: transparent; }
.reveal-bar.wait .rb-head, .reveal-bar.on .rb-head .ico { color: var(--accent); }
.reveal-bar.late { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.reveal-bar.late .rb-head { color: var(--danger); }
.reveal-bar.late .rb-pill { color: var(--danger); }
.reveal-bar.none .rb-head .ico { color: var(--muted); }

.kakao-preview { margin: 0; padding: 12px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; word-break: break-word; font: 14px/1.55 var(--font); max-height: 50vh; max-height: 50dvh; overflow: auto; }
.preview-when { color: var(--accent); font-weight: 600; margin: 0; }

/* 차량 조별 보기: 운전자가 없는 조 (카톡으로 정함) */
.car-open { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); }
.car-open p { margin: 0; }

/* 회원 운전 지원: 내 조에 운전자가 없을 때 */
.car-open-head { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.car-open-head .ico { width: 16px; height: 16px; color: var(--warn); }
.car-open p { word-break: keep-all; }
.car-open.preview { border: 1px dashed color-mix(in srgb, var(--warn) 45%, var(--line)); }
.car-open.preview .badge { justify-self: start; margin-bottom: 4px; white-space: normal; }
.h-mine-ico.wait { background: var(--warn); }

/* 운영진 '회원으로 보기' (2026-11-02) */

.view-as-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #9a5b00; color: #fff; position: relative; flex: none; z-index: 50; }
.view-as-bar > .ico { flex: none; width: 20px; height: 20px; }
.view-as-bar div { flex: 1; display: grid; }
.view-as-bar small { color: #fff; opacity: .92; font-size: 13px; }
.view-as-bar b { color: #fff; }
.view-as-bar .btn { flex: none; }

/* 홈 '내 차' 한 줄 (2026-11-02): 상태마다 같은 모양 [아이콘] 큰 글자 / 작은 설명 [버튼] */
.h-car { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.h-car-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.h-car-ico .ico { width: 18px; height: 18px; }
.h-car-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.h-car-text b { font-size: 15px; }
.h-car-text small { color: var(--muted); font-size: 13px; line-height: 1.4; word-break: keep-all; }
.h-car .btn { flex: none; }
.h-car.warn .h-car-ico { color: var(--warn); }
.h-car.alert { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.h-car.alert .h-car-ico { color: var(--warn); }
.h-car.alert b { color: var(--warn); }
.h-car.alert { flex-wrap: wrap; }
.h-car.alert .btn { flex: 1 0 100%; gap: 6px; min-height: 42px; }

/* 탈 곳 한 줄 (홈·월례회·운영 같은 모양, 2026-11-02) */
.pickup-row { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; min-height: 30px; }
.pickup-row .ico { flex: none; width: 14px; height: 14px; color: var(--muted); }
.pickup-row span { flex: 1; min-width: 0; }
.pickup-row .btn { flex: none; }
.bs-body p { word-break: keep-all; } /* 창 안 안내 글이 낱말 중간에서 끊기지 않게 */

/* 확정된 조 편성·차량 잠금 안내 (2026-11-02) */
.lock-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.lock-note .ico { flex: none; width: 16px; height: 16px; }
.lock-note.editing { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--text); }

/* 회식 (2026-11-02) */
.dinner h2 .ico { color: var(--accent); }
.dinner-main { margin: 0; font-size: 16px; }
.dinner-field { gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dinner-time .time-input { max-width: 140px; }
.dinner-link { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.dinner-link .row-gap { display: flex; gap: 8px; }
.dinner-link input { flex: 1; min-width: 0; }
.dinner-link .btn { flex: none; }
.link-note { font-weight: 400; color: var(--muted); }

/* 게스트 얼굴: 사람 모양 아이콘 (2026-11-02) */
.avatar-guest .ico { width: 62%; height: 62%; }

/* 긴 메모: 여러 줄로 보이는 칸 (2026-11-02, 한 줄 칸은 긴 글이 잘려 보이고 고치기 어려웠음) */
textarea.memo-area { min-height: 44px; resize: none; overflow: hidden; line-height: 1.45; }
.memo-count { justify-self: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 주소로 고른 카드로 내려갈 때 위 머리글에 가리지 않게 (홈 '많이 오른 회원' → 최근 라운드의 그 카드, 2026-11-03) */
.scroll-to { scroll-margin-top: 12px; }

/* ---- 내 조·내 차: 회원끼리 정하는 카풀 (2026-11-04, carpool.js) ---- */
/* 조원 얼굴 + 오른쪽 아래 작은 표시 (운전·탑승·따로). 표시를 누르면 뜻이 잠깐 뜬다 */
.h-face-link { display: grid; justify-items: center; gap: 2px; color: var(--text); text-decoration: none; }
.cp-seat-face small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-tip { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; max-width: min(240px, calc(100vw - 32px)); padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; line-height: 1.4; pointer-events: none; }

/* 카드 본문 */
.cp .avatar-empty, .cp-pick .avatar-empty, .cp-reqs .avatar-empty, .cp-banner .avatar-empty { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } /* 옅은 파란 바탕 위에서도 얼굴 자리가 보이게 */
.cp { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid transparent; }
.cp-open { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
.cp-open > .cp-head b { color: var(--warn); }
.cp-wait { background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.cp-ride.warn { border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
/* 라운드 하루 전부터 아직 차가 없으면: 빨간 경고 */
.cp.urgent { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border: 2px solid color-mix(in srgb, var(--danger) 55%, var(--line)); }
.cp-urgent { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--danger); font-size: 14px; font-weight: 800; }
.cp-urgent .ico { flex: none; width: 18px; height: 18px; }
.cp-lock { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--muted); }
.cp-lock .ico { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.cp-self { padding: 10px 12px; }
.cp-head { display: flex; align-items: center; gap: 12px; }
.cp-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.cp-open .cp-ico { color: var(--warn); }
.cp-ico .ico { width: 20px; height: 20px; }
.cp-ico .avatar { width: 40px; height: 40px; }
.cp-head-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cp-head-text b { font-size: 16px; line-height: 1.3; }
.cp-head-text small { color: var(--muted); font-size: 13px; line-height: 1.45; word-break: keep-all; }
.cp-count-badge { display: inline-block; margin-left: 2px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.cp-wide { width: 100%; min-height: 48px; gap: 8px; border-radius: 12px; font-size: 16px; }
.cp-acts { display: flex; gap: 8px; }
.cp-acts .cp-wide { flex: 1; width: auto; }
.cp-call { flex: none; min-height: 48px; gap: 6px; border-radius: 12px; text-decoration: none; }
.cp-call-sm { flex: none; gap: 4px; text-decoration: none; }
.cp-call-icon { width: 36px; padding: 0; justify-content: center; }
.cp-offer-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 라운드 날 차 줄·탑승 카드의 작은 전화 버튼 */
.cp-foot { display: flex; justify-content: flex-end; margin: -6px -4px -6px 0; }
.cp-foot.center { justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: -6px 0; }
.cp-text { min-height: 36px; padding: 6px 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
.cp-text.danger { color: var(--danger); }
.cp-text:disabled { opacity: .5; }
.cp-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; } /* .cp-row는 회원 화면 '동반자' 칸 이름이라 다른 이름 */

/* 자리 남은 차 */
.cp-offers { display: grid; gap: 8px; }
.cp-offers-title { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.cp-offer { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cp-offer-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cp-offer-text b { font-size: 15px; }
.cp-offer-text small { color: var(--muted); font-size: 13px; }
.cp-free { color: var(--accent); font-weight: 700; }
.cp-more-list { display: grid; gap: 8px; }
.cp-offers > .cp-text { justify-self: center; }

/* 운전: 자리 (탄 분 + 빈 자리) */
.cp-seats { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.cp-seat { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 48px; }
.cp-seat-face { display: grid; justify-items: center; gap: 3px; color: var(--text); text-decoration: none; font-size: 12px; }
.cp-seat-x { position: absolute; top: -6px; right: -4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; box-shadow: var(--shadow); }
.cp-seat-x::after { content: ''; position: absolute; inset: -8px; }
.cp-seat-x .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.cp-seat-hole { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); }
.cp-seat.vacant small { color: var(--muted); font-size: 12px; }

/* 운전자에게 온 탑승 요청 */
.cp-reqs { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cp-reqs-title { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 14px; font-weight: 800; }
.cp-reqs-title .ico { width: 17px; height: 17px; }
.cp-req { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--surface); }
.cp-req-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cp-req-text b { font-size: 15px; }
.cp-req-text small { color: var(--muted); font-size: 13px; }
.cp-req-acts { flex: none; display: flex; gap: 6px; }
.cp-req-acts .btn { min-width: 56px; }

/* 승인 대기: 운전자 얼굴 옆에서 깜박이는 점 */
.cp-wait-ava { position: relative; display: inline-flex; }
.cp-wait-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--accent-soft); border-radius: 50%; background: var(--warn); animation: cp-pulse 1.6s ease-in-out infinite; }
@keyframes cp-pulse { 50% { transform: scale(.7); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .cp-wait-dot { animation: none; } }

/* 따로 감: 한 줄로 작게 */
.cp-compact { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.cp-chip .ico { width: 16px; height: 16px; color: var(--muted); }

/* 한 번 보여 줄 안내 */
.cp-notes { position: relative; display: grid; gap: 6px; padding: 10px 40px 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.cp-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; word-break: keep-all; text-wrap: balance; }
.cp-note .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }
.cp-note-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.cp-note-x .ico { width: 15px; height: 15px; }

/* 운전 등록·인원 줄이기 창: 사람 고르기 */
.cp-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cp-count { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-count.full { color: var(--accent); font-weight: 800; }
.cp-picks { display: grid; gap: 8px; }
.cp-pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; cursor: pointer; transition: opacity .15s, background .15s; }
.cp-pick input { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--accent); }
.cp-pick.on { border-color: var(--accent); background: var(--accent-soft); }
.cp-pick.off { opacity: .45; cursor: not-allowed; }

/* 홈 맨 위: 내 차로 온 탑승 요청 */
.cp-banner { display: grid; gap: 10px; border: 2px solid var(--accent); background: var(--accent-soft); }
.cp-banner-head { display: flex; align-items: center; gap: 12px; }
.cp-banner-toggle { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cp-banner-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.cp-banner-ico .ico { width: 20px; height: 20px; }
.cp-banner-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cp-banner-text b { font-size: 16px; color: var(--accent); }
.cp-banner-text small { color: var(--muted); font-size: 13px; line-height: 1.4; word-break: keep-all; }
.cp-stack { flex: none; display: flex; }
.cp-stack .avatar { box-shadow: 0 0 0 2px var(--accent-soft); }
.cp-stack .avatar + .avatar { margin-left: -8px; }
.cp-chev { flex: none; width: 8px; height: 8px; margin: 0 4px 3px 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.cp-banner-toggle[aria-expanded="true"] .cp-chev { transform: rotate(-135deg); margin-bottom: -3px; }
.cp-banner-list { display: grid; gap: 8px; }
.cp-banner-list[hidden] { display: none; }

/* 아래 메뉴 '월례회' 숫자 */
.tabs a { position: relative; }
.tab-badge { position: absolute; top: 5px; left: calc(50% + 5px); margin: 0; }
@media (min-width: 1024px) { .tab-badge { position: static; margin-left: auto; } }

/* 월례회 화면 차량 카드: 남은 자리 */

/* 최종 점검 (2026-11-04) */
/* 좁은 휴대폰(≤360px): 자리 남은 차 줄의 '탑승 요청' 버튼을 아래로 (이름이 네 줄로 깨지지 않게) */
@media (max-width: 360px) {
  .h-dinner { flex-wrap: wrap; } /* 회식 줄: 지도 버튼을 아래로 (메모가 좁게 꺾이지 않게) */
  .h-dinner .h-car-text { flex: 1 1 calc(100% - 56px); }
  .h-dinner .btn { margin-left: 48px; }
  .cp-offer { flex-wrap: wrap; }
  .cp-offer .btn { flex: 1 0 100%; }
}
/* 라운드 날 카드(옅은 파란 바탕) 위의 사진 없는 얼굴도 원이 보이게 */
.card.today:not(.ev) .avatar-empty { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

/* 조 편성 방식 (2026-11-04) */

.auto-adv summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.auto-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.auto-adv .stack-xs { display: grid; gap: 4px; }

.auto-note { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.auto-note ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.hcp-list { display: grid; }
.hcp-row { display: grid; grid-template-columns: auto 1fr 76px 72px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hcp-who { display: grid; min-width: 0; }
.hcp-who small { font-size: 12px; }
.hcp-msg:empty { display: none; }
.hcp-msg.tone-ok { color: var(--accent); }
.hcp-row input { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 조 색 (2026-11-04): 조 번호마다 고유 색 8가지 (round.js groupTone). 흰 글자를 올려도 읽히는 진하기.
   --g-ink: 조 색 글자 (어두운 화면에서는 밝게 섞어 바탕과 대비가 나게) ── */
.gt1 { --g: #2f7d5b; } /* 초록 */
.gt2 { --g: #3a6bb0; } /* 파랑 */
.gt3 { --g: #a8562f; } /* 적갈 */
.gt4 { --g: #7354ad; } /* 보라 */
.gt5 { --g: #73661a; } /* 금 (3조 적갈·주의 주황과 구별되게 덜 주황) */
.gt6 { --g: #1f7580; } /* 청록 */
.gt7 { --g: #ad4469; } /* 장미 */
.gt8 { --g: #566377; } /* 회청 */
:is(.gt1, .gt2, .gt3, .gt4, .gt5, .gt6, .gt7, .gt8) { --g-ink: var(--g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.gt1, .gt2, .gt3, .gt4, .gt5, .gt6, .gt7, .gt8) { --g-ink: color-mix(in srgb, var(--g) 55%, #fff); } }
:root[data-theme="dark"] :is(.gt1, .gt2, .gt3, .gt4, .gt5, .gt6, .gt7, .gt8) { --g-ink: color-mix(in srgb, var(--g) 55%, #fff); }
/* 화면 읽기 프로그램에만 읽히는 글자 */
.sr-only { position: fixed; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 조 편성 '티 시트' (2026-11-04): 티오프 시각 → 조 번호(조 색) → 얼굴 네 명. 코스가 여럿이면 코스마다 한 묶음 ── */
.ts-sections { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.ts-sec { display: grid; gap: 8px; min-width: 0; }
.ts-course { display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 14px; }
.ts-course .ico { width: 15px; height: 15px; color: var(--muted); }
.ts-course small { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ts-rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ts-row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 2px; padding: 12px 10px 12px 0; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.ts-row::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--g); } /* 왼쪽 조 색 띠 */
.ts-when { display: grid; justify-items: center; align-content: center; gap: 5px; padding-left: 4px; }
.ts-time { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.ts-no { padding: 0 8px; border-radius: 999px; background: var(--g); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.ts-no.big { font-size: 15px; line-height: 26px; padding: 0 11px; }

.ts-crew { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2px; }
.ts-p { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 2px 0; border-radius: 10px; color: var(--text); text-decoration: none; }
@media (hover: hover) { a.ts-p:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } }
.ts-p small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.ts-p em { margin-top: -3px; font-style: normal; font-size: 10px; color: var(--muted); line-height: 1; }
.ts-p.me .avatar { box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 4px var(--accent); }
.ts-p.me small { color: var(--accent); font-weight: 800; }
.ts-ava { position: relative; display: inline-flex; }
.ts-ava .avatar { width: 42px; height: 42px; font-size: 13px; }
.ts-ava .avatar-empty { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ts-drive { position: absolute; right: -5px; bottom: -3px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--g); color: #fff; box-shadow: 0 0 0 2px var(--surface-2); }

.ts-drive .ico { width: 12px; height: 12px; stroke-width: 2.4; }
@media (max-width: 360px) { .ts-row { grid-template-columns: 60px minmax(0, 1fr); } .ts-time { font-size: 18px; } .ts-ava .avatar { width: 38px; height: 38px; } .ts-p small { font-size: 12px; } }

/* ── 차량 배정 '가는 길' (2026-11-04): 운전자 → 태울 사람(얼굴이 정류장) → 빈 자리 → 골프장. 사람을 누르면 연락 창 ── */
.cv-tip { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); word-break: keep-all; }
.cv-tip .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.cv-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.cv { --cv-bg: var(--surface-2); position: relative; display: grid; gap: 2px; padding: 16px 14px 12px; border-radius: 16px; background: var(--cv-bg); border: 1px solid transparent; overflow: hidden; }
.cv::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--g); } /* 위쪽 조 색 띠 */
/* 머리: [운전자 얼굴 + 차 표시] 이름 / 조 번호 · 좌석 점 · 만석 [전화] */
.cv-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cv-drv { position: relative; display: inline-flex; }
.cv-drv .avatar { width: 48px; height: 48px; }
.cv-drv .avatar-empty { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cv-drv-car { position: absolute; right: -5px; bottom: -3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--g); color: #fff; box-shadow: 0 0 0 2px var(--cv-bg); }
.cv-drv-car .ico { width: 13px; height: 13px; stroke-width: 2.3; }
.cv-who { display: grid; gap: 3px; min-width: 0; padding: 2px 4px; margin: -2px -4px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--text); text-decoration: none; font: inherit; }
button.cv-who, a.cv-who { cursor: pointer; }
@media (hover: hover) { button.cv-who:hover, a.cv-who:hover { background: color-mix(in srgb, var(--text) 5%, transparent); } }
.cv-who:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cv-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cv-title b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tag { flex: none; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; }
.cv-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-meta small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-gno { padding: 0 7px; border-radius: 999px; background: var(--g); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.cv-seats { display: inline-flex; gap: 3px; }
.cv-seats i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 55%, transparent); }
.cv-seats i.on { background: var(--g-ink); box-shadow: none; }
.cv-call { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
@media (hover: hover) { .cv-call:hover { border-color: var(--accent); } }
.cv-call .ico { width: 18px; height: 18px; }
.cv-memo { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--muted); word-break: keep-all; }
.cv-memo .ico { flex: none; width: 14px; height: 14px; margin-top: 3px; }
/* 정류장: [얼굴 48px 칸] 이름·탈 곳·탈 곳 버튼 [전화]. 얼굴은 이름 줄에 맞춰 위로, 잇는 선은 끊김 없이
   (첫 줄은 위 운전자 얼굴까지, 마지막 줄은 제 얼굴 가운데까지). 선 색은 불투명하게 섞어 겹쳐도 진해지지 않게 */
.cv-route { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.cv-stop { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 6px 0; }
.cv-stop::before { content: ''; position: absolute; left: 23px; top: -6px; bottom: 0; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--g) 40%, var(--cv-bg)); }
.cv-stop:first-child::before { top: -14px; }
.cv-stop:last-child::before { bottom: auto; height: 32px; }
.cv-stop:first-child:last-child::before { height: 40px; }
.cv-stop.vacant, .cv-stop.dest { align-items: center; }
.cv-node { position: relative; z-index: 1; display: grid; place-items: center; }
.cv-node .avatar { box-shadow: 0 0 0 3px var(--cv-bg); }
.cv-node .avatar-empty { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--cv-bg); }
.cv-body { display: grid; gap: 6px; justify-items: start; min-width: 0; padding: 2px 0; }
.cv-body .cv-who { justify-self: stretch; }
.cv-stop .cv-who b { font-size: 15px; font-weight: 700; }
.cv-stop .cv-who small { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--text); line-height: 1.35; }
.cv-stop .cv-who small.muted { color: var(--muted); }
.cv-stop .cv-who small .ico { flex: none; width: 13px; height: 13px; margin-top: 3px; color: var(--g-ink); }
.cv-stop.me .cv-who b { color: var(--accent); }
.cv-pk { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .cv-pk:hover { border-color: var(--muted); } }
.cv-pk.strong { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.cv-acts { display: inline-flex; align-items: center; gap: 6px; }
.cv-acts:empty { display: none; }
.cv-hole { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--g-ink) 60%, transparent); background: var(--surface); color: var(--g-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px var(--cv-bg); }
.cv-stop.vacant .cv-who b, .cv-stop.dest .cv-who b { font-size: 14px; }
.cv-stop.dest .cv-who small { font-variant-numeric: tabular-nums; }
.cv-flag { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g); color: #fff; box-shadow: 0 0 0 3px var(--cv-bg); }
.cv-flag .ico { width: 15px; height: 15px; }
.cv-asked { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); font-size: 13px; font-weight: 700; line-height: 30px; white-space: nowrap; }
.cv-asked .ico { width: 14px; height: 14px; }
/* 차 없는 회원 (개별 이동·운전자 미정·차 미정) */
.cv-rest { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.cv-rest .car-open { gap: 6px; padding: 12px 14px; border-radius: 14px; }
.cv-rest .car-open.solo { background: var(--surface-2); }
.cv-rest .car-open.solo .car-open-head .ico { color: var(--muted); }

@media (max-width: 360px) {
  .cv-head { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .cv-drv .avatar { width: 44px; height: 44px; }
  .cv-stop { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .cv-stop::before { left: 21px; }
}

/* 연락 창 (차량 배정에서 사람을 누르면) */
.ps-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ps-head h3 { font-size: 19px; }
.ps-head small { display: block; font-size: 13px; }
.ps-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-acts .btn { min-height: 50px; font-size: 16px; }
.ps-line { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ps-line > .ico { width: 18px; height: 18px; color: var(--muted); }
.ps-line small { display: block; font-size: 12px; color: var(--muted); }
.ps-line span { overflow-wrap: anywhere; }
.ps-more { justify-self: center; }

/* 내 조원과 같은 조였던 횟수 ('내 조·내 차', 2026-11-04): 조원 얼굴 아래 한 줄 전체 */
.h-mates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.h-mates b { margin-right: 2px; color: var(--text); font-size: 12px; font-weight: 700; }
.h-mates em { font-style: normal; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.h-mates .new em { color: var(--accent); }

/* 검토 반영 (2026-11-04) */
/* '내 조·내 차' 얼굴 줄: 조 칸 폭 고정 + 같은 폭 칸 (넘쳐 줄이 바뀌거나 조 상자가 늘어나지 않게) */
.h-face-link { min-width: 0; max-width: 100%; }
/* 운전자 얼굴은 선 위에 (첫 정류장 선이 사진을 가로지르지 않게) */
.cv-drv { z-index: 1; }
.cv-drv .avatar { box-shadow: 0 0 0 3px var(--cv-bg); }
.cv-drv .avatar-empty { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--cv-bg); }
/* 이름만 있는 정류장은 얼굴 가운데에 맞춤 */
.cv-stop:not(.dest, .vacant):not(:has(.cv-who small)):not(:has(.cv-pk)) { align-items: center; }
.cv-time { white-space: nowrap; }
.cv-dep { display: inline-flex; align-items: center; gap: 3px; color: var(--text) !important; font-weight: 700; }
.cv-dep .ico { width: 12px; height: 12px; color: var(--muted); }
.cv-pk { min-height: 36px; padding: 0 14px; }
/* 티 시트: 시각 미정, 5명 조, 내 조 띠는 테두리 안쪽에, PC에서 얼굴이 너무 흩어지지 않게 */
.ts-notime { font-size: 11px; color: var(--muted); line-height: 1; }
.ts-crew { grid-template-columns: repeat(var(--n, 4), minmax(0, 92px)); }
.ts-crew.many .ts-ava .avatar { width: 36px; height: 36px; }
.ts-crew.many .ts-p small { font-size: 12px; }

.ps-btns { display: inline-flex; gap: 6px; }
@media (max-width: 360px) { .ts-crew.many { gap: 4px; } .ts-crew.many .ts-ava .avatar { width: 32px; height: 32px; } .ts-crew.many .ts-p small { font-size: 11px; } }

/* ── 월례회 화면 2차 (2026-11-04) ── */
/* 조 편성 머리: 제목·요약 / [공유] */

/* '내 조·내 차' (2026-11-04 다시 짬): [1조] 07:15 / 실크 코스 티오프 → 조원(이름·차 상태) → 같은 조 횟수 */
.mt { display: grid; gap: 14px; }
.mt-hero { display: flex; align-items: center; gap: 14px; }
.mt-no { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--g); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.mt-tee { display: grid; gap: 1px; min-width: 0; }
.mt-tee b { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-tee small.none { font-size: 15px; font-weight: 600; }
.mt-tee small { font-size: 13px; color: var(--muted); }
.mt-crew { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 84px)); gap: 4px; }
.mt-p { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.mt-link { display: grid; justify-items: center; gap: 4px; max-width: 100%; color: var(--text); text-decoration: none; }
.mt-link .avatar { width: 46px; height: 46px; font-size: 13px; }
.mt-link b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.mt-p.me .mt-link .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.mt-p.me .mt-link b { color: var(--accent); }
.mt-role { padding: 0 8px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; line-height: 20px; white-space: nowrap; cursor: pointer; }
.mt-role.drive { background: var(--g); color: #fff; }
.mt-role.ride { background: color-mix(in srgb, var(--g) 14%, var(--surface)); color: var(--g-ink); }
.mt-role.wait { background: transparent; box-shadow: inset 0 0 0 1px var(--warn); color: var(--warn); } /* 테두리만: 차 미정(채운 바탕)과 구별 */
.mt-role.none { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--warn); }
.mt-role.guest { cursor: default; }
.mt-crew.many .mt-link .avatar { width: 40px; height: 40px; }
.mt-crew.many .mt-link b { font-size: 13px; }
.card.today:not(.ev) .mt-role:not(.drive) { background: var(--surface); }
@media (max-width: 360px) { .mt-tee b { font-size: 26px; } .mt-link .avatar { width: 40px; height: 40px; } .mt-crew.many .mt-link .avatar { width: 34px; height: 34px; } .mt-link b { font-size: 13px; } }

/* 탑승: 운전자 얼굴 + 차 표시, 탈 시각 | 탈 곳 */
.cp-drv { position: relative; flex: none; display: inline-flex; }
.cp-drv .avatar { width: 44px; height: 44px; }
.cp-drv i { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--surface-2); }
.cp-drv i .ico { width: 12px; height: 12px; }
.cp-meet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.cp-meet-time { display: grid; justify-items: center; min-width: 56px; padding-right: 14px; border-right: 1px solid var(--line); }
.cp-meet-time b { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-meet-time small, .cp-meet-place small { font-size: 11px; color: var(--muted); }
.cp-meet-place { display: grid; justify-items: start; gap: 1px; min-width: 0; text-align: left; }
.cp-meet-place b { font-size: 15px; font-weight: 700; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.cp-meet .btn { flex: none; }
/* 운전자: 동승자 탈 곳 한 줄씩 */
.cp-stops { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.cp-stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; gap: 10px; font-size: 14px; }
.cp-stop b { font-variant-numeric: tabular-nums; font-weight: 800; }
.cp-stop em { font-style: normal; font-weight: 700; }
.cp-stop.none, .cp-stop.none b, .cp-stop b.muted { color: var(--muted); }

/* 월례회 머리 카드: 핵심 숫자 줄 */

/* 월례회 목록: [달력 칸] 골프장 / 연도·요일·인원 [상태] */
.round-list { gap: 2px; }
.round-item.ri { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; padding: 10px; border-radius: 12px; font-size: 15px; }
.ri-cal { display: grid; justify-items: center; align-content: center; height: 48px; border-radius: 12px; background: var(--surface-2); line-height: 1; }
.ri-cal small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ri-cal b { margin-top: 3px; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.round-item.ri.on .ri-cal { background: var(--accent); color: var(--accent-ink); }
.round-item.ri.on .ri-cal small { color: inherit; opacity: .85; }
.round-item.ri.on { background: var(--accent-soft); }
.ri-main { display: grid; gap: 2px; min-width: 0; }
.ri-main b { display: flex; align-items: center; gap: 6px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.ri-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 좁은 폭에서 긴 골프장 이름은 말줄임 */
.ri-main small { font-size: 12px; color: var(--muted); }
.ri-status { padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.ri-status.open { background: var(--accent); color: var(--accent-ink); }
.ri-status.soon { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ri-status.closed { background: var(--accent-soft); color: var(--accent); }
.round-item.ri.on .ri-status.closed { background: var(--surface); }
.cp-meet-time.none b { font-size: 16px; color: var(--muted); }
.cp-meet.empty { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; font-size: 14px; color: var(--text); word-break: keep-all; text-align: left; }
.cp-meet.empty > .ico { width: 18px; height: 18px; color: var(--warn); }
/* 좁은 휴대폰: 숫자 줄은 2×2, 대기 등 덧말은 아래 줄. 5명 조의 차 상태 글자는 작게 */
.mt-crew.many .mt-role { padding: 0 6px; }
@media (max-width: 360px) {

  

  .mt-crew.many .mt-role { padding: 0 5px; font-size: 10px; }
}

/* ── 운영 화면 2-가 (2026-11-04) ── */
.ap-group-head h3 { flex: none; white-space: nowrap; } /* '대기 1명'이 옆 안내문에 밀려 세로로 쪼개지지 않게 */
.ap-group-head > :not(h3) { min-width: 0; }
/* 운영 머리 (회원 머리 rh-* 와 같은 말) + 메뉴 */

.ico-more path { stroke-width: 3.2; }
.mh-menu { display: grid; gap: 4px; }
.mh-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
@media (hover: hover) { .mh-item:hover { background: var(--surface-2); } }
.mh-item b { display: block; font-size: 16px; }
.mh-item small { display: block; font-size: 13px; color: var(--muted); word-break: keep-all; }
.mh-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent); }
.mh-ico .ico { width: 20px; height: 20px; }
.mh-sec { margin: 10px 8px 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--danger); }
.mh-item.danger b { color: var(--danger); }
.mh-item.danger .mh-ico { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
/* 진행 막대: 확정했지만 남은 일이 있는 단계 */ /* 어두운 화면에서도 주황 위 글자가 읽히게 */
/* 회원 공개 중: 한 줄 */

/* 조 색: 운영 화면 조·차·티오프·스코어 카드와 신청 이름표 */
.gno { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--g, var(--accent)); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.team-head b.gno { font-size: 13px; line-height: 22px; }
.team:is(.gt1, .gt2, .gt3, .gt4, .gt5, .gt6, .gt7, .gt8):not(.pool):not(.add) { box-shadow: inset 4px 0 0 var(--g); padding-left: 16px; }

.ap-chip .gno { margin-left: 2px; padding: 0 6px; font-size: 11px; line-height: 18px; }
/* 2-가 검토 반영 */

.mh-item.off { cursor: default; opacity: .6; }
@media (hover: hover) { .mh-item.off:hover { background: none; } }

/* ── 운영 화면 2-나 (2026-11-04): 신청 결과·대기 카드, 티오프 입력판 ── */

.ap-next { justify-self: stretch; min-height: 48px; font-size: 16px; }
.ap-wait { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.ap-wait h2 small { font-weight: 500; }
.ap-wait-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); font-size: 14px; word-break: keep-all; }

.tee-item { padding: 10px 0; }
.tee-fill { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.tee-fill summary { font-size: 14px; }
.tee-fill[open] summary { margin-bottom: 10px; }
.tee-fill-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tee-fill-first, .tee-fill-gap { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tee-fill-first .time-input { width: 88px; text-align: center; min-height: 40px; background: var(--surface); }
.tee-fill .bs-stepper button { width: 36px; height: 36px; }
.tee-fill-row > .btn { min-height: 40px; }
.tee-fill > p { margin-top: 8px; }
.tee-warn { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); color: var(--warn); font-size: 14px; font-weight: 600; }
.tee-warn p { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.tee-warn .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
/* 2-나 검토 반영 */
.tee-item .time-input.warn { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.tee-list, .tee-fill, .tee-warn { max-width: 720px; } /* PC에서 코스·시간 칸이 이름과 멀어지지 않게 */
.tee-fill-row { align-items: end; gap: 10px; }
.tee-fill-first span, .tee-fill-gap > span:first-child { line-height: 20px; }
.tee-fill .bs-stepper button { width: 32px; height: 32px; }
@media (max-width: 480px) {
  /* 휴대폰: 윗줄 조·얼굴·이름, 아랫줄 코스·시간 */
  .tee-item { grid-template-columns: minmax(0, 1fr) 88px; row-gap: 8px; }

  
}
/* ── 운영 화면 2-다 (2026-11-04): 조 편성 = 편성표 + 자동 편성 도구 + 옮기기 막대 ── */
.auto-tools { padding: 0; }
.auto-tools > summary { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 16px; cursor: pointer; font-size: 16px; list-style: none; }
.auto-tools > summary::-webkit-details-marker { display: none; }
.auto-tools > summary::after { content: '펼치기'; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.auto-tools[open] > summary::after { content: '접기'; }
.auto-tools > .stack { padding: 0 16px 16px; }
.tool-h { margin: 0; font-size: 14px; color: var(--muted); }
.team-help { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.team-help .muted { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ico-inline { width: 14px; height: 14px; vertical-align: -2px; }
.team-help .btn.on { color: var(--accent); }
.moved-line { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); word-break: keep-all; }
.moved-line b { color: var(--warn); }
/* 옮기기 막대: 아래 고정 줄 자리에 (사람을 골랐을 때) */
.sticky-actions.picking { display: block; background: var(--surface); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
.pick-bar { display: grid; gap: 8px; }
.pick-who { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin: 0; font-size: 15px; }
.pick-who small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.pick-to { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pick-g { display: inline-grid; justify-items: center; min-width: 52px; padding: 4px 8px; border: 0; border-radius: 12px; background: var(--g); color: #fff; font: inherit; cursor: pointer; line-height: 1.15; }
.pick-g b { font-size: 15px; }
.pick-g small { font-size: 11px; opacity: .85; font-variant-numeric: tabular-nums; }
.pick-g:disabled { background: var(--surface-2); color: var(--g-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 45%, transparent); cursor: default; }
.pick-g:disabled small { opacity: 1; color: var(--muted); }
.pick-to .btn { min-height: 40px; }
/* 2-다 검토 반영 */
.pick-g small { color: inherit; }
.pick-g:disabled { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pick-g:disabled b { color: color-mix(in srgb, var(--g-ink) 60%, var(--muted)); }
.pick-acts { display: inline-flex; gap: 6px; margin-left: auto; }
.pick-acts .btn-danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.pc-only { display: none; }
@media (pointer: fine) { .pc-only { display: inline; } }

/* 2-라 차량 (운영): 조 묶음 + '가는 길' 차 카드 + 옮기기 막대 */
.cb-sum { margin: 0; }
.cb-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.cb { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cb-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.cb-head .gno { font-size: 14px; }
.cb-tee { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-st { margin-left: auto; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; line-height: 24px; white-space: nowrap; }
.cb-st.ok { background: color-mix(in srgb, var(--g) 12%, transparent); color: var(--g-ink); }
.cb-st.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.cb-left { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--warn) 45%, var(--line)); }
.cb-left > small { font-size: 12px; font-weight: 700; color: var(--warn); }
.cb-left.solo { border: 1px solid transparent; background: var(--surface-2); }
.cb-left.solo > small { color: var(--muted); }
.cb-foot { display: grid; gap: 8px; justify-items: start; }
.cb-foot p { margin: 0; word-break: keep-all; }
.cb-foot .btn { display: inline-flex; align-items: center; gap: 6px; }
.cb-foot .btn .ico { width: 16px; height: 16px; }
.cv-nog { --g: var(--muted); --g-ink: var(--muted); }
.cv-tag.soft { background: var(--surface); color: var(--g-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 40%, transparent); }
.cv-meta small.over { color: var(--danger); font-weight: 700; }
.cv-seats i.over { background: var(--danger); box-shadow: none; }
.cpc .cv-head .icon-btn { align-self: start; }
.cpc .cv-body .pickup-row { justify-self: stretch; margin: 0; }
.cv-stop .cp-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; justify-self: start; min-height: 32px; padding: 3px 8px; margin: -3px -8px; cursor: pointer; }
.cv-stop span.cp-name { cursor: default; }
@media (hover: hover) { .cv-stop button.cp-name:hover { background: color-mix(in srgb, var(--g) 10%, transparent); } }
.cv-stop .cp-name .badge { font-size: 11px; }
.cv-stop .cp-name .cp-can { display: inline; font-size: 11px; font-weight: 600; color: var(--muted); }
.cv-stop .cp-name.cp-on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cv-stop .cp-name.cp-on b, .cv-stop .cp-name.cp-on .cp-can { color: inherit; }
.cv-stop.picked .cv-node .avatar { box-shadow: 0 0 0 3px var(--accent); }
.cv.drop-target { cursor: pointer; outline: 2px dashed var(--accent); outline-offset: -2px; }
@media (hover: hover) { .cv.drop-target:hover { --cv-bg: var(--accent-soft); } }

.cp-tag small.cp-req { color: var(--warn); font-weight: 600; }
.cp-tag.on small.cp-req { color: inherit; }
.pick-car { min-width: 64px; }
.pick-car b { font-size: 14px; }
.pick-bar .pick-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.cpc .pickup-row .btn { min-height: 30px; padding: 0 10px; }
@media (max-width: 480px) { .cpc { padding: 14px 12px 10px; } .cpc .cv-stop, .cpc .cv-head { gap: 10px; } }
.pick-cars { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 2px 4px 4px; scrollbar-width: thin; } /* 차가 많아도 한 줄 (옆으로 밀기) */
.pick-cars .pick-g { flex: none; }
/* 2-라 검토 반영: 막대 머리 [×], 만석 차, 여기 태우기 알약, 누르기 크기, 막대 쓸 때 알림은 위로 */
.pick-head { display: flex; align-items: flex-start; gap: 8px; }
.pick-head .pick-who { flex: 1; min-width: 0; }
.pick-x { flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; border-radius: 50%; }
.pick-x .ico { width: 20px; height: 20px; }
.pick-car.full { background: var(--surface); color: var(--g-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 55%, transparent); }
.pick-car.full small { color: var(--warn); opacity: 1; font-weight: 700; }
.cv-tag.drop { background: var(--accent); color: var(--accent-ink); }
.cpc .cv-head .icon-btn { width: 44px; height: 44px; margin: -6px -6px 0 0; border-radius: 50%; }
.cv-stop .cp-name { min-height: 40px; }
.cb .cp-tag { min-height: 40px; }
.cpc .pickup-row .btn { min-height: 36px; border: 1px solid var(--line); }
body:has(.sticky-actions.picking) > .ak-toast { bottom: auto; top: calc(72px + env(safe-area-inset-top)); } /* 사람을 고르는 동안은 아래 버튼 줄을 가리지 않게 위에 */
.cv-stop .cp-name.cp-on { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .cv-stop button.cp-name.cp-on:hover { background: var(--accent); color: var(--accent-ink); } }
.pick-bar > .pick-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.pick-bar > .pick-acts .btn { min-height: 40px; padding: 0 6px; white-space: nowrap; }
@media (min-width: 700px) { .pick-bar > .pick-acts { display: flex; justify-content: flex-end; } .pick-bar > .pick-acts .btn { padding: 0 14px; } }
/* 2-마 스코어: 조 묶음(.cb) 안에 한 줄씩, 위에 타수 순 */
.sc-rows { display: grid; gap: 2px; }
.sc-grid .score-row { min-height: 48px; padding: 4px 4px 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.sc-grid .score-row:last-child { border-bottom: 0; }
.sc-grid .score-input { width: 76px; min-height: 42px; }
.sc-val { min-width: 48px; text-align: right; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-val.empty { color: var(--muted); font-weight: 400; }
.sc-top { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.sc-top-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sc-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.sc-rank li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-rank li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-medal { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
/* 메달 색은 리더보드와 같게 (금·은·동 + 짙은 글자, 2026-11-11) */
.sc-medal:is(.m1, .m2, .m3) { color: var(--medal-ink); box-shadow: none; }
.sc-medal.m1 { background: var(--gold); } .sc-medal.m2 { background: var(--silver); } .sc-medal.m3 { background: var(--bronze); }
.sc-n { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 2-마 설정: 묶음 제목, 운영진 요약, 위험한 작업 접기 */
.set-sec { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.set-form > h2 + .set-sec, .set-form > .lock-note + .set-sec { border-top: 0; padding-top: 4px; }
.set-head { display: flex; align-items: baseline; gap: 8px; }
.set-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.set-head small { font-size: 12px; }
.set-sec .dinner-field { padding-top: 0; border-top: 0; }
.set-facts { display: grid; gap: 0; margin: 0; border-radius: 14px; background: var(--surface-2); padding: 4px 14px; }
.set-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.set-facts > div:last-child { border-bottom: 0; }
.set-facts dt { font-size: 13px; color: var(--muted); }
.set-facts dd { margin: 0; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.danger-zone { padding: 0; overflow: hidden; }
.danger-zone > summary { display: flex; align-items: baseline; gap: 8px; padding: 16px 18px; cursor: pointer; list-style: none; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; align-self: center; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.danger-zone[open] > summary::after { transform: rotate(-135deg); }
.danger-zone > summary b { color: var(--danger); }
.danger-zone > .stack { padding: 0 18px 18px; }
.dz-item { padding-top: 14px; border-top: 1px solid var(--line); }
.dz-item h3 { margin: 0; font-size: 15px; }
.dz-item p { margin: 0; }
.sc-grid .score-row .cell-person b { font-weight: 700; font-size: 16px; }
/* 2-마 새 라운드 미리 보기 */
.nr-preview { display: grid; gap: 6px; padding: 10px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface); }
.nr-preview .round-item { padding: 6px 4px; }
.nr-line { margin: 0 4px; word-break: keep-all; }
.sc-rank { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); column-gap: 32px; }
/* 2-마 검토 반영 */
.cb-st:empty { display: none; }
.danger-zone > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: inherit; }
/* 관리자 사용 현황 화면 (안 쓰는 옛 관리자 스타일을 지울 때 되살린 것, 2026-11-04) */
.adm-usage { display: grid; gap: 16px; min-width: 0; align-content: start; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-head h1 { margin: 0; font-size: 24px; }
.adm-head p { margin: 4px 0 0; }
.adm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) {
.adm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.adm-kpi-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: -4px; }
.adm-cmp { display: grid; gap: 12px; }
@media (min-width: 700px) {
.adm-cmp { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
}
.adm-cmp-side { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.adm-cmp-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-cmp-arrow { align-self: center; justify-self: center; font-size: 22px; color: var(--muted); }
@media (max-width: 699px) {
.adm-cmp-arrow { transform: rotate(90deg); }
}
.adm-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-person > div { display: grid; gap: 2px; min-width: 0; }
.adm-person b { font-size: 16px; }
.adm-person small { font-size: 13px; color: var(--muted); }
/* 3-1 디자인 통일 (2026-11-04) */
/* 상태 알약 한 벌: 크기는 같고 색만 이름으로 (.badge · .ri-status · .cb-st) */
.badge, .ri-status, .cb-st { padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 22px; white-space: nowrap; }
.badge-warn, .ri-status.soon, .cb-st.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
/* 주의 글자는 한 벌 */
.warn-text { color: color-mix(in srgb, var(--warn) 70%, var(--text)); font-weight: 700; }
/* 손가락으로 누르는 화면에서는 작은 버튼도 40px */
@media (pointer: coarse) {
  .btn-sm, .seg button, .mm-chip { min-height: 40px; }
  .btn-xs, .link-btn, .seg-sm button { min-height: 36px; }
  /* 누르는 곳은 44px 이상 (UX.md '7. 터치'). 보이는 모양은 그대로 두고 ::after로 누르는 곳만 위아래로 넓힌다 (.bs-x와 같은 방식).
     이미 44px보다 크면 제 크기 그대로 */
  :where(.btn-sm, .btn-xs, .link-btn, .seg button, .mm-chip, .subtabs a, .topbar .brand, .me-chip, a.pchip, button.pchip, .ct-copy, .mu-help > summary, .bs-stepper button) { position: relative; } /* :where = 따로 자리를 정한 것(absolute 등)은 건드리지 않음 */
  :is(.btn-sm, .btn-xs, .link-btn, .seg button, .mm-chip, .subtabs a, .topbar .brand, .me-chip, a.pchip, button.pchip, .ct-copy, .mu-help > summary, .bs-stepper button)::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  /* 가로로 미는 하위 탭 줄은 위아래로 넘친 것이 잘리므로, 줄 자체에 그만큼 자리를 준다 (보이는 자리는 그대로) */
  .subtabs { padding-block: 5px; margin-block: -5px; }
}
/* 작은 조 번호 알약 (문장 안) */
.gno-sm { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--g); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.car-open-head .gno-sm { margin-left: 0; }
/* 운영 목록: 진행 중 카드 (월례회 머리와 같은 꼴) */
.rl-now h2 { margin: 0; }
/* 명예의 전당: 그림 문자 대신 선 아이콘 (원 안) */

/* 회원 관리 줄: 최근 참석은 둘째 줄, 오른쪽은 › 만 */
.mm-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.mm-who .mm-recent { font-variant-numeric: tabular-nums; }
.mm-row > .mm-chev { color: var(--muted); font-style: normal; font-size: 18px; }
/* 회원 기록 머리: '회원으로 보기'는 제목(h2) 밖, 이름 옆 */
.mh-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-viewas { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 600; }
.mh-viewas .ico { width: 15px; height: 15px; }
/* 좁은 폰(400px 이하): 리더보드·최근 라운드·많이 오른 회원 표에서 이름이 잘리지 않게 숫자 칸·간격·얼굴을 줄인다 (2026-11-04) */
@media (max-width: 400px) {

}

/* 앱으로 설치 안내 자리: 비어 있으면 간격도 차지하지 않게 (안은 kit installBanner) */
.install-slot { display: contents; }

/* 아이폰 홈 화면 앱(iOS 26~): 화면 맨 위에 고정된 띠가 없으면 아이폰이 머리줄 위에 뿌연 흐림을 덮는다.
   보이지 않는 고정 띠(.ios-edge, 각 HTML의 body 첫 줄)를 두면 흐림 대신 이 배경색으로 상태 표시줄 자리를 칠한다.
   글자 모양으로만 칠해서(background-clip: text) 실제로는 아무것도 그리지 않고, 누를 수도 없다 (2026-11-09) */
.ios-edge {
  position: fixed; top: 0; left: 0; right: 0; height: 11px; z-index: 2147483647; pointer-events: none;
  background-color: var(--bg); -webkit-background-clip: text; background-clip: text;
}
body.ak .ios-edge { background-color: var(--ak-card); }

/* ---- 휴대폰 가로 화면 (2026-11-10) ----
   높이가 낮은 가로 화면에서는 위 바·아래 메뉴가 높이의 절반 가까이를 먹고(393px 중 135px), 다이내믹 아일랜드가 글자를 가렸다.
   → 위 바·아래 메뉴를 옆 세로 메뉴 하나로 모은다 (위: 로고, 가운데: 탭 4개, 아래: 내 사진). 내용이 화면 높이를 모두 쓴다.
   조건: 모든 서비스 공통 `(orientation: landscape) and (max-height: 520px) and (min-width: 560px)` (UX.md '5. 가로 모드 조건')
   + golf는 PC 왼쪽 메뉴(1024px~) 전까지만. 더 좁히는 조건(700px~, 800px~, 높이 370·350 이하)은 뒤에 덧붙인다.
   세로 화면·PC는 그대로 */
/* 안전 영역(아일랜드·둥근 모서리·홈 막대). 아이폰은 가로에서 아일랜드가 한쪽에만 있어도 양쪽에 같은 여백(약 59px)을 알려 준다
   → theme.js가 돌린 방향을 보고 html.island-left / island-right를 붙이면 반대쪽은 0으로 (stock·PLAY와 같은 방식).
   좌우 여백은 env()를 바로 쓰지 말고 이 변수로 */
:root { --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px); --sa-b: env(safe-area-inset-bottom, 0px); }
html.island-left { --sa-r: 0px; }
html.island-right { --sa-l: 0px; }
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) {
  /* --rail: 세로 메뉴 폭(아일랜드 쪽 안전 영역 포함). --c-l·--c-r: 내용 칸 좌우 여백 */
  :root { --rail-w: 80px; --rail: calc(var(--rail-w) + var(--sa-l)); --c-l: 16px; --c-r: max(16px, var(--sa-r)); }
  html.island-right { --rail: calc(var(--rail-w) + var(--sa-r)); --c-l: max(16px, var(--sa-l)); --c-r: 16px; }
  /* 공통 부품(kit)의 아래 알림이 세로 메뉴를 피해 내용 가운데에 뜨게 메뉴 폭을 알려 준다 (kit README '가로 모드') */
  body.app { --ak-rail-l: var(--rail-w); }
  html.island-right body.app { --ak-rail-l: 0px; --ak-rail-r: var(--rail-w); }
  body.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  /* 아일랜드가 오른쪽이면 세로 메뉴도 오른쪽으로 (stock과 같음): 아일랜드 옆 빈자리를 메뉴가 쓰고, 내용은 반대쪽 끝까지 쓴다 */
  html.island-right body.app { grid-template-columns: minmax(0, 1fr) var(--rail); }
  /* 세로 메뉴 바탕 = 위 바를 세운 것 (로고 위, 내 사진 아래). 탭은 같은 칸 가운데에 겹쳐 놓는다.
     아일랜드 쪽 안전 영역도 메뉴 색으로 칠해 빈틈처럼 보이지 않게 */
  .app .topbar {
    grid-column: 1; grid-row: 1 / -1; flex-direction: column; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px 0 12px var(--sa-l); /* 아래: 홈 막대는 화면 가운데라 메뉴 아래는 비울 필요 없음 */
    background: var(--surface); backdrop-filter: none; border-bottom: 0; border-right: 1px solid var(--line);
  }
  html.island-right .app .topbar { grid-column: 2; padding-left: 0; padding-right: var(--sa-r); border-right: 0; border-left: 1px solid var(--line); }
  .topbar .brand { gap: 0; padding: 4px; border-radius: 12px; }
  .topbar .brand > span { display: none !important; } /* 이름 글자는 빼고 로고만 (누르면 홈) */
  .topbar .brand-mark { width: 38px; height: 38px; }
  .user-chip { flex-direction: column; }
  .me-chip { position: relative; padding: 3px; }
  .me-chip .avatar { width: 40px; height: 40px; font-size: 13px; }
  #me-name, #me-role { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* 화면에서는 숨기고 읽어 주기에는 남김 */
  .me-chip .count-badge { position: absolute; top: -2px; right: -4px; margin: 0; box-shadow: 0 0 0 2px var(--surface); }
  .tabs {
    grid-column: 1; grid-row: 1 / -1; align-self: center; z-index: 11; height: auto; flex-direction: column; gap: 8px;
    padding: 0 0 0 var(--sa-l); background: transparent; border-top: 0;
  }
  html.island-right .tabs { grid-column: 2; padding: 0 var(--sa-r) 0 0; }
  .tabs a { flex: none; height: 58px; gap: 3px; font-size: 13px; letter-spacing: -.01em; -webkit-tap-highlight-color: transparent; }
  .tabs a .ti { box-sizing: content-box; width: 22px; height: 22px; padding: 5px 18px; border-radius: 999px; transition: background-color .15s; }
  .tabs a.on .ti { background: var(--accent-soft); } /* 고른 탭: 아이콘 뒤 둥근 띠 (안드로이드·아이패드 세로 메뉴와 같은 모양) */
  .tab-badge { top: 0; left: calc(50% + 10px); box-shadow: 0 0 0 2px var(--surface); }
  .app .view-as-bar { grid-column: 2; grid-row: 1; padding-left: var(--c-l); padding-right: var(--c-r); }
  .scroller { grid-column: 2; grid-row: 2; }
  html.island-right .app .view-as-bar, html.island-right .scroller { grid-column: 1; }
  .content { padding: 12px var(--c-r) calc(20px + var(--sa-b)) var(--c-l); gap: 14px; }
  .view { gap: 14px; }
  /* 아래 고정 버튼 줄: 홈 막대 자리까지 바탕을 깐다 */
  .sticky-actions { padding-bottom: calc(10px + var(--sa-b)); }
  /* 알림: 내용 칸 가운데, 바닥 바로 위 */
  body.app { --ak-toast-b: 0px; } /* 좌우 자리는 위의 --ak-rail-l/r 로 kit이 맞춘다 */
  body:has(.sticky-actions.picking) > .ak-toast { top: 14px; } /* 가로에는 위 바가 없어 맨 위에 붙여도 됨 */
  /* 아래에서 올라오는 창: 메뉴를 뺀 내용 칸 가운데, 높이를 넉넉히 */
  .bs-panel { left: var(--rail); right: var(--sa-r); width: auto; max-width: 560px; /* width: 100%면 폭 560~639px에서 오른쪽이 잘림 */ max-height: calc(100% - 16px); }
  html.island-right .bs-panel { left: var(--sa-l); right: var(--rail); }

  /* '회원으로 보기' 띠: 한 줄로 얇게 */
  .view-as-bar { padding-top: 4px; padding-bottom: 4px; }
  .view-as-bar div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  /* 창(dialog): 화면 높이를 넉넉히 */
  dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }

  /* ── 화면별 배치: 낮고 넓은 화면에 맞춰 위아래로 쌓던 것을 좌우로 ── */
  /* 홈: '다음 월례회' 카드는 가로 전체(왼쪽 내 조 · 오른쪽 내 차), 그 아래 내 기록 · 클럽 소식 두 칸 */
  #home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .h-col { display: contents; }
  #home-grid > *, #home-grid > .h-col > * { grid-column: 1 / -1; min-width: 0; }
  #home-grid .install-slot > * { grid-column: 1 / -1; min-width: 0; } /* 설치 안내도 가로 전체 한 줄 (자리 칸은 display: contents라 안쪽 띠에 따로 준다. 반쪽 칸에 들어가 설명이 잘렸음) */
  #home-grid > .h-col:first-child > :last-child:not(.h-now) { grid-column: 1; } /* 내 기록 (늘 왼쪽 묶음의 마지막) */
  #home-grid > .h-col > .h-club { grid-column: 2; }
  /* 홈 맨 위 안내(가입 승인 대기): 한 줄로 */
  .notice-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; }
  /* 홈 '다음 월례회' 카드 (내 조가 없을 때): 왼쪽 남색 표 · 오른쪽 내 신청과 자리 그림 */
  .h-now.ev:has(> :is(.ev-board, .h-mine, .h-ask, .mt)):not(:has(> .cp)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
  .h-now.ev:has(> :is(.ev-board, .h-mine, .h-ask, .mt)):not(:has(> .cp)) > * { grid-column: 2; }
  .h-now.ev:has(> :is(.ev-board, .h-mine, .h-ask, .mt)):not(:has(> .cp)) > .ev-hero { grid-column: 1; grid-row: 1 / span 4; }
  /* 내 조 · 내 차 (홈 다음 월례회): 왼쪽 표·조원 · 오른쪽 차 */
  .h-now:has(> .cp) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto) 1fr; gap: 0 16px; align-items: start; }
  .h-now:has(> .cp) > * { grid-column: 1; }
  .h-now:has(> .cp) > .cp-reqs { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; }
  .h-now:has(> .cp) > .cp-notes { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .h-now:has(> .cp) > :is(.ev-hero, h2) { grid-row: 3; }
  .h-now:has(> .cp) > .mt { grid-row: 4; margin-top: 12px; }
  .h-now:has(> .cp) > .h-dinner { grid-row: 5; margin-top: 12px; }
  .h-now:has(> .cp) > .h-go { grid-row: 6; margin-top: 12px; align-self: end; }
  .h-now:has(> .cp) > .cp { grid-column: 2; grid-row: 3 / -1; }
  /* 주소 찾기 목록: 낮은 화면에서 아래 칸이 밀려 나가지 않게 */
  .addr-list { max-height: 190px; }
  /* 내 조 · 내 차 (홈 '다음 월례회', 월례회 '내 조·내 차'): 왼쪽 티오프·조원 · 오른쪽 차 → 스크롤 없이 한눈에.
     줄: 탑승 요청 / 차 알림 / 제목 / 조 / 회식 / 버튼. 차 상자는 오른쪽 칸에서 제목 줄부터 끝까지 */

  

  

  

  
  /* 기록 */
  .hof-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
  /* 사진 변경 창: 왼쪽 사진 · 오른쪽 안내와 버튼 (세로로 쌓으면 화면 높이를 넘음) */
  #photo-dialog { width: min(620px, calc(100% - 32px)); padding: 18px 20px; }
  #photo-form { grid-template-columns: 220px minmax(0, 1fr); gap: 10px 20px; align-items: center; }
  #photo-form > * { grid-column: 2; }
  #photo-form > .crop-box { grid-column: 1; grid-row: 1 / span 6; width: 220px; height: 220px; }
  #photo-form > #crop-zoom { width: 100%; }
  #photo-form > .file-btn { justify-self: start; }
  /* 회원 탈퇴 창: 삭제되는 정보 · 남는 정보를 나란히 */
  #withdraw-dialog { width: min(640px, calc(100% - 32px)); padding: 18px 20px; }
  #withdraw-form { gap: 10px; }
  .withdraw-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) and (max-height: 370px) { .tabs { gap: 2px; } }
/* 아주 낮은 가로 화면(주소창이 보이는 안드로이드 브라우저, 옛 아이폰 SE 등): 로고를 뺀다 (탭에 '홈'이 있음). 탭 크기는 그대로 */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) and (max-height: 350px) {
  .app .topbar { justify-content: flex-end; }
  .topbar .brand { display: none; }
  .tabs { align-self: start; padding-top: 8px; } /* 탭은 맨 위부터 (가운데에 두면 아래 내 사진과 겹침) */
}
/* 가로 화면 중 조금 넓은 것(≥700px): 월례회·운영 머리 카드는 왼쪽 정보 · 오른쪽 진행 단계 */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) and (min-width: 700px) {
  /* 월례회·운영 머리 카드: 왼쪽 날짜·골프장·숫자 줄 · 오른쪽 진행 단계 (높이를 3분의 2로) */

   /* 단계 막대가 없으면(끝난 라운드) 가로 전체 */
  /* 월례회 목록: 두 줄로 */
  .round-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .round-list > :not(.round-item) { grid-column: 1 / -1; }
  /* 운영 › 라운드 목록 맨 위 카드도 같은 배치 */
  .rl-now { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .rl-now > * { grid-column: 1 / -1; min-width: 0; }

  
   /* 칸이 좁으면 '대기 2'는 아래 줄로 (옆 칸으로 넘치지 않게) */
}
/* 가로 화면 중 넓은 것(아이폰 프로·맥스, 큰 갤럭시 등 ≥800px): 목록·내 정보·회원 기록 머리도 두 칸 */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) and (min-width: 800px) {
  /* 연락처·회원 관리: 제목과 검색을 한 줄로 (붙어 있는 머리가 높이를 덜 먹게), 목록은 두 줄로 */
  .list-head { grid-template-columns: minmax(0, 1fr) minmax(200px, 320px); align-items: center; }
  /* 연락처·회원 관리 목록은 두 줄로 (한 화면에 보이는 사람이 두 배) */
  .ct-rows, .mm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ct-rows > .ct-item { border-top: 0; border-bottom: 1px solid var(--line); }
  .ct-rows > .ct-item:last-child, .ct-rows > .ct-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  /* 회원 관리: 제목·버튼과 검색을 한 줄로 */
  .mm { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); column-gap: 12px; align-items: center; }
  .mm > * { grid-column: 1 / -1; }
  .mm > .mm-top { grid-column: 1; }
  .mm > input[type="search"] { grid-column: 2; }
  .member-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } /* 회원 기록 카드 두 칸 (800px 아래에서는 칸이 너무 좁음) */
  .member-body > .back-row, .member-body > .wide { grid-column: 1 / -1; }
  .me-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .me-side, .me-main { display: grid; gap: 14px; align-content: start; }
  .me-side { position: sticky; top: 0; }
  .me-card { flex-direction: column; text-align: center; padding: 22px 16px 16px; gap: 12px; }
  .me-card .me-info { justify-items: center; width: 100%; }
  .me-card .me-info h2 { justify-content: center; }

  .me-card.me-card-pending { align-items: stretch; text-align: left; padding: 18px; gap: 10px; }
  /* 회원 기록 첫 카드: 왼쪽 나(순위·평균·최근 5라운드) · 오른쪽 지난 라운드·다음 목표 (PC와 같은 배치) */
  .mh2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: 'me now' 'recent now'; column-gap: 24px; align-items: start; }
  .mh2-me { grid-area: me; }

}
/* 로그인·가입 (가로): 안전 영역을 비우고, 로그인은 왼쪽 로고·가입 안내 · 오른쪽 입력 두 칸 → 스크롤 없이 한 화면 */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  .login-scroll { place-items: start center; padding: 12px max(16px, var(--sa-r)) calc(12px + var(--sa-b)) max(16px, var(--sa-l)); }
  .login-box { margin-block: auto; }
  .login-box:not(.signup-box) { width: min(720px, 100%); grid-template-columns: minmax(0, 240px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 10px; padding: 20px 28px; align-items: start; }
  .login-box:not(.signup-box) > * { grid-column: 2; }
  .login-box:not(.signup-box) > .brand { grid-column: 1; grid-row: 1; flex-direction: column; justify-content: center; gap: 10px; margin: 4px 0 0; text-align: center; }
  .login-box:not(.signup-box) > .login-stage { grid-row: 1 / -1; align-self: stretch; margin: -20px 0 -20px -28px; padding: 20px 16px; border-radius: var(--radius) 0 0 var(--radius); box-shadow: inset -2px 0 0 var(--gold); }
  .login-box:not(.signup-box) > .login-stage > span { justify-items: center; }
  .login-box:not(.signup-box) > .brand .brand-mark { width: 72px; height: 72px; }
  .login-box:not(.signup-box) > :is(.signup-cta, .login-note) { grid-column: 1; grid-row: 2; }
  .login-box:not(.signup-box) > .login-form { grid-row: 1 / span 2; gap: 10px; }
  .login-box:not(.signup-box) > .msg { grid-row: 3; }
  .login-box:not(.signup-box) > .msg:empty { display: none; }
  .login-box:not(.signup-box) > :is(.signup-cta, .login-note) { grid-column: 2; grid-row: auto; } /* 왼쪽 칸은 남색 띠가 차지 */
  /* 가입: 입력 칸을 두 줄로 나란히 (한 화면에 한 단계가 거의 다 보이게), 사진은 왼쪽 · 안내와 버튼은 오른쪽 */
  .signup-box { width: min(760px, 100%); gap: 14px; padding: 18px 24px; }
  .signup-box > .brand { font-size: 20px; }
  .signup-box > .brand .brand-mark { width: 40px; height: 40px; }
  .signup-box > .login-stage { margin: -18px -24px 0; padding: 14px 24px; }
  .signup-box .login-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
  .signup-box .login-form > * { grid-column: 1 / -1; }
  .signup-box .login-form > label:not(.check) { grid-column: auto; }
  #photo-pick { grid-template-columns: 220px minmax(0, 1fr); gap: 10px 20px; justify-items: start; align-items: center; }
  #photo-pick > .crop-box { grid-column: 1; grid-row: 1 / span 3; width: 220px; height: 220px; }
  #photo-pick > #crop-zoom { width: 100%; }
  #photo-pick > .file-btn { justify-self: start; }
  #step1 > button { grid-column: auto; } /* '다음'은 출생 연도 옆 빈칸에 */
}
/* 가로 좁은 화면(667 등): 차 카드의 '태울 수 있는 인원' 글이 낱말마다 줄이 바뀌던 것 → 글은 한 줄, 줄 자체가 좁으면 버튼을 아래로 */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) and (max-width: 1023.98px) {
  .cp-line { flex-wrap: wrap; }
  .cp-line > span:first-child { white-space: nowrap; }
}
