:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --border: #e6e9ef;
  --text: #323338;
  --muted: #676879;
  --brand: #0073ea;
  --brand-dark: #0060b9;
  --shadow: 0 4px 14px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.hidden { display: none !important; }

/* ---------- Login ---------- */
#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 360px;
  padding: 32px 28px;
}
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card p.sub { color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.login-card label { display:block; font-size:12px; color:var(--muted); margin: 14px 0 6px; }
.login-card input {
  width: 100%; padding: 11px 12px; border:1px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none;
}
.login-card input:focus { border-color: var(--brand); }
.login-card button {
  width: 100%; margin-top: 22px; padding: 12px; border: none; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.login-card button:hover { background: var(--brand-dark); }
.login-err { color:#df2f4a; font-size:13px; margin-top:12px; min-height:18px; }
.login-hint { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.6; border-top:1px solid var(--border); padding-top:14px;}
.login-hint code { background:#f0f1f5; padding:1px 5px; border-radius:4px; }

/* ---------- Top bar ---------- */
#app { min-height: 100vh; }
.topbar {
  display:flex; align-items:center; gap:14px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  padding: 12px 22px; position: sticky; top:0; z-index: 5;
}
.topbar .logo { font-weight: 700; font-size: 16px; }
.topbar .logo .dot { color: var(--brand); }
.topbar .spacer { flex: 1; }
.who { display:flex; align-items:center; gap:10px; }
.who .name { font-weight: 600; }
.who .role { font-size: 11px; color:#fff; background:var(--brand); padding:2px 8px; border-radius:20px; }
.who .role.member { background:#9d50dd; }
.avatar {
  width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:12px;font-weight:700;
}
.btn-out { border:1px solid var(--border); background:#fff; padding:7px 12px; border-radius:7px; cursor:pointer; color:var(--muted);}
.btn-out:hover { background:#f0f1f5; }

/* ---------- Banner ---------- */
.scope-banner {
  margin: 18px 22px 0; padding: 11px 16px; border-radius: 10px; font-size: 13px;
  display:flex; align-items:center; gap:8px;
}
.scope-banner.member { background:#eef3ff; border:1px solid #d6e4ff; color:#2a4b8d; }
.scope-banner.admin  { background:#fff7e6; border:1px solid #ffe2a8; color:#8a6100; }

/* ---------- Board ---------- */
.board { padding: 14px 22px 60px; }
/* each group is a rounded card with a colored left strip (Monday-style) */
.group { background:var(--panel); border:1px solid var(--border); border-left:6px solid #ccc;
  border-radius:10px; box-shadow:var(--shadow); margin-top:16px; overflow:hidden; }
.group-bar { display:none; }

.table-wrap { overflow-x:auto; border-top:1px solid var(--border); }
.table { width:100%; border-collapse: separate; border-spacing:0; background:var(--panel); }
.namecol .cell.editable { display:block; width:fit-content; max-width:100%; }
.namewrap { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.namewrap .cell { flex:1; min-width:0; }
.row-dots { flex:0 0 auto; color:var(--muted); cursor:pointer; opacity:0; font-size:15px; font-weight:700;
  letter-spacing:1px; padding:1px 6px; border-radius:5px; transition:opacity .12s, background .12s; }
.table tr:hover .row-dots { opacity:1; }
.row-dots:hover { background:rgba(0,0,0,.07); color:var(--text); }
.show-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }
.show-sub { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }
.table th {
  text-align:center; font-size:11px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); font-weight:600; padding:10px 14px; background:#fbfbfd;
  border-bottom:1px solid var(--border); border-right:1px solid var(--border);
}
.table th:first-child { text-align:left; }
.table th:last-child { border-right:none; }
.table td { padding:7px 14px; border-bottom:1px solid var(--border); border-right:1px solid var(--border); vertical-align:middle; }
.table td:last-child { border-right:none; }

/* full-cell color fills (status / people) — color on the td so it always
   fills the full row height; fixed width so every box is the same size and
   the text stays on one line */
td.cf, th.cfh { width:150px; min-width:150px; max-width:150px; }
td.cf { padding:0; cursor:pointer; }
.cf.editable:hover { box-shadow: inset 0 0 0 2px rgba(0,0,0,.14); }
.cf-txt { display:flex; align-items:center; justify-content:center; height:100%; min-height:38px;
  padding:5px 10px; text-align:center; font-size:13px; font-weight:600; box-sizing:border-box;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:#fafbff; }
.show-name { font-weight:600; }
.show-sub { font-size:12px; color:var(--muted); margin-top:2px; }

.pill { display:inline-flex; align-items:center; justify-content:center; padding:4px 12px; border-radius:6px;
  color:#fff; font-size:12px; font-weight:600; white-space:nowrap; min-width:90px; }
.pill.grey { color:#5b5b67; }
.prio { min-width:42px; padding:4px 8px; }

.person { display:inline-flex; align-items:center; gap:8px; }
.person .avatar { width:26px;height:26px;font-size:11px; }
.person .pname { font-size:13px; }

.doclinks { display:flex; gap:5px; flex-wrap:nowrap; }
.doc { display:inline-flex; align-items:center; gap:3px; font-size:11px; text-decoration:none; white-space:nowrap;
  border:1px solid var(--border); padding:3px 7px; border-radius:6px; color:var(--brand); background:#fff; flex:0 0 auto; }
.doc:hover { background:#eef3ff; }
.doc.empty { color:#b9bbc4; border-style:dashed; pointer-events:none; }

.empty-state { text-align:center; color:var(--muted); padding:70px 20px; }
.empty-state .big { font-size:40px; margin-bottom:10px; }

/* ---------- Add button + row edit ---------- */
.btn-add { background:var(--brand); color:#fff; border:none; padding:9px 16px; border-radius:8px;
  font-weight:600; font-size:14px; cursor:pointer; }
.btn-add:hover { background:var(--brand-dark); }
.rowact { width:44px; text-align:center; }
.icon-btn { border:none; background:transparent; cursor:pointer; font-size:15px; opacity:0; padding:4px 6px; border-radius:6px; transition:opacity .12s; }
.table tr:hover .icon-btn { opacity:.55; }
.icon-btn:hover { opacity:1 !important; background:#eef3ff; }

/* ---------- Modal ---------- */
#editor, #colModal, #assignModal, #teamModal { position:fixed; inset:0; z-index:50; display:flex; align-items:flex-start; justify-content:center; }
.modal-backdrop { position:absolute; inset:0; background:rgba(20,22,30,.45); }
.modal { position:relative; background:#fff; width:560px; max-width:calc(100vw - 32px); margin:48px 0 40px;
  border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.25); padding:26px 28px; max-height:calc(100vh - 90px); overflow:auto; }
.modal h2 { margin:0 0 18px; font-size:19px; }
.modal label { display:block; font-size:12px; color:var(--muted); margin:14px 0 5px; font-weight:600; }
.modal input, .modal select { width:100%; padding:10px 11px; border:1px solid var(--border); border-radius:8px; font-size:14px; background:#fff; outline:none; }
.modal input:focus, .modal select:focus { border-color:var(--brand); }
.modal input:disabled, .modal select:disabled { background:#f4f5f8; color:#8b8d98; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.doc-section { margin-top:18px; padding-top:6px; border-top:1px solid var(--border); }
.doc-section-title { font-size:13px; font-weight:700; margin-top:12px; color:var(--text); }
.lock-note { font-size:12px; color:#8a6100; background:#fff7e6; border:1px solid #ffe2a8; padding:8px 11px; border-radius:8px; margin-top:16px; }
.modal-actions { display:flex; align-items:center; gap:10px; margin-top:24px; }
.modal-actions .spacer { flex:1; }
.btn-primary { background:var(--brand); color:#fff; border:none; padding:10px 20px; border-radius:8px; font-weight:600; font-size:14px; cursor:pointer; }
.btn-primary:hover { background:var(--brand-dark); }
.btn-danger { background:#fff; color:#df2f4a; border:1px solid #f3c2c9; padding:10px 16px; border-radius:8px; font-weight:600; font-size:14px; cursor:pointer; }
.btn-danger:hover { background:#fff0f2; }

/* ---------- Inline click-to-edit ---------- */
.cell.editable { display:inline-block; cursor:pointer; border-radius:6px; padding:1px 3px; margin:-1px -3px;
  transition:background .12s, box-shadow .12s; }
.cell.editable:hover { background:#eef3ff; box-shadow:inset 0 0 0 1px #cfe0ff; }
.show-sub.addhint { color:#c2c4cd; font-style:italic; }
.doc.empty.editable { cursor:pointer; pointer-events:auto; color:#9aa0ad; }
.doc.empty.editable:hover { background:#eef3ff; color:var(--brand); border-color:#cfe0ff; }

.popover { position:fixed; z-index:60; background:#fff; border:1px solid var(--border);
  border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:6px; min-width:150px; }
.pop-menu { max-height:280px; overflow:auto; display:flex; flex-direction:column; gap:2px; }
.pop-opt { padding:5px 7px; border-radius:7px; cursor:pointer; display:flex; align-items:center; gap:8px; }
.pop-opt:hover { background:#f0f3fa; }
.pop-opt.current { background:#eef3ff; }
.pop-input { padding:9px 10px; border:1px solid var(--border); border-radius:8px; font-size:14px; outline:none; }
.pop-input:focus { border-color:var(--brand); }
.pop-input.wide { width:280px; }
.pop-url { display:flex; gap:6px; align-items:center; }
.btn-primary.small { padding:8px 12px; font-size:13px; }

/* ---------- Custom columns ---------- */
.custhead { white-space:nowrap; }
.col-dots { margin-left:6px; color:var(--muted); cursor:pointer; opacity:0; font-size:15px; font-weight:700;
  letter-spacing:1px; padding:0 6px; border-radius:5px; transition:opacity .12s, background .12s; }
.table th:hover .col-dots { opacity:1; }
.col-dots:hover { background:rgba(0,0,0,.07); color:var(--text); }

/* ---------- Auto-Assign + Team rules ---------- */
.tb-assign { border-color:#cfe0ff; color:var(--brand); font-weight:700; }
.tb-assign:hover { background:#eef3ff; }
.modal.modal-lg { width:720px; }
.as-list { display:flex; flex-direction:column; gap:10px; margin:14px 0; }
.as-row { display:flex; align-items:center; gap:11px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#fbfcff; }
.as-who { min-width:170px; }
.as-who b { display:block; font-size:14px; }
.as-speed { font-size:11px; color:var(--muted); }
.as-what { font-size:13px; }
.as-why { font-size:12px; color:var(--muted); margin-top:2px; }
.as-none { color:var(--muted); }
.as-note { font-size:12px; color:var(--muted); margin:6px 0 0; }
.as-short { margin-top:14px; padding:10px 13px; border-radius:9px; background:#fff7e6; border:1px solid #ffe2a8; color:#8a6100; font-size:13px; }
.tm-hint { font-size:12px; color:var(--muted); margin:6px 0 8px; }
.tm-targets { display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; }
.tm-target { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tm-g { font-size:13px; }
.tm-target input { width:58px; padding:5px 7px; border:1px solid var(--border); border-radius:7px; }
.tm-members { display:flex; flex-direction:column; gap:12px; max-height:320px; overflow:auto; padding-right:4px; }
.tm-member { border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.tm-head { display:flex; align-items:center; gap:10px; }
.tm-head select { margin-left:auto; padding:5px 8px; border:1px solid var(--border); border-radius:7px; font-size:12px; }
.tm-leave { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:5px; }
.tm-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.chip { font-size:11px; padding:4px 10px; border-radius:20px; border:1px solid var(--border); cursor:pointer; color:var(--muted); background:#fff; user-select:none; }
.chip.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.donecell .cbox { cursor:pointer; }

/* click-to-sort on headers */
th[data-sortkey]{ cursor:pointer; user-select:none; }
.sort-ind { margin-left:5px; font-size:12px; color:#c0c2cc; opacity:0; transition:opacity .12s; }
.table th:hover .sort-ind { opacity:1; }
.sort-ind.on { opacity:1; color:var(--brand); font-weight:800; }

/* drag columns to reorder */
th[data-dragcol]{ cursor:grab; }
th[data-dragcol]:active{ cursor:grabbing; }
th.drag-over{ box-shadow: inset 3px 0 0 var(--brand); background:#eef3ff !important; }

/* group color picker */
.color-grid { display:grid; grid-template-columns:repeat(6, 26px); gap:7px; padding:6px; }
.swatch { width:26px; height:26px; border-radius:6px; cursor:pointer; transition:transform .1s; }
.swatch:hover { transform:scale(1.15); }
.swatch.cur { outline:2px solid var(--text); outline-offset:2px; }
.addcolhead { width:38px; }
.addcol-btn { border:1px dashed var(--border); background:#fff; color:var(--muted); width:26px; height:26px;
  border-radius:7px; cursor:pointer; font-size:15px; line-height:1; }
.addcol-btn:hover { border-color:var(--brand); color:var(--brand); background:#eef3ff; }
.cbox { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border:2px solid #c3c6d4;
  border-radius:5px; color:#fff; font-size:13px; font-weight:700; }
.cbox.on { background:var(--brand); border-color:var(--brand); }
.modal.modal-sm { width:420px; }

/* ---------- Layout: sidebar + main ---------- */
.layout { display:flex; align-items:stretch; min-height:calc(100vh - 61px); }
#sidebar { flex:0 0 220px; background:var(--panel); border-right:1px solid var(--border); padding:16px 10px; }
.sb-sec { margin-bottom:22px; }
.sb-head { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:700; padding:0 10px 8px; }
.sb-item { padding:8px 10px; border-radius:8px; font-size:13.5px; cursor:pointer; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-item:hover { background:#f0f3fa; }
.sb-item.active { background:#e5efff; color:var(--brand); font-weight:600; }
.sb-add { padding:8px 10px; border-radius:8px; font-size:13px; cursor:pointer; color:var(--muted); }
.sb-add:hover { background:#eef3ff; color:var(--brand); }
.sb-empty { padding:4px 10px 8px; font-size:12px; color:#b9bbc4; font-style:italic; }
.main-col { flex:1; min-width:0; }

/* ---------- Script cell popover ---------- */
.script-pop { display:flex; flex-direction:column; gap:8px; padding:4px; }
.sp-or { font-size:11px; color:var(--muted); }

/* ---------- Embedded doc view ---------- */
.docview { background:var(--panel); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); overflow:hidden; }
.dv-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border); }
.dv-title { font-weight:700; font-size:15px; }
.dv-actions { display:flex; gap:8px; align-items:center; }
.dv-actions a.btn-primary { text-decoration:none; display:inline-block; }
.dv-frame { width:100%; height:calc(100vh - 250px); border:none; background:#fff; }
.dv-note { font-size:11px; color:var(--muted); }
.dv-link { text-decoration:none; display:inline-block; }

/* rich in-tool editor */
.dv-toolbar { display:flex; align-items:center; gap:3px; flex-wrap:wrap; padding:8px 14px;
  border-bottom:1px solid var(--border); background:#fbfbfd; position:sticky; top:0; }
.tbr-btn { border:1px solid transparent; background:transparent; padding:6px 9px; border-radius:6px;
  font-size:13px; cursor:pointer; color:var(--text); position:relative; }
.tbr-btn:hover { background:#eef1f7; border-color:var(--border); }
.tbr-sep { width:1px; height:20px; background:var(--border); margin:0 6px; }
.tbr-color { position:absolute; inset:0; opacity:0; cursor:pointer; }
.dv-page-wrap { background:#f1f2f6; padding:22px; height:calc(100vh - 300px); overflow:auto; }
.dv-rich { background:#fff; max-width:850px; margin:0 auto; min-height:100%; padding:60px 70px;
  box-shadow:0 1px 6px rgba(0,0,0,.12); border-radius:3px; outline:none; font-size:14.5px; line-height:1.6; }
.dv-rich h1 { font-size:24px; } .dv-rich h2 { font-size:19px; } .dv-rich h3 { font-size:16px; }

/* ---------- Tabs (Monday-style view switcher) ---------- */
.tabs { display:flex; gap:2px; margin:16px 22px 0; border-bottom:1px solid var(--border); padding:0 2px; }
.tab { padding:9px 16px; font-size:14px; color:var(--muted); cursor:pointer; user-select:none;
  border-bottom:2px solid transparent; margin-bottom:-1px; border-radius:7px 7px 0 0; transition:background .12s, color .12s; }
.tab:hover { color:var(--text); background:#f0f3fa; }
.tab.active { color:var(--brand); border-bottom-color:var(--brand); font-weight:700; }

/* ---------- Charts tab ---------- */
.charts-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(430px, 1fr)); gap:16px; }
.chart-card { background:var(--panel); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); padding:18px 22px; }
.chart-title { font-weight:700; font-size:15px; }
.chart-sub { font-size:12px; color:var(--muted); margin-bottom:16px; }
.chart-bars { display:flex; align-items:flex-end; gap:16px; min-height:215px; }
.bar-col { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; flex:1; max-width:96px; height:100%; }
.bar-val { font-size:13px; font-weight:700; margin-bottom:4px; }
.bar { width:100%; max-width:54px; border-radius:5px 5px 0 0; }
.bar-label { font-size:11px; color:var(--muted); margin-top:7px; text-align:center; line-height:1.25; height:28px; }

/* ---------- Leaderboard tab ---------- */
.lb-card { background:var(--panel); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow);
  max-width:760px; margin:6px auto 0; padding:24px 28px; }
.lb-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:20px; }
.lb-title { font-size:19px; font-weight:800; }
.lb-sub { font-size:12px; color:var(--muted); margin-top:3px; }
.lb-month { padding:8px 11px; border:1px solid var(--border); border-radius:8px; font-size:14px; background:#fff; outline:none; }
.lb-month:focus { border-color:var(--brand); }
.lb-rows { display:flex; flex-direction:column; gap:11px; }
.lb-row { display:flex; align-items:center; gap:12px; }
.lb-medal { width:30px; text-align:center; font-size:19px; flex:0 0 auto; }
.lb-rank { font-size:13px; color:var(--muted); font-weight:700; }
.lb-row .avatar { flex:0 0 auto; }
.lb-name { width:175px; font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:0 0 auto; }
.lb-barwrap { flex:1; background:#f0f1f5; border-radius:7px; height:24px; overflow:hidden; }
.lb-bar { height:100%; border-radius:7px; }
.lb-count { width:36px; text-align:right; font-weight:800; font-size:15px; }

/* ---------- Toolbar ---------- */
.toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 22px 0; padding:10px 14px;
  background:var(--panel); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow); }
.tb-search { flex:0 0 240px; padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-size:14px; outline:none; }
.tb-search:focus { border-color:var(--brand); }
.tb-field { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); }
.tb-field select { padding:7px 9px; border:1px solid var(--border); border-radius:7px; font-size:13px; background:#fff; outline:none; }
.tb-btn { padding:8px 12px; border:1px solid var(--border); background:#fff; border-radius:7px; font-size:13px; cursor:pointer; color:var(--text); }
.tb-btn:hover { background:#f0f3fa; }
.tb-btn.active { border-color:var(--brand); color:var(--brand); background:#eef3ff; }
.tb-dir { padding:7px 10px; font-weight:700; }
.tb-count { margin-left:auto; color:var(--muted); font-size:12px; }

/* ---------- Group header (Monday-style) ---------- */
.group-head { user-select:none; display:flex; align-items:center; gap:10px; padding:13px 16px; }
.g-caret { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px;
  font-size:18px; cursor:pointer; border-radius:6px; transition:transform .15s, background .12s; flex:0 0 auto; }
.g-caret:hover { background:rgba(0,0,0,.06); }
.g-caret.col { transform:rotate(-90deg); }
.g-titlewrap { cursor:pointer; }
.group-title { font-size:16px; font-weight:700; line-height:1.2; }
.group-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.g-menu { margin-left:4px; width:26px; height:24px; display:inline-flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:18px; line-height:1; cursor:pointer; border-radius:6px; opacity:0; transition:opacity .12s, background .12s; letter-spacing:1px; }
.group-head:hover .g-menu { opacity:1; }
.g-menu:hover { background:rgba(0,0,0,.06); color:var(--text); }

/* group options dropdown */
.grp-menu-pop { min-width:150px; padding:5px; }
.gm-opt { padding:8px 11px; border-radius:7px; cursor:pointer; font-size:13px; color:var(--text); }
.gm-opt:hover { background:#f0f3fa; }
.gm-opt.danger { color:#df2f4a; }
.gm-opt.danger:hover { background:#fff0f2; }

/* ---------- Add group ---------- */
.add-group { margin-top:18px; }
.add-group-btn { display:inline-block; padding:10px 16px; border:1px dashed var(--border); border-radius:9px;
  color:var(--muted); font-weight:600; font-size:13px; cursor:pointer; background:#fff; }
.add-group-btn:hover { border-color:var(--brand); color:var(--brand); background:#eef3ff; }

/* ---------- Filter panel ---------- */
.filter-panel { min-width:210px; max-height:340px; overflow:auto; padding:4px; }
.fp-title { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; padding:8px 8px 4px; }
.fp-row { display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:7px; cursor:pointer; font-size:13px; }
.fp-row:hover { background:#f0f3fa; }
.fp-row input { cursor:pointer; }

/* ---------- Add label in status menu ---------- */
.pop-add { padding:7px 9px; border-top:1px solid var(--border); margin-top:4px; color:var(--brand); font-weight:600; font-size:13px; cursor:pointer; border-radius:7px; }
.pop-add:hover { background:#eef3ff; }
.linkish { color:var(--brand); cursor:pointer; }

/* ---------- Add-row footer ---------- */
tr.addrow td { padding:0; background:#fbfcff; }
.addrow-btn { display:block; padding:11px 14px; color:var(--muted); cursor:pointer; font-weight:600; font-size:13px; }
.addrow-btn:hover { color:var(--brand); background:#eef3ff; }

/* Team rules: remove-member ✕ + add-member row */
.tm-head{flex-wrap:wrap}
.tm-remove{margin-left:auto;cursor:pointer;color:#c4c4c4;font-size:13px;padding:2px 7px;border-radius:4px}
.tm-remove:hover{color:#df2f4a;background:#fbe9eb}
.tm-add input[type=text]{padding:8px 10px;border:1px solid #d0d4e4;border-radius:6px;font:inherit}
