/* ─────────────────────────────────────────────
   길동 생활축구회 · 총무 관리
   컨셉: 일요일 아침 운동장. 유니폼 파랑 + 분필 라인 + 전광판 숫자
   ───────────────────────────────────────────── */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&display=swap");

:root {
  /* Brand */
  --kit: #2d68c8;          /* Primary (흰 글자 대비 5.4, 옅은 바탕 위 글자 4.7) */
  --kit-deep: #2459ad;     /* Hover */
  --kit-active: #1d4a8f;   /* Active */
  --sky: #eaf2ff;          /* Light */
  --kit-rgb: 45, 104, 200; /* 그림자·테두리용 (rgba(var(--kit-rgb), .2)) */
  --kit-grad-a: #3472d4;   /* 주 버튼 그라데이션 */
  --kit-grad-b: #275eb8;
  --board-rgb: 21, 35, 63;
  /* 출석 표시색: 기본은 주 색과 같고, 주 색이 빨강 계열인 테마에서는 불참(빨강)과 헷갈리지 않게 파랑으로 고정 */
  --att: var(--kit); --att-tint: var(--sky); --att-ink: var(--kit-active); --att-rgb: var(--kit-rgb);
  /* Background & Surface (밝은 바탕, 회색 대신 아주 옅은 파랑) */
  --paper: #f4f7fb;        /* Background */
  --sheet: #ffffff;        /* Surface */
  --line: #dfe7f1;         /* Border */
  --muted-bg: #f0f4f9;     /* Muted */
  /* Typography */
  --ink: #1a2440;          /* Primary Text */
  --muted: #5b6b8c;        /* Sub Text */
  --disabled: #a9b7d0;     /* Disabled */
  /* Status */
  --green: #27856a;        /* Success: 수입·접수중 */
  --green-tint: #e4f4ee;
  --amber: #c58a32;        /* Warning: 휴면 */
  --amber-tint: #fbf1e1;
  --red: #c45b5b;          /* Danger: 불참·지출·미납 */
  --red-tint: #fbeaea;
  /* 전광판: 홈 메인 카드·다가오는 경기 날짜·회원 링크 화면 상단에만 쓰는 강조색 (그 외 화면은 기존 파랑 유지) */
  --board: #15233f;        /* 전광판 남색 */
  --board-sub: #a9b6cf;    /* 전광판 위 보조 글자 */
  --board-line: rgba(255, 255, 255, .14);
  --lime: #c6f24e;         /* 형광 조끼 라임: 전광판 위에서만 글자색으로 */
  --lime-tint: #ecfbc4;    /* 흰 바탕 위 라임 배지 배경 */
  --lime-ink: #3d5a00;     /* 흰 바탕 위 라임 배지 글자 */
  /* 라인업 유니폼: 기본은 주 색 몸통·소매 + 흰 칼라·소매 끝단·등번호. 설정 > 팀 정보 > 유니폼 색상을 고르면 lineup.js 가 덮어쓴다 */
  --shirt: var(--kit); --shirt-trim: #fff; --shirt-sleeve: var(--shirt); --shirt-num: #fff;

  --num: "Barlow Condensed", "Pretendard Variable", sans-serif;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --tabbar-h: 64px;
}

/*
 * 팀 색상 테마 (설정 > 팀 색상, setting.theme). html[data-theme] 로 적용, 기본(블루)은 속성 없음.
 * 바꾸는 것: 주 색(--kit 계열)·옅은 바탕(--sky)·전광판(--board 계열)·강조(--lime 계열).
 * 상태색(초록 수입·빨강 불참/지출·노랑 휴면)은 의미가 있으므로 테마와 무관하게 고정
 */
/* 레드: 상태색 빨강(--red, 탁한 벽돌색 #c45b5b: 불참·지출·미납)과 겹치지 않게 선명한 레드. 흰 글자 대비 4.67 */
html[data-theme="red"] {
  --kit: #d6383e; --kit-deep: #bf2f35; --kit-active: #a2262b; --sky: #fdeced;
  --kit-rgb: 214, 56, 62; --kit-grad-a: #de4349; --kit-grad-b: #c93238;
  --board: #2c1416; --board-sub: #d3abad; --board-rgb: 44, 20, 22;
  --att: #2d68c8; --att-tint: #eaf2ff; --att-ink: #1d4a8f; --att-rgb: 45, 104, 200;
}
html[data-theme="purple"] {
  --kit: #6a4fd0; --kit-deep: #563cb5; --kit-active: #452f96; --sky: #efebff;
  --kit-rgb: 106, 79, 208; --kit-grad-a: #7559dc; --kit-grad-b: #5a40bf;
  --board: #1f1640; --board-sub: #b2a8d6; --board-rgb: 31, 22, 64;
}
html[data-theme="charcoal"] {
  --kit: #454e5c; --kit-deep: #383f4b; --kit-active: #2b313a; --sky: #eceef1; /* 상단 카드(--board)와 구분되게 반 톤 밝은 차콜 */
  --kit-rgb: 69, 78, 92; --kit-grad-a: #4f5967; --kit-grad-b: #3c4451;
  --board: #121418; --board-sub: #a3a8b0; --board-rgb: 18, 20, 24;
  --lime: #f2c230; --lime-tint: #fcf1cc; --lime-ink: #6b5000;  /* 블랙 & 골드 */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* PC: 세로 스크롤바 자리를 늘 비워 둔다 → 내용이 짧은 화면(스크롤바 없음)과 긴 화면에서 제목·본문이 좌우로 밀리지 않는다 */
html { scrollbar-gutter: stable; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--kit); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.025em; }
h3 { font-size: 16px; font-weight: 700; }
code { background: var(--sky); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.hidden { display: none !important; }
.num-font { font-family: var(--num); letter-spacing: 0; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--kit) 45%, transparent); outline-offset: 2px; }

/* ── 상단 바 ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--sheet); color: var(--ink); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 8px 0 18px;
}
.topbar .club { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
/* 팀 로고 (설정 > 팀 로고): 상단 팀 이름 앞 */
.topbar .brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; } /* 로고·팀 이름 누르면 홈 */
.topbar .brand .club { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.topbar .icon-btn { color: var(--kit); }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; color: inherit;
}
.icon-btn:hover { background: var(--sky); }
.icon-btn svg { width: 22px; height: 22px; }

/* ── 하단 탭바 (모바일) / 상단 탭 (PC) ─── */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--sheet); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
nav.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--disabled); font-size: 11.5px; font-weight: 600;
}
nav.tabs a svg { width: 24px; height: 24px; }
nav.tabs a.active { color: var(--kit); }

main {
  max-width: 880px; margin: 0 auto;
  padding: 12px 16px 20px;
}
main.bare { max-width: none; padding: 0; }

/* 모든 화면 맨 아래 저작권 표시 (index·check·me·record.html). 총무 화면은 하단 탭바 높이만큼 띄운다 */
.site-foot { text-align: center; font-size: 11.5px; color: var(--muted); opacity: .75; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); }
.site-foot.app { padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); }

/* 화면 스타일은 두 가지: 폭 500px 이상 = PC 방식(위쪽 메뉴), 499px 이하 = 모바일 방식(아래 탭바). 다른 @media 도 같은 기준 */
@media (min-width: 500px) {
  nav.tabs {
    position: sticky; top: 54px; bottom: auto; height: 52px; padding: 0 max(5px, calc((100% - 880px) / 2 + 2px)); /* 메뉴 아이콘 = 제목 왼쪽 선 (메뉴 칸 안쪽 여백 14px) */
    display: flex; gap: 6px; border-top: 0; border-bottom: 1px solid var(--line);
  }
  nav.tabs a { flex-direction: row; font-size: 14.5px; gap: 7px; padding: 0 14px; position: relative; color: var(--muted); }
  nav.tabs a svg { width: 19px; height: 19px; }
  nav.tabs a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--kit); }
  main { padding-bottom: 28px; }
  /* 상단 바도 본문(880px) 폭에 맞춰 가운데로: 팀 로고·이름 = 제목 왼쪽 선, 설정 아이콘 = 본문 오른쪽 선
     (100vw 가 아니라 100%: 스크롤바 자리를 뺀 폭 기준이라 본문과 정확히 맞는다) */
  .topbar { padding: 0 max(8px, calc((100% - 880px) / 2 + 6px)) 0 max(18px, calc((100% - 880px) / 2 + 16px)); }
  .site-foot.app { padding-bottom: 32px; }
}

/* ── 페이지 머리 ─────────────────────── */
/* 제목 위치를 모든 화면에서 같게: 위쪽 기준 정렬 + 제목 줄 높이 = 오른쪽 버튼 높이(42px).
   (가운데 정렬이면 오른쪽 버튼·부제 유무에 따라 제목이 몇 px씩 오르내린다) */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.page-head h2 { font-size: 24px; font-weight: 800; min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; line-height: 1.3; }
.page-head > :not(:first-child) { flex-shrink: 0; }
.page-head > button.small { margin-top: 4px; } /* 34px 버튼을 42px 제목 줄 가운데에 */
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: -2px; }
.page-head .sub + .sub { margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.back svg { width: 18px; height: 18px; }

/* ── 섹션 / 시트 ─────────────────────── */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.section-head a { font-size: 14px; font-weight: 600; }
.sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; }
.sheet.pad { padding: 18px; }
.sheet + .sheet { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.empty a { font-weight: 600; }

/* ── 홈: 전광판 ──────────────────────── */
.scoreboard {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--board); color: #fff; border-radius: 18px;
  padding: 16px 18px 13px; /* 높이를 줄여 아래 내용이 첫 화면에 더 보이게 */
}
/* 하프라인 + 센터서클 분필 라인 */
.scoreboard::before, .scoreboard::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.scoreboard::before {
  width: 180px; height: 180px; right: -60px; top: -36px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .08);
}
.scoreboard::after { top: 0; bottom: 0; right: 44px; width: 2px; background: rgba(255, 255, 255, .08); }
.sb-label { font-size: 13px; font-weight: 700; color: var(--lime); }
.sb-note { color: var(--board-sub); }
.sb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } /* 제목 + 오른쪽 보조 숫자 (결산: 잔액) */
.sb-row em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--board-sub); white-space: nowrap; }
.sb-figure { font-family: var(--num); font-weight: 700; font-size: 44px; line-height: 1; margin: 4px 0 12px; letter-spacing: .005em; }
.sb-figure small { font-family: "Pretendard Variable", sans-serif; font-size: 17px; font-weight: 700; margin-left: 4px; }
.sb-figure.neg { color: var(--red); }
.sb-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--board-line); padding-top: 9px; }
.sb-split > div + div { border-left: 1px solid var(--board-line); padding-left: 14px; }
.sb-split span { display: block; font-size: 12.5px; color: var(--board-sub); }
.sb-split b { display: block; line-height: 1.25; font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.sb-split b small { font-family: "Pretendard Variable", sans-serif; font-size: 12.5px; margin-left: 2px; }
.sb-split em { display: block; font-style: normal; font-size: 12px; color: var(--board-sub); }

/* ── 경기 카드 (매치데이) ─────────────── */
.fixture { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: inherit; }
.fixture + .fixture { border-top: 1px solid var(--line); }
.fx-date {
  flex: none; width: 56px; text-align: center; border-radius: var(--r-md);
  background: var(--board); color: var(--board-sub); padding: 6px 0 5px; /* 다가오는 경기 = 작은 전광판 */
}
.fx-date b { color: var(--lime); }
.fx-date b { display: block; font-family: var(--num); font-size: 28px; line-height: 1; font-weight: 700; }
.fx-date span { font-size: 11.5px; font-weight: 700; }
.fixture.past .fx-date, .fixture.past .fx-date b { background: var(--muted-bg); color: var(--muted); } /* 지난 경기는 전광판 꺼짐 */
.fx-body { flex: 1; min-width: 0; }
.fx-body strong { display: block; font-size: 15.5px; font-weight: 700; }
.fx-body .meta { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side { flex: none; text-align: right; }
div.fixture { cursor: pointer; }
.fx-copy { flex: none; color: var(--kit); margin-right: -6px; }
.fx-count { font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1; }
.fx-count small { font-family: "Pretendard Variable", sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }

.next-match { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 18px 16px; }
.next-match .fixture { padding-bottom: 12px; }

/* 출석 막대 */
.bar { height: 6px; background: var(--muted-bg); border-radius: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--kit); border-radius: 6px; }

/* ── 버튼 / 입력 ─────────────────────── */
button, .btn {
  font: inherit; font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  border-radius: var(--r-md); border: 0; cursor: pointer;
  height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--sky); color: var(--kit);
}
button:hover { background: var(--muted-bg); }
button.primary { background: var(--kit); color: #fff; }
button.primary:hover { background: var(--kit-deep); }
button.primary:active { background: var(--kit-active); }
button.ghost { background: transparent; color: var(--muted); }
button.ghost:hover { background: var(--muted-bg); }
button.danger { background: var(--red-tint); color: var(--red); }
button.small { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
button.wide { width: 100%; }
button:disabled { background: var(--muted-bg); color: var(--disabled); cursor: default; }
button svg { width: 18px; height: 18px; }

input, select, textarea {
  font: inherit; font-size: 16px; /* iOS: 16px 미만이면 입력 시 화면 자동 확대 */
  color: var(--ink); width: 100%; height: 46px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
}
textarea { height: auto; min-height: 84px; padding: 11px 13px; resize: vertical; }
/*
 * iOS Safari 날짜·시간 입력칸 보정
 * - 자체 최소 너비 때문에 칸이 부모보다 넓어져 오른쪽으로 삐져나오고(→ 바텀시트가 옆으로 스크롤됨),
 *   값이 가운데 정렬되며, 빈 칸은 높이가 줄어드는 문제
 */
input[type="date"], input[type="time"], input[type="month"], input[type="datetime-local"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%;
  text-align: left; line-height: 44px;
}
input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 44px; line-height: 44px; }
input::-webkit-datetime-edit { padding: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--kit); box-shadow: 0 0 0 3px var(--sky); }
input[readonly] { background: var(--paper); color: var(--muted); }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > * { min-width: 0; } /* 내용이 길어도 칸이 그리드 밖으로 넘치지 않게 */
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.check input { width: 20px; height: 20px; accent-color: var(--kit); }

/* 필터 칩 */
.chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.chips button { flex-shrink: 0; white-space: nowrap; height: 34px; border-radius: 999px; padding: 0 14px; background: var(--muted-bg); color: var(--muted); border: 1px solid transparent; font-size: 13.5px; }
.chips button.on { background: var(--sheet); color: var(--kit); border-color: rgba(var(--kit-rgb), .45); font-weight: 700; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cat-chips button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.cat-chips button.on { background: var(--sky); border-color: var(--kit); color: var(--kit-active); }
.chips .chips-count { margin-left: auto; align-self: center; flex-shrink: 0; padding-left: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
/* 탭 아래 한 줄 요약 (회비: 등급별 월 회비, 연 누적) */
.tab-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 2px 12px; color: var(--muted); font-size: 13.5px; }
.tab-info b { color: var(--ink); }

/* ── 표 ──────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; padding-top: 12px; padding-bottom: 10px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--paper); }
.table-wrap { overflow-x: auto; }

/* 상태 배지 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--muted-bg); color: var(--muted); vertical-align: 1px; }
.badge.blue { background: var(--sky); color: var(--kit); }
.badge.green { background: var(--green-tint); color: var(--green); }
.badge.red { background: var(--red-tint); color: var(--red); }
.badge.amber { background: var(--amber-tint); color: var(--amber); }

/* 등번호 */
.jersey {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: inline-grid; place-items: center;
  font-family: var(--num); font-size: 19px; font-weight: 700; letter-spacing: 0;
  background: var(--sky); color: var(--kit);
}
.jersey.none { background: var(--muted-bg); color: var(--disabled); font-size: 15px; }

/* ── 출석부 (팀 시트) ────────────────── */
.tally { display: flex; gap: 18px; }
.tally div { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tally b { display: block; font-family: var(--num); font-size: 26px; line-height: 1.05; color: var(--ink); }
.tally .t-in b { color: var(--att); }
.tally .t-out b { color: var(--red); }

.att-list { list-style: none; margin: 0; padding: 0; }
.att-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.att-list li:last-child { border-bottom: 0; }
.attendance-instruction { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.att-list .name { flex: 1; min-width: 0; font-weight: 700; font-size: 16.5px; }
.att-list .name small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
/* 출석/불참: 미선택일 때도 두 버튼이 구분되도록 각각 테두리 + 간격 */
.seg { display: inline-flex; gap: 6px; flex-shrink: 0; }
.seg button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.seg button:hover { background: var(--muted-bg); color: var(--ink); border-color: #c9d8f0; }
.seg button.on[data-s="ATTEND"] { background: var(--att); border-color: var(--att); color: #fff; }
.seg button.on[data-s="ABSENT"] { background: var(--red); border-color: var(--red); color: #fff; }

/* 출석부 3열 이름 토글 (경기 상세·출석 링크 공용): 누르면 출석, 다시 누르면 해제(=불참). 넓은 화면은 칸 수가 늘어난다 */
.att-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 0 4px; }
@media (min-width: 500px) { .att-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
/* 폰 3열: 이름이 잘리지 않게 체크 동그라미는 숨긴다 (선택은 파란 바탕·테두리로 충분히 구분됨) */
@media (max-width: 499px) { .att-chip .ck { display: none; } .att-chip { justify-content: flex-start; } }
.att-chip {
  display: flex; align-items: center; gap: 5px; min-width: 0; height: 46px; padding: 0 6px 0 7px;
  border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.att-chip .no { flex: none; width: 18px; text-align: right; font-family: var(--num); font-size: 12.5px; color: var(--disabled); }
.att-chip .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip .ck { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; }
.att-chip:hover:not(:disabled) { border-color: #c9d8f0; }
/* 선택: 저장 버튼(진한 파랑 채움)과 헷갈리지 않게 옅은 파랑 바탕 + 2px 테두리 + 파란 원 체크 */
.att-chip.on { background: var(--att-tint); border: 2px solid var(--att); padding: 0 5px 0 6px; color: var(--att-ink); }
.att-chip.on .no { color: var(--att); }
.att-chip.on .ck { background: var(--att); border-color: var(--att); color: #fff; }
.att-chip:disabled { cursor: default; }
.att-chip:disabled:not(.on) { color: var(--muted); }

/* 섹션 제목 오른쪽 접기/펼치기 아이콘 (펼침 = 위쪽 화살표) */
.section-head:has(.head-toggle) { align-items: center; }
.head-toggle {
  flex: none; width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--sheet); color: var(--muted); box-shadow: none; cursor: pointer;
}
.head-toggle:hover { color: var(--kit); border-color: #c9d8f0; }
.head-toggle svg { width: 18px; height: 18px; transition: transform .18s; }
.head-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.section-head .badge { align-self: center; }
/* 경기 상세: 밴드·당근 공지 문구 (기본 숨김) */
#notice-text { font-size: 16px; line-height: 1.55; min-height: 320px; }
/* 공지 버튼: 복사(전체) / 밴드 · 당근(반반) / 기본 문구로(전체) */
.notice-actions { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; } /* 복사 · 밴드 · 당근 한 줄 */
.notice-actions button { height: 46px; white-space: nowrap; gap: 6px; }
.notice-actions button svg { width: 18px; height: 18px; }
.notice-actions-hint { margin: 10px 0 0 !important; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; } /* 위 버튼 그림자와 겹치지 않게 띄움 */
/* 공지 문구 칸 위 도구 줄: 안내 + 작은 알약 버튼(날씨 반영·되돌리기) */
.notice-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.notice-tools .muted { font-size: 12.5px; }
.notice-tool-btns { display: flex; gap: 6px; margin-left: auto; }
.pill-btn { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); font-size: 13px; font-weight: 700; gap: 4px; box-shadow: none; }
.pill-btn:hover { background: var(--line); color: var(--ink); }
.pill-btn.kit { background: var(--sky); color: var(--kit); }
.pill-btn.kit:hover { background: rgba(var(--kit-rgb), .16); color: var(--kit); }
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn:disabled { opacity: .7; cursor: progress; }

.save-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 5;
  margin-top: 14px; display: flex; gap: 8px;
}
.save-bar button.primary { flex: 1; height: 50px; font-size: 16px; box-shadow: 0 8px 20px rgba(83, 109, 131, .3); }
@media (min-width: 500px) { .save-bar { bottom: 16px; } }

.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; }

/* ── 회비 현황표 ─────────────────────── */
.matrix th, .matrix td { text-align: center; padding: 7px 3px; font-size: 13px; border-bottom-color: var(--muted-bg); }
.matrix th { font-family: var(--num); font-size: 15px; color: var(--muted); }
.matrix th.now { color: var(--kit); }
.matrix td.name, .matrix th.name { text-align: left; position: sticky; left: 0; background: var(--sheet); white-space: nowrap; z-index: 1; padding-right: 12px; font-family: inherit; box-shadow: 8px 0 8px -8px rgba(31, 41, 55, .18); }
.matrix td.name { font-weight: 700; font-size: 14px; }
.matrix tfoot th { font-size: 16px; color: var(--ink); border-bottom: 0; }
.cell {
  width: 30px; height: 30px; border-radius: 9px; padding: 0; vertical-align: middle;
  background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; font-size: 0;
}
/* 미납(입력 가능): 흰 바탕 + 테두리, 마우스를 올리면 강조 */
.cell:hover { background: var(--sky); box-shadow: inset 0 0 0 1.5px var(--kit); }
.cell.paid { background: var(--kit); box-shadow: none; }
.cell.paid:hover { background: var(--kit-deep); }
.cell.paid::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.cell.due { background: var(--red-tint); box-shadow: inset 0 0 0 1.5px var(--red); }
.cell.due:hover { background: #f2dada; }
/* 가입 전(입력 불가): 회색 채움, 테두리 없음 */
.cell.na { display: inline-block; vertical-align: middle; background: var(--muted-bg); box-shadow: none; cursor: not-allowed; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin: 12px 2px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line); }
.legend i.paid { background: var(--kit); }
.legend i.due { background: var(--red-tint); box-shadow: inset 0 0 0 1.5px var(--red); }
.legend i.paid { box-shadow: none; }
.legend i.na { background: var(--muted-bg); box-shadow: none; }

/* ── 장부 ────────────────────────────── */
.month-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.month-switch b { font-family: var(--num); font-size: 18px; min-width: 70px; text-align: center; }
.month-switch .icon-btn { width: 34px; height: 34px; color: var(--muted); }
.month-switch .icon-btn:hover { background: var(--paper); }

.totals { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); }
.totals > div { padding: 14px 16px; }
.totals > div + div { border-left: 1px solid var(--line); }
.totals span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.totals b { font-family: var(--num); font-size: 24px; font-weight: 700; letter-spacing: 0; }
.totals .in b { color: var(--green); }
.totals .out b { color: var(--red); }

.tx { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tx:last-child { border-bottom: 0; }
.tx-day { flex: none; width: 40px; text-align: center; font-family: var(--num); font-size: 20px; font-weight: 700; color: var(--muted); line-height: 1; }
.tx-day small { display: block; font-family: "Pretendard Variable", sans-serif; font-size: 11px; font-weight: 600; }
.tx-body { flex: 1; min-width: 0; }
.tx-body strong { font-weight: 700; }
.tx-body .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amt { font-family: var(--num); font-size: 20px; font-weight: 700; letter-spacing: 0; }
.tx-amt.in { color: var(--green); }
.tx-amt.out { color: var(--ink); }

/* ── 다이얼로그 (모바일: 바텀시트) ────── */
dialog {
  border: 0; padding: 0; color: var(--ink);
  width: min(520px, 100vw); max-width: 100vw; border-radius: 22px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, .25);
}
dialog::backdrop { background: rgba(31, 41, 55, .45); }
dialog .dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 6px 22px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
dialog .dlg-x { flex-shrink: 0; width: 34px; height: 34px; padding: 0; border-radius: 10px; background: var(--muted-bg); color: var(--muted); }
dialog .dlg-x:hover { background: var(--line); color: var(--ink); }
label.field > span .req, div.field > span .req { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(var(--kit-rgb), .1); color: var(--kit); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.dlg-danger { display: flex; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dlg-danger .dlg-delete { height: 36px; padding: 0 12px; background: transparent; color: var(--red); font-size: 14px; font-weight: 600; }
.dlg-danger .dlg-delete:hover { background: var(--red-tint); }
dialog .dlg-body { padding: 14px 22px 18px; max-height: 66vh; overflow-y: auto; overflow-x: hidden; }
dialog .dlg-foot { padding: 12px 22px 22px; display: flex; gap: 8px; }
dialog .dlg-foot button { flex: 1; }
dialog .dlg-foot:empty { display: none; }
/* 등록 창의 짧은 드롭다운 → 알약 칩 (core/ui.js selectsToChips). 회원 명단 검색 칩과 같은 모양 */
.pick-chips { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.pick-chips button { min-width: 0; height: 38px; padding: 0 4px; border-radius: 999px; background: var(--muted-bg); color: var(--muted); border: 1px solid transparent; box-shadow: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pick-chips button:hover { background: var(--muted-bg); color: var(--ink); }
.pick-chips button.on { background: var(--sheet); color: var(--kit); border-color: rgba(var(--kit-rgb), .45); box-shadow: 0 1px 3px rgba(24, 45, 78, .1); }
@media (max-width: 499px) {
  dialog { margin: auto 0 0; width: 100vw; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: sheet-up .22s ease-out; }
  .form-grid { grid-template-columns: 1fr; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* ── 토스트 ──────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 8px); max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; z-index: 100;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--red); }

/* ── 로그인 ──────────────────────────── */
.login-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px 64px;
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%);
}
/* 배경: 옅은 팀 색 + 경기장 라인 (센터서클·하프라인) */
.login-wrap::before { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; border-radius: 50%; border: 2px solid rgba(var(--kit-rgb), .12); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.login-wrap::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; height: 2px; background: rgba(var(--kit-rgb), .12); }
.login { width: min(380px, 100%); background: var(--sheet); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px 24px; box-shadow: 0 16px 40px rgba(var(--kit-rgb), .12); }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); flex: none; }
.login-mark img { width: 34px; height: 34px; }
.login-eyebrow { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: var(--kit); }
.login h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 0; }
.login p { margin: 14px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 6px; }
.login-field > span:first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
.login-field input { height: 48px; font-size: 16px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; min-height: 0; padding: 0 10px; font-size: 13px; background: transparent; color: var(--muted); box-shadow: none; }
.login-submit { height: 50px; font-size: 16px; margin-top: 6px; }
.login .login-help { margin: 16px 0 0; font-size: 12.5px; text-align: center; }
.login-foot { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 11.5px; color: var(--muted); opacity: .8; }
/* 로그인·인쇄처럼 메뉴 없는 화면은 아래 공통 저작권 줄 대신 화면 안의 것을 쓴다 */
main.bare + .site-foot { display: none; }

@media (max-width: 499px) {
  .hide-sm { display: none; }
  .page-head h2 { font-size: 22px; }
  .totals b { font-size: 21px; }
  .totals > div { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── 회원 셀프 출석 페이지 ───────────── */
.check-hero { background: var(--board); color: #fff; padding: 22px 20px 26px; position: relative; overflow: hidden; isolation: isolate; }
.check-hero::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .08); right: -90px; bottom: -150px; }
.check-hero .club { font-size: 14px; font-weight: 700; color: var(--lime); }
.check-hero h1 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.check-hero .where { color: var(--board-sub); margin-top: 2px; }
.check-hero .tally { margin-top: 16px; }
.check-hero .tally div { color: var(--board-sub); }
.check-hero .tally b { color: #fff; }
.check-main { max-width: 560px; margin: -12px auto 0; padding: 0 14px 40px; position: relative; }
.check-status { flex: none; width: 54px; text-align: right; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.check-status.attend { color: var(--att); }
.check-status.absent { color: var(--red); }
.closed-note { background: var(--red-tint); color: var(--red); font-weight: 700; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; }
.att-list li.me { background: var(--sky); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.search { margin: 12px 0 2px; }
/* 검색 칸 + 오른쪽 안 ✕ (글자가 있을 때만) */
.search-wrap { position: relative; margin: 12px 0 2px; }
.search-wrap .search { margin: 0; width: 100%; padding-right: 44px; }
.search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0; padding: 0; display: grid; place-items: center; background: none; box-shadow: none; color: var(--muted); }
.search-clear[hidden] { display: none; }
.search-clear svg { width: 20px; height: 20px; }
.search-clear circle { fill: var(--disabled); stroke: none; opacity: .55; }
.search-clear path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.search-clear:hover circle { opacity: .85; }
.attendance-help { text-align: center; margin: 14px 0; }
.att-chip[hidden] { display: none; } /* 출석 체크 이름 찾기로 숨긴 칸 */
.check-save-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 12px; }
.check-save-bar button { height: 50px; font-size: 16px; box-shadow: 0 8px 20px rgba(83, 109, 131, .3); }

/* ── 설정: 등급별 회비 ───────────────── */
.field-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.grade-fees { border: 1px solid var(--line); border-radius: var(--r-md); }
/* 설정 등급 편집: 1줄 [이름 · N명(기본) · ✕] / 2줄 [월회비 · 회비 대상]. 이름·금액 칸은 같은 열이라 폭이 같다 (최대 240px) */
.grade-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; padding: 12px 10px 12px 12px;
  grid-template-areas: "name meta del" "fee req .";
}
@media (min-width: 500px) { /* 넓은 화면: 입력 칸은 240px 까지, ✕ 는 오른쪽 끝 */
  .grade-row { grid-template-columns: minmax(0, 240px) auto 1fr auto; grid-template-areas: "name meta . del" "fee req . ."; }
}
.grade-row + .grade-row { border-top: 1px solid var(--line); }
.grade-name { grid-area: name; width: 100%; min-width: 0; height: 40px; font-weight: 700; }
.grade-meta { grid-area: meta; display: flex; align-items: center; gap: 5px; }
.grade-count { padding: 3px 9px; border-radius: 99px; background: var(--muted-bg); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.grade-def { display: none; padding: 3px 8px; border-radius: 99px; background: var(--sky); color: var(--kit); font-size: 11.5px; font-weight: 700; }
.grade-row:first-child .grade-def { display: inline; } /* 맨 위 등급 = 새 회원 기본 등급 */
.grade-del { grid-area: del; width: 30px; height: 30px; color: var(--muted); }
.grade-del svg { width: 17px; height: 17px; }
.grade-del[data-locked] { opacity: .3; }
.grade-del:not([data-locked]):hover { color: var(--red); background: var(--red-tint); }
.grade-fee { grid-area: fee; position: relative; display: block; min-width: 0; }
.grade-fee input { width: 100%; height: 40px; padding-right: 52px; text-align: right; font-family: var(--num); font-size: 17px; font-weight: 700; }
.grade-fee span, .grade-fee em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted); font-style: normal; pointer-events: none; }
.grade-fee em { display: none; left: 12px; right: auto; color: var(--amber); font-weight: 700; }
.grade-row.off .grade-fee input { color: transparent; background: var(--muted-bg); } /* 면제면 금액 대신 '면제' (금액은 남겨 둠: 다시 켜면 그대로) */
.grade-row.off .grade-fee span { display: none; }
.grade-row.off .grade-fee em { display: block; }
/* 스위치 (체크박스 모양 바꿈) */
.switch { grid-area: req; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + i { background: var(--kit); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--kit); outline-offset: 2px; }

/* ── 회원 본인 회비 조회 (me.html) ───── */
.me-status { border-radius: var(--r-md); padding: 14px 16px; }
.me-status b { display: block; font-size: 17px; font-weight: 800; }
.me-status span { font-size: 14px; }
.me-status.warn { background: var(--red-tint); color: var(--red); }
.me-status.ok { background: var(--green-tint); color: var(--green); }
.me-this { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.me-bank { display: flex; align-items: center; gap: 10px; background: var(--sky); border-radius: var(--r-md); padding: 12px 14px; }
.me-bank > div { flex: 1; min-width: 0; }
.me-bank span { display: block; font-size: 12.5px; }
.me-bank b { display: block; word-break: break-all; }
.me-bank button { background: var(--sheet); }
.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.me-month { border-radius: var(--r-md); padding: 10px 6px; text-align: center; background: var(--muted-bg); color: var(--disabled); }
.me-month b { display: block; font-family: var(--num); font-size: 20px; line-height: 1.1; }
.me-month span { font-size: 12px; font-weight: 700; }
.me-month.paid { background: var(--kit); color: #fff; }
.me-month.unpaid { background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.me-month.due { background: var(--sheet); color: var(--kit); box-shadow: inset 0 0 0 1.5px var(--kit); }
.me-month.upcoming { background: var(--sheet); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* 회원 수정 창: 회비 조회 링크 */
.member-link { background: var(--sky); border-radius: var(--r-md); padding: 12px 14px; }
.member-link .row { margin-top: 8px; }

/* ── 장부: 수입·지출 / 찬조 전환 ─────── */
/* 화면 전환 탭: 회색 트랙 + 선택 칸만 흰색 (화면 폭에 맞춰 같은 너비로 나눔).
   선택 칸(.seg-ind)은 core/tabcard.js 가 넣고 --i(선택 순번)/--n(탭 수)로 위치를 잡아 미끄러지듯 이동 */
.seg-tabs { position: relative; display: flex; width: 100%; padding: 3px; margin: -4px 0 14px; background: var(--muted-bg); border: 1px solid var(--line); border-radius: 11px; box-shadow: none; }
.seg-tabs a, .seg-tabs button { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; min-height: 0; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none; transition: color .2s; }
.seg-tabs a:hover, .seg-tabs button:hover { background: transparent; color: var(--ink); }
.seg-tabs a.on, .seg-tabs button.on { color: var(--ink); font-weight: 700; }
.seg-tabs:not(:has(.seg-ind)) a.on, .seg-tabs:not(:has(.seg-ind)) button.on { background: var(--sheet); box-shadow: 0 1px 2px rgba(24, 45, 78, .1), 0 0 0 1px var(--line); }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 1)); transform: translateX(calc(var(--i, 0) * 100%)); background: var(--sheet); border-radius: 8px; box-shadow: 0 1px 2px rgba(24, 45, 78, .1), 0 0 0 1px var(--line); pointer-events: none; }
.seg-tabs.ready .seg-ind { transition: transform .24s cubic-bezier(.3, .7, .2, 1); }
/* 카드 머리 탭: 탭과 그 아래 화면 내용을 흰 카드 하나로 감쌈 (core/tabcard.js 가 감싼다) */
.tab-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 2px 10px rgba(24, 45, 78, .04); }
.tab-head { padding: 8px; background: #fafcff; border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tab-head .seg-tabs { margin: 0; }
.tab-body { padding: 14px 10px 16px; min-width: 0; }
.tab-body > :first-child, .tab-body > [role="tabpanel"] > :first-child { margin-top: 0; }
.tab-body .sheet { box-shadow: none; border-radius: var(--r-md); }
.matrix-hint { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.totals.two { grid-template-columns: repeat(2, 1fr); }
.badge.goods { white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }

/* 입력창 안의 2지선다 (회원/외부, 현금/물품) */
/* 라디오 선택(찬조자 회원/외부, 현금/물품): 등록 창 알약 칩(.pick-chips)과 같은 모양 — 탭(회색 트랙)과 구분 */
.seg-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.seg-radio label { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 999px; background: var(--muted-bg); border: 1px solid transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.seg-radio input { position: absolute; inset: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.seg-radio label:has(input:checked) { background: var(--sheet); color: var(--kit); border-color: rgba(var(--kit-rgb), .45); box-shadow: 0 1px 3px rgba(24, 45, 78, .1); }
.seg-radio label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--kit) 45%, transparent); }
div.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ── 선택 상자(select) ────────────────── */
/* 닫힌 상태: 모든 브라우저 공통. 기본 화살표 대신 앱 스타일 화살표 */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b8c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select:hover { border-color: #c9d6ea; }

/* 펼친 목록: 커스터마이즈 가능한 select 지원 브라우저(크롬·엣지 135+)에서만 적용.
   지원하지 않는 브라우저(iOS 사파리 등)는 기기 기본 선택창을 그대로 쓴다. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; }
  select::picker-icon { display: none; }
  select:open { border-color: var(--kit); box-shadow: 0 0 0 3px var(--sky); }
  ::picker(select) {
    border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-top: 6px;
    background: var(--sheet); box-shadow: 0 14px 36px rgba(26, 36, 64, .16);
    max-height: min(320px, 50vh); overflow-y: auto;
  }
  select option {
    display: flex; align-items: center; gap: 8px;
    min-height: 42px; padding: 0 12px; border-radius: 9px;
    font-size: 15px; color: var(--ink); cursor: pointer;
  }
  select option:hover, select option:focus-visible { background: var(--muted-bg); outline: none; }
  select option:checked { background: var(--sky); color: var(--kit); font-weight: 700; }
  select option::checkmark { order: 1; margin-left: auto; color: var(--kit); }
  select option:disabled { color: var(--disabled); }
}

/* 숫자 입력칸의 기본 증감 화살표 숨김 (금액은 키보드로 입력) */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* 링크(a)를 버튼처럼: 문자앱 열기 등 */
a.btn { text-decoration: none; color: var(--kit); }
a.btn.primary { background: var(--kit); color: #fff; }
a.btn.primary:hover { background: var(--kit-deep); }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* 홈 전광판: 회원 통계 (3칸) */
.sb-note { font-size: 13px; color: var(--muted); margin: -8px 0 10px; }
.sb-split.three { grid-template-columns: repeat(3, 1fr); }

/* ── 장부: 잔액 카드 / 통장식 목록 ───── */
.bal-card { background: var(--sky); border-radius: 18px; padding: 16px 18px 14px; }
.bal-label { font-size: 13.5px; font-weight: 700; color: var(--kit); }
.bal-figure { font-family: var(--num); font-weight: 700; font-size: 40px; line-height: 1.05; margin-top: 2px; }
.bal-figure small { font-family: "Pretendard Variable", sans-serif; font-size: 17px; margin-left: 3px; }
.bal-figure.neg { color: var(--red); }
.bal-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.bal-split { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(var(--kit-rgb), .18); }
.bal-split > div + div { border-left: 1px solid rgba(var(--kit-rgb), .18); padding-left: 12px; }
.bal-split span { display: block; font-size: 12.5px; color: var(--muted); }
.bal-split b { font-family: var(--num); font-size: 21px; font-weight: 700; letter-spacing: 0; }
.bal-split b.in { color: var(--green); }
.bal-split b.out { color: var(--red); }

.ledger-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.quick .muted { margin-right: 2px; }
.quick button { border-radius: 999px; }

.tx-right { text-align: right; flex: none; }
.tx-bal { font-family: var(--num); font-size: 13px; color: var(--disabled); letter-spacing: 0; }
.dues-row .badge { vertical-align: 1px; }
.dues-row[aria-expanded="true"] { border-bottom-style: dashed; }
.dues-detail { padding: 2px 0 8px 52px; border-bottom: 1px solid var(--line); }
.dues-item { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 5px 0; }
.dues-item > span:last-child { font-family: var(--num); font-size: 16px; color: var(--green); }

/* ── 영수증 인식 (지출 입력창 상단) ─────── */
.ocr-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px; margin-bottom: 16px;
  border: 1px dashed #bcd0ef; border-radius: var(--r-md); background: var(--muted-bg);
}
.ocr-bar button { background: #fff; border: 1px solid var(--line); }
.ocr-bar button:hover { background: var(--sky); }
.ocr-bar .ocr-status { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ocr-bar .ocr-status.ok { color: var(--green); font-weight: 600; }
.ocr-bar .ocr-status.err { color: var(--red); font-weight: 600; }
.ocr-bar.busy button { pointer-events: none; opacity: .5; }
.ocr-bar.busy .ocr-status::before {
  content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid var(--kit); border-right-color: transparent; border-radius: 50%;
  animation: ocr-spin .8s linear infinite;
}
@keyframes ocr-spin { to { transform: rotate(360deg); } }
/* PC(마우스)에서는 카메라 버튼 대신 '사진 선택'만 */
@media (hover: hover) and (pointer: fine) { .ocr-bar .ocr-cam { display: none; } }
.ocr-filled { animation: ocr-flash 1.6s ease-out; }
@keyframes ocr-flash { 0%, 40% { background: #e6f4ee; border-color: var(--green); } 100% { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .ocr-filled, .ocr-bar.busy .ocr-status::before { animation: none; } }

/* ── 메인: 다가오는 생일 ─────────────── */
.birthday-list { list-style: none; margin: 0; padding: 4px 16px; }
.birthday-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.birthday-list li + li { border-top: 1px solid var(--line); }
.birthday-list .bd-date { width: 44px; flex-shrink: 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.15; }
.birthday-list .bd-date b { display: block; font-family: var(--num); font-size: 22px; color: var(--ink); }
.birthday-list li.today .bd-date b { color: var(--lime-ink); }
.badge.lime { background: var(--lime-tint); color: var(--lime-ink); }
.birthday-list .bd-name { flex: 1; min-width: 0; }
.birthday-list .bd-name strong { font-size: 15.5px; }
.birthday-list .bd-name small { display: block; color: var(--muted); font-size: 12.5px; }
.birthday-list .bd-dday { font-family: var(--num); font-weight: 700; font-size: 16px; color: var(--muted); }
/* 회원 명단: 나이대 필터는 상태 필터보다 한 단계 작게 */
.chips.age { margin-top: -6px; padding-top: 5px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 6px; } /* 5칸(전체·2·30대·40대·50대·60대+) + 나이 기준 표시를 한 줄로 */
.chips.age .chips-count { padding-left: 2px; white-space: nowrap; font-size: 12.5px; }
.chips.age button { height: 34px; padding: 0; min-width: 0; font-size: 13.5px; letter-spacing: -0.02em; } /* 높이는 위 상태 칩과 같게 */
/* 나이대 = 여러 개 고르는 체크박스: 상태 칩(하나만 고르는 둥근 알약)과 모양을 다르게.
   네모난 칸 + 고르면 연한 팀 색 바탕·테두리 + 오른쪽 위 작은 체크 */
.chips.age button { position: relative; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); box-shadow: none; font-weight: 500; }
.chips.age button:hover { border-color: rgba(var(--kit-rgb), .45); }
.chips.age button.on { background: var(--sky); border-color: var(--kit); color: var(--kit); font-weight: 700; box-shadow: none; }
.chips.age button.on:not([data-age=""])::after {
  content: ""; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--kit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 9px no-repeat;
  box-shadow: 0 0 0 2px var(--sheet);
}
/* '전체' = 아무것도 안 고른 상태 (체크 표시 없이 글자만 강조) */
.chips.age button[data-age=""].on { background: var(--muted-bg); border-color: transparent; color: var(--ink); }
@media (min-width: 500px) { .chips.age { grid-template-columns: repeat(5, minmax(64px, 88px)) 1fr; } .chips.age .chips-count { justify-self: end; } } /* 넓으면 버튼 폭을 제한하고 나이 기준은 오른쪽 끝 */

/* ── 시각 스타일 정리 ─────────────────── */
body { background: var(--paper); }
.topbar {
  background: var(--sheet); /* 불투명: 반투명이면 스크롤할 때 진한 카드·경기장 색이 비친다 */
  box-shadow: 0 3px 14px rgba(24, 45, 78, .035);
}
nav.tabs {
  background: var(--sheet);
  box-shadow: 0 -5px 20px rgba(24, 45, 78, .045);
}
nav.tabs a { margin: 5px 4px; border-radius: 14px; transition: color .16s, background .16s; }
nav.tabs a.active { background: var(--sky); color: var(--kit-deep); }
.page-head h2 { letter-spacing: -.035em; }
.section { margin-top: 30px; }
.section-head { margin-bottom: 11px; }
.sheet, .next-match {
  border-color: #e2e9f2;
  box-shadow: 0 5px 18px rgba(24, 45, 78, .045);
}
.scoreboard { box-shadow: 0 12px 28px rgba(var(--board-rgb), .16); }
.bal-card { box-shadow: inset 0 0 0 1px rgba(var(--kit-rgb), .08); }
button, .btn { transition: background .16s, color .16s, box-shadow .16s, transform .12s; }
button.primary, a.btn.primary {
  background: linear-gradient(135deg, var(--kit-grad-a), var(--kit-grad-b));
  box-shadow: 0 4px 10px rgba(var(--kit-rgb), .17);
}
button.primary:hover, a.btn.primary:hover {
  background: linear-gradient(135deg, var(--kit), var(--kit-deep));
  box-shadow: 0 6px 14px rgba(var(--kit-rgb), .22);
}
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button:disabled { opacity: .68; box-shadow: none; }
input, select, textarea { border-color: #dce5f0; }
input:hover, select:hover, textarea:hover { border-color: #c7d5e7; }
.badge { border-radius: 999px; padding: 3px 9px; }
.chips button.on { box-shadow: 0 1px 3px rgba(24, 45, 78, .1); }
.seg button.on[data-s="ATTEND"] { box-shadow: 0 3px 8px rgba(var(--att-rgb), .2); }
.seg button.on[data-s="ABSENT"] { box-shadow: 0 3px 8px rgba(196, 91, 91, .18); }
.att-list li { transition: background .16s; }
.matrix .cell.na:disabled {
  opacity: .78;
  background: repeating-linear-gradient(135deg, #eef2f7 0, #eef2f7 4px, #f7f9fc 4px, #f7f9fc 8px);
  box-shadow: none;
  cursor: not-allowed;
}
.tx { transition: background .16s; }
.tx:hover { background: #f8faff; }
.month-switch { box-shadow: 0 2px 8px rgba(24, 45, 78, .04); }
dialog { border: 1px solid rgba(223, 231, 241, .9); }
dialog::backdrop { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (min-width: 500px) {
  nav.tabs { box-shadow: none; }
  nav.tabs a { margin: 0; border-radius: 0; }
  nav.tabs a.active { background: transparent; }
}

/* 플랫폼 관리자: 팀 목록 (하단 메뉴가 없으므로 아래 여백 축소, 설정 아이콘 숨김) */
main.platform { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.topbar.platform .icon-btn { display: none; }
.team-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-main strong { font-size: 16.5px; }
.team-main .meta { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

/* 설정: 팀 색상 선택 */
.theme-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.theme-pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
}
.theme-pick .sw { display: flex; width: 44px; height: 26px; border-radius: 8px; overflow: hidden; }
.theme-pick .sw i { flex: 1; }
.theme-pick.on { border: 2px solid var(--kit); padding: 9px 3px 7px; background: var(--sky); }

/* ── 경기 결과 (screens/game-result.js) ── */
.match-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px;
  background: var(--board); color: #fff; border-radius: var(--r-lg); padding: 16px 18px;
}
.match-summary b { display: block; font-family: var(--num); font-size: 32px; line-height: 1.1; }
.match-summary .ms-side { font-size: 13px; color: var(--board-sub); text-align: right; }
.match-summary .ms-side b { display: inline; font-size: 18px; color: #fff; }
.match-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.match-row:last-child { border-bottom: 0; }
.mr-head { display: flex; align-items: center; gap: 10px; }
.mr-seq { flex: none; width: 40px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mr-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.mr-title .muted { font-weight: 500; }
.mr-score { flex: none; font-family: var(--num); font-size: 26px; font-weight: 700; }
.mr-result { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.mr-result.win { background: var(--att-tint); color: var(--att-ink); }
.mr-result.draw { background: var(--muted-bg); color: var(--muted); }
.mr-result.loss { background: var(--red-tint); color: var(--red); }
.mr-result.scrim { background: var(--lime-tint); color: var(--lime-ink); }
.mr-goals { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 50px; }
.mr-goals span { padding: 5px 9px; border-radius: 8px; background: var(--paper); font-size: 13px; }
.mr-memo { padding-left: 50px; font-size: 13px; color: var(--muted); }
.mr-edit { align-self: flex-start; margin-left: 42px; height: 30px; }
.match-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.match-actions button { height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* 게임 입력 창 */
.score-panel { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 12px; }
.sp-team { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.sp-team > span { font-size: 13px; font-weight: 700; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-team > b, .sp-step b { font-family: var(--num); font-size: 44px; line-height: 1; color: var(--kit); }
.sp-step b { color: var(--ink); min-width: 34px; text-align: center; }
.sp-team em { font-style: normal; font-size: 12px; color: var(--muted); }
.sp-step { display: flex; align-items: center; gap: 4px; }
.sp-step .icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; color: var(--muted); }
.sp-colon { text-align: center; font-family: var(--num); font-size: 28px; color: var(--disabled); }
.goal-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.goal-row.on { border: 2px solid var(--kit); background: var(--sky); padding: 7px 9px; }
.gr-no { width: 16px; font-family: var(--num); font-size: 18px; font-weight: 700; color: var(--kit); }
.gr-text { flex: 1; min-width: 0; font-size: 14px; }
.gr-del { width: 32px; height: 32px; font-size: 14px; color: var(--muted); }
.cat-chips.pick { margin: 6px 0 12px; }
.cat-chips button.dashed { border-style: dashed; color: var(--muted); }
.seg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 12px; }
.seg-pick button { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.seg-pick button.on { border: 2px solid var(--kit); background: var(--sky); color: var(--kit-active); }
.muted { color: var(--muted); }

/* ── 통계 > 시즌 기록 (screens/records.js) ── */
.record-board { display: flex; flex-direction: column; justify-content: space-between; gap: 9px; }
.record-board, .season-board, .att-board { min-height: 168px; } /* 통계 > 출석·기록·결산 카드 높이 맞춤 */
.rb-wdl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.rb-wdl > div + div { border-left: 1px solid var(--board-line); }
.rb-wdl > div { display: flex; align-items: baseline; justify-content: center; gap: 3px; } /* 숫자 옆에 승·무·패 */
.rb-wdl b { font-family: var(--num); font-size: 34px; line-height: 1.05; }
.rb-wdl span { font-size: 13px; color: var(--board-sub); }
.rb-foot { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--board-line); font-size: 13px; color: var(--board-sub); }
.rb-foot b { color: #fff; }
.rb-recent { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--board-sub); }
.rb-recent span { margin-right: 4px; }
.rb-recent i { width: 21px; height: 21px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.rb-recent i.win { background: var(--att); }
.rb-recent i.draw { background: #5d6b85; }
.rb-recent i.loss { background: #b24c4c; }
.rank-list .rank { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--num); font-weight: 700; color: var(--muted); }
.rank-list .rank.top { background: var(--sky); color: var(--kit); }
.rank-list li:first-child .rank.top { background: var(--board); color: var(--lime); }
.rank-val { font-size: 24px; color: var(--ink); }
.rank-val small { font-family: "Pretendard Variable", sans-serif; font-size: 13px; color: var(--muted); margin-left: 2px; }
.point-list { display: flex; flex-direction: column; gap: 10px; }
.pt-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 14px; }
.pt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--muted-bg); }
.pt-bar i, .pt-legend i { display: block; }
.pt-bar .g, .pt-legend .g { background: var(--kit); }
.pt-bar .a, .pt-legend .a { background: rgba(var(--kit-rgb), .4); }
.pt-row b { text-align: right; font-size: 18px; }
.pt-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); padding-left: 80px; }
.pt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.opp-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.opp-row:last-child { border-bottom: 0; }
.opp-name { flex: 1; min-width: 0; font-weight: 700; }
.opp-wdl { font-weight: 700; }


/* ───────────── 통계 > 결산 (screens/season.js) ───────────── */
.ss-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ss-total span { font-weight: 700; }
.ss-total .in { color: var(--green); }
.ss-total .out { color: var(--red); }
.ss-total b { font-family: var(--num); font-size: 20px; }
.ss-stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.ss-stack i { background: var(--green); min-width: 4px; }
.ss-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.ss-bars { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 13.5px; }
.ss-bars > span:first-child, .ss-bars > span:nth-child(3n+1) { white-space: nowrap; max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; }
.ss-bars b { font-family: var(--num); text-align: right; }
.ss-bar { height: 10px; background: var(--red-tint); border-radius: 5px; overflow: hidden; }
.ss-bar i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.ss-dues { display: flex; align-items: center; gap: 16px; }
.ss-dues > div:last-child > * + * { margin-top: 2px; }
.ss-ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--kit) calc(var(--p) * 1%), var(--line) 0); }
.ss-ring b { width: 64px; height: 64px; border-radius: 50%; background: var(--sheet); display: grid; place-items: center; font-family: var(--num); font-size: 19px; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-chips span { background: var(--red-tint); color: var(--red); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.ss-chips .more { background: var(--line); color: var(--muted); }
.ss-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ss-tiles.two { grid-template-columns: 1fr 1fr; }
.ss-tiles > div { background: rgba(var(--kit-rgb), .07); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ss-tiles span { display: block; font-size: 12px; color: var(--muted); }
.ss-tiles strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-tiles b { font-family: var(--num); font-size: 22px; }
.ss-tiles b small { font-family: "Pretendard Variable", sans-serif; font-size: 12px; margin-left: 2px; }
.ss-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 70px; }
.ss-months i { display: block; background: rgba(var(--kit-rgb), .35); border-radius: 4px 4px 0 0; }
.ss-months i.max { background: var(--kit); }
.ss-month-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.ss-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; text-align: center; }
.ss-podium > div { position: relative; min-width: 0; }
.ss-podium strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-podium span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.ss-podium i { display: grid; place-items: center; height: 44px; border-radius: 10px 10px 0 0; background: rgba(var(--kit-rgb), .18);
  font-style: normal; font-family: var(--num); font-size: 20px; font-weight: 700; color: var(--kit); }
.ss-podium .first i { height: 66px; background: var(--kit); color: #fff; }
.ss-podium em { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; padding: 1px 7px; margin-bottom: 3px; }
.ss-wdl { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.ss-wdl .w { background: var(--kit); } .ss-wdl .d { background: var(--muted); opacity: .5; } .ss-wdl .l { background: var(--red); }
.ss-actions { display: grid; gap: 8px; margin: 20px 0 8px; }
.ss-actions > * { width: 100%; text-align: center; }

/* 총회 자료 (A4 한 장, #/stats/season/print) */
.print-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 210mm; margin: 0 auto 12px; }
.a4 { background: #fff; color: #1b1f24; max-width: 210mm; margin: 0 auto; padding: 16mm 15mm; box-shadow: 0 2px 16px rgba(0, 0, 0, .12);
  font-size: 12.5px; line-height: 1.55; }
.a4-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 2px solid #1b1f24; padding-bottom: 8px; margin-bottom: 14px; }
.a4-head span { font-size: 12px; color: #555; }
.a4-head h1 { margin: 2px 0 0; font-size: 22px; }
.a4-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #ccc; border-radius: 6px; margin-bottom: 14px; }
.a4-kpis > div { padding: 8px 10px; } .a4-kpis > div + div { border-left: 1px solid #ccc; }
.a4-kpis span { display: block; font-size: 11px; color: #666; }
.a4-kpis b { font-size: 17px; font-family: var(--num); }
.a4 h2 { font-size: 13.5px; margin: 12px 0 6px; padding-left: 6px; border-left: 3px solid var(--kit); }
.a4 p { margin: 0; }
.a4 table { width: 100%; border-collapse: collapse; }
.a4 td { padding: 4px 2px; border-bottom: 1px solid #e2e2e2; }
.a4 td:last-child { text-align: right; font-family: var(--num); white-space: nowrap; }
.a4 tr.sum td { font-weight: 700; border-top: 1.5px solid #1b1f24; border-bottom: 0; }
.a4-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.a4-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 8px; border-top: 1px solid #ccc; font-size: 10.5px; color: #777; }
@media (max-width: 499px) { .a4 { padding: 20px 16px; } .a4-cols { grid-template-columns: 1fr; } .a4-kpis { grid-template-columns: 1fr 1fr; } .a4-kpis > div:nth-child(3) { border-left: 0; } }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  #topbar, #tabs, .print-bar, #toast, .site-foot { display: none !important; }
  #view, #view.bare { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .a4 { box-shadow: none; max-width: none; width: 210mm; min-height: 297mm; padding: 14mm; }
  .a4-cols { grid-template-columns: 1fr 1fr !important; }
  .a4-kpis { grid-template-columns: repeat(4, 1fr) !important; }
  .a4 * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 플랫폼: 팀별 사용 기능 */
.team-feats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -2px 0 10px; font-size: 13.5px; }
.team-feats > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.field .team-feats { margin: 4px 0 0; }

/* 경기 상세 탭 (공지 · 출석 · 경기 결과) */
.gd-tabs { margin-top: 4px; }
.gd-tabs button { line-height: 1.2; }
.gd-tabs small { font-family: var(--num); font-size: 13px; opacity: .75; }
.gd-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; }

/* 통계 기간 선택 (출석·기록·결산 공통, stats.js periodBar) */
/* 조회 기간 (core/period-picker.js): [조회 기간] [📅 이번 달 · 11.01 – 11.30 ⌄] → 누르면 달력 창 */
.pp-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.pp-row .pp-trigger { flex: 1; max-width: 360px; } /* 휴대폰은 줄 끝까지, 넓은 화면은 360px 까지 */
.pp-label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pp-trigger { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; height: 38px; min-height: 0; padding: 0 12px; border-radius: 10px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong, #cfd8e6); box-shadow: none; font-size: 14px; font-weight: 500; min-width: 0; }
.pp-trigger:hover { border-color: var(--kit); background: var(--sheet); }
.pp-trigger[aria-expanded="true"] { border-color: var(--kit); box-shadow: 0 0 0 3px rgba(var(--kit-rgb), .12); }
.pp-trigger b { font-weight: 700; white-space: nowrap; }
.pp-trigger .pp-dot { color: var(--disabled); }
.pp-range { font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-ico, .pp-chev { display: grid; flex: none; }
.pp-chev { margin-left: auto; padding-left: 4px; }
.pp-ico svg { width: 17px; height: 17px; color: var(--kit); }
.pp-chev svg { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.pp-trigger[aria-expanded="true"] .pp-chev svg { transform: rotate(180deg); }
/* 창: PC = 버튼 아래 (좌표는 JS), 휴대폰 = 아래에서 올라오는 시트 */
.pp-pop { position: fixed; z-index: 60; }
.pp-panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 36px rgba(24, 45, 78, .18); display: grid; grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "cal pre" "fields fields" "act act"; overflow: hidden; }
.pp-presets { grid-area: pre; display: grid; align-content: start; gap: 2px; padding: 8px 6px; border-left: 1px solid var(--line); }
.pp-presets button { justify-content: flex-start; height: 32px; min-height: 0; padding: 0 10px; border-radius: 8px; background: none; color: var(--ink); box-shadow: none; font-size: 13.5px; font-weight: 500; }
.pp-presets button:hover { background: var(--muted-bg); }
.pp-presets button.on { background: var(--sky); color: var(--kit); font-weight: 700; }
.pp-cal-wrap { grid-area: cal; padding: 10px 12px 6px; }
.pp-cal-head { display: flex; align-items: center; margin-bottom: 6px; }
.pp-cal-head b { font-size: 14px; }
.pp-cal-head span { margin-left: auto; display: flex; gap: 4px; }
.pp-nav { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 8px; background: var(--muted-bg); color: var(--ink); box-shadow: none; font-size: 17px; }
.pp-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; }
.pp-w { font-size: 11.5px; color: var(--muted); padding: 2px 0 4px; }
.pp-w:first-child { color: var(--red); }
.pp-d { height: 32px; min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--ink); box-shadow: none; font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pp-d:hover { background: var(--muted-bg); }
.pp-d.out { color: var(--disabled); }
.pp-d.in { background: var(--sky); }
.pp-d.s, .pp-d.e { background: var(--kit); color: #fff; font-weight: 700; }
.pp-d.s { border-radius: 8px 0 0 8px; }
.pp-d.e { border-radius: 0 8px 8px 0; }
.pp-d.s.e { border-radius: 8px; }
.pp-fields-wrap { grid-area: fields; border-top: 1px solid var(--line); padding: 8px 12px; }
.pp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-fields span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.pp-fields b { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-fields em { font-style: normal; color: var(--muted); font-weight: 500; }
.pp-actions { grid-area: act; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 8px 12px; }
.pp-actions button { height: 36px; min-height: 0; padding: 0 16px; }
.pp-actions button:not(.primary) { background: var(--muted-bg); color: var(--ink); box-shadow: none; }
/* 휴대폰: 시트 */
.pp-pop.sheet-mode { inset: 0; }
.pp-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 45, .38); animation: pp-fade .18s ease-out; }
.pp-pop.sheet-mode .pp-panel { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); grid-template-columns: 1fr; grid-template-areas: "grab" "title" "pre" "cal" "fields" "act"; animation: sheet-up .22s ease-out; max-height: 92dvh; overflow-y: auto; }
.pp-grab { grid-area: grab; width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 2px; }
.pp-title { grid-area: title; font-size: 15px; font-weight: 800; padding: 4px 14px 0; }
.pp-pop.sheet-mode .pp-presets { border: 0; padding: 8px 14px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; } /* 빠른 선택은 한 줄 */
.pp-pop.sheet-mode .pp-presets button { justify-content: center; height: 32px; padding: 0 2px; border-radius: 99px; background: var(--muted-bg); font-size: 12.5px; letter-spacing: -0.02em; white-space: nowrap; }
.pp-pop.sheet-mode .pp-presets button.on { background: var(--kit); color: #fff; }
.pp-pop.sheet-mode .pp-actions button { flex: 1; height: 42px; }
.pp-pop.sheet-mode .pp-cal-wrap { padding: 8px 14px 4px; }
.pp-pop.sheet-mode .pp-fields-wrap, .pp-pop.sheet-mode .pp-actions { padding-left: 14px; padding-right: 14px; }
.pp-pop.sheet-mode .pp-actions button.primary { flex: 2; }
@keyframes pp-fade { from { opacity: 0; } }
.period-note { margin: 0 4px 12px; font-size: 13px; color: var(--muted); }
.att-board + .period-note { margin-top: 10px; }

/* 경기 결과 기록 링크 (총무 화면 경기 결과 탭, record.html) */
.record-link { margin-top: 14px; }
.mr-link { font-size: 12px; color: var(--kit); font-weight: 600; margin-top: 4px; }
.locked-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.locked-meta .muted { flex-basis: 100%; font-weight: 500; font-size: 12.5px; }

/* 설정 > 나이 표기 (만 / 연 / 세는 나이) */
.seg-pick.age-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }

/* 경기 상세 > 공지 > 올린 글 주소 (입력 칸 + 적용 버튼 한 줄) */
.post-links .row.between { align-items: center; margin-bottom: 6px; }
.post-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.post-link-row input { min-width: 0; height: 44px; }
.post-link-row button { height: 44px; min-height: 0; padding: 0 18px; white-space: nowrap; }
.post-link-go { margin: 5px 2px 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 설정 > 팀 로고 */
.logo-pick { display: flex; align-items: center; gap: 10px; }
.logo-box { width: 56px; height: 56px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; background: var(--sheet); flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box span { font-size: 12px; color: var(--muted); }
.logo-pick label.btn { display: inline-flex; align-items: center; cursor: pointer; }
/* 회원 링크 화면(출석·회비·기록) 머리의 로고 */
.check-hero .club { display: flex; align-items: center; gap: 7px; }
.hero-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; background: #fff; flex: none; }

/* 회비 표: 납부·취소 후 그 회원 줄을 잠깐 강조 (screens/dues.js focusCell) */
.matrix tr.just-saved td { background: var(--lime-tint); transition: background .6s; }
.matrix tr td { transition: background .6s; }

/* 공지 날씨 반영 결과 요약 (game-detail.js) */
.notice-weather-info { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--sky); color: var(--ink); font-size: 13px; line-height: 1.5; }

/* 설정 첫 화면: 묶음별 메뉴 (screens/settings.js) */
.set-group { margin: 18px 4px 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.page-head + .set-group { margin-top: 4px; }
.set-list { display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.set-item { display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 60px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: inherit; box-shadow: none; }
.set-list > .set-item:first-child { border-top: 0; }
.set-item:hover { background: #f8faff; }
.set-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.set-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.set-tx b { font-size: 15px; font-weight: 700; }
.set-tx small { color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-go { flex: none; width: 18px; height: 18px; color: #9aa6b6; }
.set-go svg { width: 18px; height: 18px; display: block; }
.set-logout { justify-content: center; }
.set-logout .set-tx { flex: none; }
.set-logout b { color: var(--red); }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.5; }

/* 장부: 지출 항목 막대 · 날짜별 묶음 (screens/ledger.js) */
.bal-split.two { grid-template-columns: repeat(2, 1fr); }
.cat-sum { margin-top: 16px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.link-btn { height: auto; padding: 0; background: none; color: var(--kit); font-size: 12.5px; font-weight: 700; box-shadow: none; }
.link-btn:hover { background: none; text-decoration: underline; }
.cat-bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 78px; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 6px; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: left; box-shadow: none; }
.cat-bar:hover { background: var(--muted-bg); }
.cat-bar.on { background: rgba(var(--kit-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--kit-rgb), .35); }
.cat-bar .cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar .bar { height: 8px; }
.cat-bar .bar > i { background: #e8857f; }
.cat-bar .cat-amt { text-align: right; font-family: var(--num); font-weight: 700; }
.ledger-chips { margin: 14px 0 0; }
.tx-days { margin: 4px 0 8px; }
.tx-dayhead { display: flex; justify-content: space-between; margin: 16px 2px 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.tx-dayhead .in { color: var(--green); }
.tx-dayhead .out { color: var(--red); }
.tx-days .tx:last-child, .tx-days .tx:has(+ .tx-dayhead), .tx-days .dues-detail:has(+ .tx-dayhead) { border-bottom: 0; }
.tx-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--muted-bg); font-size: 17px; }

.section-head:has(> button) { align-items: center; } /* 제목 옆 작은 버튼(찬조 '행사 만들기' 등) */

/* 경기 결과: 게임 줄 전체를 눌러 수정, 득점자 칩 등번호, 출석 안 한 회원 펼치기 (screens/game-result.js, record.js, core/match.js) */
.match-row.tap { cursor: pointer; border-radius: var(--r-sm); transition: background .12s; }
.match-row.tap:hover { background: #f8faff; }
.match-row.tap:focus-visible { outline: 3px solid color-mix(in srgb, var(--kit) 45%, transparent); outline-offset: 2px; }
.mr-todo { margin-left: 42px; color: var(--kit); font-size: 13px; font-weight: 700; }
.cat-chips.pick button .bn { margin-right: 4px; font-family: var(--num); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cat-chips.pick button.on .bn { color: inherit; opacity: .8; }
.more-btn { display: block; margin: 8px 0 12px; }
.cat-chips.pick.others { margin-top: 8px; }
.match-info { margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* 득점자·도움 회원 칩: 같은 너비 칸으로 줄 맞춤, 등번호는 왼쪽 고정 폭에 오른쪽 정렬 → 이름 시작 위치가 같다 */
.cat-chips.pick.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cat-chips.pick.people + .cat-chips.pick { margin-top: -4px; }
.cat-chips.pick.people button { display: flex; align-items: center; justify-content: flex-start; min-width: 0; padding: 0 10px 0 8px; }
.cat-chips.pick.people button .bn { flex: none; width: 20px; margin-right: 6px; text-align: right; }
.cat-chips.pick.people button:not(:has(.bn))::before { content: ""; flex: none; width: 26px; } /* 등번호 없는 회원도 이름 위치 맞춤 */
.cat-chips.pick.people button[data-assist=""]::before { display: none; }
.cat-chips.pick.people button[data-assist=""] { justify-content: center; }
.cat-chips.pick.people button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 게임 목록: 게임마다 카드 + 왼쪽 색 띠(승 파랑·무 회색·패 빨강·자체전 연두)로 구분 (경기 상세·결과 입력 링크 공용) */
.match-list { display: grid; gap: 10px; }
.match-list > .match-row { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px 12px 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(24, 45, 78, .04); }
.match-list > .match-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.match-list > .match-row.res-W::before { background: var(--att); }
.match-list > .match-row.res-D::before { background: #b8c3d2; }
.match-list > .match-row.res-L::before { background: var(--red); }
.match-list > .match-row.res-S::before { background: var(--lime-ink); }
.match-list > .match-row.tap:hover { background: #fbfcff; }
.match-list .mr-seq { width: auto; padding: 2px 8px; border-radius: 6px; background: var(--muted-bg); font-size: 12px; }
.match-list .mr-goals, .match-list .mr-memo { padding-left: 0; }
.match-list .mr-todo, .match-list .mr-link { margin-left: 0; }
.mr-goals .goal-n { font-style: normal; font-family: var(--num); font-weight: 800; color: var(--kit); margin-left: 2px; }

/* 회원 엑셀 일괄 등록 (screens/member-import.js) */
.import-link { display: flex; width: 100%; height: 40px; margin-bottom: 14px; justify-content: flex-start; padding: 0 12px; border-radius: var(--r-sm); background: var(--sky); color: var(--kit); font-size: 13.5px; font-weight: 700; box-shadow: none; }
.import-steps { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; line-height: 1.7; }
.import-steps .link-btn { font-size: 14px; }
.imp-file { width: 100%; height: 44px; }
.import-box textarea { min-height: 70px; font-size: 13px; }
.imp-error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--red-tint); color: var(--red); font-size: 13.5px; font-weight: 600; }
.imp-sum { display: flex; gap: 6px; }
.imp-table { max-height: 260px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.imp-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.imp-table th { position: sticky; top: 0; background: var(--muted-bg); padding: 6px 8px; text-align: left; }
.imp-table td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.imp-table td:first-child { color: var(--muted); font-family: var(--num); }
.imp-table td small { display: block; color: var(--red); font-size: 11.5px; white-space: normal; }
.imp-table tr.imp-dup td { color: var(--muted); }
.imp-table tr.imp-dup td small { color: var(--muted); }

/* 화면 제목 앞 메뉴 아이콘 (core/ui.js pageTitle) */
.page-head h2 .h-ic { display: inline-flex; width: 26px; height: 26px; margin-right: 2px; color: var(--kit); flex: none; }
.page-head h2 .h-ic svg { width: 100%; height: 100%; }

/* 선발 명단 (screens/lineup.js): 잔디 줄무늬 경기장(가로:세로 = 100:140) + 팀 색 선수 원, 끌어서 자유 배치 */
.kit-picks { display: flex; gap: 7px; align-items: center; } /* 기본 + 5색 + 직접 고르기 = 모바일에서 한 줄 */
.kit-pick { flex: 0 1 34px; min-width: 24px; height: auto; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: none; position: relative; }
.kit-pick.on { outline: 2px solid var(--kit); outline-offset: 2px; }
.kit-pick.team { flex: none; aspect-ratio: auto; height: 32px; width: 66px; padding: 0; justify-content: center; /* '팀 색상'·'자동' 같은 크기 */ border-radius: 999px; background: var(--muted-bg); color: var(--ink); font-size: 13px; font-weight: 600; }
.kit-pick.custom { overflow: hidden; background: conic-gradient(#f44, #fd0, #4d4, #4cf, #44f, #f4f, #f44); }
.kit-pick.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.lineup .lu-forms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lu-filters { display: flex; flex-direction: column; gap: 6px; }
.lu-filters .chips { margin: 0; }
.lu-filters .chips.age { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 460px; } /* 라인업: 나이 기준 표시 없이 5칸 꽉 채움 */
.lineup .lu-forms .pill-btn { padding: 0 11px; font-size: 12.5px; }
.lineup .lu-forms [data-form="clear"] { margin-left: auto; background: transparent; }
.lu-tk { gap: 0; }
.lu-tk span { margin-top: -2px; }
.lu-pitch { position: relative; width: 100%; max-width: 460px; aspect-ratio: 100 / 140; margin: 0 auto; /* 넓은 화면에서도 비율 고정 (높이만 막으면 가로로 늘어남) */ border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,.1) 100%), repeating-linear-gradient(180deg, #5aab38 0 7.142857%, #4f9e30 7.142857% 14.285714%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 4px 14px rgba(24, 45, 78, .12); touch-action: pan-y; user-select: none; /* 빈 잔디를 잡으면 화면 스크롤, 선수(.lu-tk)를 잡으면 끌기 */ -webkit-user-select: none; }
.lu-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lu-tk { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: grab; touch-action: none; z-index: 1; -webkit-tap-highlight-color: transparent; }
.lu-shirt { width: 46px; height: 46px; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); transition: transform .12s, filter .12s; }
.lu-shirt text { fill: var(--shirt-num); font-family: var(--num); font-size: 14px; font-weight: 700; }
.lu-tk span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lu-tk.drag { cursor: grabbing; z-index: 3; }
.lu-tk.drag .lu-shirt { transform: scale(1.18); filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.lu-tk.gk { --shirt: var(--gk-shirt); --shirt-sleeve: var(--gk-shirt-sleeve); --shirt-num: var(--gk-shirt-num); --shirt-trim: var(--gk-shirt-trim); }
.lu-tk.out .lu-shirt .k { fill: var(--red); }
.lu-hint { margin: 10px 0 0 !important; line-height: 1.5; text-align: center; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-roster-head { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lu-att-mark { display: inline-flex; align-items: center; gap: 4px; }
.lu-att-mark i, .lu-roster button.att::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.lu-roster button.att::after { margin-left: auto; }
.lu-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 500px) { .lu-roster { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.lu-roster button { min-width: 0; height: 36px; padding: 0 8px; justify-content: flex-start; gap: 5px; border-radius: 999px; background: var(--muted-bg); color: var(--ink); border: 1px solid transparent; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; box-shadow: none; }
.lu-roster button small { flex: none; width: 18px; text-align: right; font-family: var(--num); font-size: 12px; color: var(--muted); }
.lu-roster button.on { background: var(--sheet); border-color: rgba(var(--kit-rgb), .45); color: var(--kit); }
.lineup #lu-copy svg { width: 18px; height: 18px; }
.lineup #lu-copy { display: flex; max-width: 460px; margin-left: auto; margin-right: auto; } /* 넓은 화면에서 경기장 폭에 맞춤 */
