/* Business OS appearance overlay v1 (ADR-0031, option 2a).
 *
 * Injected by the edge (Caddy) into every Twenty page on the CRM host, after
 * Twenty's own styles. Four things only: our font, one accent colour, tighter
 * table cells, and the stage tint palette that overlay.js applies to lead rows
 * and board cards. Every selector is a hook listed in hooks.json and checked in
 * CI against the pinned Twenty; nothing here targets Twenty's generated class
 * names. Removing this file (and overlay.js) returns Twenty's stock look.
 */

/* Font: Assistant (SIL Open Font License 1.1, fonts/OFL.txt), self-hosted,
   variable weight. Hebrew and Latin subsets load only when a page uses them. */
@font-face {
  font-family: "Assistant BOS";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/_bos/edge/fonts/assistant-hebrew-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant BOS";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/_bos/edge/fonts/assistant-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Hook theme-class + theme-tokens. html.light / html.dark outrank Twenty's
   .light / .dark, so these win without !important. */
html.light,
html.dark {
  --bos-action-red: #c4262c;
  --bos-action-blue: #0b62c4;
  --bos-action-purple: #7239ad;
  --bos-action-green: #18794e;
  --bos-call-green: #18794e;
  --bos-call-green-hover: #145f3e;
  --bos-call-green-text: #3dd68c;
  --t-font-family: "Assistant BOS", Inter, sans-serif;
}

/* Hook page-font: Twenty's index.css names Inter on body directly; text that
   inherits rather than reading the token follows this. */
html body {
  font-family: var(--t-font-family);
}

/* One accent: teal, #0F766E at step 9 (white text on it: 5.5:1). Twenty's
   accent is its blue: the accent tokens and the UI blue tokens hold the same
   scale (primary buttons, links, focus, selection), so both point at one teal
   scale. Stage chips use Twenty's separate tag tokens, so a BLUE stage stays
   blue. */
html.light {
  --bos-action-red: #c4262c;
  --bos-action-blue: #0b62c4;
  --bos-action-purple: #7239ad;
  --bos-action-green: #18794e;
  --bos-call-green: #18794e;
  --bos-call-green-hover: #145f3e;
  --bos-call-green-text: #18794e;
  --bos-accent-1: #fafefd;
  --bos-accent-2: #f3fbf9;
  --bos-accent-3: #e0f8f3;
  --bos-accent-4: #ccf3ea;
  --bos-accent-5: #b8eae0;
  --bos-accent-6: #a1ded2;
  --bos-accent-7: #83cdc1;
  --bos-accent-8: #53b9ab;
  --bos-accent-9: #0f766e;
  --bos-accent-10: #115e59;
  --bos-accent-11: #0f766e;
  --bos-accent-12: #0d3d38;
}

/* Timer colours (user, 2026-11-17): the bar's fill and its caption, a
   callback in orange, "תזכיר לי" in blue, red once due; the soft glow of a row
   whose timer is due and not acted on. Text at 4.5:1 or more on the surface. */
html.light {
  --bos-timer-callback: #c2410c;
  --bos-timer-reminder: #0b62c4;
  --bos-timer-due: #c4262c;
  --bos-timer-track: rgb(0 0 0 / 0.12);
  --bos-pulse-glow: rgb(234 88 12 / 0.26);
  --bos-pulse-edge: rgb(234 88 12 / 0.85);
}
/* Text in the action colours (links, "העלאת קובץ", overdue figures): the
   filled buttons' colours in light mode, lighter in dark mode so the text
   keeps 4.5:1 on the dark surface (user, 2026-11-20, D3). */
html.light {
  --bos-text-blue: #0b62c4;
  --bos-text-red: #c4262c;
}
html.dark {
  --bos-text-blue: #93c5fd;
  --bos-text-red: #fca5a5;
}
html.dark {
  --bos-timer-callback: #fdba74;
  --bos-timer-reminder: #93c5fd;
  --bos-timer-due: #fca5a5;
  --bos-timer-track: rgb(255 255 255 / 0.16);
  --bos-pulse-glow: rgb(251 146 60 / 0.3);
  --bos-pulse-edge: rgb(251 146 60 / 0.9);
}

html.dark {
  --bos-accent-1: #0d1514;
  --bos-accent-2: #111c1b;
  --bos-accent-3: #0d2d2a;
  --bos-accent-4: #023b37;
  --bos-accent-5: #084843;
  --bos-accent-6: #145750;
  --bos-accent-7: #1c6961;
  --bos-accent-8: #207e73;
  --bos-accent-9: #0f766e;
  --bos-accent-10: #14897f;
  --bos-accent-11: #0bd8b6;
  --bos-accent-12: #adf0dd;
}

html.light,
html.dark {
  --t-accent-accent1: var(--bos-accent-1);
  --t-accent-accent2: var(--bos-accent-2);
  --t-accent-accent3: var(--bos-accent-3);
  --t-accent-accent4: var(--bos-accent-4);
  --t-accent-accent5: var(--bos-accent-5);
  --t-accent-accent6: var(--bos-accent-6);
  --t-accent-accent7: var(--bos-accent-7);
  --t-accent-accent8: var(--bos-accent-8);
  --t-accent-accent9: var(--bos-accent-9);
  --t-accent-accent10: var(--bos-accent-10);
  --t-accent-accent11: var(--bos-accent-11);
  --t-accent-accent12: var(--bos-accent-12);
  --t-accent-primary: var(--bos-accent-5);
  --t-accent-secondary: var(--bos-accent-5);
  --t-accent-tertiary: var(--bos-accent-3);
  --t-accent-quaternary: var(--bos-accent-2);
  --t-accent-accent3570: var(--bos-accent-8);
  --t-accent-accent4060: var(--bos-accent-8);
  --t-color-blue: var(--bos-accent-9);
  --t-color-blue1: var(--bos-accent-1);
  --t-color-blue2: var(--bos-accent-2);
  --t-color-blue3: var(--bos-accent-3);
  --t-color-blue4: var(--bos-accent-4);
  --t-color-blue5: var(--bos-accent-5);
  --t-color-blue6: var(--bos-accent-6);
  --t-color-blue7: var(--bos-accent-7);
  --t-color-blue8: var(--bos-accent-8);
  --t-color-blue9: var(--bos-accent-9);
  --t-color-blue10: var(--bos-accent-10);
  --t-color-blue11: var(--bos-accent-11);
  --t-color-blue12: var(--bos-accent-12);
}

/* Stage tints: one background and one edge colour per Twenty colour name.
   Stage colours are data (Settings → stage colour); overlay.js maps each stage
   to the variables of its colour. Same hues in dark mode, at dark-mode
   lightness so text keeps its contrast. */
html.light {
  --bos-tint-gray: #e4e4e4;
  --bos-edge-gray: #8d8d8d;
  --bos-tint-blue: #d5efff;
  --bos-edge-blue: #0090ff;
  --bos-tint-turquoise: #ccf3ea;
  --bos-edge-turquoise: #12a594;
  --bos-tint-purple: #f0e0fb;
  --bos-edge-purple: #8e4ec6;
  --bos-tint-yellow: #fff3a8;
  --bos-edge-yellow: #d5ae00;
  --bos-tint-orange: #ffdfb5;
  --bos-edge-orange: #f76b15;
  --bos-tint-green: #d1f0db;
  --bos-edge-green: #30a46c;
  --bos-tint-red: #ffdfe0;
  --bos-edge-red: #e5484d;
  --bos-tint-pink: #fbdcef;
  --bos-edge-pink: #d6409f;
  --bos-save-ok: #18794e;
  --bos-save-error: #ce2c31;
  --bos-note-meta: #646464;
  --bos-surface: #ffffff;
  --bos-text: #1d1d1f;
  --bos-line: #d4d4d4;

  --bos-scrollbar-thumb: #8a8a8a;
  --bos-scrollbar-thumb-hover: #646464;
  --bos-scrollbar-track: #ececec;
}

html.dark {
  --bos-tint-gray: #2e2e2e;
  --bos-edge-gray: #7b7b7b;
  --bos-tint-blue: #0d2f52;
  --bos-edge-blue: #0090ff;
  --bos-tint-turquoise: #063a35;
  --bos-edge-turquoise: #12a594;
  --bos-tint-purple: #3a1e55;
  --bos-edge-purple: #9a5cd0;
  --bos-tint-yellow: #3a3005;
  --bos-edge-yellow: #f5d90a;
  --bos-tint-orange: #46240a;
  --bos-edge-orange: #f76b15;
  --bos-tint-green: #123a26;
  --bos-edge-green: #30a46c;
  --bos-tint-red: #4c1419;
  --bos-edge-red: #e5484d;
  --bos-tint-pink: #4a1638;
  --bos-edge-pink: #d6409f;
  --bos-save-ok: #3dd68c;
  --bos-save-error: #ff9592;
  --bos-note-meta: #b4b4b4;
  --bos-surface: #1f1f1f;
  --bos-text: #ededed;
  --bos-line: #3a3a3a;

  --bos-scrollbar-thumb: #7b7b7b;
  --bos-scrollbar-thumb-hover: #a0a0a0;
  --bos-scrollbar-track: #2a2a2a;
}

/* Density (hook table-cell-display). Twenty fixes the row height at 32px in
   its virtualised table (RECORD_TABLE_ROW_HEIGHT), so rows cannot get shorter
   without breaking scrolling; columns get tighter instead. Twenty pads 8px on
   the left only; this pads 5px on the start side, so Hebrew gets it on the
   right. */
html div[data-testid^="row-id-"] > :is(.table-cell, .table-cell-0-0) .record-table-cell-display {
  padding-left: 0;
  padding-right: 0;
  padding-inline-start: 5px;
}

/* Brand (hook auth-legal-links): the sign-in page links Twenty's own cloud
   privacy policy and terms, which are not ours. Hidden until Business OS has
   its own (docs/legal/review-list.md). */
html div:has(> a[href^="https://twenty.com/terms"]) {
  display: none;
}

/* Pinned columns (user, 2026-11-17): on the leads views only Twenty's own
   pinned columns stay in place, the checkbox and "שם חברה"; every other
   column scrolls with the table, aligned with its header, so none can slide
   over another. (2026-11-01 to 11-17 the next four columns were pinned too.)
   The page still carries data-bos-pinned: it marks the team's leads views,
   which fit the window (overlay.js, fit to width). */
/* Twenty's table box (the scrolling area's child) hides its overflow, which
   makes it the box its pinned columns stick to; it never scrolls, so the
   checkbox and "שם חברה" scrolled away with the rest. `clip` cuts the same
   way without being a scrolling box, so they stick to the scrolling area
   (hook column-widths; leads-scroll.spec.ts). Sideways only: clipping it
   top to bottom too stopped Twenty loading the rows past the first 60
   (callback-due.spec.ts, the bar past the first 100 rows). */
html .scroll-wrapper-x-enabled > div:has(> div[style*="--record-table-column-field-0"]) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
/* The team's leads tables end at "אחראי/ת" (user, 2026-11-24): Twenty's
   "+" column after the last field (add a field to the view) left an empty
   column on the table's far side, with and without the side panel. The
   columns are fixed by the team's rules; the view's own options still add
   fields (hook column-classes). */
html[data-bos-pinned] :is(.header-cell, .table-cell, .footer-cell).record-table-column-add-column-button {
  display: none !important;
}

/* Save confirmation (overlay.js): a small label next to the cell or field
   just saved, fading after about 2 s; red when the save failed. It sits above
   the page, never takes clicks and is hidden from screen readers, which hear
   the same text from a polite status region instead. */
.bos-save-badge {
  position: fixed;
  z-index: 40;
  padding: 1px 8px;
  border: 1px solid var(--bos-edge-green);
  border-radius: 999px;
  background-color: var(--bos-tint-green);
  color: var(--bos-save-ok);
  font: 500 12px/18px var(--t-font-family, sans-serif);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease-out;
}
.bos-save-badge-error {
  border-color: var(--bos-edge-red);
  background-color: var(--bos-tint-red);
  color: var(--bos-save-error);
}
.bos-save-badge-out {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .bos-save-badge {
    transition: none;
  }
}
/* Notes on a lead (overlay.js, user, 2026-11-02): under each note, who wrote
   it and when; a pin button in the card's top corner at the inline end (the
   left in Hebrew); a pinned note first, with an accent edge and a filled pin.
   The button is always visible (also on a phone, where there is no hover). */
.bos-note-card {
  position: relative;
  /* Room for the "גלוי לשותף" checkbox at the foot (2026-11-10). */
  padding-block-end: 36px;
}
.bos-note-card > :first-child {
  padding-inline-end: 32px;
}
/* Notes count (overlay.js, user, 2026-11-03): " (2)" after a lead's name in
   the leads tables and on its notes tab; quieter than the name, never wraps. */
.bos-note-count {
  flex: none;
  color: var(--bos-note-meta);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  unicode-bidi: isolate;
}
.bos-note-meta {
  margin-top: 6px;
  color: var(--bos-note-meta);
  font: 400 12px/16px var(--t-font-family, sans-serif);
  unicode-bidi: plaintext;
}
.bos-note-pin {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--bos-note-meta);
  cursor: pointer;
}
.bos-note-pin:hover {
  background-color: var(--bos-accent-3);
  color: var(--bos-accent-11);
}
.bos-note-pin:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}
.bos-note-pin:disabled {
  cursor: progress;
  opacity: 0.6;
}
.bos-note-pin[aria-pressed="true"] {
  color: var(--bos-accent-11);
}
/* "גלוי לשותף" (user, 2026-11-10): a checkbox at the foot of every note
   card, and a small tag on the notes marked for the lead partner. */
.bos-note-partner {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  font-size: 12px;
  color: var(--bos-note-meta);
  cursor: pointer;
  user-select: none;
}
.bos-note-partner input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--bos-accent-9);
  cursor: pointer;
}
.bos-note-partner input:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 2px;
}
.bos-note-partner input:disabled {
  cursor: progress;
}
.bos-note-partner-tag {
  display: inline-block;
  align-self: flex-start;
  margin-block-start: 4px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--bos-accent-3);
  color: var(--bos-accent-11);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
.bos-note-pin[aria-pressed="true"] svg {
  fill: currentColor;
}
.bos-note-card[data-bos-pinned-note] {
  box-shadow: inset 0 0 0 2px var(--bos-accent-8);
}

/* New contact (overlay.js, user, 2026-11-03): the small form after a
   contact picker's "הוסף חדש". A modal dialog above Twenty's panels; two
   columns on a wide screen, one on a phone. */
.bos-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
}
.bos-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--bos-line);
  border-radius: 12px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: 400 14px/20px var(--t-font-family, sans-serif);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.bos-modal-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}
.bos-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
@media (max-width: 560px) {
  .bos-form-grid {
    grid-template-columns: 1fr;
  }
}
.bos-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--bos-note-meta);
}
.bos-field input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--bos-line);
  border-radius: 8px;
  background: transparent;
  color: var(--bos-text);
  font: inherit;
  font-size: 14px;
}
html[dir="rtl"] .bos-field input[dir="ltr"] {
  text-align: right;
}
.bos-field input:focus-visible,
.bos-button:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}
.bos-field small {
  font-size: 12px;
  color: var(--bos-note-meta);
}
.bos-form-error {
  margin: 12px 0 0;
  color: var(--bos-save-error);
}
.bos-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.bos-button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--bos-line);
  border-radius: 8px;
  background: transparent;
  color: var(--bos-text);
  font: inherit;
  cursor: pointer;
}
.bos-button-primary {
  border-color: var(--bos-accent-9);
  background: var(--bos-accent-9);
  color: #ffffff;
}
.bos-button:disabled {
  cursor: progress;
  opacity: 0.6;
}

/* Company contacts under שיחה on a lead (overlay.js, user, 2026-11-03): the
   lead's company's people, each with role, phone and email, and a button that
   opens the contact form at that company. */
.bos-company-contacts {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border: 1px solid var(--bos-accent-5);
  border-radius: 6px;
  background-color: var(--bos-accent-2);
  font: 400 13px/18px var(--t-font-family, sans-serif);
}
.bos-company-contacts-title {
  margin-bottom: 6px;
  color: var(--bos-accent-12);
  font-weight: 600;
}
.bos-company-contacts-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.bos-company-contacts-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 3px 0;
}
.bos-company-contacts-list a {
  color: var(--bos-accent-11);
}
.bos-company-contacts-list a:focus-visible,
.bos-company-contacts-add:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}
.bos-company-contacts-detail {
  color: var(--bos-note-meta);
  unicode-bidi: isolate;
}
.bos-company-contacts-main {
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--bos-accent-4);
  color: var(--bos-accent-12);
  font-size: 11px;
}
.bos-company-contacts-empty {
  margin: 0 0 8px;
  color: var(--bos-note-meta);
}

/* The archive bar (overlay.js, user, 2026-11-03): on "כל הלידים" the archive
   group's header row is a full-width bar, "ארכיון (N)" with Twenty's arrow;
   clicking anywhere on it opens or closes the group. */
[data-bos-archive-bar] {
  cursor: pointer;
  background-color: var(--bos-accent-2);
  border-block: 1px solid var(--bos-accent-6);
}
[data-bos-archive-bar] > .disable-shadow {
  width: auto;
  min-width: 260px;
  background-color: var(--bos-accent-2);
}
[data-bos-archive-bar] button[aria-expanded] > span:not([data-bos]),
[data-bos-archive-bar] [id^="record-group-section-aggregate-dropdown-"] {
  display: none;
}
.bos-archive-label {
  color: var(--bos-accent-11);
  font: 600 14px/20px var(--t-font-family, sans-serif);
  white-space: nowrap;
}
[data-bos-archive-bar] button[aria-expanded]:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}

.bos-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Visible scrollbars (user, 2026-11-03; hook scroll-wrapper). Inside the
   screen, in the table and the side panel, scrollbars are wider, darker and
   always shown instead of Twenty's thin ones that appear only while
   scrolling. Chrome and Firefox read scrollbar-color/-width; Safari reads the
   ::-webkit-scrollbar rules, which Chrome ignores once scrollbar-color is set. */
html .scroll-wrapper-x-enabled,
html .scroll-wrapper-y-enabled {
  scrollbar-width: auto !important;
  scrollbar-color: var(--bos-scrollbar-thumb) var(--bos-scrollbar-track) !important;
}
html .scroll-wrapper-x-enabled::-webkit-scrollbar,
html .scroll-wrapper-y-enabled::-webkit-scrollbar {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  background-color: var(--bos-scrollbar-track) !important;
}
html .scroll-wrapper-x-enabled::-webkit-scrollbar-thumb,
html .scroll-wrapper-y-enabled::-webkit-scrollbar-thumb {
  border: 2px solid var(--bos-scrollbar-track) !important;
  border-radius: 6px !important;
  background-color: var(--bos-scrollbar-thumb) !important;
}
html .scroll-wrapper-x-enabled::-webkit-scrollbar-thumb:hover,
html .scroll-wrapper-y-enabled::-webkit-scrollbar-thumb:hover {
  background-color: var(--bos-scrollbar-thumb-hover) !important;
}

/* "פעילות" hidden for roles that should not see it (overlay.js, user,
   2026-11-03). A UI restriction, not a permission (ADR-0031). */
html a[data-bos-hidden-tab] {
  display: none !important;
}

/* Relation picker details (overlay.js, user, 2026-11-03): a small card beside
   the hovered or highlighted option with company and role, phone and email. */
.bos-picker-card {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  padding: 6px 10px;
  border: 1px solid var(--bos-edge-gray);
  border-radius: 8px;
  background-color: var(--t-background-primary, #fff);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.16);
  color: var(--t-font-color-primary, #333);
  font: 400 12px/18px var(--t-font-family, sans-serif);
  unicode-bidi: plaintext;
  pointer-events: none;
}
.bos-picker-card > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Counts in the status picker (overlay.js, user, 2026-11-19): how many leads
   each stage holds, at the option's inline end, in Twenty's own colours so
   it follows the light and dark themes. */
.bos-stage-count {
  flex: none;
  min-width: 20px;
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 10px;
  background-color: var(--t-background-transparent-light, rgb(0 0 0 / 0.04));
  color: var(--t-font-color-tertiary, #666);
  font: 500 12px/18px var(--t-font-family, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Filter icon on each column header (overlay.js, user, 2026-11-03): at the
   header's inline end; it opens Twenty's own filter for that column. */
.bos-header-filter {
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bos-edge-gray);
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.55;
}
html div.header-cell:hover > .bos-header-filter,
.bos-header-filter:focus-visible {
  opacity: 1;
  color: var(--bos-accent-11);
  background-color: var(--bos-accent-3);
}
.bos-header-filter:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}

/* Reminder alerts (overlay.js, reminders design §3, user 2026-11-07): a row
   with an alert for the signed-in member gets a colour strip at its start and
   the rule's tag after the name; the sidebar counts the records waiting. One
   colour per rule, from the board (red, orange, yellow, blue). Never moves. */
div[data-testid^="row-id-"][data-bos-alert] > :first-child {
  box-shadow: inset 3px 0 0 var(--bos-alert-color);
}
html[dir="rtl"] div[data-testid^="row-id-"][data-bos-alert] > :first-child {
  box-shadow: inset -3px 0 0 var(--bos-alert-color);
}
div[data-testid^="row-id-"][data-bos-alert="RED"],
.bos-alert-tag[data-color="RED"] { --bos-alert-color: var(--bos-edge-red); --bos-alert-tint: var(--bos-tint-red); }
div[data-testid^="row-id-"][data-bos-alert="ORANGE"],
.bos-alert-tag[data-color="ORANGE"] { --bos-alert-color: var(--bos-edge-orange); --bos-alert-tint: var(--bos-tint-orange); }
div[data-testid^="row-id-"][data-bos-alert="YELLOW"],
.bos-alert-tag[data-color="YELLOW"] { --bos-alert-color: var(--bos-edge-yellow); --bos-alert-tint: var(--bos-tint-yellow); }
div[data-testid^="row-id-"][data-bos-alert="BLUE"],
.bos-alert-tag[data-color="BLUE"] { --bos-alert-color: var(--bos-edge-blue); --bos-alert-tint: var(--bos-tint-blue); }
.bos-alert-tag {
  flex: none;
  margin-inline-start: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bos-alert-tint, var(--bos-tint-blue));
  box-shadow: inset 0 0 0 1px var(--bos-alert-color, var(--bos-edge-blue));
  color: var(--bos-text);
  font: 500 11px/18px var(--t-font-family, sans-serif);
  white-space: nowrap;
  unicode-bidi: isolate;
}
.bos-alert-count {
  flex: none;
  min-width: 18px;
  margin-inline-start: auto;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bos-edge-red);
  color: #ffffff;
  font: 600 11px/18px var(--t-font-family, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* Next to a tag, the name chip gives way: it shrinks and Twenty's chip
   truncates the name, so the tag never covers it. */
.record-table-cell-display > :first-child:has(> [data-bos="alert-tag"]) > :not([data-bos="alert-tag"]),
.record-table-cell-display > :first-child:has(> [data-bos="alert-tag"]) > :not([data-bos="alert-tag"]) * {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}

/* The reminder popup (overlay.js, user 2026-11-07): a quiet panel at the
   bottom of the screen's start side, listing what is new. Takes no focus. */
.bos-popup {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  /* By its insets, not 100vw: Twenty may scale the page on a phone. */
  inset-inline-end: 16px;
  z-index: 2147483000;
  max-width: 380px;
  box-sizing: border-box;
  max-height: min(60vh, 480px);
  overflow: auto;
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: var(--bos-surface);
  color: var(--bos-text);
  border: 1px solid var(--bos-line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-family: var(--t-font-family, sans-serif);
}
.bos-popup-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.bos-popup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bos-popup-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: inherit;
  text-decoration: none;
}
.bos-popup-list a:hover .bos-popup-label { text-decoration: underline; }
.bos-popup-list a:focus-visible,
.bos-popup-close:focus-visible {
  outline: 2px solid var(--bos-edge-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.bos-popup-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}
.bos-popup-close {
  margin-top: 8px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--bos-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* "תזכיר לי" and "הקפץ ל-…" (overlay.js, user 2026-11-07): two buttons at
   the bottom of a lead's or a deal's page, and their dialog. */
.bos-record-actions {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  z-index: 2147482000;
  display: flex;
  gap: 8px;
}
.bos-record-actions button,
.bos-action-buttons button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--bos-line);
  border-radius: 18px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: 500 13px/1 var(--t-font-family, sans-serif);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.bos-record-actions button:focus-visible,
.bos-action-dialog :is(button, input, textarea):focus-visible {
  outline: 2px solid var(--bos-edge-blue);
  outline-offset: 2px;
}
.bos-action-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.32);
}
.bos-action-dialog {
  width: min(400px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font-family: var(--t-font-family, sans-serif);
}
.bos-action-dialog h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
/* Which attempt this "אין מענה" is, beside the window's title (user, 2026-11-25). */
.bos-action-dialog h2 .bos-callback-attempt {
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bos-tint-red);
  color: var(--bos-text-red);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.bos-action-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  font-size: 14px;
  cursor: pointer;
}
.bos-action-at,
.bos-action-message {
  width: 100%;
  margin: 6px 0 4px;
  padding: 6px 8px;
  border: 1px solid var(--bos-line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.bos-action-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--bos-save-error);
  font-size: 13px;
}
.bos-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
/* White on the action blue (#0b62c4): 6.1:1; on the stage edge blue it was
   3.3:1 (user, 2026-11-20, D3). */
.bos-action-buttons .bos-action-primary {
  background: var(--bos-action-blue);
  border-color: var(--bos-action-blue);
  color: #ffffff;
}
.bos-action-toast {
  position: fixed;
  inset-block-end: 64px;
  inset-inline-end: 16px;
  z-index: 2147483200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bos-text);
  color: var(--bos-surface);
  font: 500 13px/1.4 var(--t-font-family, sans-serif);
}
/* "התזכורת בוטלה" with "בטל פעולה" for 5 seconds. */
.bos-action-toast.bos-action-toast-undo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  font-size: 15px;
}
.bos-action-toast-undo > button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 600 14px/1 var(--t-font-family, sans-serif);
  cursor: pointer;
}
.bos-action-toast-undo > button:focus-visible { outline: 3px solid var(--bos-edge-blue); outline-offset: 2px; }
/* After saving a time: the same sentence as the window's line, larger. */
.bos-action-toast.bos-action-toast-when {
  inset-block-end: 88px;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 10px;
  font: 600 15px/1.45 var(--t-font-family, sans-serif);
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
}

/* "גרסה חדשה מוכנה" (user, 2026-11-09): shown only while the person is busy
   when a new version is deployed; the page reloads itself once they are idle. */
.bos-update-banner {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  padding-inline: 16px 8px;
  border-radius: 10px;
  background: #1f1e1c;
  color: #fff;
  font: 14px/1.4 system-ui, -apple-system, Arial, sans-serif;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
}

[dir='rtl'] .bos-update-banner {
  transform: translateX(50%);
}

.bos-update-banner button {
  font: inherit;
  padding: 6px 14px;
  min-height: 36px;
  border: none;
  border-radius: 8px;
  background: #378add;
  color: #fff;
  cursor: pointer;
}

.bos-update-banner button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* The callback timer on leads (overlay.js, user 2026-11-16): a thin bar under
   the status of the lead's row, filling from when it was set to when it is
   due, with the time left; red and "לחייג עכשיו" once due. On the lead, the
   same bar sits with the record's buttons. The due popup has three actions. */
.bos-callback-bar {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  font-family: var(--t-font-family, sans-serif);
  --bos-timer-color: var(--bos-timer-callback);
}
.bos-reminder-bar { --bos-timer-color: var(--bos-timer-reminder); }
.bos-callback-bar[data-due] { --bos-timer-color: var(--bos-timer-due); }
/* In a table cell: the track along the cell's bottom edge, the time in a
   small pill at its end. */
.bos-callback-track {
  position: absolute;
  inset-inline: 4px;
  inset-block-end: 2px;
  height: 5px;
  border-radius: 3px;
  background: var(--bos-timer-track);
  overflow: hidden;
}
.bos-callback-track > i {
  display: block;
  height: 100%;
  inline-size: 0;
  border-radius: 3px;
  background: var(--bos-timer-color);
  transition: inline-size 0.9s linear;
}
.bos-callback-text {
  position: absolute;
  inset-inline-end: 4px;
  inset-block-start: calc(50% - 10px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 8px);
  padding: 0 6px;
  border: 1.5px solid var(--bos-timer-color);
  border-radius: 999px;
  background: var(--bos-surface);
  color: var(--bos-timer-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bos-callback-text > .bos-icon { width: 11px; height: 11px; stroke-width: 2.5; }
.bos-callback-text > span { overflow: hidden; text-overflow: ellipsis; }
.bos-callback-bar[data-due] .bos-callback-text {
  background: var(--bos-timer-due);
  border-color: var(--bos-timer-due);
  color: var(--bos-surface);
}
.bos-callback-bar:not([data-timer]) .bos-callback-text { border-style: dashed; }
.bos-callback-panel {
  position: static;
  min-width: 160px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bos-surface);
  border: 1px solid var(--bos-line);
  min-height: 36px;
}
.bos-callback-panel .bos-callback-text { font-size: 12px; }
.bos-callback-also {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
}
/* The due callback (user, 2026-11-17): large, in the middle of the page and
   above everything, until the member acts. "חייג" is the main action, filled
   green; the others are outlined. Hebrew RTL and English LTR by the page's
   direction; one column on a phone. */
.bos-callback-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}
.bos-callback-popup {
  box-sizing: border-box;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--bos-line);
  border-radius: 16px;
  border-block-start: 6px solid var(--bos-call-green);
  background: var(--bos-surface);
  color: var(--bos-text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  font-family: var(--t-font-family, sans-serif);
}
.bos-callback-popup-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.bos-callback-popup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bos-callback-popup-list > li {
  padding: 12px 0;
  border-block-end: 1px solid var(--bos-line);
}
.bos-callback-popup-list > li:last-child { border-block-end: 0; }
.bos-callback-name {
  display: block;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  unicode-bidi: isolate;
  text-align: start;
  overflow-wrap: break-word;
}
.bos-callback-name:hover { text-decoration: underline; }
.bos-callback-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 6px 0 0;
  font-size: 16px;
}
.bos-callback-phone {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bos-callback-attempts {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bos-tint-red);
  color: var(--bos-text);
  font-size: 14px;
  font-weight: 600;
}
.bos-callback-note {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bos-tint-gray);
  font-size: 15px;
  line-height: 1.45;
  unicode-bidi: plaintext;
  overflow-wrap: break-word;
  white-space: pre-line;
}
.bos-callback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bos-callback-popup .bos-callback-action,
.bos-callback-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--bos-line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bos-callback-popup .bos-callback-action[data-kind="call"] {
  flex: 1 1 160px;
  min-height: 56px;
  border-color: var(--bos-call-green);
  background: var(--bos-call-green);
  color: #fff;
  font-size: 18px;
}
.bos-callback-popup .bos-callback-action[data-kind="call"]:hover { background: var(--bos-call-green-hover); border-color: var(--bos-call-green-hover); }
.bos-callback-popup .bos-callback-action[data-kind="whatsapp"] { border-color: var(--bos-call-green); color: var(--bos-call-green-text); }
/* "סגור" and "בטל תזכורת" side by side, at the end (user, 2026-11-17). */
.bos-callback-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-block-start: 12px;
}
.bos-callback-close { min-height: 44px; }
.bos-callback-popup .bos-callback-cancel { border-color: var(--bos-timer-due); color: var(--bos-timer-due); }
.bos-callback-popup .bos-callback-cancel:hover { background: color-mix(in srgb, var(--bos-timer-due) 10%, transparent); }
.bos-callback-popup .bos-callback-action:focus-visible,
.bos-callback-close:focus-visible,
.bos-callback-name:focus-visible {
  outline: 3px solid var(--bos-edge-blue);
  outline-offset: 2px;
}
.bos-callback-popup .bos-icon { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .bos-callback-popup { padding: 18px; }
  .bos-callback-popup .bos-callback-action { flex: 1 1 100%; }
  .bos-callback-close { flex: 1 1 100%; }
  .bos-callback-panel { min-width: 0; flex: 1 1 100%; }
}
/* On a leads board: under the card's fields. */
.bos-callback-card {
  position: static;
  margin: 2px 8px 6px;
}

/* The record's buttons (user, 2026-11-17): an icon and a filled colour each,
   white text with at least 4.5:1 contrast, in light and dark. */
.bos-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bos-record-actions { gap: 10px; align-items: center; }
.bos-record-actions button[data-kind] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  font: 600 15px/1 var(--t-font-family, sans-serif);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.bos-record-actions button[data-kind="noanswer"] { background: var(--bos-action-red); }
.bos-record-actions button[data-kind="remind"] { background: var(--bos-action-blue); }
.bos-record-actions button[data-kind="escalate"] { background: var(--bos-action-purple); }
.bos-record-actions button[data-kind="kind"] { background: var(--bos-action-green); }
/* "העבר לארכיון" on a task (user, 2026-11-19): neutral, not the colour of an action to take. */
.bos-record-actions button[data-kind="archive"] { background: var(--bos-text); color: var(--bos-surface); }
.bos-record-actions button[data-kind]:hover { filter: brightness(0.9); }
.bos-record-actions button[data-kind]:focus-visible {
  outline: 3px solid var(--bos-text);
  outline-offset: 2px;
}
/* A phone: the buttons wrap inside the screen, the timer's bar on a row of its
   own above them. */
@media (max-width: 600px) {
  .bos-record-actions {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .bos-record-actions button[data-kind] { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 14px; }
}

/* "תזכיר לי" on a lead (user, 2026-11-17): its own bar, in blue, under the
   callback bar; and its tag and the time it was for in the large popup. */
.bos-callback-kind {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bos-action-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.bos-callback-was { font-size: 14px; }
/* A table cell with both bars: the reminder's track along the cell's top
   edge, the callback's along the bottom, so neither covers the other. */
:has(> [data-bos='callback-bar']) > .bos-reminder-bar:not(.bos-callback-card):not(.bos-callback-panel) .bos-callback-track {
  inset-block-start: 1px;
  inset-block-end: auto;
  height: 5px;
}
:has(> .bos-reminder-bar) > [data-bos='callback-bar']:not(.bos-callback-card) .bos-callback-track { height: 5px; }

/* The pills stand on the status chip's line (user, 2026-11-23; before, from
   2026-11-21, "1/3" sat under the chip, spilled into the next column and
   pushed the chip up): the callback pill at the cell's inline end, the
   reminder's beside it (--bos-pill-offset), each vertically centred. The
   chip's box ends before them (--bos-pill-room, measured by overlay.js), so
   a long stage ends in an ellipsis and never runs under a pill. Every row
   keeps Twenty's fixed height. */
div[data-testid^="row-id-"] > :has(> [data-bos='callback-bar'], > .bos-reminder-bar) > :not([data-bos]) {
  box-sizing: border-box;
  max-inline-size: 100%;
  padding-inline-end: var(--bos-pill-room, 0px);
}
div[data-testid^="row-id-"] > * > :is([data-bos='callback-bar'], .bos-reminder-bar) .bos-callback-text {
  inset-block-start: calc(50% - 8px);
  inset-block-end: auto;
  line-height: 13px;
  font-size: 11px;
  padding: 0 5px;
}
div[data-testid^="row-id-"] > * > .bos-reminder-bar .bos-callback-text {
  inset-inline-end: calc(4px + var(--bos-pill-offset, 0px));
}
/* A narrow status cell (user, 2026-11-24: the side panel open): the pills
   show their icons only, so the status chip always shows; overlay.js
   (data-bos-compact) decides, and still measures the hidden words. Each bar
   keeps its words in its label and tooltip. */
div[data-testid^="row-id-"] > [data-bos-compact] > :is([data-bos='callback-bar'], .bos-reminder-bar) .bos-callback-text {
  padding: 0 4px;
}
div[data-testid^="row-id-"] > [data-bos-compact] > :is([data-bos='callback-bar'], .bos-reminder-bar) .bos-callback-text > span {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

/* On a board card and on the lead: one line, the track filling beside the
   time. */
.bos-callback-panel.bos-callback-bar,
.bos-callback-card.bos-callback-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
:is(.bos-callback-panel, .bos-callback-card) .bos-callback-track {
  position: static;
  flex: 1 1 40px;
  min-width: 40px;
  height: 6px;
}
:is(.bos-callback-panel, .bos-callback-card) .bos-callback-text {
  position: static;
  flex: 0 1 auto;
  font-size: 12px;
  line-height: 18px;
}

/* A due timer not acted on (user, 2026-11-17): the row's cells (or the
   card) glow softly, about one pulse every two seconds, until the member
   acts. Reduced motion: a steady highlight instead. */
@keyframes bos-row-pulse {
  50% { box-shadow: inset 0 0 0 999px var(--bos-pulse-glow), inset 0 2px 0 var(--bos-pulse-edge), inset 0 -2px 0 var(--bos-pulse-edge); }
}
html div[data-testid^="row-id-"][data-bos-pulse] > :is(.table-cell, .table-cell-0-0),
html [data-bos-pulse][data-selected] {
  animation: bos-row-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html div[data-testid^="row-id-"][data-bos-pulse] > :is(.table-cell, .table-cell-0-0),
  html [data-bos-pulse][data-selected] {
    animation: none;
    box-shadow: inset 0 0 0 999px var(--bos-pulse-glow), inset 0 2px 0 var(--bos-pulse-edge), inset 0 -2px 0 var(--bos-pulse-edge);
  }
}

/* "מתי?" (user, 2026-11-17): rows of quick buttons, a date and a time, and
   the line saying exactly when it will pop. The rows below serve every
   window of this look ("סיבת אי-סגירה" too); the picker's own layout is
   under .bos-when-pick further down. */
.bos-action-dialog.bos-when-dialog { width: min(560px, 100%); }
/* Any screen width (user, 2026-11-19, a Windows screen at 125%): never wider
   than the window, nothing spills sideways (in RTL it spilled off the left).
   A screen shorter than the window (below the sizes the picker is made for)
   still scrolls it, with "שמירה" kept in view at its bottom. */
.bos-action-dialog.bos-when-dialog {
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  /* The frame's own height: on a phone Twenty may scale the page, and then
     the viewport units above measure more than the screen shows. */
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bos-when-dialog .bos-when-chip { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bos-when-dialog .bos-action-buttons {
  position: sticky;
  bottom: -18px;
  z-index: 1;
  flex-wrap: wrap;
  margin: 8px -20px -18px;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--bos-line);
  background: var(--bos-surface);
}
.bos-when { display: flex; flex-direction: column; gap: 12px; margin-block-end: 6px; }
.bos-when-row { display: flex; flex-direction: column; gap: 6px; }
.bos-when-row[hidden] { display: none; }
.bos-when-label { font-size: 13px; font-weight: 600; opacity: 0.8; }
.bos-when-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bos-when-chip {
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--bos-line);
  border-radius: 10px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: 600 14px/1.2 var(--t-font-family, sans-serif);
  white-space: nowrap;
  cursor: pointer;
}
.bos-when-chip:hover { border-color: var(--bos-action-blue); }
.bos-when-chip[aria-pressed="true"] {
  border-color: var(--bos-action-blue);
  background: var(--bos-action-blue);
  color: #fff;
}
.bos-when-chip:focus-visible,
.bos-when-input:focus-visible {
  outline: 3px solid var(--bos-action-blue);
  outline-offset: 2px;
}
.bos-when-input {
  min-height: 44px;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 10px;
  border: 1.5px solid var(--bos-line);
  border-radius: 10px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: 600 15px/1 var(--t-font-family, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.bos-when[data-exact] .bos-when-input { border-color: var(--bos-action-blue); }
/* "סיבת אי-סגירה" (overlay.js, user, 2026-11-19): free words, not a time. */
.bos-when-input.bos-loss-detail {
  min-height: 64px;
  padding: 8px 10px;
  font: 400 15px/1.4 var(--t-font-family, sans-serif);
  text-align: start;
  resize: vertical;
}
.bos-when-input.bos-loss-detail:required { border-color: var(--bos-action-blue); }
.bos-when-summary {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bos-tint-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.bos-when-summary[data-invalid] { background: var(--bos-tint-red); color: var(--bos-save-error); }
.bos-when-dialog .bos-action-buttons button { min-height: 44px; padding-inline: 18px; font-size: 15px; }
.bos-when-dialog .bos-action-buttons button:disabled { opacity: 0.45; cursor: not-allowed; }

/* The picker (user, 2026-11-24, as the Apple date and time picker): its
   rows, calendar and wheels are design/when-picker.css, shared with the
   "משימות" page and loaded by overlay.js. Here, the window around it: one
   size from the moment it opens, nothing in it scrolls but the wheels, and
   on a phone a sheet along the bottom, the full width. The colours are the
   overlay's, as design v2 keeps them on its windows (design.md §8.8). */
.bos-when-dialog:has(.bos-when-pick) {
  width: min(560px, 100%);
  padding: 18px 20px 0;
  background: var(--bos-surface);
  color: var(--bos-text);
}
.bos-when-dialog:has(.bos-when-pick) h2 { margin-block-end: 14px; font-size: 17px; line-height: 24px; }
.bos-when-dialog:has(.bos-when-pick) .bos-action-error { min-height: 18px; margin: 4px 0 0; color: var(--bos-save-error); }
.bos-when-dialog:has(.bos-when-pick) .bos-action-buttons {
  bottom: 0;
  margin: 6px -20px 0;
  padding: 12px 20px 16px;
  border-top-color: var(--bos-line);
  background: var(--bos-surface);
}
.bos-when-dialog:has(.bos-when-pick) .bos-action-buttons button {
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
}
.bos-when-dialog:has(.bos-when-pick) .bos-action-buttons .bos-action-primary {
  border-color: var(--bos-action-blue);
  background: var(--bos-action-blue);
  color: #ffffff;
}
.bos-when-dialog:has(.bos-when-pick) .bos-action-buttons .bos-action-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--bos-action-blue) 85%, #000000); }
/* "להודיע גם ל:" and the names on one line, wrapping, not one under the other. */
.bos-when-dialog:has(.bos-when-pick) .bos-callback-also { display: inline-block; margin: 8px 0 0; margin-inline-end: 12px; }
.bos-when-dialog:has(.bos-when-pick) .bos-action-option { display: inline-flex; min-height: 30px; margin-inline-end: 14px; }
/* "שעת האירוע": the clock alone, a narrower window. */
.bos-when-dialog.bos-time-dialog:has(.bos-when-pick) { width: min(500px, 100%); }
@media (max-width: 480px) {
  .bos-action-veil:has(> .bos-when-dialog .bos-when-pick) { align-items: flex-end; padding: 0; }
  .bos-action-dialog.bos-when-dialog:has(.bos-when-pick) {
    width: 100%;
    max-width: 100%;
    padding: 14px 12px 0;
    border-radius: 16px 16px 0 0;
  }
  .bos-when-dialog:has(.bos-when-pick) h2 { margin-block-end: 10px; }
  .bos-when-dialog:has(.bos-when-pick) .bos-action-buttons { margin-inline: -12px; padding: 10px 12px max(14px, env(safe-area-inset-bottom)); }
}
/* Design v2 spaces its "מתי?" rows wider (below): not in the picker, whose
   height is fixed. */
html[data-bos-design="v2"] .bos-when.bos-when-pick { gap: 10px; }

/* The lead's pending timers (user, 2026-11-22): a click on the timer badge
   on the lead or its row lists the callback and every "תזכיר לי" still to
   do, each with its exact time and its actions. */
[data-bos][data-list] { z-index: 3; }
[data-bos][data-list] > .bos-callback-text { pointer-events: auto; cursor: pointer; }
[data-bos][data-list]:focus-visible > .bos-callback-text,
[data-bos='callback-panel'][data-list]:focus-visible,
[data-bos='reminder-bar'].bos-callback-panel[data-list]:focus-visible { outline: 2px solid var(--bos-edge-blue); outline-offset: 1px; }
/* On the lead the whole badge is the target, also on a phone. */
.bos-callback-panel[data-list] { pointer-events: auto; cursor: pointer; }
.bos-action-dialog.bos-timers-dialog { width: min(640px, 100%); box-sizing: border-box; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.bos-timers-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* One line per item (user feedback 24.11, item 7): what, who, when and
   "באיחור", then its buttons; on a narrow window the buttons wrap under it.
   Design v2 tokens where they exist (design/system.css), the overlay's
   otherwise, in light and dark. */
.bos-timers-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--ds-line-strong, var(--bos-line));
  border-inline-start: 4px solid var(--bos-timer-callback);
  border-radius: var(--ds-radius-lg, 8px);
  background: var(--ds-surface, var(--bos-surface));
}
.bos-timers-item[data-kind="reminder"] { border-inline-start-color: var(--bos-timer-reminder); }
.bos-timers-item[data-due] {
  border-color: var(--bos-text-red);
  border-inline-start-color: var(--bos-timer-due);
  background: var(--ds-bad-soft, var(--bos-tint-red));
}
.bos-timers-info {
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.bos-timers-info .bos-icon { width: 18px; height: 18px; color: var(--bos-timer-callback); }
.bos-timers-item[data-kind="reminder"] .bos-timers-info .bos-icon { color: var(--bos-timer-reminder); }
.bos-timers-item[data-due] .bos-timers-info .bos-icon { color: var(--bos-text-red); }
.bos-timers-what { font-weight: 700; }
.bos-timers-who { color: var(--ds-text-2, var(--bos-note-meta)); }
.bos-timers-who::before,
.bos-timers-when::before { content: "·"; margin-inline-end: 8px; color: var(--ds-text-2, var(--bos-note-meta)); }
.bos-timers-when { font-weight: 600; }
.bos-timers-item[data-due] .bos-timers-when { color: var(--bos-text-red); }
/* Overdue in words and a marker, never by colour alone. */
.bos-timers-late {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--bos-text-red);
  border-radius: 999px;
  color: var(--bos-text-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}
.bos-timers-late::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bos-text-red); }
.bos-timers-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.bos-timers-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ds-line-strong, var(--bos-line));
  border-radius: var(--ds-radius-lg, 8px);
  background: var(--ds-surface, var(--bos-surface));
  color: var(--ds-text, var(--bos-text));
  font: 600 14px/1.2 var(--t-font-family, sans-serif);
  cursor: pointer;
}
.bos-timers-actions button .bos-icon { width: 16px; height: 16px; }
.bos-timers-actions button:hover { background: var(--ds-surface-2, var(--bos-tint-blue)); }
.bos-timers-actions button[data-action="cancel"] { border-color: var(--bos-text-red); color: var(--bos-text-red); }
.bos-timers-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.bos-timers-actions button:focus-visible { outline: 2px solid var(--bos-accent-9, var(--bos-action-blue)); outline-offset: 2px; }
html.dark .bos-timers-actions button:focus-visible { outline-color: var(--bos-accent-11, var(--bos-action-blue)); }
.bos-timers-empty { margin: 0; padding: 12px; border-radius: 8px; background: var(--ds-surface-2, var(--bos-tint-blue)); font-size: 14px; }
.bos-timers-dialog .bos-action-buttons button { min-height: 44px; padding-inline: 18px; font-size: 15px; }
@media (max-width: 600px) {
  .bos-action-dialog.bos-timers-dialog { padding: 16px 12px; }
  .bos-timers-info { flex-basis: 100%; }
  .bos-timers-actions { margin-inline-start: 0; inline-size: 100%; }
  .bos-timers-actions button { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}

/* "תזכורות (N)" with the record's buttons (user feedback 24.11, item 7): the
   same shape as "אין מענה" and "תזכיר לי" (an icon, 44px, a pill), neutral:
   the surface with a strong border, since it opens a list rather than acting.
   A red ring and a red dot when one is overdue; the words say so too. */
.bos-record-actions .bos-timers-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ds-line-strong, var(--bos-line));
  border-radius: 22px;
  background: var(--ds-surface, var(--bos-surface));
  color: var(--ds-text, var(--bos-text));
  font: 600 15px/1 var(--t-font-family, sans-serif);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}
.bos-record-actions .bos-timers-button:hover { background: var(--ds-surface-2, var(--bos-tint-blue)); }
.bos-record-actions .bos-timers-button:focus-visible { outline: 3px solid var(--bos-text); outline-offset: 2px; }
.bos-record-actions .bos-timers-button[data-due] { border-color: var(--bos-text-red); }
.bos-timers-button-dot { display: none; }
.bos-timers-button[data-due] .bos-timers-button-dot {
  display: block;
  position: absolute;
  inset-block-start: -3px;
  inset-inline-end: -3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ds-surface, var(--bos-surface));
  border-radius: 50%;
  background: var(--bos-timer-due);
}
@media (max-width: 600px) {
  .bos-record-actions .bos-timers-button { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 14px; }
}

/* A pulsing row's bars open its popup (user, 2026-11-17). */
/* The time's pill is the badge, above Twenty's own cell (its tooltip). */
[data-bos][data-opens] { z-index: 3; }
[data-bos][data-opens] > .bos-callback-text { pointer-events: auto; cursor: pointer; }
[data-bos][data-opens]:focus-visible > .bos-callback-text { outline: 2px solid var(--bos-edge-blue); outline-offset: 1px; }

/* A lead that closed, out of a view of open leads (user, 2026-11-19), until
   Twenty's own list follows. */
div[data-testid^="row-id-"][data-bos-closed] { display: none !important; }
/* Questions to the member (user, 2026-11-20; maya-questions.md): the same
   large popup as a due timer, one question at a time, with a blue top line.
   "עניתי" filled blue, "אחזור לזה אחר כך" outlined; one column on a phone.
   Redesigned (user, 2026-11-25, "החלון של מיה v2"): the question's text in
   paragraphs and numbered lines, how to answer set apart as a note, the deal
   as a card with its amounts side by side, the linked deals as aligned rows,
   and the list she answers in place. Logical properties only. */
.bos-question-popup {
  box-sizing: border-box;
  width: min(680px, 100%);
  /* Of the veil's own box, not of the viewport: on a phone whose page is
     scaled the viewport units are taller than the veil, and the last button
     fell below the screen. */
  max-height: 100%;
  overflow: auto;
  padding: 24px 28px;
  border: 1px solid var(--bos-line);
  border-radius: 16px;
  border-block-start: 6px solid var(--bos-action-blue);
  background: var(--bos-surface);
  color: var(--bos-text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  font-family: var(--t-font-family, sans-serif);
  --bos-question-soft: color-mix(in srgb, var(--bos-text) 5%, var(--bos-surface));
  --bos-question-rule: color-mix(in srgb, var(--bos-text) 14%, var(--bos-surface));
}
.bos-question-counter {
  margin: 0;
  min-height: 1em;
  font-size: 14px;
  font-weight: 600;
  color: var(--bos-note-meta);
  font-variant-numeric: tabular-nums;
}
.bos-question-asks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--bos-text-blue);
}
.bos-question-title { margin: 0 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; text-wrap: balance; }
.bos-question-again { font-size: 14px; font-weight: 400; color: var(--bos-note-meta); }
.bos-question-text strong { font-weight: 700; }
.bos-question-inline-link { color: var(--bos-text-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.bos-question-inline-link:focus-visible { outline: 3px solid var(--bos-edge-blue); outline-offset: 2px; border-radius: 3px; }
.bos-question-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
  unicode-bidi: plaintext;
  overflow-wrap: break-word;
}
.bos-question-para { margin: 0 0 10px; unicode-bidi: plaintext; text-align: start; }
.bos-question-text > :last-child { margin-block-end: 0; }
.bos-question-lines {
  margin: 0 0 12px;
  padding: 0;
  padding-inline-start: 28px;
  white-space: normal;
}
.bos-question-lines li { padding: 3px 0; padding-inline-start: 4px; text-align: start; }
.bos-question-lines li::marker { color: var(--bos-note-meta); font-weight: 600; font-variant-numeric: tabular-nums; }
.bos-question-how {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-inline-start: 3px solid var(--bos-question-rule);
  border-radius: 6px;
  background: var(--bos-question-soft);
  color: var(--bos-note-meta);
  font-size: 14px;
  line-height: 1.5;
  unicode-bidi: plaintext;
  text-align: start;
}
/* The deal or expense as a card. */
.bos-question-record {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--bos-question-rule);
  border-inline-start: 4px solid var(--bos-action-blue);
  border-radius: 10px;
  background: var(--bos-question-soft);
}
.bos-question-record[data-kind="expense"] { border-inline-start-color: var(--bos-edge-purple); }
.bos-question-record-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-block-end: 12px; }
.bos-question-record-kind {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bos-tint-blue);
  color: var(--bos-text);
  font-size: 12px;
  font-weight: 700;
}
.bos-question-record[data-kind="expense"] .bos-question-record-kind { background: var(--bos-tint-gray); }
.bos-question-record-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.bos-question-record-artist { font-size: 15px; color: var(--bos-note-meta); overflow-wrap: anywhere; }
.bos-question-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.bos-question-fact { min-width: 0; }
.bos-question-facts dt { margin-block-end: 2px; font-size: 12px; font-weight: 600; color: var(--bos-note-meta); }
.bos-question-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  text-align: start;
}
.bos-question-facts dd[data-missing="true"] {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-tint-orange);
  font-size: 13px;
  font-weight: 700;
}
.bos-question-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-block-start: 12px;
  padding: 0 12px;
  border: 1px solid var(--bos-question-rule);
  border-radius: 8px;
  background: var(--bos-surface);
  color: var(--bos-text-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bos-question-link .bos-icon { flex: none; width: 16px; height: 16px; }
.bos-question-files { margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; }
.bos-question-files li { padding: 2px 0; }
.bos-question-files a { color: var(--bos-text-blue); font-weight: 600; }
.bos-question-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.bos-question-hint { font-size: 14px; color: var(--bos-note-meta); }
.bos-question-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.bos-question-answer {
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1.5px solid var(--bos-line);
  border-radius: 10px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}
.bos-question-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 12px; }
.bos-question-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--bos-line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.bos-question-action[data-kind="answer"] {
  flex: 1 1 160px;
  border-color: var(--bos-action-blue);
  background: var(--bos-action-blue);
  color: #fff;
}
.bos-question-action[data-kind="upload"] { border-color: var(--bos-text-blue); color: var(--bos-text-blue); }
.bos-question-action[data-kind="attach"] {
  min-height: 36px;
  padding: 0 12px;
  border-width: 1px;
  border-style: dashed;
  color: var(--bos-text-blue);
  font-size: 14px;
}
.bos-question-action[data-kind="attach"] .bos-icon { width: 16px; height: 16px; }
.bos-question-field + .bos-question-upload { margin: 8px 0 0; }
.bos-question-action:disabled { opacity: 0.6; cursor: progress; }
.bos-question-action:focus-visible,
.bos-question-answer:focus-visible,
.bos-question-link:focus-visible,
.bos-question-files a:focus-visible {
  outline: 3px solid var(--bos-edge-blue);
  outline-offset: 2px;
}
.bos-question-action .bos-icon { width: 20px; height: 20px; }
.bos-question-status { min-height: 1.4em; margin: 8px 0 0; font-size: 15px; }
.bos-question-status[data-tone="error"] { color: var(--bos-save-error); font-weight: 600; }
.bos-question-status[data-tone="ok"] { color: var(--bos-save-ok); font-weight: 600; }
.bos-question-done { margin: 12px 0; font-size: 20px; font-weight: 700; text-align: center; }
/* The wizard (user, 2026-11-22): the counter and a visible "סגור" on top,
   "נדחה" on a question put off, the linked deals as a compact list, the
   summary with "ערוך תשובה", and the reminder that brings it back. */
.bos-question-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-block-end: 14px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--bos-question-rule);
}
.bos-question-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
.bos-question-close,
.bos-question-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bos-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bos-question-mode { border-color: var(--bos-text-blue); color: var(--bos-text-blue); }
.bos-question-close .bos-icon,
.bos-question-mode .bos-icon { flex: none; width: 18px; height: 18px; }
.bos-question-postponed {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bos-tint-gray);
  color: var(--bos-text);
  font-size: 13px;
  font-weight: 600;
}
.bos-question-deals {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--bos-question-rule);
  border-radius: 10px;
  background: var(--bos-question-soft);
}
.bos-question-deals-title { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.bos-question-deal-list {
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--bos-question-rule);
  border-radius: 8px;
  background: var(--bos-surface);
  overflow: hidden;
}
.bos-question-deal-list li + li { border-block-start: 1px solid var(--bos-question-rule); }
.bos-question-deal-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(84px, max-content);
  align-items: baseline;
  gap: 2px 14px;
  padding: 9px 12px;
  color: var(--bos-text);
  font-size: 15px;
  text-decoration: none;
  text-align: start;
}
.bos-question-deal-link:hover { background: var(--bos-question-soft); }
.bos-question-deal-name { color: var(--bos-text-blue); font-weight: 600; overflow-wrap: anywhere; unicode-bidi: isolate; }
.bos-question-deal-date { color: var(--bos-note-meta); font-size: 14px; font-variant-numeric: tabular-nums; }
.bos-question-deal-sum { font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }
.bos-question-deal-link[data-visited="true"] .bos-question-deal-name { text-decoration: underline; text-decoration-thickness: 2px; }
.bos-question-deal-link[data-visited="true"] { background: var(--bos-question-soft); }
.bos-question-more {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bos-text-blue);
  border-radius: 8px;
  background: transparent;
  color: var(--bos-text-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.bos-question-answers { margin: 8px 0 0; padding: 0; list-style: none; }
.bos-question-answers li { padding: 10px 0; border-block-start: 1px solid var(--bos-line); }
.bos-question-answer-title { margin: 0 0 4px; font-weight: 700; overflow-wrap: anywhere; }
.bos-question-action[data-kind="edit"] { min-height: 40px; padding: 0 14px; font-size: 15px; }
/* The list she answers in place (user, 2026-11-24): every question on one
   page, each in its own box with its own answer and file; "שמירת כל
   התשובות" stays in reach at the bottom. */
.bos-question-popup.bos-question-popup-list { width: min(760px, 100%); padding-block-end: 0; }
.bos-question-list-hint { margin: -6px 0 14px; }
.bos-question-items { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bos-question-item {
  padding: 16px;
  border: 1px solid var(--bos-question-rule);
  border-radius: 12px;
  background: var(--bos-surface);
}
.bos-question-item[data-state="answered"] { background: var(--bos-question-soft); }
.bos-question-item .bos-question-title { margin-block-end: 8px; font-size: 18px; }
.bos-question-item .bos-question-text { margin-block-end: 12px; font-size: 15px; }
.bos-question-item .bos-question-answer { min-height: 64px; }
.bos-question-item .bos-question-action { min-height: 40px; padding: 0 14px; font-size: 15px; }
.bos-question-item .bos-question-action[data-kind="answer"] { flex: 0 1 auto; }
.bos-question-item .bos-question-status { min-height: 0; margin-block-start: 6px; }
.bos-question-item .bos-question-status:empty { display: none; }
.bos-question-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-block-end: 6px; }
.bos-question-item-title { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.bos-question-answered {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--bos-tint-green);
  color: var(--bos-text);
  font-size: 13px;
  font-weight: 700;
}
.bos-question-given {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-inline-start: 3px solid var(--bos-edge-green);
  border-radius: 6px;
  background: var(--bos-surface);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
  text-align: start;
}
.bos-question-fold { margin: 0 0 12px; }
.bos-question-fold > summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: var(--bos-text-blue);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bos-question-fold[open] > summary { margin-block-end: 8px; }
.bos-question-foot {
  position: sticky;
  inset-block-end: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-inline: -28px;
  padding: 12px 28px 16px;
  border-block-start: 1px solid var(--bos-question-rule);
  background: var(--bos-surface);
}
.bos-question-foot .bos-question-action[data-kind="answer"] { flex: 0 1 auto; }
.bos-question-foot .bos-question-status { margin: 0; }
.bos-question-close:focus-visible,
.bos-question-mode:focus-visible,
.bos-question-deal-link:focus-visible,
.bos-question-more:focus-visible,
.bos-question-fold > summary:focus-visible,
.bos-questions-reminder:focus-visible {
  outline: 3px solid var(--bos-edge-blue);
  outline-offset: 2px;
}
.bos-question-deal-link:focus-visible { outline-offset: -3px; }
/* "N שאלות מחכות לך": bottom centre, clear of Twenty's sidebar, above a
   table's totals row and the side panel's bottom bar (56px), and above
   Twenty's bottom bar on a phone. */
.bos-questions-reminder {
  position: fixed;
  inset-block-end: 56px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2147483100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bos-action-blue);
  color: #fff;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
  font: 600 15px/1.2 var(--t-font-family, sans-serif);
  white-space: nowrap;
  cursor: pointer;
}
[dir='rtl'] .bos-questions-reminder { transform: translateX(50%); }
.bos-questions-reminder > span { overflow: hidden; text-overflow: ellipsis; }
.bos-questions-reminder .bos-icon { flex: none; width: 20px; height: 20px; }
/* A phone: one column, the amounts two by two, a deal row on two lines (the
   name, then the date and the amount), buttons the full width. */
@media (max-width: 600px) {
  .bos-question-popup { padding: 16px; }
  .bos-question-title { font-size: 20px; }
  .bos-question-action { flex: 1 1 100%; }
  .bos-question-action[data-kind="edit"],
  .bos-question-action[data-kind="attach"] { flex: 0 1 auto; }
  .bos-question-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bos-question-deal-link { grid-template-columns: minmax(0, 1fr) max-content; }
  .bos-question-deal-name { grid-column: 1 / -1; }
  .bos-question-deal-sum { text-align: end; }
  .bos-question-item { padding: 12px; }
  .bos-question-item .bos-question-action[data-kind="answer"],
  .bos-question-foot .bos-question-action[data-kind="answer"] { flex: 1 1 100%; }
  .bos-question-foot { margin-inline: -16px; padding: 10px 16px 14px; }
  .bos-question-mode { min-height: 40px; }
  .bos-questions-reminder { inset-block-end: 88px; }
}

/* The deals tables' headers (user, 2026-11-22; deals-open.md §6): two lines,
   so a header such as "חשבונית מס/קבלה" or "Artist deal invoice, number and
   date" reads whole instead of being cut to a letter or two. Twenty draws one
   32px line with an ellipsis; on the deals views (data-bos-deals, overlay.js)
   the header row is 44px and the label wraps, with room at the inline end for
   the filter icon. The rows come after the header in the table's flow, so
   they move down with it. Only the deals views: the leads keep one line. */
html[data-bos-deals] div[style*="--record-table-column-field-0"] > div:has(> div div.header-cell),
html[data-bos-deals] div[style*="--record-table-column-field-0"] > div:has(> div.header-cell) {
  height: 45px !important;
}
html[data-bos-deals] div[style*="--record-table-column-field-0"] div:has(> div.header-cell:only-child),
html[data-bos-deals] div[style*="--record-table-column-field-0"] div.header-cell {
  height: 44px !important;
  max-height: 44px !important;
}
html[data-bos-deals] div.header-cell .record-table-cell-content {
  height: 44px;
  padding-inline-end: 24px;
}
html[data-bos-deals] div.header-cell .record-table-cell-content > span:not([hidden]) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 16px;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: break-word;
}

/* "עסקאות" summary line (user, 2026-11-20; deals-open.md §4), above the deals
   tables for the finance roles, and each open-state group's total beside
   Twenty's count. Plain markup with data-bos hooks and the overlay's own
   tokens only, so the design track can restyle it. Wraps on a phone. */
[data-bos="deals-summary"] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
  padding: 6px 12px;
  border-bottom: 1px solid var(--bos-line);
  background: var(--bos-surface);
  color: var(--bos-text);
  font-size: 13px;
  line-height: 1.4;
}

[data-bos="deals-summary"] [data-bos-part="label"] {
  color: var(--bos-note-meta);
  margin-inline-end: 6px;
}

[data-bos="deals-summary"] [data-bos-part="value"] {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

[data-bos="deals-summary"] [data-bos-overdue="true"] [data-bos-part="value"],
[data-bos="deals-summary"] [data-bos-overdue="true"] [data-bos-part="label"] {
  color: var(--bos-text-red);
}

[data-bos="deals-summary"] [data-bos-overdue="true"]::before {
  content: "●";
  color: var(--bos-text-red);
  margin-inline-end: 4px;
}

/* The total on the count's line (user, 2026-11-20, D3): Twenty holds its
   count button in a block of its own, so the total fell under it, the header
   took two lines and the state's chip was cut short. The count and the total
   share a row, and the group header grows to hold them (hooks group-header,
   group-toggle). */
:has(> [id^="record-group-section-aggregate-dropdown-"] + [data-bos="deal-group-total"]) {
  display: flex;
  align-items: center;
}
.disable-shadow:has([data-bos="deal-group-total"]) {
  width: auto;
  min-width: max-content;
}
[data-bos="deal-group-total"] {
  margin-inline-start: 6px;
  color: var(--bos-note-meta);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Table lines (user, 2026-11-22; hooks table-lines, column-classes,
   group-toggle, column-widths): every Twenty table, for everyone, with or
   without "עיצוב חדש". Row and column lines one clear step darker than
   Twenty's, 1px; a
   stronger line under the header row and under each group's title, and the
   header on its own quiet background; the pinned column ends in a visible
   edge on its inline-end side, so it is plain where it stops when the table
   scrolls sideways. No zebra stripes, no heavy grid. The lines are
   translucent, so on a tinted status row they darken the tint and stay
   visible, and the tint itself is untouched. Colours only: no width,
   position or layout changes (the fit to width stays exact). */
html.light {
  --bos-grid-line: rgb(0 0 0 / 0.14);
  --bos-grid-line-strong: rgb(0 0 0 / 0.3);
  --bos-grid-header-bg: #f5f5f5;
  --bos-grid-header-bg-hover: #ebebeb;
  --bos-grid-pin-edge: rgb(0 0 0 / 0.3);
  --bos-grid-pin-shadow: rgb(0 0 0 / 0.1);
}
html.dark {
  --bos-grid-line: rgb(255 255 255 / 0.13);
  --bos-grid-line-strong: rgb(255 255 255 / 0.28);
  --bos-grid-header-bg: #222222;
  --bos-grid-header-bg-hover: #2b2b2b;
  --bos-grid-pin-edge: rgb(255 255 255 / 0.28);
  --bos-grid-pin-shadow: rgb(0 0 0 / 0.45);
}

html div:is(.header-cell, .table-cell, .table-cell-0-0, .footer-cell) {
  border-color: var(--bos-grid-line);
}
/* Twenty hides a cell's bottom line with a transparent colour (a dragged
   row, the last line before the add row); that stays hidden. */
html div.table-cell:is([data-without-bottom-border], [data-dragging]) {
  border-bottom-color: transparent;
}

/* The header row: its own background and a stronger line under it. Twenty
   paints the pinned header cells (checkbox, name) white with its own sticky
   rules, so the background needs !important; the drag handle and checkbox
   headers have no bottom border, so they draw the line inside (no height
   change). The row itself (hook column-widths) under the empty end. */
html div[style*="--record-table-column-field-0"] > div:has(> div div.header-cell),
html div[style*="--record-table-column-field-0"] > div:has(> div.header-cell),
html div.header-cell {
  background-color: var(--bos-grid-header-bg) !important;
}
html div.header-cell {
  border-bottom-color: var(--bos-grid-line-strong);
}
html div.header-cell:is(.record-table-column-drag-and-drop, .record-table-column-checkbox) {
  box-shadow: inset 0 -1px 0 var(--bos-grid-line-strong);
}
html div.header-cell:hover {
  background-color: var(--bos-grid-header-bg-hover) !important;
}

/* A group's title row ("צריך לחייג (3)", "ארכיון"): a stronger line under it,
   across the whole row. */
html div:has(> div.disable-shadow) > div:nth-child(n) {
  border-bottom-color: var(--bos-grid-line-strong);
}

/* Right to left, each column's line sits at its inline end, as in English:
   Twenty draws it with a physical border-right, which in Hebrew is the
   column's start, so the pinned name column had no line where it ends. The
   same 1px moves to the left side; cells are border-box, so no width or
   position changes. */
html[dir="rtl"] div:is(.header-cell, .table-cell, .footer-cell)[class*="record-table-column-field-"]:not([data-without-right-border]),
html[dir="rtl"] div.table-cell-0-0 {
  border-right-width: 0;
  border-left-width: 1px;
  border-left-style: solid;
}

/* The pinned column's edge: its inline-end line in the stronger colour, and
   Twenty's own soft shadow beside it (shown only while the table is scrolled
   sideways) a little firmer, on the inline-end side in Hebrew too (Twenty
   puts it on the right in both directions). On the deals views the lead
   number is pinned too, and overlay.js moves the edge after it. */
html div:is(.header-cell, .table-cell, .footer-cell).record-table-column-field-0,
html div.table-cell-0-0 {
  border-inline-end-color: var(--bos-grid-pin-edge);
}
html div:is(.header-cell, .table-cell, .footer-cell).record-table-column-field-0.record-table-column-field-0::after,
html div.table-cell-0-0.table-cell-0-0::after {
  box-shadow: 2px 0 4px 0 var(--bos-grid-pin-shadow);
}
html[dir="rtl"] div:is(.header-cell, .table-cell, .footer-cell).record-table-column-field-0.record-table-column-field-0::after,
html[dir="rtl"] div.table-cell-0-0.table-cell-0-0::after {
  right: auto;
  left: -1px;
  clip-path: inset(0 0 0 -4px);
  box-shadow: -2px 0 4px 0 var(--bos-grid-pin-shadow);
}

/* ------------------------------------------------------------------------
   Design v2 on Twenty's own screens (docs/architecture/design.md, user
   2026-11-20), hook design-v2. Only with html[data-bos-design="v2"], which
   design.js sets for a member the "עיצוב חדש" switch is on for; off, Twenty
   and the rules above look exactly as before. Same colours: only Twenty's
   own tokens and the overlay's teal. Sharper by precision: the system font
   with digits of one width, clearer column headers, one visible focus ring,
   an even sidebar, and section headers on the lead page that read as such. */

/* The font: Heebo, then the overlay's Assistant. */
html.light[data-bos-design="v2"],
html.dark[data-bos-design="v2"] {
  --t-font-family: "Heebo BOS", "Assistant BOS", Inter, sans-serif;
}

/* Amounts, dates and counts line up in every cell and in group counts. */
html[data-bos-design="v2"] div[data-testid^="row-id-"] > :is(.table-cell, .table-cell-0-0),
html[data-bos-design="v2"] [id^="record-group-section-aggregate-dropdown-"],
html[data-bos-design="v2"] div.footer-cell {
  font-variant-numeric: tabular-nums;
}

/* Column headers: a quieter colour and a firmer weight, so the header reads
   as a header and the rows as data. */
html[data-bos-design="v2"] div.header-cell {
  color: var(--t-font-color-secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Group headers ("לידים פתוחים" by status): the count reads as a number. */
html[data-bos-design="v2"] [id^="record-group-section-aggregate-dropdown-"] {
  font-weight: 600;
  color: var(--t-font-color-secondary);
}

/* One focus ring for keyboard users, inside the cell so it is never clipped. */
html[data-bos-design="v2"] div[data-testid^="row-id-"] :focus-visible,
html[data-bos-design="v2"] div.header-cell :focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: -2px;
}

html.dark[data-bos-design="v2"] div[data-testid^="row-id-"] :focus-visible,
html.dark[data-bos-design="v2"] div.header-cell :focus-visible {
  outline-color: var(--bos-accent-11);
}

/* Sidebar: even rows on the 4px grid, the same ring on focus. */
html[data-bos-design="v2"] a.navigation-drawer-item {
  min-block-size: 28px;
  border-radius: 4px;
}

html[data-bos-design="v2"] a.navigation-drawer-item:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: -2px;
}

html.dark[data-bos-design="v2"] a.navigation-drawer-item:focus-visible {
  outline-color: var(--bos-accent-11);
}

/* Lead page and side panel: each fields section's header reads as a heading. */
html[data-bos-design="v2"] [data-testid="record-fields-widget"] header {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Record tabs: the same ring. */
html[data-bos-design="v2"] a[data-testid^="tab-"]:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 2px;
}

/* "משימות" for the team while per-member task visibility is on (overlay.js,
   tasks-visibility plan §4, ADR-0035): Twenty's own "משימות" item gives way to
   Business OS's, and the lead's section lists its tasks the member may read. */
html [data-bos-hidden-nav] {
  display: none !important;
}
.bos-lead-tasks {
  margin: 12px 8px 8px;
  padding: 10px 12px;
  border: 1px solid var(--bos-accent-5);
  border-radius: 8px;
  background-color: var(--bos-accent-2);
  font: 400 13px/18px var(--t-font-family, sans-serif);
}
.bos-lead-tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bos-lead-tasks-title {
  margin: 0;
  color: var(--bos-accent-12);
  font-size: 14px;
  font-weight: 600;
}
.bos-lead-tasks-add {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--bos-accent-7);
  border-radius: 6px;
  background: var(--bos-surface, #fff);
  color: var(--bos-accent-11);
  font: 600 13px/1 var(--t-font-family, sans-serif);
  cursor: pointer;
}
.bos-lead-tasks-list {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.bos-lead-task {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 4px 0;
}
.bos-lead-task + .bos-lead-task { border-top: 1px solid var(--bos-accent-4); }
.bos-lead-task input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.bos-lead-task-title {
  flex: 1 1 160px;
  min-width: 0;
  color: var(--bos-accent-12);
  font-weight: 600;
  overflow-wrap: break-word;
  unicode-bidi: plaintext;
}
.bos-lead-task[data-done="true"] .bos-lead-task-title { text-decoration: line-through; opacity: 0.6; }
.bos-lead-task-due, .bos-lead-task-who { color: var(--bos-note-meta); unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.bos-lead-task[data-overdue="true"] .bos-lead-task-due { color: var(--bos-save-error, #c2382f); font-weight: 600; }
.bos-lead-tasks-note { margin: 0 0 6px; color: var(--bos-note-meta); }
.bos-lead-tasks-all { color: var(--bos-accent-11); font-size: 12px; }
.bos-lead-tasks a:focus-visible,
.bos-lead-tasks button:focus-visible,
.bos-lead-tasks input:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 1px;
}
.bos-lead-task-name { text-align: start; margin-bottom: 4px; }
.bos-lead-task-assignee { text-align: start; margin-top: 8px; width: 100%; }

/* The sidebar's "ניהול" group heading (overlay.js orderSidebar, user
   2026-11-21): like Twenty's own section titles, small and muted. */
.bos-nav-heading {
  margin-block: 12px 4px;
  padding-inline: 8px;
  color: var(--t-font-color-light, #999);
  font-family: var(--t-font-family, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}
/* The sidebar names each item once (user, 2026-11-23): Twenty writes the
   object after a view's name in grey ("לידים פתוחים · לידים", "לקוחות ·
   חברות"); the name alone stays, the icon still shows the object. Hook
   sidebar-object-suffix: the second span of the item's label. */
a.navigation-drawer-item [data-testid="tooltip"] > span:not([data-bos]) + span:not([data-bos]):last-child {
  display: none;
}

/* "שיחות" on a lead (overlay.js, user, 2026-11-22; ADR-0037): the lead's
   recorded calls under "שיחה אחרונה", for the members allowed to hear them.
   One row a call: play, direction, date and time, length, a short-call mark. */
.bos-lead-calls {
  margin: 8px 0 4px;
  padding: 8px 10px;
  border: 1px solid var(--bos-accent-5);
  border-radius: 6px;
  background-color: var(--bos-accent-2);
  font: 400 13px/18px var(--t-font-family, sans-serif);
}
.bos-lead-calls-title {
  margin-bottom: 6px;
  color: var(--bos-accent-12);
  font-weight: 600;
}
.bos-lead-calls-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bos-lead-calls-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 3px 0;
}
.bos-lead-calls-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background-color: var(--bos-accent-9);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.bos-lead-calls-play:disabled {
  opacity: 0.4;
  cursor: default;
}
.bos-lead-calls-play:focus-visible,
.bos-lead-calls-more:focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 2px;
}
.bos-lead-calls-direction {
  color: var(--bos-accent-12);
  font-weight: 700;
}
.bos-lead-calls-when,
.bos-lead-calls-length {
  color: var(--bos-note-meta);
  unicode-bidi: isolate;
}
.bos-lead-calls-short {
  padding: 0 6px;
  border: 1px solid var(--bos-note-meta);
  border-radius: 999px;
  color: var(--bos-note-meta);
  font-size: 11px;
}
.bos-lead-calls-empty {
  margin: 0;
  color: var(--bos-note-meta);
}
.bos-lead-calls-more {
  margin-top: 6px;
}

/* Phones drawn national from the start (user, 2026-11-25, F4): on a first
 * visit, before the workspace's phone rules arrive (at most 4 seconds),
 * Twenty's numbers wait hidden instead of flashing "+972" (overlay.js). */
html[data-bos-phones="wait"] a[href^="tel:"] {
  visibility: hidden;
}

/* "מה עכשיו?" on a lead (overlay.js, user 2026-11-27): a strip above the lead's
   fields with what to do next and the likely actions, by the lead's stage. */
.bos-lead-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 12px 10px;
  padding: 10px 12px;
  border: 1px solid var(--bos-line);
  border-inline-start: 4px solid var(--bos-action-blue);
  border-radius: 10px;
  background: var(--bos-tint-blue);
  color: var(--bos-text);
  font-family: var(--t-font-family, sans-serif);
}
.bos-lead-flow-say {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.bos-lead-flow-say strong { font-weight: 700; }
.bos-lead-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bos-lead-flow-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bos-line);
  border-radius: 22px;
  background: var(--bos-surface);
  color: var(--bos-text);
  font: 600 14px/1 var(--t-font-family, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.bos-lead-flow-action.bos-lead-flow-primary {
  border-color: var(--bos-action-blue);
  background: var(--bos-action-blue);
  color: #fff;
}
.bos-lead-flow-action[data-flow="no_answer"] { border-color: var(--bos-action-red); color: var(--bos-text-red); }
.bos-lead-flow-action:focus-visible { outline: 2px solid var(--bos-action-blue); outline-offset: 2px; }
.bos-lead-flow-action:disabled { opacity: 0.6; cursor: default; }
.bos-talked-dialog { inline-size: min(520px, calc(100vw - 32px)); }
.bos-talked-dialog .bos-action-message { inline-size: 100%; box-sizing: border-box; }
.bos-talked-next { margin: 12px 0 4px; font-size: 13px; font-weight: 700; }

/* Design v2 on the overlay's own windows (design.md §8.8, user 2026-11-20),
   hook design-v2-popups: the due reminder or callback, "מתי?", "שעת האירוע"
   and the questions popup ("<name> מבקש ממך", once it is on main). Same
   colours and the same filled buttons ("חייג" green, the chips blue); v2 only
   sharpens: one corner radius and one shadow for every window, a title scale,
   digits of one width in times, phones and amounts, even spacing, and the
   overlay's one focus ring. Nothing applies without the attribute. */
html[data-bos-design="v2"] :is(.bos-callback-popup, .bos-action-dialog, .bos-modal, .bos-question-popup) {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 16px 40px rgb(0 0 0 / 0.22);
  font-family: var(--t-font-family, sans-serif);
}

html[data-bos-design="v2"] .bos-callback-popup {
  padding: 24px;
  border-block-start-width: 4px;
}

html[data-bos-design="v2"] :is(.bos-callback-popup-title, .bos-question-title) {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

html[data-bos-design="v2"] :is(.bos-modal-title, .bos-popup-title) {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

html[data-bos-design="v2"] :is(.bos-callback-phone, .bos-callback-attempts, .bos-callback-text, .bos-when-summary, .bos-when-chip, .bos-when-input, .bos-question-facts dd) {
  font-variant-numeric: tabular-nums;
}

html[data-bos-design="v2"] .bos-callback-name {
  font-size: 20px;
  line-height: 28px;
}

html[data-bos-design="v2"] .bos-callback-note {
  border-radius: 8px;
  line-height: 1.5;
}

html[data-bos-design="v2"] :is(.bos-callback-popup .bos-callback-action, .bos-callback-close, .bos-question-action, .bos-button) {
  border-width: 1.5px;
  border-radius: 8px;
}

html[data-bos-design="v2"] :is(.bos-when-chip, .bos-when-input) {
  border-width: 1px;
  border-radius: 8px;
}

html[data-bos-design="v2"] .bos-when-label {
  opacity: 1;
  color: var(--bos-note-meta);
  font-size: 12px;
  letter-spacing: 0.01em;
}

html[data-bos-design="v2"] .bos-when {
  gap: 16px;
}

html[data-bos-design="v2"] .bos-when-summary {
  border-radius: 8px;
}

html[data-bos-design="v2"] :is(.bos-callback-popup .bos-callback-action, .bos-callback-close, .bos-callback-name, .bos-when-chip, .bos-when-input, .bos-question-action, .bos-question-answer, .bos-question-link, .bos-button, .bos-field input):focus-visible {
  outline: 2px solid var(--bos-accent-9);
  outline-offset: 2px;
}

html.dark[data-bos-design="v2"] :is(.bos-callback-popup .bos-callback-action, .bos-callback-close, .bos-callback-name, .bos-when-chip, .bos-when-input, .bos-question-action, .bos-question-answer, .bos-question-link, .bos-button, .bos-field input):focus-visible {
  outline-color: var(--bos-accent-11);
}

/* The deals summary line (feat/deals-open, once it is on main): the numbers
   line up and the labels read as labels. */
html[data-bos-design="v2"] [data-bos="deals-summary"] {
  gap: 4px 24px;
  padding: 8px 12px;
}

html[data-bos-design="v2"] [data-bos="deals-summary"] [data-bos-part="label"] {
  font-size: 12px;
  letter-spacing: 0.01em;
}

html[data-bos-design="v2"] :is([data-bos="deals-summary"] [data-bos-part="value"], [data-bos="deal-group-total"]) {
  font-variant-numeric: tabular-nums;
}
