/* =====================================================================
   FunnyGame — 보드게임 셰어
   Google Material / google.com 톤: 순백 · 연회색 · 4색 포인트 · 알약형 검색
   ===================================================================== */
:root {
  --blue: #1a73e8;
  --blue-2: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --ink: #202124;
  --ink-2: #3c4043;
  --muted: #5f6368;
  --line: #dadce0;
  --line-soft: #e8eaed;
  --bg: #f8f9fa;
  --bg-blue: #e8f0fe;
  --white: #ffffff;
  --shadow-1: 0 1px 6px rgba(32, 33, 36, .12);
  --shadow-2: 0 4px 20px rgba(32, 33, 36, .18);
  --r-pill: 999px;
  --r-card: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Google Sans', 'Roboto', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
button { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* ---------- 로고 ---------- */
.logo { display: flex; align-items: baseline; justify-content: center; font-weight: 500; letter-spacing: -.5px; font-size: 54px; line-height: 1; user-select: none; }
.logo .l { display: inline-block; }
.logo.small { font-size: 30px; justify-content: flex-start; }
.logo.mini { font-size: 22px; }
.c-blue { color: var(--blue-2); }
.c-red { color: var(--red); }
.c-yellow { color: var(--yellow); }
.c-green { color: var(--green); }
.logo-sub { color: var(--muted); text-align: center; margin: 14px 0 0; font-size: 14px; }

/* ---------- 입장 화면 ---------- */
.login-wrap { width: 100%; max-width: 620px; text-align: center; }
.enter-form { margin: 34px auto 0; max-width: 584px; }
.searchbar {
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: box-shadow .15s, border-color .15s;
}
.searchbar.big { height: 54px; box-shadow: var(--shadow-1); }
.searchbar:focus-within { border-color: transparent; box-shadow: 0 1px 10px rgba(32, 33, 36, .22); }
.searchbar .ico { width: 20px; height: 20px; fill: #9aa0a6; flex: 0 0 auto; }
.searchbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink); padding: 0;
}
.searchbar input::placeholder { color: #80868b; }
.searchbar .kbd { color: #9aa0a6; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.hint { color: var(--muted); font-size: 12.5px; text-align: center; margin: 16px 0 0; }
.hint b { color: var(--ink-2); font-weight: 600; }
.error { color: var(--red); font-size: 13px; min-height: 20px; margin: 10px 0 0; text-align: center; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn:hover { background: #f6f8fa; }
.btn:active { background: #eef1f4; }
.btn.filled { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.2); }
.btn.filled:hover { background: #1765cc; }
.btn.tonal { background: var(--bg-blue); border-color: transparent; color: var(--blue); }
.btn.tonal:hover { background: #dbe8fd; }
.btn.text { border-color: transparent; background: transparent; color: var(--blue); padding: 0 12px; }
.btn.text:hover { background: rgba(26,115,232,.06); }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 14px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #fce8e6; }
.btn.pill { height: 38px; margin-right: 0; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- 멤버 선택 ---------- */
.member-wrap { width: 100%; max-width: 720px; text-align: center; }
.member-wrap .logo { justify-content: center; }
.member-title { font-size: 26px; font-weight: 500; margin: 26px 0 0; letter-spacing: -.3px; }
.member-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 10px; }
.member-card {
  width: 130px; padding: 18px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--white); cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .1s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.member-card:hover { box-shadow: var(--shadow-1); border-color: #c6ccd2; transform: translateY(-1px); }
.member-card .avatar { width: 48px; height: 48px; font-size: 19px; }
.member-card b { font-weight: 500; font-size: 15px; }
.member-card small { color: var(--muted); font-size: 12px; }

/* ---------- 아바타 ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-weight: 600; font-size: 13px; flex: 0 0 auto; letter-spacing: 0;
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }

/* ---------- 상단 바 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(8px); }
.topbar-inner { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 0 0 auto; }
.brand-sub { color: var(--muted); font-size: 13px; border-left: 1px solid var(--line); padding-left: 10px; }
.tabbar { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  height: 40px; padding: 0 16px; border: 0; background: transparent; border-radius: var(--r-pill);
  color: var(--muted); font-weight: 500; cursor: pointer; white-space: nowrap; font-size: 14px;
}
.tab:hover { background: #f1f3f4; color: var(--ink); }
.lbl-short { display: none; }
.tab.active { background: var(--bg-blue); color: var(--blue); }
.topbar-right { position: relative; flex: 0 0 auto; }
.me-button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; cursor: pointer; }
.me-button:hover { background: #f8f9fa; }
.me-name { font-weight: 500; font-size: 13.5px; }
.chev { width: 18px; height: 18px; fill: var(--muted); }
.me-menu {
  position: absolute; right: 0; top: 52px; width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 8px; z-index: 60;
}
.menu-label { margin: 6px 10px 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.me-menu .member-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.me-menu .member-row:hover { background: #f1f3f4; }
.me-menu .member-row.current { background: var(--bg-blue); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 6px 4px; }
.menu-item { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.menu-item:hover { background: #f1f3f4; }

/* ---------- 본문 ---------- */
.main { max-width: 1240px; margin: 0 auto; padding: 26px 20px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.2px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-title { font-size: 16px; font-weight: 500; margin: 0 0 12px; }

/* ---------- 검색 · 칩 ---------- */
.hero-search { display: flex; justify-content: center; margin: 4px 0 18px; }
.hero-search .searchbar { width: 100%; max-width: 640px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { background: #f8f9fa; }
.chip.active { background: var(--bg-blue); border-color: #c6dafc; color: var(--blue); font-weight: 500; }
.chip .count { color: var(--muted); font-size: 11.5px; }
.chip.active .count { color: #4a86d8; }

/* ---------- 카드 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 15.5px; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }

/* ---------- 통계 ---------- */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 14px; min-width: 104px; }
.stat b { display: block; font-size: 18px; font-weight: 500; line-height: 1.25; }
.stat span { color: var(--muted); font-size: 11.5px; }

/* ---------- 도구 줄 ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switchline { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
.switchline input { accent-color: var(--blue); width: 15px; height: 15px; }
select.plain { height: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 0 12px; font-size: 13px; color: var(--ink-2); }

/* ---------- 표 ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: #fff; }
table.grid { width: 100%; border-collapse: collapse; min-width: 760px; }
table.grid th, table.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; }
table.grid thead th {
  position: sticky; top: 0; background: #fff; z-index: 2;
  font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .2px;
  border-bottom: 1px solid var(--line);
}
table.grid thead th.name, table.grid tbody td.name { text-align: left; }
table.grid tbody tr:hover { background: #fafbfc; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td.name { font-weight: 500; color: var(--ink); min-width: 200px; }
table.grid td.name .cat { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
table.grid th.mine, table.grid td.mine { background: #f5f9ff; }
table.grid th.mine { color: var(--blue); }
table.grid .mhead { display: inline-flex; align-items: center; gap: 6px; }
table.grid .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.qty { font-weight: 500; font-variant-numeric: tabular-nums; }
.qty.zero { color: #bdc1c6; font-weight: 400; }
.qty small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.qty small.warn { color: #b06000; }
.qty small.good { color: var(--green); }
.cell-btn { border: 0; background: transparent; cursor: pointer; padding: 4px; border-radius: 50%; line-height: 0; }
.cell-btn:hover { background: #eef1f4; }
.cell-btn svg { width: 15px; height: 15px; fill: #9aa0a6; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.pager .btns { display: flex; gap: 8px; }

/* ---------- 배지 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge.open { background: #fef7e0; color: #b06000; }
.badge.matched { background: #e6f4ea; color: #137333; }
.badge.reserved { background: #fef7e0; color: #b06000; }
.badge.active { background: #e6f4ea; color: #137333; }
.badge.returned { background: #f1f3f4; color: #5f6368; }
.badge.cancelled { background: #f1f3f4; color: #9aa0a6; }
.badge.overdue { background: #fce8e6; color: #c5221f; }
.badge.sheet { background: #f1f3f4; color: #5f6368; }
.badge.rental { background: #e8f0fe; color: #1a73e8; }
.badge.self { background: #f3e8fd; color: #8430ce; }
.badge.info { background: #e8f0fe; color: #1a73e8; }
.badge.warn { background: #fef7e0; color: #b06000; }

/* ---------- 신청 카드 ---------- */
.need-list { display: flex; flex-direction: column; gap: 12px; }
.need-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.need-card .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.need-card .title { font-weight: 500; font-size: 15px; }
.need-card .meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.need-card .alloc { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.alloc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; border-radius: 8px; background: var(--bg); font-size: 12.5px; }
.alloc-row .who { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.alloc-row .spacer { flex: 1; }
.alloc-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.need-card .foot { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 빈 상태 ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 30px; margin-bottom: 6px; }
.empty b { color: var(--ink-2); font-weight: 500; }

/* ---------- 폼 ---------- */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 12px; color: var(--muted); font-weight: 500; }
.input {
  height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px;
  background: #fff; color: var(--ink); outline: 0; width: 100%;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
textarea.input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- 콤보(게임 찾기) ---------- */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); max-height: 280px; overflow: auto; z-index: 20; }
.combo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: #fff; text-align: left; padding: 10px 12px; cursor: pointer; font-size: 13.5px; }
.combo-item:hover, .combo-item.active { background: #f1f6fe; }
.combo-item small { color: var(--muted); font-size: 11.5px; }

/* ---------- 모달 ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(32,33,36,.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-2); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.modal-body { padding: 6px 20px 20px; overflow: auto; }
.modal-foot { padding: 0 20px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #f1f3f4; }
.icon-btn svg { width: 20px; height: 20px; fill: var(--muted); }

/* ---------- 후보(매칭) ---------- */
.cand-list { display: flex; flex-direction: column; gap: 8px; }
.cand { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cand.selected { border-color: var(--blue); background: #f5f9ff; }
.cand .info { flex: 1; min-width: 0; }
.cand .info b { font-weight: 500; }
.cand .info small { display: block; color: var(--muted); font-size: 11.5px; }
.cand input.qty-input { width: 64px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.cand input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; }
.summary-line { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; }
.summary-line b { color: var(--blue); }

/* ---------- 주간 대시보드 ---------- */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.week-label { font-weight: 500; font-size: 15px; }
.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.week-card { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.week-card .head { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; }
.week-card .head b { font-weight: 500; font-size: 14.5px; }
.week-card .head .n { margin-left: auto; color: var(--muted); font-size: 12px; }
.week-card .body { padding: 6px 16px 14px; }
.wgroup { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.wgroup:last-child { border-bottom: 0; }
.wgroup .who { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; }
.witems { display: flex; flex-direction: column; gap: 4px; padding-left: 40px; }
.witem { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.witem .g { flex: 1; }
.witem .due { color: var(--muted); font-size: 11.5px; }
.witem .due.overdue { color: #c5221f; font-weight: 500; }

/* ---------- 이력 ---------- */
.year-chips, .month-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.matrix { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.mcell { border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px; cursor: pointer; background: #fff; text-align: left; }
.mcell:hover { background: #f8f9fa; }
.mcell.active { border-color: var(--blue); background: #f5f9ff; }
.mcell .m { font-size: 11.5px; color: var(--muted); }
.mcell .t { font-size: 17px; font-weight: 500; margin-top: 2px; }
.bars { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 6px; background: #f1f3f4; }
.bars i { display: block; height: 100%; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; color: var(--muted); font-size: 11.5px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 13px; }
.history-table th { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table td.date { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--bg); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.tag b { color: var(--blue); margin-left: 6px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #323232; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-2);
  font-size: 13.5px; z-index: 200; max-width: min(92vw, 560px);
}
.toast.error { background: #b3261e; }
.toast.success { background: #1e8e3e; }

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
  .brand-sub { display: none; }
  .topbar-inner { gap: 12px; padding: 0 12px; }
  .tab { padding: 0 12px; font-size: 13.5px; }
  .main { padding: 20px 14px 70px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .logo { font-size: 42px; }
  .tabbar { flex-wrap: wrap; overflow: visible; row-gap: 2px; }
  .topbar-inner { height: auto; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .tab { padding: 0 10px; font-size: 13px; }
  table.grid th.name, table.grid td.name { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line-soft); }
  table.grid thead th.name { z-index: 3; }
  .logo.small { font-size: 26px; }
  .topbar-inner { height: 56px; }
  .me-name { display: none; }
  .me-button { padding: 0 6px; border: 0; }
  .grid-2, .grid-3, .week-grid, .form-2, .form-3 { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: repeat(4, 1fr); }
  .member-card { width: calc(50% - 8px); }
  .modal { border-radius: 16px; }
  .tabbar { order: 3; flex-basis: 100%; margin: 0 -12px; padding: 0 12px 6px; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 8px; }
  .brand { flex: 1; }
  .main { padding-top: 16px; }
  .page-title { font-size: 19px; }
  .stat { min-width: 88px; padding: 8px 11px; }
  .stat b { font-size: 16px; }
  .week-card .body { padding: 4px 12px 12px; }
  .witems { padding-left: 8px; }
}

/* ---------- 멤버 관리 ---------- */
.admin-list { display: flex; flex-direction: column; gap: 6px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 12px; }
.admin-row.inactive { background: var(--bg); opacity: .75; }
.admin-row .admin-who { flex: 1; min-width: 0; }
.admin-row .admin-who b { font-weight: 500; font-size: 14px; display: block; }
.admin-row .admin-who small { color: var(--muted); font-size: 11.5px; }
.admin-row .acts { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 특이사항(부속품·분실·파손) ---------- */
.note-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  height: 22px; padding: 0 8px; border-radius: 11px;
  background: #fce8e6; color: #c5221f; border: 1px solid #f6c7c3;
  font-size: 11.5px; font-weight: 500; cursor: pointer; vertical-align: middle;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-chip span { color: #a50e0e; opacity: .8; font-weight: 400; }
.note-chip:hover { background: #fadbd8; }
.note-line { display: block; color: #c5221f; font-size: 11.5px; margin-top: 3px; line-height: 1.4; }
.note-inline { background: #fce8e6; color: #a50e0e; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; }
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.note-row.resolved { background: var(--bg); opacity: .8; }
.note-main { flex: 1; min-width: 0; }
.note-main b { font-weight: 500; font-size: 13.5px; }
.note-main p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.note-row .acts { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.note-add { border-top: 1px solid var(--line-soft); margin-top: 6px; }

/* ---------- 소유자 · 전달 방향 ---------- */
.witem .owner { font-weight: 500; color: var(--ink); }
.witem .dir, .alloc-row .dir, .history-table .dir { color: var(--blue); }
.witem .dir { font-size: 11.5px; }
.alloc-row .dir { font-size: 12px; }
.alloc-row .who { color: var(--ink); }
