:root {
  --bg: #0a0d10;          /* 팀복 검정 바탕 */
  --card: #12171c;
  --card2: #1a222a;
  --line: #253039;
  --text: #eaf2f6;
  --muted: #8fa3ad;
  --accent: #3ab8e1;      /* APEX 청록(틸) 포인트 */
  --accent-2: #13425f;    /* 깊은 네이비틸 */
  --accent-dim: #10303f;  /* 청록 어두운 배경 */
  --green: #2ecc71;
  --red: #e74c3c;
  --amber: #f39c12;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  /* 팀복 그라데이션 느낌: 위 검정 → 아래 은은한 틸 */
  background-image: radial-gradient(120% 80% at 50% -10%, rgba(58,184,225,0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
header.app {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px; max-width: 760px; margin: 0 auto;
}
header.app h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
header.app h1 span { color: var(--accent); }
.hello { font-size: 13px; color: var(--muted); }

/* 상단 고정 바 (팀 로고 + 탭) — 스크롤해도 유지 */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10, 13, 16, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-bottom: 10px;
}
.topbar nav.tabs { margin-bottom: 0; }
/* 총무 화면: 탭만 고정 */
.tabs-sticky { position: sticky; top: 8px; z-index: 200; box-shadow: 0 4px 20px rgba(0,0,0,0.45); }

/* 탭 네비게이션 */
/* 모바일: 4개씩 2줄 그리드 (공지·일정·투표·게시판 / 갤러리·공구·팀원·회계) */
nav.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px;
  margin: 0 16px 16px; max-width: 760px; margin-left: auto; margin-right: auto;
  background: var(--card); border-radius: var(--radius);
}
nav.tabs button {
  padding: 11px 4px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
/* 넓은 화면: 한 줄로 */
@media (min-width: 720px) {
  nav.tabs { display: flex; }
  nav.tabs button { flex: 1; }
}
nav.tabs button.active { background: var(--accent); color: #06222e; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; vertical-align: middle;
}
.badge.ride { background: var(--accent-dim); color: var(--accent); }
.badge.race { background: var(--accent-2); color: #8fd8ee; }
.badge.flash { background: #3a3419; color: var(--amber); }
.badge.pin { background: #3a1f1f; color: var(--red); }

/* 참석 버튼 그룹 */
.attend { display: flex; gap: 8px; margin-top: 12px; }
.attend button {
  flex: 1; padding: 10px; border: 1px solid var(--line);
  background: var(--card2); color: var(--muted);
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.attend button.yes.on { background: var(--green); color: #fff; border-color: var(--green); }
.attend button.maybe.on { background: var(--amber); color: #fff; border-color: var(--amber); }
.attend button.no.on { background: var(--red); color: #fff; border-color: var(--red); }

.count { font-size: 13px; color: var(--green); font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* 폼 요소 */
input, textarea, select {
  width: 100%; padding: 10px 12px; margin: 4px 0 12px;
  background: var(--card2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 15px;
  font-family: inherit;
}
label { font-size: 13px; color: var(--muted); font-weight: 600; }
button.primary {
  width: 100%; padding: 12px; border: 0; border-radius: 10px;
  background: var(--accent); color: #06222e; font-size: 15px; font-weight: 700;
  cursor: pointer;
}
button.ghost {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer;
}
.qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card2); color: var(--text); font-size: 18px; cursor: pointer;
}
.qty span { font-size: 18px; font-weight: 700; min-width: 30px; text-align: center; }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }
.dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--red); margin-left:4px; vertical-align:middle;}

/* 총무 화면은 넓은 PC 에서 2열로 */
@media (min-width: 720px) {
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid2 .card { margin-bottom: 0; }
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; }
.bar { height: 6px; background: var(--card2); border-radius: 3px; overflow: hidden; margin-top: 4px;}
.bar > i { display:block; height:100%; background: var(--accent); }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--card2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0;
  transition: opacity .2s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; }

/* ---- v1.1 확장 UI ---- */
/* 참석자 명단 */
.roster { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.roster-row { font-size: 13px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.roster-row b { color: var(--muted); margin-right: 4px; font-size: 12px; }
.chip { display: inline-block; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 2px 10px; font-size: 12px; }
.mapbtn { display: inline-block; margin-left: 6px; padding: 2px 10px; background: var(--accent-dim); color: var(--accent); border-radius: 12px; font-size: 12px; text-decoration: none; }

/* 댓글 */
.cbox { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cmt-toggle { background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.cmt-panel { margin-top: 8px; }
.cmt-list { margin-bottom: 8px; }
.cmt-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.cmt { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: 0; }
.cmt-head { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.cmt-head b { color: var(--text); font-size: 13px; }
.cmt-del { margin-left: auto; background: none; border: 0; color: var(--red); font-size: 12px; cursor: pointer; }
.cmt-body { font-size: 14px; margin-top: 2px; white-space: pre-wrap; }
.cmt-input { display: flex; gap: 6px; }
.cmt-input input { margin: 0; flex: 1; }
.cmt-send { white-space: nowrap; }

/* 이모지 반응 */
.react { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.react-btn { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--text); transition: all .12s; }
.react-btn.on { background: var(--accent-dim); border-color: var(--accent); }
.react-btn .rc { color: var(--muted); font-size: 12px; margin-left: 2px; }

/* 공구 진행률 / D-day / 입금안내 */
.progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.progress-bar { flex: 1; height: 8px; background: var(--card2); border-radius: 4px; overflow: hidden; }
.progress-bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.progress span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dday { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: var(--card2); color: var(--muted); }
.dday.soon { background: #3a1f1f; color: var(--red); }
.dday.over { background: var(--card2); color: var(--muted); }
.payinfo { margin-top: 10px; padding: 10px; background: var(--accent-dim); border-radius: 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }

/* ---- v1.2 공동구매 장바구니형 ---- */
.myitems { margin-top: 10px; padding: 10px; background: var(--card2); border-radius: 10px; }
.myitems-h { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.item-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-info b { font-size: 14px; }
.item-info span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.item-del { background: none; border: 0; color: var(--red); font-size: 12px; cursor: pointer; }
.mytotal { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.mytotal b { color: var(--accent); font-size: 15px; }
.mytotal small { color: var(--muted); }
.paytoggle { display: block; width: 100%; margin-top: 8px; padding: 9px; text-align: center; }
.paytoggle.on { border-color: var(--green); color: var(--green); }
.additem { margin-top: 10px; }
.additem-row { display: flex; gap: 6px; margin-top: 6px; }
.additem input { margin: 4px 0; }

/* ---- APEX 로고 / 팀 테마 마감 ---- */
.logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo svg { display: block; }
.logo-img { height: 26px; width: auto; display: block; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.logo-sub { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: -0.5px; }
/* 로고 X 뒤에 팀복 느낌의 청록 언더라인 */
header.app { border-bottom: 1px solid var(--line); }

/* 카드 상단에 팀복 그라데이션 라인 */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 30%, var(--accent) 100%);
  opacity: 0.6;
}
/* 참석 버튼 on 상태를 팀 청록으로 */
.attend button.yes.on { background: var(--accent); color: #06222e; border-color: var(--accent); }
/* 진행/막대 등 이미 var(--accent) 사용 → 자동 반영 */

/* ---- 사진 첨부 (v1.5) ---- */
.pbox { margin-top: 10px; }
.pgallery { display: flex; flex-wrap: wrap; gap: 8px; }
.pgallery:not(:empty) { margin-bottom: 8px; }
.pthumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.pdel { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 13px; cursor: pointer; line-height: 1; }
.pupload { display: inline-block; font-size: 13px; color: var(--accent); cursor: pointer; padding: 4px 0; font-weight: 600; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; background: rgba(0,0,0,0.5); border-radius: 12px; padding: 3px 12px;
}

/* ---- 미니 달력 (v1.9) ---- */
.calwrap {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
/* hidden 속성이 display:flex 에 지지 않게 — 이게 없으면 달력이 닫히지 않음 */
.calwrap[hidden] { display: none !important; }
.calpop {
  width: min(320px, 100%);
  background: var(--card2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head b { font-size: 14px; }
.cal-nav { background: none; border: 0; color: var(--accent); font-size: 20px; cursor: pointer; padding: 0 10px; }
.cal-x { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 0 4px 0 8px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.cal-dow .sun { color: var(--red); } .cal-dow .sat { color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-cell { aspect-ratio: 1; border: 0; background: none; color: var(--text); font-size: 13px; border-radius: 8px; cursor: pointer; }
.cal-cell:hover { background: var(--accent-dim); }
.cal-cell.sun { color: var(--red); } .cal-cell.sat { color: var(--accent); }
.cal-cell.today { border: 1px solid var(--accent); }
.cal-cell.sel { background: var(--accent); color: #06222e; font-weight: 700; }
.cal-cell.empty { pointer-events: none; }
.cal-time { display: flex; gap: 6px; margin-top: 10px; }
.cal-time select { margin: 0; padding: 8px; font-size: 14px; }
.cal-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; }
.cal-clear { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px 8px; }
.cal-ok { flex: 1; background: var(--accent); color: #06222e; border: 0; border-radius: 8px; font-weight: 700; font-size: 14px; padding: 8px; cursor: pointer; }

/* ---- 투표 (v1.9, 카카오톡 스타일) ---- */
.poll-flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.pflag { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; }
.popts { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.popt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--card2); transition: border-color .12s; }
.popt.on { border-color: var(--accent); background: var(--accent-dim); }
.popt.done { cursor: default; }
.popt-top { display: flex; align-items: center; gap: 8px; }
.popt-check { width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #06222e; }
.popt.on .popt-check { background: var(--accent); border-color: var(--accent); font-weight: 700; }
.popt-label { flex: 1; font-size: 14px; min-width: 0; word-break: break-word; }
.popt-label small { color: var(--muted); font-size: 11px; }
.popt-count { font-size: 13px; color: var(--accent); flex-shrink: 0; }
.popt-bar { height: 5px; background: var(--card); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.popt-bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.popt-voters { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.popt-add { display: flex; gap: 6px; margin-top: 10px; }
.popt-add input { margin: 0; flex: 1; }
.popt-row { display: flex; gap: 6px; margin-bottom: 6px; }
.popt-row input { margin: 0; flex: 1; }

/* ---- 팀원 목록 / 직책 (v1.9) ---- */
.trow { padding: 12px 16px; }
.posbadge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.posbadge.lead { background: #3a1f1f; color: var(--red); border-color: transparent; }
.posbadge.sublead { background: #3a3419; color: var(--amber); border-color: transparent; }
.posbadge.manager { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.posbadge.coach { background: #16351f; color: var(--green); border-color: transparent; }
.insta-link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.ig-ico { vertical-align: -2px; }

/* ---- 갤러리 (v2.1, 구글포토식) ---- */
.gal-usage { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.gal-usage b { color: var(--text); }
.gu-bar { height: 6px; background: var(--card2); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.gu-bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.gal-usage.warn b { color: var(--amber); }
.gal-usage.warn .gu-bar > i { background: var(--amber); }
.gal-fullmsg {
  margin-bottom: 12px; padding: 12px; border-radius: 10px; text-align: center;
  background: #3a1f1f; color: var(--red); font-size: 13px; font-weight: 600; line-height: 1.6;
}
.gal-upload {
  display: block; text-align: center; margin-bottom: 12px; cursor: pointer;
  padding: 12px; border-radius: 10px; background: var(--accent); color: #06222e;
  font-weight: 700; font-size: 15px;
}
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 4px; }
.gal-item {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px;
  cursor: pointer; background: var(--card2);
}
.gal-item img, .gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; background: rgba(0,0,0,0.28); pointer-events: none;
}
.galviewer {
  display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95);
  flex-direction: column; align-items: center; justify-content: center; padding: 16px;
}
.galviewer .gv-body { max-width: 100%; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.galviewer img, .galviewer video { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.gv-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; z-index: 2; }
.gv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,0.12); border: 0; color: #fff; font-size: 24px;
  padding: 10px 14px; cursor: pointer; border-radius: 10px;
}
.gv-prev { left: 10px; } .gv-next { right: 10px; }
.gv-meta { color: var(--muted); font-size: 13px; margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.gv-del { background: none; border: 1px solid var(--red); color: var(--red); border-radius: 8px; padding: 4px 12px; font-size: 12px; cursor: pointer; }

/* ---- 회계 (v2.0) ---- */
.fin-summary { text-align: center; }
.fin-balance span { display: block; font-size: 12px; color: var(--muted); }
.fin-balance b { font-size: 28px; color: var(--accent); letter-spacing: -0.5px; }
.fin-month { display: flex; justify-content: center; gap: 20px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fin-month b.in { color: var(--green); }
.fin-month b.out { color: var(--red); }
.tx-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tx-row:last-child { border-bottom: 0; }
.tx-main { flex: 1; min-width: 0; }
.tx-desc { font-size: 14px; word-break: break-word; }
.tx-amt { font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.tx-amt.in { color: var(--green); }
.tx-amt.out { color: var(--red); }
.dues-scroll { overflow-x: auto; }
table.dues { border-collapse: collapse; font-size: 12px; min-width: 100%; }
table.dues th { padding: 4px 5px; color: var(--muted); font-size: 11px; text-align: center; border-bottom: 1px solid var(--line); }
.dues-name { padding: 4px 8px 4px 0; white-space: nowrap; border-bottom: 1px solid var(--line); }
.dues-cell { width: 24px; text-align: center; color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--line); }
.dues-cell.paid { background: var(--accent-dim); border-radius: 4px; }

/* ---- 로그인/가입 게이트 (v2.5 스트라바) ---- */
.login-card { text-align: center; padding: 28px 20px; }
.login-card h3 { font-size: 18px; }
.login-card label { display: block; text-align: left; margin-top: 4px; }
.strava-btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: #fc4c02; color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 10px; text-decoration: none;
}
.join-avatar { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 10px; border: 2px solid var(--accent); }

/* ---- 스폰서 배너 (하단 공통) ---- */
.sponsors {
  max-width: 760px; margin: 20px auto 36px; padding: 20px 16px 0;
  border-top: 1px solid var(--line); text-align: center;
}
.sponsors-label {
  font-size: 10px; letter-spacing: 3px; color: var(--muted);
  font-weight: 700; margin-bottom: 14px;
}
.sponsors img { width: 100%; max-width: 680px; height: auto; opacity: 0.92; }

/* ---- 팀 인스타그램 피드 (v1.8) ---- */
.igfeed { max-width: 760px; margin: 28px auto 40px; padding: 0 16px; }
.ig-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ig-title { font-weight: 700; font-size: 14px; }
.ig-link { color: var(--accent); font-size: 13px; text-decoration: none; font-weight: 600; }
.ig-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ig-item { position: relative; flex: 0 0 auto; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-play { position: absolute; top: 6px; right: 6px; font-size: 11px; background: rgba(0,0,0,0.55); color: #fff; border-radius: 10px; padding: 1px 6px; }

/* ---- 게시판 리스트 → 상세 (v1.7) ---- */
.listrow { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 16px; }
.listrow:hover { background: var(--card2); }
.lr-main { flex: 1; min-width: 0; }
.lr-title { font-size: 15px; font-weight: 600; display: flex; gap: 6px; align-items: center; min-width: 0; }
.lr-title .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-title .badge { flex-shrink: 0; }
.lr-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.lr-chev { color: var(--muted); font-size: 18px; flex-shrink: 0; }
.lr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mychip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; flex-shrink: 0; }
.mychip.yes { background: var(--accent-dim); color: var(--accent); }
.mychip.maybe { background: #3a3419; color: var(--amber); }
.mychip.no { background: #3a1f1f; color: var(--red); }
.backbar { margin-bottom: 10px; }
/* 지난 일정·마감 공구 취소선 */
.lr-done .tt { text-decoration: line-through; color: var(--muted); }
.lr-done .badge { opacity: 0.55; }
.backbtn { background: none; border: 0; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 0; }

/* ---- 게시글 수정/삭제 UI (v1.6) ---- */
.editrow { }
.editrow + .editrow { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.editrow-form input, .editrow-form textarea, .editrow-form select { margin: 4px 0; }
.editrow-view .row span { display: flex; gap: 4px; flex-shrink: 0; }
