/* GROUND LAB 회원·코치 화면 공통 스타일 */
:root {
  --orange: #ff6a13; --orange-soft: rgba(255,106,19,.12);
  --ink: #121110; --paper: #fbf8f3; --card: #ffffff; --muted: #6f6a64;
  --line: rgba(18,17,16,.1); --ok: #1f9d55; --warn: #c2410c; --kakao: #fee500;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #f4efe9; --paper: #121110; --card: #1d1a18; --muted: #a39d96; --line: rgba(255,255,255,.12); --ok: #4ade80; --warn: #fb923c; }
}
:root[data-theme="dark"] { --ink: #f4efe9; --paper: #121110; --card: #1d1a18; --muted: #a39d96; --line: rgba(255,255,255,.12); --ok: #4ade80; --warn: #fb923c; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: min(720px, 100% - 32px); margin: 0 auto; padding: 20px 0 80px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 20px; }
.logo { font-family: "Anton", sans-serif; font-size: 22px; letter-spacing: .02em; text-decoration: none; }
.logo b { font-weight: 400; color: var(--orange); margin-left: 3px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--line); }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 4px; }

h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.lead { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn-kakao { background: var(--kakao); color: #191600; width: 100%; }
.btn-kakao svg { width: 20px; height: 20px; }
.btn-main { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 출석 요약 */
.count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.count .big { font-family: "Anton", sans-serif; font-size: 64px; line-height: 1; color: var(--orange); }
.count .of { font-size: 18px; font-weight: 700; color: var(--muted); }
.left { margin-top: 6px; font-size: 18px; font-weight: 800; }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 16px; }
.dots.w1 { grid-template-columns: repeat(4, 1fr); }
.dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); max-width: 52px; }
.dot.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.days { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.chip.gray { background: var(--line); }
.chip.ok { background: rgba(31,157,85,.14); }
.note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 목록 */
.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.item h3 { font-size: 16px; font-weight: 800; }
.item p { margin-top: 6px; white-space: pre-wrap; font-size: 15px; }
textarea, input[type=text], input[type=date], input[type=url], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }

/* 코치 화면 */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-top: 8px; }
.tab { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; text-align: center; }
.member { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.member img, .member .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--line); }
.member .name { font-weight: 800; }
.member .sub { font-size: 13px; color: var(--muted); }
.over { color: var(--warn); font-weight: 800; }
.check { min-width: 84px; }
.check.on { background: var(--ok); color: #fff; border-color: var(--ok); }
.group-title { margin-top: 18px; font-size: 14px; font-weight: 800; color: var(--orange); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); z-index: 10; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }
.center { text-align: center; }
.foot { margin-top: 40px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: var(--muted); }
