:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #1c2430;
  --muted: #6b7688;
  --line: #e3e7ee;
  --todo: #8a94a6;
  --doing: #2f6bff;
  --hold: #e0913a;
  --done: #22a06b;
  --abby: #7c4dff;
  --nell: #f2711c;
  --shadow: 0 1px 2px rgba(20,30,50,.06), 0 4px 14px rgba(20,30,50,.06);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

/* gate (login) */
.gate { position: fixed; inset: 0; z-index: 100; background: linear-gradient(160deg,#eef1f8,#e6ebf5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card { background: var(--panel); border-radius: 18px; box-shadow: 0 20px 60px rgba(20,30,50,.18); padding: 34px 30px; width: 380px; max-width: 100%; }
.gate-card h1 { font-size: 21px; margin: 0; letter-spacing: -.4px; }
.gate-sub { font-size: 13px; color: var(--muted); margin: 4px 0 24px; }
.gate form { display: flex; flex-direction: column; gap: 10px; }
.gate input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.btn.block { width: 100%; padding: 12px; margin-top: 2px; }
.linkbtn { background: none; border: none; color: var(--doing); font-size: 13px; cursor: pointer; margin-top: 14px; padding: 0; font-weight: 600; }
.gate-msg { font-size: 13px; margin-top: 14px; min-height: 18px; line-height: 1.5; }
.gate-msg.err { color: #d0342c; }
.gate-msg.ok { color: var(--done); }
.denied { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 8px 0; }
.denied-email { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.user-box { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.user-box .logout { color: var(--doing); cursor: pointer; font-weight: 600; }
.admin-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.member-row .badge { font-size: 11px; background: #eef1f8; color: var(--doing); padding: 2px 8px; border-radius: 999px; font-weight: 700; }

/* header */
.app-header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 10px;
  padding: 14px 22px; background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.user-box { margin-left: 4px; }
.brand h1 { font-size: 18px; margin: 0; letter-spacing: -.3px; }
.brand .sub { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  border: none; background: transparent; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 600;
}
.tab.active { background: #eef1f8; color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #c7cede; transition: background .3s; }
.sync-dot.live { background: var(--done); box-shadow: 0 0 0 3px rgba(34,160,107,.18); }

/* buttons */
.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 8px 14px; border-radius: 9px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.btn.primary { background: var(--doing); border-color: var(--doing); color: #fff; }
.btn.ghost { border-color: transparent; background: #eef1f8; }
.btn.danger { background: #fff; border-color: #f2c1c1; color: #d0342c; }
.btn:hover { filter: brightness(.97); }

/* filters */
.filters { display: flex; align-items: center; gap: 10px; padding: 14px 22px; flex-wrap: wrap; }
.filter-group { display: flex; gap: 4px; background: var(--panel); padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.chip-filter { border: none; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.chip-filter.active { background: var(--ink); color: #fff; }
.chip-filter.owner-abby.active { background: var(--abby); }
.chip-filter.owner-nell.active { background: var(--nell); }
.filter-select, .filter-search {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
  font-size: 13px; color: var(--ink);
}
.filter-search { flex: 1; min-width: 160px; max-width: 260px; }

/* board */
.view { padding: 4px 22px 40px; }
.hidden { display: none !important; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.column { background: #eef0f5; border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 8px 12px; font-size: 14px; }
.col-head .count { margin-left: auto; background: #fff; color: var(--muted); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.todo { background: var(--todo); } .dot.doing { background: var(--doing); } .dot.hold { background: var(--hold); } .dot.done { background: var(--done); }
.col-body { display: flex; flex-direction: column; gap: 9px; min-height: 60px; }
.col-body.drag-over { outline: 2px dashed var(--doing); outline-offset: -2px; border-radius: 8px; }

/* card */
.task {
  background: var(--panel); border-radius: 10px; padding: 11px 12px; box-shadow: var(--shadow);
  border-left: 3px solid var(--abby); cursor: grab; position: relative;
}
.task.o-Nell { border-left-color: var(--nell); }
.task.done-card .task-title { color: var(--muted); text-decoration: line-through; }
.task-title { font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef1f8; color: var(--muted); font-weight: 600; }
.tag.owner { color: #fff; }
.tag.owner.Abby { background: var(--abby); } .tag.owner.Nell { background: var(--nell); }
.tag.branch { background: #e8f0ff; color: #2f6bff; }
.tag.team { background: #fef1e6; color: #c25e12; }
.tag.due { background: #f0f2f6; }
.tag.due.overdue { background: #fdecec; color: #d0342c; }
.tag.branch .notion-link { margin-left: 4px; text-decoration: none; opacity: .8; cursor: pointer; }
.tag.branch .notion-link:hover { opacity: 1; }
.task-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.task-link { font-size: 11px; font-weight: 600; text-decoration: none; color: var(--doing); background: #f0f4ff; border: 1px solid #dbe4ff; border-radius: 7px; padding: 2px 7px; }
.task-link:hover { background: #e2ebff; }
.hint { font-weight: 500; color: var(--muted); font-size: 11px; }
/* modal: 지점 select + 노션 열기 */
.branch-row { display: flex; align-items: center; gap: 8px; }
.branch-row select { flex: 1; }
.notion-open { white-space: nowrap; font-size: 12px; font-weight: 700; color: #2f6bff; text-decoration: none; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f4f7ff; }
.notion-open:hover { background: #e8f0ff; }
.notion-open.hidden { display: none; }

/* dashboard */
.dash-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 20px; }
.sum-card { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.sum-card .n { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.sum-card .l { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.sum-card.todo .n { color: var(--todo); } .sum-card.doing .n { color: var(--doing); }
.sum-card.hold .n { color: var(--hold); }
.sum-card.done .n { color: var(--done); } .sum-card.total .n { color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 14px; font-size: 15px; }
.stack-list { display: flex; flex-direction: column; gap: 12px; }
.srow { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 10px; }
.srow .name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .num { font-size: 13px; color: var(--muted); text-align: right; }
.bar { display: flex; height: 16px; border-radius: 5px; overflow: hidden; background: #f0f2f6; }
.bar > span { display: block; height: 100%; }
.bar .s-todo { background: var(--todo); } .bar .s-doing { background: var(--doing); } .bar .s-hold { background: var(--hold); } .bar .s-done { background: var(--done); }
.legend { display: flex; gap: 16px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.empty { color: var(--muted); font-size: 13px; padding: 20px 0; text-align: center; }

/* 관련 링크 (개별 추가) */
.links-field { display: flex; flex-direction: column; gap: 8px; }
.links-field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.link-list { display: flex; flex-direction: column; gap: 7px; }
.link-row { display: flex; align-items: center; gap: 8px; }
.link-open-wrap { flex: none; }
.link-open { font-size: 11px; font-weight: 700; text-decoration: none; color: var(--doing); background: #f0f4ff; border: 1px solid #dbe4ff; border-radius: 7px; padding: 5px 9px; white-space: nowrap; display: inline-block; }
.link-open:hover { background: #e2ebff; }
.link-open.dim { color: var(--muted); background: #f0f2f6; border-color: var(--line); }
.link-row .link-url { flex: 1; min-width: 0; }
.link-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px 6px; border-radius: 6px; flex: none; }
.link-del:hover { background: #fdecec; color: #d0342c; }
.link-new { display: flex; gap: 8px; align-items: center; }
.link-new input { flex: 1; }
.link-add { white-space: nowrap; }

/* 상세 메모 (날짜별 로그) */
.memo-field { display: flex; flex-direction: column; gap: 8px; }
.memo-field-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.memo-log { display: flex; flex-direction: column; gap: 10px; }
.memo-entry { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fafbfd; }
.memo-entry-head { display: flex; align-items: center; margin-bottom: 6px; }
.memo-date { font-size: 12px; font-weight: 700; color: var(--doing); }
.memo-del { margin-left: auto; border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px; line-height: 1; }
.memo-del:hover { background: #fdecec; color: #d0342c; }
.memo-entry textarea { width: 100%; background: #fff; }
.memo-new { display: flex; gap: 8px; align-items: stretch; }
.memo-new textarea { flex: 1; }
.memo-add { white-space: nowrap; }
.memo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#memo-new-links:empty { margin-top: 0; }

/* 조직도 · 비상연락망 (계단식 트리) */
.org, .emg { padding: 14px 0 48px; max-width: 780px; }
.emg-note { font-size: 12.5px; color: var(--muted); background: #fff7ed; border: 1px solid #fde3c4; border-radius: 10px; padding: 10px 13px; margin-bottom: 14px; line-height: 1.5; }
.tw { font-size: 13px; }
.tw-kids { margin-left: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.tw-node.collapsed > .tw-kids { display: none; }
.tw-row { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px; min-height: 34px; }
.tw-row:hover { background: #f4f6fa; }
.tw-tog { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 10px; width: 16px; height: 16px; flex: none; padding: 0; transition: transform .12s; }
.tw-node.collapsed > .tw-row .tw-tog { transform: rotate(-90deg); }
.tw-tog-sp { width: 16px; flex: none; display: inline-block; }
.tw-label { font-weight: 600; }
.tw-sub { font-size: 11px; color: var(--muted); }
.tw-star { color: var(--abby); font-size: 11px; }
.tw-badge { font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.tw-badge.t-op { background: #e8f0ff; color: #2f6bff; }
.tw-badge.t-pur { background: #efeaff; color: #7c4dff; }
.tw-badge.t-cx { background: #fef1e6; color: #d2691e; }
.tw-cnt { margin-left: auto; font-size: 11px; color: var(--muted); background: #f0f2f6; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
/* head (실장) */
.k-head > .tw-row { background: linear-gradient(135deg,#232a5c,#3d3f95); color: #fff; margin-bottom: 4px; box-shadow: var(--shadow); }
.k-head > .tw-row:hover { background: linear-gradient(135deg,#232a5c,#3d3f95); }
.k-head > .tw-row .tw-tog { color: #c7cbf0; }
.k-head > .tw-row .tw-label { font-weight: 800; font-size: 15px; }
.k-head > .tw-row .tw-sub { color: #c7cbf0; }
/* team */
.k-team > .tw-row .tw-label { font-weight: 800; font-size: 14px; }
/* branch */
.k-branch > .tw-row { background: #f7f8fb; }
.k-branch > .tw-row .tw-label { font-weight: 700; }
/* person */
.k-person > .tw-row .tw-label { font-weight: 600; }
/* phone (비상연락망) */
.tw-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; min-width: 150px; }
.tw-tel { color: var(--muted); font-size: 12px; }
.tw-phone input { border: none; background: transparent; font-size: 12px; font-family: inherit; color: var(--ink); width: 100%; outline: none; }

/* 조직도: 박스+연결선 나무 트리 (top-down) */
.octree-wrap { overflow-x: auto; padding: 20px 4px 40px; }
.octree { display: inline-block; min-width: 100%; padding: 4px 20px; }
.octree ul { position: relative; display: flex; justify-content: center; padding-top: 22px; margin: 0; }
.octree li { list-style: none; position: relative; padding: 22px 7px 0; display: flex; flex-direction: column; align-items: center; }
/* 형제 연결: 위쪽 가로선 */
.octree li::before, .octree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid var(--line); }
.octree li::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.octree li:only-child::before, .octree li:only-child::after { display: none; }
.octree li:only-child { padding-top: 0; }
.octree li:first-child::before, .octree li:last-child::after { border: 0 none; }
.octree li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 7px 0 0; }
.octree li:first-child::after { border-radius: 7px 0 0 0; }
/* 부모→자식 세로선 */
.octree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 22px; border-left: 2px solid var(--line); }
.octree > ul { padding-top: 0; }
.octree li.oc-collapsed > ul { display: none; }
/* 팀 아래부터는 세로 목록(컴팩트) — 가로 폭 최소화 */
.octree ul.v { display: block; padding: 8px 0 0; margin-left: 16px; border-left: 2px solid var(--line); position: relative; }
.octree ul.v::before { content: none; }
.octree ul.v > li { display: block; padding: 7px 0 0 16px; align-items: flex-start; }
.octree ul.v > li::after { content: none; display: none; }
.octree ul.v > li::before { content: ""; position: absolute; top: 18px; left: 0; right: auto; width: 16px; height: 0; border-top: 2px solid var(--line); border-left: 0; border-radius: 0; }
.octree ul.v > li:last-child { position: relative; }
.octree ul.v > li:last-child::before { border-radius: 0; }
/* 박스 */
.ocbox { position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; box-shadow: var(--shadow); font-size: 13px; }
.oc-nm { font-weight: 700; }
.oc-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.oc-star { color: var(--abby); font-size: 11px; }
.oc-badge { font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }
.oc-badge.t-op { background: #e8f0ff; color: #2f6bff; }
.oc-badge.t-pur { background: #efeaff; color: #7c4dff; }
.oc-badge.t-cx { background: #fef1e6; color: #d2691e; }
.oc-head { background: linear-gradient(135deg,#232a5c,#3d3f95); border: none; color: #fff; padding: 12px 22px; border-radius: 12px; box-shadow: 0 8px 22px rgba(35,42,92,.28); }
.oc-head .oc-nm { font-size: 16px; font-weight: 800; }
.oc-head .oc-sub { color: #c7cbf0; }
.oc-team { border-width: 2px; font-weight: 700; }
.oc-team .oc-nm { font-size: 14px; }
.oc-branch { background: #f7f8fb; cursor: pointer; }
.oc-branch:hover { background: #eef2fb; border-color: #cfd7e6; }
.oc-branchgroup { background: #eef2fb; border-color: #d3ddf0; cursor: pointer; font-weight: 700; }
.oc-branchgroup:hover { background: #e2ebfb; }
.oc-collapsed > .oc-branchgroup .oc-caret { transform: rotate(-90deg); }
.oc-cnt { font-size: 10.5px; color: var(--muted); background: #e7ebf3; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.oc-caret { font-size: 9px; color: var(--muted); transition: transform .12s; }
.oc-collapsed > .oc-branch .oc-caret { transform: rotate(-90deg); }
.oc-person .oc-nm { font-weight: 600; }
/* 운영팀 Abby↔지점 담당 연결선 (오른쪽 브래킷) */
.octree li.oc-oplink { position: relative; }
.oplink { position: absolute; inset: 0; pointer-events: none; }
.oplink .opl-v { position: absolute; width: 0; border-left: 2px solid var(--abby); border-radius: 2px; }
.oplink .opl-h { position: absolute; height: 0; border-top: 2px solid var(--abby); }
.oc-legend { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 4px; padding-bottom: 8px; }
.oc-legend b { color: var(--abby); }
.oc-legend b.n { color: var(--nell); }

/* ===== 프로젝트 탭 ===== */
.proj-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; flex-wrap: wrap; }
.proj-h { font-size: 18px; font-weight: 800; margin: 0; }
.proj-sub { font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.proj { padding: 0 20px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.pcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; flex-wrap: wrap; }
.pcard-hl { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pcard-emoji { font-size: 22px; line-height: 1; }
.pcard-name { font-size: 15px; font-weight: 800; }
.pcard-desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.pcard-hr { display: flex; align-items: center; gap: 8px; }
.pcard-cnt { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pcard-cnt b { color: var(--ink); }
.pcard-edit { padding: 4px 9px; font-size: 14px; }
.pcard-add { padding: 6px 12px; font-size: 13px; }
.pcard-body { padding: 6px 8px 8px; }
.pi { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-bottom: 1px solid #eef1f6; cursor: pointer; border-radius: 8px; }
.pi:last-child { border-bottom: 0; }
.pi:hover { background: #f7f9fc; }
.pi-done { opacity: .58; }
.pi-done .pi-title { text-decoration: line-through; }
.pi-status { flex: 0 0 auto; border: none; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 800; color: #fff; cursor: pointer; min-width: 58px; text-align: center; }
.pi-status.s-todo { background: var(--todo); } .pi-status.s-doing { background: var(--doing); } .pi-status.s-hold { background: var(--hold); } .pi-status.s-done { background: var(--done); }
.pi-main { flex: 1 1 auto; min-width: 0; }
.pi-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.pi-detail { font-size: 12px; color: #4a5464; line-height: 1.5; margin-top: 3px; }
.pi-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 7px; }
.pi-branch { font-size: 11px; font-weight: 700; background: #e8f0ff; color: #2f6bff; border-radius: 6px; padding: 2px 8px; }
.pi-branch .notion-link { margin-left: 4px; text-decoration: none; opacity: .8; }
.pi-branch .notion-link:hover { opacity: 1; }
.pi-tag { font-size: 11px; font-weight: 700; background: #f0f2f6; color: #57617a; border-radius: 6px; padding: 2px 8px; }
.pi-chk { font-size: 11px; color: var(--muted); }
.pi-due { font-size: 11px; font-weight: 700; background: #f0f2f6; color: #57617a; border-radius: 6px; padding: 2px 8px; }
.pi-due.overdue { background: #fdecec; color: #d0342c; }
.pi-actions { flex: 0 0 auto; }
.pi-recheck { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
@media (max-width: 620px) {
  .pi { flex-wrap: wrap; }
  .pi-actions { width: 100%; text-align: right; }
}

/* ===== 회의 / HM미팅 탭 ===== */
.meet-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; flex-wrap: wrap; }
.meet-h { font-size: 18px; font-weight: 800; margin: 0; }
.meet-sub { font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.meet-sub b { color: var(--doing); }
.meet { padding: 0 20px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1100px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; flex-wrap: wrap; }
.mcard-hl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mcard-date { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #2f6bff; background: #e8f0ff; border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.mcard-name { font-size: 15px; font-weight: 800; }
.mcard-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mcard-hr { display: flex; align-items: center; gap: 8px; }
.mcard-edit { padding: 4px 9px; font-size: 14px; }
.mcard-add { padding: 6px 12px; font-size: 13px; }
.meet-body { padding: 12px 16px; font-size: 13px; line-height: 1.65; color: #3a4353; border-bottom: 1px solid #eef1f6; white-space: normal; }
.meet-body a { color: #2f6bff; text-decoration: none; } .meet-body a:hover { text-decoration: underline; }
.mcard-body { padding: 6px 8px 8px; }
.mi { display: flex; align-items: flex-start; gap: 11px; padding: 11px 10px; border-bottom: 1px solid #eef1f6; cursor: pointer; border-radius: 8px; }
.mi:last-child { border-bottom: 0; }
.mi:hover { background: #f7f9fc; }
.mi-fu { background: #fffdf5; }
.mi-fu:hover { background: #fff8e8; }
.mi-res { flex: 0 0 auto; border: none; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 800; color: #fff; cursor: pointer; min-width: 52px; text-align: center; }
.mi-res.r-공유 { background: #8a94a6; } .mi-res.r-논의 { background: #2f6bff; } .mi-res.r-결정 { background: #22a06b; } .mi-res.r-후속 { background: #f2711c; }
.mi-main { flex: 1 1 auto; min-width: 0; }
.mi-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.mi-detail { font-size: 12px; color: #4a5464; line-height: 1.5; margin-top: 3px; white-space: pre-wrap; }
.mi-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.mi-owner { font-size: 11.5px; font-weight: 800; }
.mi-branch { font-size: 11px; font-weight: 700; background: #e8f0ff; color: #2f6bff; border-radius: 6px; padding: 2px 8px; }
.mi-branch .notion-link { margin-left: 4px; text-decoration: none; opacity: .8; }
.mi-branch .notion-link:hover { opacity: 1; }
.mi-author { font-size: 11px; font-weight: 700; background: #eef1f6; color: #57617a; border-radius: 6px; padding: 2px 8px; }
.mi-links { margin-top: 7px; }
.mi-actions { flex: 0 0 auto; }

/* 빠른 안건 추가 바 */
.mi-quick { display: flex; gap: 8px; padding: 10px 10px 12px; border-top: 1px dashed #e6e9f0; }
.mi-quick-in { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; background: #fff; }
.mi-quick-in:focus { outline: 2px solid #e8f0ff; border-color: #2f6bff; }
.mi-quick-btn { flex: 0 0 auto; padding: 10px 16px; }

/* 이번 주 회의글 프롬프트 */
.meet-weekprompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff8e8; border: 1px solid #f2e3c0; color: #8a6d1f; font-weight: 700; font-size: 13.5px;
  border-radius: 12px; padding: 12px 16px; }

/* 빈 상태 안내 */
.meet-empty { text-align: center; padding: 48px 20px; }
.meet-empty-t { font-size: 16px; font-weight: 800; }
.meet-empty-d { font-size: 13px; color: var(--muted); margin: 8px 0 16px; line-height: 1.6; }

@media (max-width: 620px) {
  .mi-quick-btn { padding: 11px 14px; }
  .meet-weekprompt .btn { flex: 1 1 100%; }
}
.mi-tboard { padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.mi-board { border: 1px solid var(--line); background: #f4f7fb; color: #3a4353; border-radius: 8px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mi-board.linked:hover { background: #e8f0ff; border-color: #b9d0ff; }
.mi-board.gone { color: var(--muted); cursor: default; }
.tag.from-meet { background: #fff0e0; color: #d2691e; }
.mitem-link-box { font-size: 12px; line-height: 1.55; color: #57617a; background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 8px; padding: 9px 11px; }
@media (max-width: 620px) {
  .mi { flex-wrap: wrap; }
  .mi-actions { width: 100%; text-align: right; margin-top: 4px; }
}

/* ===== HQ 전용: 면담 기록 · 인원부족 보상 ===== */
.hq-sec { padding: 0 20px; max-width: 1100px; margin-bottom: 8px; }
.hq-sech { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.hq-sech .hub-gh { margin: 0; }
.hq-sech-r { display: flex; align-items: center; gap: 10px; }
.hq-cnt { font-size: 12px; color: var(--muted); font-weight: 700; }
.hq-toggle { cursor: pointer; user-select: none; }
.hq-toggle .sec-caret { display: inline-block; transition: transform .15s; font-size: 12px; color: var(--muted); margin-right: 2px; }
.hq-toggle.collapsed .sec-caret { transform: rotate(-90deg); }
.hq-comp-body { margin-top: 8px; }
.mx-deptrow th { background: #eef2f8 !important; color: #3a4252; font-weight: 800; font-size: 12px; text-align: left !important; position: sticky; left: 0; }
.hq-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.hqrow { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #eef1f6; cursor: pointer; }
.hqrow:last-child { border-bottom: 0; }
.hqrow:hover { background: #f7f9fc; }
.hq-badge { flex: 0 0 auto; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 9px; background: #eef1f8; color: #57617a; white-space: nowrap; }
.hq-badge.cat { background: #efeaff; color: #6b39e0; }
.hq-main { flex: 1 1 auto; min-width: 0; }
.hq-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.hq-branch { font-size: 11px; font-weight: 700; background: #e8f0ff; color: #2f6bff; border-radius: 6px; padding: 2px 8px; }
.hq-branch .notion-link { margin-left: 4px; text-decoration: none; opacity: .8; }
.hq-date { font-size: 11.5px; color: var(--muted); }
.hq-who { font-size: 11px; color: var(--muted); background: #f0f2f6; border-radius: 6px; padding: 2px 8px; }
.hq-reason { font-size: 12px; color: #4a5464; }
.hq-subtext { font-size: 12px; color: #4a5464; line-height: 1.5; margin-top: 4px; }
.hq-fu { font-size: 11.5px; color: var(--doing); margin-top: 3px; }
.hq-chip { flex: 0 0 auto; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hq-chip.open, .hq-chip.planned { background: #fff3e0; color: #c67611; }
.hq-chip.closed, .hq-chip.paid { background: #e6f6ee; color: #1c8a58; }
@media (max-width: 620px) { .hqrow { flex-wrap: wrap; } }
/* 보상 인원×월 매트릭스 */
.mx-wrap { overflow: auto; max-height: 65vh; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
table.mx { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.mx th, table.mx td { border-bottom: 1px solid #eef1f6; border-right: 1px solid #eef1f6; padding: 8px 10px; text-align: right; white-space: nowrap; }
table.mx tr:first-child th { background: #eef2f8; text-align: center; color: #3a4252; font-size: 11.5px; font-weight: 800; position: sticky; top: 0; z-index: 3; }
table.mx .mx-name { text-align: left; position: sticky; left: 0; background: var(--panel); z-index: 2; min-width: 130px; }
table.mx tr:first-child .mx-name { z-index: 4; background: #eef2f8; }
table.mx .mx-foot th, table.mx .mx-foot td { position: sticky; bottom: 0; z-index: 2; }
table.mx .mx-foot .mx-name { z-index: 3; }
.mx-dept { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mx-eng { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.mx-resigned { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #f3d9d9; color: #a03434; font-size: 10px; font-weight: 700; vertical-align: middle; }
tr.mx-resrow .mx-name b { color: #8a8f98; }
tr.mx-resrow .mx-cell { opacity: 0.72; }
.mx-cell { cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; }
.mx-cell:hover { outline: 2px solid var(--doing); outline-offset: -2px; }
.mx-cell.paid { background: #e6f6ee; color: #1c8a58; }
.mx-cell.planned { background: #fff3e0; color: #c67611; }
.mx-cell.mx-empty { background: transparent; color: transparent; }
.mx-cell.mx-empty:hover::after { content: "+"; color: var(--doing); font-weight: 800; }
.mx-tot { font-weight: 800; background: #f7f8fb; }
.mx-foot th, .mx-foot td { background: #f2f4f8; font-weight: 800; border-top: 2px solid var(--line); }
.mx-legend { font-size: 11px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.mx-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: middle; }
.mx-key.paid { background: #cdeeda; } .mx-key.planned { background: #fde7c4; }
.mx-monthctl { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.mx-mgrp { display: inline-flex; align-items: center; gap: 3px; }
.mx-mbtn { padding: 2px 9px; font-size: 13px; line-height: 1.2; min-width: 26px; }
.mx-mnote { font-size: 10.5px; color: var(--muted); }
/* 명단 관리 */
.roster-cnt-wrap { display: flex; align-items: flex-end; padding-bottom: 10px; }
.roster-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.roster-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.roster-row:last-child { border-bottom: 0; }
.roster-row.editing { background: #f0eaff; }
.rr-main { flex: 1 1 auto; min-width: 0; }
.rr-eng { color: var(--muted); font-weight: 500; font-size: 12px; }
.rr-code { font-size: 11px; color: var(--muted); font-weight: 600; background: #f0f2f6; border-radius: 5px; padding: 1px 6px; }
.rr-dept { font-size: 11px; font-weight: 700; background: #e8f0ff; color: #2f6bff; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.rr-role { font-size: 11px; color: #57617a; background: #f0f2f6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.rr-status { font-size: 11px; font-weight: 700; color: #c67611; background: #fff3e0; border-radius: 6px; padding: 2px 8px; }
.rr-edit { padding: 3px 10px; font-size: 12px; }
.roster-sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0 12px; }
/* 보상 일괄 입력 */
.bulk-people-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; font-size: 13px; font-weight: 700; }
.bulk-people { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.bulk-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #eef1f6; cursor: pointer; font-size: 13px; }
.bulk-row:last-child { border-bottom: 0; }
.bulk-row:hover { background: #f7f9fc; }
.bulk-chk { width: 16px; height: 16px; flex: 0 0 auto; }
.bulk-nm { flex: 1 1 auto; min-width: 0; }
.bulk-grp:not(:last-child) { border-bottom: 2px solid var(--line); }
.bulk-grp-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #eef2f8; font-size: 13px; cursor: pointer; position: sticky; top: 0; }
.bulk-grp-head b { font-weight: 800; }
.bulk-grp .bulk-row { padding-left: 30px; }

/* 비상연락망: 지점 시설 연락처 */
.fac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.fac-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; box-shadow: var(--shadow); }
.fac-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.fac-bn { font-weight: 700; font-size: 14px; letter-spacing: -.2px; }
.fac-rows { display: flex; flex-direction: column; gap: 7px; }
.fac-row { display: flex; align-items: center; gap: 8px; }
.fac-label { font-size: 12px; color: var(--muted); font-weight: 700; min-width: 62px; flex: none; }
.fac-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; flex: 1; }
.fac-phone input { border: none; background: transparent; font-size: 12px; font-family: inherit; color: var(--ink); width: 100%; outline: none; }
.fac-addrinput { flex: 1; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12px; font-family: inherit; color: var(--ink); background: #fff; outline: none; min-width: 0; }
.fac-addwrap { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.fac-add { border: 1px dashed #cfd7e6; background: #f8f9fc; color: var(--doing); border-radius: 8px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.fac-add:hover { background: #eef2fb; }

/* 조직도 트리/카드 전환 */
.org-switch { display: inline-flex; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 12px 0 4px; }
.org-vbtn { border: none; background: transparent; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.org-vbtn.active { background: var(--ink); color: #fff; }

/* 조직도 카드형 (넬 허브 원본) */
.org-cards { padding: 14px 0 40px; }
.org-head { width: 340px; max-width: 90%; margin: 0 auto; background: linear-gradient(135deg,#232a5c,#3d3f95); color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(35,42,92,.28); overflow: hidden; }
.org-head-name { font-size: 20px; font-weight: 800; text-align: center; padding: 16px 16px 2px; letter-spacing: -.3px; }
.org-head-title { font-size: 12px; text-align: center; color: #c7cbf0; padding-bottom: 12px; }
.org-connector { width: 2px; height: 22px; background: var(--line); margin: 0 auto; }
.org-teams { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; max-width: 1080px; margin: 0 auto; }
.org-teams::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: var(--line); }
.org-team { position: relative; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--doing); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.org-team::before { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line); }
.org-team.t-op { border-left-color: #2f6bff; }
.org-team.t-pur { border-left-color: #7c4dff; }
.org-team.t-cx { border-left-color: #f2711c; }
.org-team-h { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.org-badge { font-size: 11px; font-weight: 800; border-radius: 8px; padding: 3px 9px; flex: none; }
.t-op .org-badge { background: #e8f0ff; color: #2f6bff; }
.t-pur .org-badge { background: #efeaff; color: #7c4dff; }
.t-cx .org-badge { background: #fef1e6; color: #d2691e; }
.org-team-nm { font-weight: 800; font-size: 15px; }
.org-team-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.org-members { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.org-mem { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-left: 3px solid #d7ddea; border-radius: 9px; padding: 8px 11px; }
.org-mem-l { min-width: 92px; }
.org-mem-nm { font-weight: 700; font-size: 13px; }
.org-mem-role { font-size: 11px; color: var(--muted); margin-top: 1px; }
.org-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #f4f6fa; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; flex: 1; max-width: 160px; }
.org-tel { color: var(--muted); font-size: 12px; }
.org-phone input { border: none; background: transparent; font-size: 12px; font-family: inherit; color: var(--ink); width: 100%; outline: none; }
.org-head .org-phone { margin: 0 auto 14px; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); width: calc(100% - 28px); max-width: none; }
.org-head .org-tel { color: #d3d7f5; }
.org-head .org-phone input { color: #fff; }
.org-head .org-phone input::placeholder { color: #b9bdea; }
.org-branch-sum { margin-top: 3px; border: 1px dashed #cfd7e6; background: #f8f9fc; border-radius: 9px; padding: 9px; font-size: 12px; font-weight: 700; color: var(--doing); text-align: center; }
.org-branch-sum b { color: var(--ink); }
@media (max-width: 820px) { .org-teams { grid-template-columns: 1fr; } .org-teams::before, .org-team::before { display: none; } }

/* 지점별 디렉터리 */
.bdir-sum { display: flex; gap: 20px; margin: 12px 0 20px; font-size: 13px; color: var(--muted); }
.bdir-sum b { font-size: 18px; color: var(--ink); font-weight: 800; margin-right: 3px; }
.bdir-region { margin-bottom: 22px; }
.bdir-rh { font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.bdir-rc { background: #eef1f8; color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.bdir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.bdir-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.bdir-bh { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.bdir-bnum { font-size: 11px; font-weight: 800; color: #fff; background: var(--todo); border-radius: 6px; padding: 1px 6px; flex: none; }
.bdir-bn { font-weight: 700; font-size: 14px; letter-spacing: -.2px; }
.bdir-notion { text-decoration: none; opacity: .75; font-size: 13px; }
.bdir-notion:hover { opacity: 1; }
.bdir-cnt { margin-left: auto; font-size: 12px; color: var(--muted); background: #f0f2f6; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.bdir-emps { display: flex; flex-wrap: wrap; gap: 6px; }
.bemp { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f0f2f6; color: var(--ink); font-weight: 600; }
.bemp.hm { background: #efeaff; color: var(--abby); }
.be-eng { color: var(--muted); font-weight: 500; margin-left: 2px; }
.bemp.hm .be-eng { color: #9a7de0; }
.bdir-none { font-size: 12px; color: var(--muted); }

/* HQ 전용 */
.hq-note { font-size: 12.5px; color: #8a5a00; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 10px; padding: 11px 14px; margin: 12px 0 18px; line-height: 1.5; }
.hq-placeholder { font-size: 13px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }

/* hub (바로가기 포털) */
.hub { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; }
.hub-group { }
.hub-gh { font-size: 13px; font-weight: 800; color: var(--muted); margin: 0 0 10px; letter-spacing: .2px; text-transform: none; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hub-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow); transition: transform .08s, box-shadow .12s, border-color .12s;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(20,30,50,.12); border-color: #cfd7e6; }
.hub-card.disabled { opacity: .5; cursor: default; box-shadow: none; }
.hub-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.hub-ic { font-size: 22px; line-height: 1; flex: none; width: 26px; text-align: center; }
.hub-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hub-nm { font-weight: 700; font-size: 14px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-ds { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-kind { flex: none; font-size: 10.5px; font-weight: 700; color: var(--muted); background: #eef1f8; border-radius: 999px; padding: 2px 8px; }
.hub-foot { color: var(--muted); font-size: 12px; margin-top: 26px; text-align: center; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,28,44,.42); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border-radius: 16px; width: 480px; max-width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head .btn { margin-left: auto; }
.modal-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-body label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.modal-body input, .modal-body select, .modal-body textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.req { color: #d0342c; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.modal-actions .spacer { flex: 1; }

/* members */
.hint { font-size: 12px; color: var(--muted); margin: 0 0 4px; line-height: 1.5; }
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.member-row .swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.member-row .mname { font-weight: 700; }
.member-row .mcount { margin-left: auto; font-size: 12px; color: var(--muted); }
.member-row .btn { padding: 5px 10px; font-size: 12px; }
.member-add { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.member-add input[name=name] { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; }
.member-add input[type=color] { width: 42px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .board { grid-template-columns: 1fr; }
  .dash-summary, .dash-grid { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 92px 1fr 36px; }
}
