/* ══════════════════════════════════════════════════════════
   KB360 MONDAY tab — monday.com look & feel (Nim 2026-09-28)
   "update the design and layout and organization of our MONDAY tab
    to look and feel much more similar to the monday.com system"
   Loaded after pages.css / theme.css and before mobile.css.
   Every colour is a token below (light + dark).
   ══════════════════════════════════════════════════════════ */
:root {
  --mon-primary: #0073ea;
  --mon-primary-hover: #0060b9;
  --mon-on-primary: #ffffff;
  --mon-selected: #cce5ff;
  --mon-text: #323338;
  --mon-text-2: #676879;
  --mon-text-3: #9699a6;
  --mon-border: #d0d4e4;
  --mon-border-soft: #e6e9ef;
  --mon-bg: #f6f7fb;
  --mon-surface: #ffffff;
  --mon-hover: #dcdfec;
  --mon-row-hover: #f5f6f8;
  --mon-status-empty: #c4c4c4;
  --mon-on-status: #ffffff;
  --mon-badge: #e2445c;
  --mon-warn-bg: #fff4e0;
  --mon-warn-text: #9a6700;
  --mon-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  --mon-live-bg: #e7f8ef;
  --mon-live-border: #9ee0bd;
  --mon-live-dot: #00c875;
  --mon-snack-bg: #323338;
  --mon-snack-text: #ffffff;
  --mon-snack-link: #8ec5ff;
  --mon-font: 'Figtree', 'Inter', 'Roboto', -apple-system, 'Segoe UI', sans-serif;
}
[data-theme="dark"] {
  --mon-primary: #0073ea;
  --mon-primary-hover: #1a82f0;
  --mon-selected: #133774;
  --mon-text: #d5d8df;
  --mon-text-2: #a9acbd;
  --mon-text-3: #7c7f93;
  --mon-border: #4b4e69;
  --mon-border-soft: #3e4163;
  --mon-bg: #181b34;
  --mon-surface: #292f4c;
  --mon-hover: #3c4064;
  --mon-row-hover: #30355a;
  --mon-status-empty: #797e93;
  --mon-warn-bg: #4a3a1a;
  --mon-warn-text: #f5c26b;
  --mon-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  --mon-live-bg: #173a2c;
  --mon-live-border: #2f6e52;
  --mon-live-dot: #00c875;
  --mon-snack-bg: #e6e9ef;
  --mon-snack-text: #181b34;
  --mon-snack-link: #0060b9;
}

/* ── shell ───────────────────────────────────────────────── */
.mon-app { font-family: var(--mon-font); color: var(--mon-text); background: var(--mon-bg); }
.mon-app .mon-main { background: var(--mon-surface); border-radius: 12px 0 0 0; box-shadow: 0 0 0 1px var(--mon-border-soft); }

/* ── left sidebar ────────────────────────────────────────── */
.mon-app .mon-sidebar {
  width: 264px; min-width: 264px; background: var(--mon-bg); border-right: none;
  padding: 10px 10px 0; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.mon-side-nav { display: flex; flex-direction: column; gap: 2px; }
.mon-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px;
  font-size: 14px; color: var(--mon-text); cursor: pointer; user-select: none;
}
.mon-nav-item:hover { background: var(--mon-hover); }
.mon-nav-item.active { background: var(--mon-selected); }
.mon-nav-ic { width: 18px; text-align: center; font-size: 14px; color: var(--mon-text-2); }
.mon-nav-badge { margin-left: auto; background: var(--mon-badge); color: var(--mon-on-status); font-size: 11px; font-weight: 600; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.mon-nav-admin { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .3px; color: var(--mon-text-2); border: 1px solid var(--mon-border); border-radius: 4px; padding: 0 4px; }
.mon-side-sep { height: 1px; background: var(--mon-border-soft); margin: 8px 4px; }
.mon-side-lbl { font-size: 12.5px; color: var(--mon-text-2); padding: 4px 10px 6px; letter-spacing: .1px; }

.mon-ws-switch {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 2px; border-radius: 6px;
  border: 1px solid var(--mon-border); background: var(--mon-surface); cursor: pointer; user-select: none; min-height: 36px;
}
.mon-ws-switch:hover, .mon-ws-switch.open { border-color: var(--mon-primary); }
.mon-ws-switch-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--mon-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-ws-tile {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  color: var(--mon-on-status); font-weight: 700; font-size: 13px; font-family: var(--mon-font);
}
.mon-ws-gear { color: var(--mon-text-3); font-size: 14px; padding: 0 3px; border-radius: 4px; }
.mon-ws-gear:hover { color: var(--mon-text); background: var(--mon-hover); }
.mon-ws-chevron { color: var(--mon-text-2); font-size: 14px; line-height: 1; margin-top: -6px; }
.mon-lock { font-size: 10px; }
.mon-adminonly { font-size: 9px; font-weight: 700; background: var(--mon-warn-bg); color: var(--mon-warn-text); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }

.mon-ws-switch-wrap { position: relative; }
.mon-ws-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--mon-surface);
  border-radius: 8px; box-shadow: var(--mon-shadow); padding: 8px; max-height: 60vh; display: flex; flex-direction: column;
}
.mon-ws-menu-search { border: 1px solid var(--mon-border); border-radius: 4px; padding: 6px 10px; font-size: 14px; background: var(--mon-surface); color: var(--mon-text); outline: none; margin-bottom: 6px; font-family: inherit; }
.mon-ws-menu-search:focus { border-color: var(--mon-primary); }
.mon-ws-menu-list { overflow-y: auto; }
.mon-ws-menu-lbl { font-size: 12px; color: var(--mon-text-2); padding: 8px 6px 4px; }
.mon-ws-menu-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--mon-text); }
.mon-ws-menu-row:hover { background: var(--mon-hover); }
.mon-ws-menu-row.on { background: var(--mon-selected); }
.mon-ws-menu-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-ws-menu-add { border-top: 1px solid var(--mon-border-soft); margin-top: 6px; padding: 8px 6px 2px; font-size: 14px; color: var(--mon-text); cursor: pointer; }
.mon-ws-menu-add:hover { color: var(--mon-primary); }

.mon-side-tools { display: flex; gap: 6px; padding: 10px 2px 6px; }
.mon-side-search { flex: 1; display: flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 4px; padding: 0 8px; background: transparent; }
.mon-side-search:hover, .mon-side-search:focus-within { border-color: var(--mon-border); background: var(--mon-surface); }
.mon-side-search span { color: var(--mon-text-2); font-size: 15px; }
.mon-side-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--mon-text); padding: 6px 0; font-family: inherit; }
.mon-side-add { width: 32px; height: 32px; border-radius: 4px; border: none; background: var(--mon-primary); color: var(--mon-on-primary); font-size: 18px; line-height: 1; cursor: pointer; }
.mon-side-add:hover { background: var(--mon-primary-hover); }
.mon-side-tree { flex: 1; overflow-y: auto; padding: 2px 0 16px; margin: 0 -4px; }
.mon-side-empty { font-size: 13px; color: var(--mon-text-3); padding: 10px 12px; }

.mon-app .mon-board-link {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 1px 4px; border-radius: 4px;
  font-size: 14px; font-weight: 400; color: var(--mon-text); cursor: pointer;
}
.mon-app .mon-board-link:hover { background: var(--mon-hover); color: var(--mon-text); }
.mon-app .mon-board-link.active { background: var(--mon-selected); color: var(--mon-text); }
.mon-app .mon-board-link.sub { padding-left: 30px; font-size: 13px; color: var(--mon-text-2); }
.mon-app .mon-board-link.archived { color: var(--mon-text-2); }
.mon-bglyph { color: var(--mon-text-2); flex-shrink: 0; width: 16px; display: inline-flex; justify-content: center; }
.mon-bl-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-app .mon-board-count { background: none; color: var(--mon-text-3); font-size: 11.5px; font-weight: 400; padding: 0; opacity: 0; }
.mon-app .mon-board-link:hover .mon-board-count, .mon-app .mon-folder:hover .mon-board-count { opacity: 1; }
.mon-folder {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; margin: 1px 4px; border-radius: 4px;
  font-size: 14px; color: var(--mon-text); cursor: pointer; user-select: none;
}
.mon-folder:hover { background: var(--mon-hover); }
.mon-folder.muted { color: var(--mon-text-2); margin-top: 8px; }
.mon-folder-chev { width: 14px; text-align: center; color: var(--mon-text-2); font-size: 14px; }
.mon-folder-ic { font-size: 13px; }
.mon-folder-kids { margin-left: 14px; border-left: 1px solid var(--mon-border-soft); }

/* ── board header ────────────────────────────────────────── */
.mon-app .mon-bh-top { background: var(--mon-surface); border-bottom: none; padding: 18px 32px 0; }
.mon-app .mon-bh-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mon-app .mon-bh-name { font-family: var(--mon-font); font-size: 24px; font-weight: 600; color: var(--mon-text); padding: 0 4px; margin-left: -4px; border-radius: 4px; border: 1px solid transparent; }
.mon-app .mon-bh-name:hover { border-color: var(--mon-border); }
.mon-app .mon-bh-name:focus { border-color: var(--mon-primary); border-bottom-width: 1px; }
.mon-bh-info { color: var(--mon-text-3); font-size: 16px; cursor: default; }
.mon-app .mon-bh-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mon-app .mon-bh-meta { font-size: 13px; color: var(--mon-text-2); margin: 2px 0 0; }
.mon-loading-pill { display: inline-block; font-size: 11.5px; background: var(--mon-selected); color: var(--mon-text); border-radius: 99px; padding: 0 8px; margin-left: 4px; }
.mon-hbtn {
  border: 1px solid var(--mon-border); background: var(--mon-surface); color: var(--mon-text); border-radius: 4px;
  padding: 5px 12px; font-size: 14px; cursor: pointer; font-family: inherit; line-height: 1.3;
}
.mon-hbtn:hover { background: var(--mon-hover); }
.mon-hbtn.danger:hover { color: var(--red); }
.mon-hbtn.auto { border-color: transparent; }
.mon-hbtn.mon-ct-back { background: var(--mon-primary); border-color: var(--mon-primary); color: #fff; font-weight: 600; }
.mon-hbtn.mon-ct-back:hover { filter: brightness(1.1); background: var(--mon-primary); }
.mon-app .mon-bell { font-size: 16px; }
.mon-app .mon-bell:hover { background: var(--mon-hover); }

.mon-bh-views { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--mon-border-soft); margin-top: 12px; }
.mon-app .mon-view-tab {
  background: none; border: none; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0; box-shadow: none;
  padding: 7px 12px 8px; font-size: 14px; font-weight: 400; color: var(--mon-text); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.mon-app .mon-view-tab:hover { background: var(--mon-hover); }
.mon-app .mon-view-tab.active { background: none; color: var(--mon-text); border-bottom-color: var(--mon-primary); font-weight: 500; }
.mon-vt-ic { color: var(--mon-text-2); font-size: 13px; }
.mon-bh-views-right { margin-left: auto; padding-bottom: 4px; }

.mon-app .mon-bh-toolbar { display: flex; align-items: center; gap: 6px; padding: 12px 0; flex-wrap: wrap; }
.mon-new-item {
  background: var(--mon-primary); color: var(--mon-on-primary); border: none; border-radius: 4px; padding: 7px 16px;
  font-size: 14px; font-family: inherit; cursor: pointer; margin-right: 6px;
}
.mon-new-item:hover { background: var(--mon-primary-hover); }
.mon-tb-search { display: flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 4px; padding: 0 8px; }
.mon-tb-search:hover, .mon-tb-search:focus-within { border-color: var(--mon-border); }
.mon-tb-search span { color: var(--mon-text-2); font-size: 15px; }
.mon-tb-search input { border: none; outline: none; background: transparent; font-size: 14px; color: var(--mon-text); padding: 6px 0; width: 150px; font-family: inherit; }
.mon-tb-lbl { font-size: 14px; color: var(--mon-text); margin-right: 4px; }
.mon-app .mon-person-filter-row { padding: 2px 8px; border-radius: 4px; }
.mon-app .mon-person-filter-row:hover { background: var(--mon-hover); }
.mon-app .mon-pf-avatar { width: 26px; height: 26px; font-size: 10px; border: 2px solid var(--mon-surface); margin-left: -6px; }
.mon-app .mon-pf-avatar.active { border-color: var(--mon-primary); box-shadow: none; }
.mon-app .mon-pf-avatar.clear { background: var(--mon-hover); color: var(--mon-text-2); }
.mon-app .mon-tool-chip { border: none; background: none; color: var(--mon-text); font-weight: 400; font-size: 14px; padding: 6px 10px; border-radius: 4px; }
.mon-app .mon-tool-chip:hover { background: var(--mon-hover); color: var(--mon-text); }
.mon-app .mon-tool-chip.active { background: var(--mon-selected); color: var(--mon-text); }
.mon-app .mon-tool-chip .mon-chip-count { background: var(--mon-primary); }

/* ── table ───────────────────────────────────────────────── */
.mon-app .mon-board-content { background: var(--mon-surface); padding: 8px 32px 40px; }
.mon-app .mon-table-group { margin-bottom: 36px; border-radius: 0; box-shadow: none; overflow: visible; border-left: none; }
.mon-app .mon-grp-header { background: none; border: none; padding: 6px 0 8px; gap: 6px; cursor: default; }
.mon-app .mon-grp-toggle { cursor: pointer; width: 22px; text-align: center; border-radius: 4px; }
.mon-app .mon-grp-toggle:hover { background: var(--mon-hover); }
.mon-app .mon-grp-chevron { color: var(--gc); font-size: 18px; font-weight: 700; width: auto; line-height: 1; }
.mon-app .mon-grp-name { flex: 0 1 auto; font-size: 18px; font-weight: 500; color: var(--gc); padding: 1px 4px; border-radius: 4px; border: 1px solid transparent; }
.mon-app .mon-grp-name:hover { border-color: var(--mon-border); }
.mon-app .mon-grp-name:focus { border-color: var(--mon-primary); border-bottom-width: 1px; }
.mon-app .mon-grp-count { font-size: 14px; color: var(--mon-text-3); opacity: 0; transition: opacity .15s; }
.mon-app .mon-grp-header:hover .mon-grp-count, .mon-app .mon-table-group.collapsed .mon-grp-count { opacity: 1; }
.mon-app .mon-grp-actions { margin-left: 8px; }
.mon-app .mon-grp-action-btn { background: none; color: var(--mon-text-2); font-weight: 400; font-size: 13px; }
.mon-app .mon-grp-action-btn:hover { background: var(--mon-hover); color: var(--mon-text); }
.mon-app .mon-table-group.collapsed .mon-grp-header { border-left: 6px solid var(--gc); border-radius: 6px; padding-left: 6px; box-shadow: 0 0 0 1px var(--mon-border-soft); }

.mon-app .mon-table-inner { background: var(--mon-surface); }
.mon-app .mon-col-headers { background: var(--mon-surface); border-bottom: none; border-left: 6px solid var(--gc); border-top-left-radius: 8px; }
.mon-app .mon-lead-spacer, .mon-app .mon-row-check, .mon-app .mon-foot-check { width: 40px; min-width: 40px; }
.mon-app .mon-th {
  justify-content: center; text-align: center; font-size: 14px; font-weight: 400; color: var(--mon-text-2);
  text-transform: none; letter-spacing: 0; height: 36px; padding: 0 8px;
  border-top: 1px solid var(--mon-border); border-right: 1px solid var(--mon-border); border-bottom: 1px solid var(--mon-border);
  cursor: pointer;
}
.mon-app .mon-th:hover { background: var(--mon-row-hover); }
.mon-app .mon-th.name { justify-content: flex-start; }
.mon-th-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-app .mon-th.add-col { border-right: none; border-top: 1px solid var(--mon-border); color: var(--mon-text-2); font-size: 18px; }
.mon-app .mon-lead-spacer { border-top: 1px solid var(--mon-border); border-bottom: 1px solid var(--mon-border); align-self: stretch; }

.mon-app .mon-table-row { border-bottom: none; border-left: 6px solid var(--gc); background: var(--mon-surface); }
.mon-app .mon-table-row:hover { background: var(--mon-row-hover); }
.mon-app .mon-row-check { border-bottom: 1px solid var(--mon-border); align-self: stretch; }
.mon-app .mon-td {
  min-height: 36px; height: 36px; padding: 0 8px; font-size: 14px; color: var(--mon-text); justify-content: center;
  border-right: 1px solid var(--mon-border); border-bottom: 1px solid var(--mon-border); background: transparent;
}
.mon-app .mon-td:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--mon-text-3); }
.mon-app .mon-td.name { justify-content: flex-start; gap: 6px; }
.mon-app .mon-cell-name { font-size: 14px; font-weight: 400; color: var(--mon-text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-app .mon-td.fill { padding: 0; border-right: 1px solid var(--mon-surface); border-bottom: 1px solid var(--mon-surface); }
.mon-app .mon-td.fill:hover { box-shadow: none; }
.mon-app .mon-fill-cell { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mon-on-status); font-size: 14px; font-weight: 400; border-radius: 0; }
.mon-app .mon-fill-cell.empty { background: var(--mon-status-empty); color: transparent; }
.mon-app .mon-td.expand-cell { width: 24px; min-width: 24px; border-right: none; }
.mon-app .mon-td.expand-cell:hover { box-shadow: none; }
.mon-app .mon-row-drag { color: var(--mon-text-3); }
.mon-app .mon-row-cb { accent-color: var(--mon-primary); }

.mon-upd-bubble { margin-left: auto; display: inline-flex; align-items: center; color: var(--mon-border); position: relative; flex-shrink: 0; padding: 2px; border-radius: 4px; }
.mon-upd-bubble:hover { color: var(--mon-primary); background: var(--mon-hover); }
.mon-upd-bubble.has { color: var(--mon-primary); }
.mon-upd-bubble b { position: absolute; right: -4px; bottom: -3px; background: var(--mon-primary); color: var(--mon-on-primary); font-size: 9.5px; font-weight: 600; border-radius: 99px; min-width: 14px; height: 14px; line-height: 14px; text-align: center; padding: 0 3px; }
.mon-sub-toggle { font-size: 12px; color: var(--mon-text-2); border: 1px solid var(--mon-border); border-radius: 4px; padding: 0 5px; line-height: 18px; flex-shrink: 0; cursor: pointer; }
.mon-sub-toggle:hover { color: var(--mon-primary); border-color: var(--mon-primary); }
.mon-sub-wrap { margin-left: 46px; border-left: 2px solid var(--gc); background: var(--mon-row-hover); }
.mon-sub-row { display: flex; align-items: center; gap: 1px; min-height: 32px; border-bottom: 1px solid var(--mon-border-soft); cursor: pointer; font-size: 13.5px; }
.mon-sub-row:hover { background: var(--mon-hover); }
.mon-sub-name { width: 260px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mon-text); }
.mon-sub-cell { width: 130px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.mon-sub-cell .mon-fill-cell { font-size: 13px; }
.mon-sub-open { padding: 6px 12px; font-size: 13px; color: var(--mon-primary); cursor: pointer; }

.mon-show-more { border-left: 6px solid var(--gc); border-bottom: 1px solid var(--mon-border); padding: 8px 48px; font-size: 14px; color: var(--mon-primary); cursor: pointer; background: var(--mon-surface); }
.mon-show-more:hover { background: var(--mon-row-hover); }
.mon-app .mon-add-item-row {
  border-top: none; border-left: 6px solid color-mix(in srgb, var(--gc) 45%, transparent); border-bottom: 1px solid var(--mon-border);
  border-bottom-left-radius: 8px; padding: 0 48px; height: 36px; display: flex; align-items: center; font-size: 14px; color: var(--mon-text-3);
}
.mon-app .mon-add-item-row:hover { background: var(--mon-row-hover); color: var(--mon-text); }
.mon-app .mon-col-footer { background: none; border-top: none; margin-left: 6px; }
.mon-app .mon-foot-cell { border-right: none; padding: 6px 8px; align-items: center; }
.mon-app .mon-foot-cell .mon-foot-val { font-size: 13px; font-weight: 600; color: var(--mon-text); }
.mon-app .mon-foot-cell .mon-foot-lbl { font-size: 11px; font-weight: 400; color: var(--mon-text-3); text-transform: none; letter-spacing: 0; }
.mon-app .mon-grp-battery { border-radius: 2px; min-height: 20px; }
.mon-app .mon-add-group-btn { border: 1px solid var(--mon-border); border-radius: 4px; color: var(--mon-text); font-weight: 400; font-size: 14px; padding: 6px 14px; }
.mon-app .mon-add-group-btn:hover { background: var(--mon-hover); }

/* ── kanban ─────────────────────────────────────────────── */
.mon-app .mon-kanban-col-header { border-radius: 8px 8px 0 0; box-shadow: none; background: var(--mon-bg); }
.mon-app .mon-kanban-card { border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); background: var(--mon-surface); border: 1px solid var(--mon-border-soft); }
.mon-app .mon-kanban-card:hover { border-color: var(--mon-primary); }
.mon-app .mon-kanban-card-name { font-weight: 500; color: var(--mon-text); }

/* ── item panel (right side) ─────────────────────────────── */
.mon-detail-panel { width: 620px; background: var(--mon-surface); font-family: var(--mon-font); color: var(--mon-text); }
.mon-detail-head { border-bottom: 1px solid var(--mon-border-soft); }
.mon-detail-title-input { font-size: 22px; font-weight: 600; color: var(--mon-text); font-family: inherit; }
.mon-detail-field label { font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mon-text-2); }
.mon-detail-input, .mon-detail-select { border: 1px solid var(--mon-border); border-radius: 4px; background: var(--mon-surface); color: var(--mon-text); font-family: inherit; font-size: 14px; }
.mon-detail-input:focus, .mon-detail-select:focus { border-color: var(--mon-primary); }
.mon-section-lbl { font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--mon-text); border-bottom: 1px solid var(--mon-border-soft); padding-bottom: 8px; }
.mon-update-thread { max-height: none; }
.mon-update-item { background: var(--mon-surface); border: 1px solid var(--mon-border); border-left: 1px solid var(--mon-border); border-radius: 8px; padding: 14px 16px; }
.mon-update-meta { font-size: 13px; font-weight: 600; color: var(--mon-text); }
.mon-update-text { font-size: 14px; color: var(--mon-text); white-space: pre-wrap; }
.mon-update-input textarea { border: 1px solid var(--mon-border); border-radius: 8px; background: var(--mon-surface); color: var(--mon-text); font-size: 14px; font-family: inherit; }
.mon-update-input textarea:focus { border-color: var(--mon-primary); }
.mon-attach-chip { border-radius: 4px; border: 1px solid var(--mon-border); background: var(--mon-surface); color: var(--mon-text); }

/* ── phones ─────────────────────────────────────────────── */
.mon-mob-ws { flex-shrink: 0; border: 1px solid var(--mon-border); border-radius: 99px; padding: 6px 10px; font-size: 12px; background: var(--mon-surface); color: var(--mon-text); max-width: 170px; }
.mon-app .mon-mob-boards { background: var(--mon-bg); }
.mon-app .mon-mob-chip { background: var(--mon-surface); color: var(--mon-text); border: 1px solid var(--mon-border); font-weight: 500; }
.mon-app .mon-mob-chip.active { background: var(--mon-selected); border-color: var(--mon-primary); color: var(--mon-text); }
@media (max-width: 768px) {
  .mon-app .mon-main { border-radius: 0; margin: 0; box-shadow: none; }
  .mon-app .mon-bh-top { padding: 8px 12px 0; }
  .mon-app .mon-board-content { padding: 8px 10px 30px; }
  .mon-bh-views { overflow-x: auto; }
  .mon-tb-search input { width: 110px; }
}

/* ── ↔ column width + ↕ row height (Nim 2026-10-10) ─────────
   "make the columns wider and the boxes bigger so we can see all the info in one view".
   Drag the right edge of a column title; Row height = Compact · Medium · Show all text. */
.mon-app .mon-th { position: relative; }
.mon-col-rz { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: col-resize; z-index: 3; touch-action: none; }
.mon-col-rz::after { content: ''; position: absolute; top: 5px; bottom: 5px; left: 4px; width: 2px; border-radius: 2px; background: transparent; transition: background .12s; }
.mon-th:hover .mon-col-rz::after { background: var(--mon-border); }
.mon-col-rz:hover::after, body.mon-col-resizing .mon-col-rz::after { background: var(--mon-primary); }
body.mon-col-resizing, body.mon-col-resizing * { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; }

.mon-txt { font-size: 12px; color: var(--gray-600); line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mon-app .mon-txt { font-size: 13px; color: var(--mon-text); }
.mon-measure { position: fixed; left: -99999px; top: 0; visibility: hidden; pointer-events: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; }
.mon-measure .mon-txt, .mon-measure .mon-cell-name { display: inline; white-space: nowrap; overflow: visible; flex: none; }

/* Medium = up to 4 lines · Show all text = every box grows to fit */
.mon-app .mon-rh-m .mon-td { height: 80px; }
.mon-rh-m .mon-txt { -webkit-line-clamp: 4; }
.mon-app .mon-rh-l .mon-table-row { align-items: stretch; }
.mon-app .mon-rh-l .mon-td { height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.mon-app .mon-rh-l .mon-td.fill { padding: 0; }
.mon-app .mon-rh-l .mon-td.fill > .mon-fill-cell { height: auto; align-self: stretch; }
.mon-rh-l .mon-txt { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: pre-wrap; }
.mon-app .mon-rh-m .mon-td.txt, .mon-app .mon-rh-l .mon-td.txt { justify-content: flex-start; }
.mon-rh-m .mon-td.txt .mon-txt, .mon-rh-l .mon-td.txt .mon-txt { text-align: left; }
.mon-app .mon-rh-m .mon-cell-name, .mon-app .mon-rh-l .mon-cell-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.mon-app .mon-rh-l .mon-cell-name { display: block; -webkit-line-clamp: unset; }
/* titles may wrap to 3 lines when rows are taller, so long questions can be read */
.mon-app .mon-rh-m .mon-col-headers, .mon-app .mon-rh-l .mon-col-headers { align-items: stretch; }
.mon-app .mon-rh-m .mon-th, .mon-app .mon-rh-l .mon-th { height: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.mon-rh-m .mon-th-txt, .mon-rh-l .mon-th-txt { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

/* Row height menu */
.mon-rowh-pop { position: fixed; z-index: 9999; width: 300px; background: var(--mon-surface); color: var(--mon-text); border: 1px solid var(--mon-border); border-radius: 8px; box-shadow: var(--mon-shadow); padding: 8px; font-family: var(--mon-font); animation: popIn .12s ease; }
.mon-rowh-title { font-size: 13px; font-weight: 600; color: var(--mon-text-2); padding: 4px 8px 8px; }
.mon-rowh-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; }
.mon-rowh-opt:hover { background: var(--mon-row-hover); }
.mon-rowh-opt.on { background: var(--mon-selected); }
.mon-rowh-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mon-rowh-txt b { font-size: 14px; font-weight: 500; }
.mon-rowh-txt small { font-size: 12px; color: var(--mon-text-2); }
.mon-rowh-tick { color: var(--mon-primary); font-weight: 700; }
.mon-rowh-ic { width: 26px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.mon-rowh-ic i { display: block; border: 1.5px solid var(--mon-text-2); border-radius: 2px; height: 6px; }
.mon-rowh-ic-m i { height: 9px; }
.mon-rowh-ic-l i { height: 13px; }
.mon-rowh-tip { margin-top: 6px; padding: 8px; border-top: 1px solid var(--mon-border-soft); font-size: 12px; color: var(--mon-text-2); line-height: 1.4; }

/* ── 📌 group name + column titles follow you down the board (Nim 2026-10-10) ──
   Sticky inside #mon-board-content (the board's scroller): each group's titles stay on top
   while you scroll through that group, then the next group's titles take over.
   (top is -8px because sticky measures from inside the board's 8px top padding — this pins it flush to the edge) */
.mon-app .mon-table-group:not(.collapsed) > .mon-grp-header { position: sticky; top: -8px; z-index: 7; background: var(--mon-surface); }
.mon-app .mon-table-group:not(.collapsed) .mon-col-headers { position: sticky; top: calc(var(--mon-gh, 40px) - 8px); z-index: 6; background: var(--mon-surface); box-shadow: 0 1px 0 var(--mon-border); }

/* ── 📅 short dates (10/10/26) + full date & time on click ── */
.mon-when { font-size: 13px; color: var(--mon-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mon-when-pop { position: fixed; z-index: 9999; width: 280px; background: var(--mon-surface); color: var(--mon-text); border: 1px solid var(--mon-border); border-radius: 8px; box-shadow: var(--mon-shadow); padding: 12px 14px; font-family: var(--mon-font); animation: popIn .12s ease; }
.mon-when-lbl { font-size: 12px; color: var(--mon-text-2); margin-bottom: 6px; }
.mon-when-day { font-size: 15px; font-weight: 600; color: var(--mon-text); }
.mon-when-time { font-size: 14px; color: var(--mon-text); margin-top: 4px; }
.mon-when-note { font-size: 12px; color: var(--mon-text-3); margin-top: 10px; }
.mon-when-edit { margin-top: 10px; border: 1px solid var(--mon-border); background: var(--mon-surface); color: var(--mon-text); border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; font-family: inherit; }
.mon-when-edit:hover { background: var(--mon-hover); }
.mon-when-ro { background: var(--mon-row-hover); cursor: default; }

/* 🔁 live copy of a monday.com board (Nim 2026-10-10) */
.mon-live-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 2px; padding: 9px 12px; border-radius: 8px; background: var(--mon-live-bg); border: 1px solid var(--mon-live-border); color: var(--mon-text); font-size: 13px; line-height: 1.4; }
.mon-live-sub { font-size: 12px; color: var(--mon-text-2, var(--mon-text)); margin-top: 2px; }
.mon-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mon-live-dot); flex: 0 0 auto; animation: monLivePulse 2s ease-in-out infinite; }
@keyframes monLivePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 117, .55); } 50% { box-shadow: 0 0 0 6px rgba(0, 200, 117, 0); } }
@media (prefers-reduced-motion: reduce) { .mon-live-dot { animation: none; } }

/* ── ⇅ sort any column — newest / oldest (Nim 2026-10-10) ──
   SUNDAY boards (.mon-th) and the Trial CRM / Up Sell lists (.kb-sort-th). Click a title: newest / A → Z,
   again: the other way, a 3rd time: the board's own order. Only the viewer's own view changes. */
.mon-sort-ar { margin-left: 5px; font-size: 11px; line-height: 1; color: var(--mon-text-3); opacity: 0; flex-shrink: 0; transition: opacity .12s; }
.mon-th:hover .mon-sort-ar { opacity: 1; }
.mon-sort-ar.on { opacity: 1; color: var(--mon-primary); font-size: 10px; }
.mon-app .mon-th.sorted { color: var(--mon-text); font-weight: 600; }
.mon-sort-x { margin-left: 6px; width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--mon-text-2); }
.mon-sort-x:hover { background: var(--mon-hover); color: var(--mon-text); }
.kb-sort-th { cursor: pointer; user-select: none; white-space: nowrap; }
.kb-sort-th:hover { background: var(--mon-row-hover); }
.kb-sort-ar { margin-left: 5px; font-size: 10px; color: var(--mon-text-3); opacity: .55; }
.kb-sort-th:hover .kb-sort-ar { opacity: 1; }
.kb-sort-th.on { color: var(--mon-primary); }
.kb-sort-th.on .kb-sort-ar { opacity: 1; color: var(--mon-primary); }
.kb-sort-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: 12px; color: var(--mon-text-2); }
.kb-sort-bar b { color: var(--mon-text); }
@media (hover: none) { .mon-sort-ar { opacity: .6; } }

/* ── 💬📞✉️ follow-up circles in the Trial CRM (9) + Up Sell (8) lists (Nim 2026-10-10) ──
   "A little bigger … each time I hover over one of them it increases in size." Bigger circles, the hovered
   one pops up (its neighbours lift a little, like the Mac dock), the NEXT one to do has a ring (pulsing when
   it's due today / late), a quick hover box, and a click opens that family right at that follow-up. */
.kb-touches { display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; }
.kb-touch { position: relative; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; font-weight: 800;
  background: var(--gray-200); color: var(--gray-500); cursor: pointer; user-select: none;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, filter .2s ease; }
.kb-touch-done  { background: var(--green);  color: #fff; }
.kb-touch-tried { background: var(--teal);   color: #fff; }
.kb-touch-late  { background: var(--red);    color: #fff; --kb-ring: rgba(239, 68, 68, .55); }
.kb-touch-today { background: var(--orange); color: #fff; --kb-ring: rgba(255, 107, 43, .55); }
.kb-touch-skip  { background: var(--gray-100); opacity: .5; }
.kb-touch-next  { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.kb-touch-next.kb-touch-late, .kb-touch-next.kb-touch-today { box-shadow: none; }
.kb-touch-next.kb-touch-late::after, .kb-touch-next.kb-touch-today::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: kbTouchRing 1.8s ease-out infinite; }
@keyframes kbTouchRing { 0% { box-shadow: 0 0 0 0 var(--kb-ring); } 75%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (hover: hover) {
  .kb-touch:hover { transform: translateY(-4px) scale(1.45); z-index: 3; filter: saturate(1.15);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .28); }
  .kb-touch-next:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue), 0 8px 18px rgba(15, 23, 42, .28); }
  .kb-touch:hover + .kb-touch, .kb-touch:has(+ .kb-touch:hover) { transform: translateY(-1px) scale(1.15); z-index: 2; }
  .kb-touch-skip:hover { opacity: .85; }
}
.kb-touch:active { transform: translateY(-2px) scale(1.25); transition-duration: .08s; }
/* hover box */
.kb-touch-tip { position: fixed; z-index: 4000; pointer-events: none; max-width: 240px; padding: 8px 11px; border-radius: 10px;
  background: var(--gray-900); color: #fff; font-size: 12px; line-height: 1.45; box-shadow: 0 10px 28px rgba(15, 23, 42, .3);
  opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; }
.kb-touch-tip.on { opacity: 1; transform: none; }
.kb-touch-tip.below { transform: translateY(-4px); }
.kb-touch-tip.below.on { transform: none; }
.kb-touch-tip-h  { font-weight: 800; font-size: 12.5px; }
.kb-touch-tip-go { margin-top: 3px; color: #93C5FD; font-weight: 700; font-size: 11px; }
/* the follow-up you clicked flashes in the family pop-up */
.kb-step-flash { animation: kbStepFlash 1.6s ease-out; }
@keyframes kbStepFlash { 0%, 30% { box-shadow: 0 0 0 4px rgba(0, 87, 184, .35); background: #EFF6FF; } 100% { box-shadow: 0 0 0 0 rgba(0, 87, 184, 0); } }
@media (prefers-reduced-motion: reduce) {
  .kb-touch { transition: none; }
  .kb-touch-next.kb-touch-late::after, .kb-touch-next.kb-touch-today::after, .kb-step-flash { animation: none; }
  .kb-touch-tip { transition: none; }
}

/* ── ☑ selected rows + the monday.com action bar (Nim 2026-10-11) ──
   "When you check the box to the left of each item I'd like it to give options like monday.com."
   Tick rows → a bar slides up at the bottom (Mass email · Duplicate · Export · Archive · Delete · Move to),
   then a dark "Undo" strip for 10 seconds after each change. Both live in #page-monday (hidden with the page). */
.mon-app .mon-lead-spacer { display: flex; align-items: center; justify-content: center; gap: 2px; }
.mon-row-cb { width: 15px; height: 15px; margin: 0; cursor: pointer; }
.mon-app .mon-table-row.mon-row-sel, .mon-app .mon-table-row.mon-row-sel:hover { background: var(--mon-selected); }
.mon-app .mon-board-content.mon-has-selbar { padding-bottom: 130px; }

.mon-selbar {
  position: fixed; z-index: 1100; left: var(--mon-selbar-x, 50%); bottom: 22px;
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  display: flex; align-items: stretch; min-height: 66px; max-width: calc(100vw - 16px); box-sizing: border-box;
  background: var(--mon-surface); color: var(--mon-text); border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22), 0 0 0 1px var(--mon-border-soft);
  font-family: var(--mon-font); transition: transform .24s cubic-bezier(.2, .9, .3, 1.08), opacity .16s ease;
}
.mon-selbar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mon-selbar-count {
  flex: 0 0 auto; align-self: center; margin: 0 4px 0 18px; min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  background: var(--mon-primary); color: var(--mon-on-primary); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.mon-selbar-what { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 22px 0 8px; border-right: 1px solid var(--mon-border-soft); }
.mon-selbar-lbl { font-size: 16px; font-weight: 500; white-space: nowrap; }
.mon-selbar-dots { display: flex; gap: 3px; min-height: 6px; }
.mon-selbar-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.mon-selbar-acts { display: flex; align-items: stretch; padding: 0 6px; overflow-x: auto; scrollbar-width: none; }
.mon-selbar-acts::-webkit-scrollbar { display: none; }
.mon-selbar-act {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 78px; margin: 5px 0; padding: 6px 10px; border: none; border-radius: 6px; background: none;
  color: var(--mon-text); font-family: inherit; font-size: 13px; line-height: 1.2; white-space: nowrap; cursor: pointer;
}
.mon-selbar-act:hover { background: var(--mon-hover); }
.mon-selbar-act.off { color: var(--mon-text-3); cursor: not-allowed; }
.mon-selbar-act.off:hover { background: none; }
.mon-selbar-x { flex: 0 0 auto; width: 58px; border: none; border-left: 1px solid var(--mon-border-soft); background: none; color: var(--mon-text-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mon-selbar-x:hover { background: var(--mon-hover); color: var(--mon-text); }
.mon-selbar-act:focus-visible, .mon-selbar-x:focus-visible, .mon-undo button:focus-visible { outline: 2px solid var(--mon-primary); outline-offset: -2px; }

/* Move to → group list (opens above the button) */
.mon-sel-menu {
  position: fixed; z-index: 1150; width: 280px; max-height: 50vh; overflow-y: auto; box-sizing: border-box; padding: 6px;
  background: var(--mon-surface); color: var(--mon-text); border: 1px solid var(--mon-border-soft); border-radius: 8px;
  box-shadow: var(--mon-shadow); font-family: var(--mon-font); animation: popIn .12s ease;
}
.mon-sel-menu-h { font-size: 12px; color: var(--mon-text-2); padding: 6px 8px 4px; }
.mon-sel-menu-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; font-size: 14px; cursor: pointer; }
.mon-sel-menu-row:hover { background: var(--mon-hover); }
.mon-sel-menu-row.on { cursor: default; color: var(--mon-text-2); }
.mon-sel-menu-row.on:hover { background: none; }
.mon-sel-menu-row > i { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.mon-sel-menu-row > span:not(.mon-sel-menu-ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-sel-menu-row > b { color: var(--mon-primary); }
.mon-sel-menu-ic { flex: 0 0 auto; display: inline-flex; color: var(--mon-text-2); }
.mon-sel-menu-sep { height: 1px; background: var(--mon-border-soft); margin: 4px 2px; }

/* ↩ Undo strip */
.mon-undo {
  position: fixed; z-index: 1110; left: var(--mon-selbar-x, 50%); bottom: 22px;
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 9px 8px 9px 14px;
  background: var(--mon-snack-bg); color: var(--mon-snack-text); border-radius: 8px; box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
  font-family: var(--mon-font); transition: transform .24s cubic-bezier(.2, .9, .3, 1.08), opacity .16s ease, bottom .2s ease;
}
.mon-undo.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mon-undo.up { bottom: 100px; }
/* lifted above the 💬 chat button when they would overlap (phones, narrow windows) */
.mon-selbar.lift, .mon-undo.lift { bottom: 92px; }
.mon-undo.up.lift { bottom: 170px; }
.mon-undo-ic { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mon-live-dot); color: var(--mon-on-status); font-size: 12px; font-weight: 700; }
.mon-undo-txt { font-size: 14px; line-height: 1.35; }
.mon-undo-btn { flex: 0 0 auto; border: 1px solid currentColor; border-radius: 4px; background: none; color: var(--mon-snack-link); padding: 4px 14px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mon-undo-btn:hover { background: rgba(127, 127, 127, .18); }
.mon-undo-x { flex: 0 0 auto; border: none; background: none; color: inherit; opacity: .7; cursor: pointer; display: inline-flex; padding: 4px; border-radius: 4px; }
.mon-undo-x:hover { opacity: 1; }

/* "changes all N selected items" note on a cell's pick list */
.mon-sel-hint { font-size: 12px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); border-radius: 6px; padding: 5px 8px; margin-bottom: 8px; }

/* Mass email + Move to another board pop-ups */
.mon-em-col { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; cursor: pointer; }
.mon-em-col small { color: var(--gray-400); }
.mon-em-to { font-size: 13px; line-height: 1.9; max-height: 130px; overflow-y: auto; padding: 8px 10px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 8px; }
.mon-em-chip { display: inline-block; padding: 0 8px; margin-right: 4px; border-radius: 99px; background: var(--gray-100); font-size: 12px; line-height: 20px; }
.mon-em-miss { margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--yellow) 14%, transparent); color: var(--gray-600); font-size: 12.5px; line-height: 1.45; }
.mon-mv-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--gray-100); border-radius: 8px; }
.mon-mv-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; cursor: pointer; }
.mon-mv-row:last-child { border-bottom: none; }
.mon-mv-row:hover { background: var(--gray-50); }
.mon-mv-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px; }
.mon-mv-ic { flex: 0 0 auto; width: 20px; text-align: center; }
.mon-mv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-mv-ws { font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.mon-mv-empty { padding: 20px; text-align: center; color: var(--gray-400); font-size: 13px; }

@media (max-width: 768px) {
  .mon-selbar { bottom: 10px; min-height: 58px; }
  .mon-selbar-count { margin-left: 10px; }
  .mon-selbar-what { padding: 0 10px 0 4px; }
  .mon-selbar-lbl { font-size: 13px; }
  .mon-selbar-act { min-width: 62px; padding: 6px; font-size: 11.5px; }
  .mon-selbar-x { width: 44px; }
  .mon-undo { bottom: 10px; }
  .mon-undo.up { bottom: 78px; }
  .mon-selbar.lift, .mon-undo.lift { bottom: 86px; }
  .mon-undo.up.lift { bottom: 152px; }
}
@media (prefers-reduced-motion: reduce) { .mon-selbar, .mon-undo { transition: none; } .mon-sel-menu { animation: none; } }

/* ── 📨 Mass email: "Send from Fintastic Swim Academy" or "Open in my email" (Nim 2026-10-11) ──
   Lives in the shared white pop-up (#mon-modal-overlay), so it uses the app's --gray-* / --blue tokens. */
.mon-em-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mon-em-n { font-size: 13px; color: var(--gray-500); }
.mon-em-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mon-em-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 12px; cursor: pointer; text-align: left; background: #fff; }
.mon-em-mode:hover { border-color: var(--blue); }
.mon-em-mode.on { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.mon-em-mode.off { cursor: not-allowed; opacity: .6; }
.mon-em-mode.off:hover { border-color: var(--gray-200); }
.mon-em-mode:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mon-em-mode-ic { font-size: 22px; line-height: 1; }
.mon-em-mode-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mon-em-mode-txt b { font-size: 14px; color: var(--gray-800); }
.mon-em-mode-txt small { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.mon-em-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--gray-500); margin: 12px 0 4px; }
.mon-em-lbl span { font-weight: 400; }
.mon-em-in { width: 100%; box-sizing: border-box; }
textarea.mon-em-in { resize: vertical; line-height: 1.5; }
.mon-em-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 18px; margin-top: 6px; }
.mon-em-from { font-size: 13px; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.mon-em-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mon-em-row > * { flex: 1 1 180px; min-width: 0; }
.mon-em-sel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--gray-500); margin-top: 10px; }
.mon-em-sel select { font-weight: 400; }
.mon-em-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--gray-500); }
.mon-em-tools select { width: auto; max-width: 240px; }
.mon-em-tools code { font-size: 11.5px; background: var(--gray-100); border-radius: 4px; padding: 0 4px; }
.mon-em-prevbox { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mon-em-prevbar { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--gray-500); }
.mon-em-prevbar select { flex: 1; min-width: 0; font-weight: 400; }
.mon-em-prevsubj { font-size: 13px; color: var(--gray-700); line-height: 1.4; min-height: 18px; }
.mon-em-prevsubj span { display: block; font-size: 11.5px; color: var(--gray-400); }
.mon-em-prev { width: 100%; height: 540px; border: 1px solid var(--gray-200); border-radius: 12px; background: #EEF5FF; }
.mon-em-chip.out { text-decoration: line-through; opacity: .55; }
.mon-em-chip.test { opacity: .55; }
.mon-em-bad { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); }
.mon-em-need { font-size: 12.5px; color: var(--gray-500); margin-right: auto; }
.mon-em-confirm { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 8%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.mon-em-sending { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); padding: 12px 0; }
.mon-em-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--gray-200); border-top-color: var(--blue); animation: monEmSpin .8s linear infinite; flex: 0 0 auto; }
@keyframes monEmSpin { to { transform: rotate(360deg); } }
.mon-em-done { padding: 16px; border-radius: 12px; background: color-mix(in srgb, var(--green) 9%, transparent); font-size: 14px; color: var(--gray-700); line-height: 1.55; }
.mon-em-done.part { background: color-mix(in srgb, var(--yellow) 12%, transparent); }
.mon-em-done-big { font-size: 17px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.mon-em-hist { margin-top: 16px; border-top: 1px solid var(--gray-100); padding-top: 10px; font-size: 13px; }
.mon-em-hist summary { cursor: pointer; font-weight: 700; color: var(--gray-600); }
.mon-em-hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }
.mon-em-hsubj { font-weight: 700; color: var(--gray-800); }
.mon-em-hby { color: var(--gray-400); margin-left: auto; }
.mon-em-acc { max-height: 52vh; overflow-y: auto; border: 1px solid var(--gray-100); border-radius: 10px; padding: 4px 12px 10px; }
.mon-em-acc-role { font-size: 11.5px; font-weight: 800; color: var(--gray-400); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
.mon-em-acc-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.mon-em-acc-row small { color: var(--gray-400); }
@media (max-width: 900px) {
  .mon-em-grid { grid-template-columns: 1fr; }
  .mon-em-prev { height: 420px; }
  .mon-em-modes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .mon-em-spin { animation: none; } }
