    #leads-view {
      background: var(--bg);
    }

    #add-lead-dynamic-fields {
      margin-top: 8px;
      padding-top: 4px;
    }

    .modal-add-lead {
      padding: 0;
      max-width: 720px;
    }

    .modal-add-lead .modal-strip h2 {
      margin: 0;
      color: #fff;
    }

    .modal-add-lead form {
      padding: 0;
    }

    .modal-add-lead .modal-with-picker-body {
      padding: 16px 20px 8px;
    }

    .modal-add-lead .modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: flex-end;
      padding: 12px 20px 16px;
    }

    .modal-add-lead .modal-actions button {
      min-height: 44px;
    }

    .add-lead-place {
      display: grid;
      grid-template-columns: 1.4fr 0.7fr 0.8fr;
      gap: 0 12px;
      margin-bottom: 8px;
    }

    .add-lead-place input {
      font-size: 13px;
    }

    .add-lead-match {
      margin: 6px 0 0;
      font-size: 14px;
    }

    .add-lead-check {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      margin: 4px 0 8px;
      font-weight: 500;
    }

    .add-lead-check input {
      width: 18px;
      height: 18px;
      margin: 0;
    }

    .add-lead-fold {
      margin: 4px 0 12px;
    }

    .add-lead-fold summary {
      display: flex;
      align-items: center;
      min-height: 44px;
      cursor: pointer;
      font-weight: 600;
    }

    .add-lead-note textarea {
      width: 100%;
      box-sizing: border-box;
    }

    .source-picker input {
      width: 100%;
      box-sizing: border-box;
    }

    .source-picker-menu {
      position: fixed;
      z-index: 80;
      overflow: auto;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 12px 32px rgba(14, 17, 23, 0.16);
    }

    .source-picker-menu.hidden {
      display: none;
    }

    .source-picker-item {
      display: block;
      width: 100%;
      min-height: 44px;
      padding: 10px 12px;
      border: 0;
      border-bottom: 1px solid var(--border);
      background: #fff;
      text-align: left;
      font: inherit;
      color: inherit;
      cursor: pointer;
    }

    .source-picker-item:last-child {
      border-bottom: 0;
    }

    .source-picker-item:hover,
    .source-picker-item.is-on {
      background: #f6f7f9;
    }

    .source-picker-empty {
      margin: 0;
      padding: 12px;
      color: var(--muted);
      font-size: 14px;
    }

    @media (max-width: 767px) {
      #add-lead-modal {
        padding: 0;
        align-items: stretch;
      }

      #add-lead-modal .modal-add-lead {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
      }

      .modal-add-lead .form-grid,
      .add-lead-place,
      .book-new-grid {
        grid-template-columns: 1fr;
      }

      .add-lead-place .add-lead-city {
        grid-column: auto;
      }

      .modal-add-lead .modal-actions {
        flex-direction: column;
      }

      .modal-add-lead .modal-actions button {
        width: 100%;
      }
    }

    #leads-view .table-wrap ,     .leads-host .table-wrap {
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      overflow-x: auto;
    }

    #leads-view th, .leads-host th {
      height: 40px;
      padding: 0 12px;
      background: #FAFBFC;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    #leads-view td, .leads-host td {
      padding: 8px 12px;
      vertical-align: middle;
      white-space: normal;
      border-bottom: 1px solid #EEF0F3;
    }

    #leads-view .lead-name-cell,
    .leads-host .lead-name-cell,
    #leads-view .lead-source-cell ,     .leads-host .lead-source-cell {
      max-width: 240px;
    }

    .lead-dnc-line {
      margin-top: 4px;
    }

    #leads-view .lead-name,
    .leads-host .lead-name,
    #leads-view .lead-source ,     .leads-host .lead-source {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #leads-view .lead-source,
    .leads-host .lead-source {
      white-space: normal;
      font-size: 14px;
    }

    #leads-view .lead-name ,     .leads-host .lead-name {
      font-weight: 500;
    }

    #leads-view .lead-name-link ,     .leads-host .lead-name-link {
      display: block;
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      font: inherit;
      font-weight: 500;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }

    #leads-view .lead-name-link:hover ,     .leads-host .lead-name-link:hover {
      text-decoration: underline;
    }

    #leads-view .lead-name-link:focus-visible ,     .leads-host .lead-name-link:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      border-radius: 2px;
    }

    #leads-view .lead-phone,
    .leads-host .lead-phone,
    #leads-view .lead-booked ,     .leads-host .lead-booked {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--muted);
    }

    #leads-view .lead-created ,     .leads-host .lead-created {
      font-size: 12px;
      color: var(--muted);
    }

    #leads-view tbody tr:hover ,     .leads-host tbody tr:hover {
      background: #F7F8FA;
    }

    #leads-view tbody tr.row-selected ,     .leads-host tbody tr.row-selected {
      background: color-mix(in srgb, var(--accent) 7%, white);
    }

    #leads-view tbody tr.row-active ,     .leads-host tbody tr.row-active {
      background: color-mix(in srgb, var(--accent) 10%, white);
    }

    #leads-view tbody tr.row-highlight ,     .leads-host tbody tr.row-highlight {
      background: color-mix(in srgb, var(--accent) 8%, white);
      outline: 2px solid var(--accent);
      outline-offset: -2px;
    }

    #leads-view .att-con-wrap ,     .leads-host .att-con-wrap {
      display: inline-flex;
      gap: 4px;
    }

    #leads-view .att-con-mark ,     .leads-host .att-con-mark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      font-size: 11px;
      font-weight: 600;
      border-radius: 4px;
      background: #fff;
      color: #667085;
      border: 1px solid #D5D9E0;
    }

    #leads-view .att-con-mark.on ,     .leads-host .att-con-mark.on {
      background: #12161C;
      color: #fff;
      border-color: #12161C;
    }

    #leads-view .lead-status-cell ,     .leads-host .lead-status-cell {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #leads-view .status-dot ,     .leads-host .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    #leads-view .row-menu-btn ,     .leads-host .row-menu-btn {
      width: 28px;
      height: 28px;
      padding: 0;
      border-radius: var(--radius-sm);
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    #leads-view .row-menu-btn:hover ,     .leads-host .row-menu-btn:hover {
      background: #EEF0F3;
      color: var(--text);
    }

    #leads-view select,
    .leads-host select,
    #leads-view input:not([type="checkbox"]) ,     .leads-host input:not([type="checkbox"]) {
      height: 34px;
      font-size: 13px;
      font-family: inherit;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 0 10px;
    }

    #leads-view .band-select ,     .leads-host .band-select {
      height: 38px;
      width: auto;
      flex: 0 0 auto;
      max-width: 180px;
      border-radius: 19px;
      border: 1px solid var(--band-line);
      background: var(--band-surface);
      color: #fff;
      padding: 0 14px;
      font: 13px var(--font-body);
    }

    #leads-view .band-search input ,     .leads-host .band-search input {
      height: auto;
      border: 0;
      padding: 0;
      background: transparent;
      color: #fff;
      font: inherit;
      font-size: 13px;
      border-radius: 0;
    }

    #leads-view .band-btn ,     .leads-host .band-btn {
      height: 38px;
      padding: 0 16px;
      border-radius: 19px;
      font-size: 14px;
    }

    #create-call-list-btn {
      max-width: min(100%, 320px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    #leads-view .page-band .toolbar-filter label {
      color: var(--band-muted);
    }

    #leads-view .toolbar-filter select,
    .leads-host .toolbar-filter select,
    #leads-view .toolbar-filter .band-select ,     .leads-host .toolbar-filter .band-select {
      min-width: 200px;
      max-width: none;
    }

    #leads-view .status-line ,     .leads-host .status-line {
      font-size: 13px;
      color: var(--muted);
    }

    #leads-view .band-tab {
      height: auto;
      border: 0;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      padding: 6px 0 10px;
      background: transparent;
    }

    #leads-view .band-tab.active {
      border-bottom-color: color-mix(in srgb, var(--accent) 55%, white);
    }

    #leads-view #leads-status-tabs {
      width: auto;
      flex: 0 1 auto;
    }

    #leads-view #leads-status-more {
      margin-left: 4px;
      width: auto;
      flex: 0 0 auto;
      max-width: 180px;
    }

    #leads-view #leads-flash {
      margin: 12px 16px 0;
    }

    #leads-view .leads-search-tools {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
      flex-wrap: wrap;
    }

    #leads-view .leads-search-tools .band-search {
      margin-left: 0;
    }

    #leads-view .leads-click-pref {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      color: var(--band-muted);
      font-size: 13px;
      white-space: nowrap;
    }

    #leads-view .leads-click-pref select {
      margin: 0;
    }

    #leads-view .leads-kbd-hint ,     .leads-host .leads-kbd-hint {
      display: none;
      margin: 0;
      padding: 0 16px 12px;
      font-size: 12px;
      color: var(--muted);
    }

    @media (min-width: 1101px) {
      #leads-view .leads-kbd-hint ,       .leads-host .leads-kbd-hint {
        display: block;
      }
    }

    #leads-view main.preview-open .col-city,
    #leads-view main.preview-open .col-booked,
    #leads-view main.preview-open .col-office,
    #exhibit-view main.preview-open .col-city,
    #exhibit-view main.preview-open .col-booked,
    #exhibit-view main.preview-open .col-office {
      display: none;
    }

    #leads-view .band-card .leads-pager,
    .leads-host .band-card .leads-pager,
    #leads-view #leads-pager {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      margin-top: 0;
      font-size: 13px;
      color: var(--muted);
    }

    #leads-view .leads-pager-controls ,     .leads-host .leads-pager-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #leads-view main {
      padding: 0;
      transition: padding-right 280ms cubic-bezier(0.22, 0.8, 0.2, 1);
    }

    #leads-view main.preview-open,
    #exhibit-view main.preview-open {
      padding-right: 420px;
    }

    #leads-view .page-band.leads-band {
      padding-bottom: 0;
    }

    #leads-view .leads-tools {
      background: var(--band-bg);
      padding: 0 32px 74px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    @media (max-width: 1100px) {
      #leads-view .leads-tools {
        padding: 0 20px 56px;
      }
    }

    body.leads-on-exhibit #exhibit-view .leads-tools {
      background: transparent;
      padding: 0;
      gap: 10px;
    }

    body.leads-on-exhibit #exhibit-view .leads-host .band-card {
      margin: 12px 0 0;
      box-shadow: none;
      border-radius: 14px;
      overflow: auto;
    }

    body.leads-on-exhibit #exhibit-view .leads-board {
      margin: 12px 0 0;
    }

    body.leads-on-exhibit #exhibit-view .leads-band-search {
      background: var(--soft);
      color: var(--muted);
    }

    body.leads-on-exhibit #exhibit-view .leads-band-search input,
    body.leads-on-exhibit #exhibit-view .band-search input {
      color: var(--text);
    }

    body.leads-on-exhibit #exhibit-view .leads-view-switch {
      background: var(--soft);
    }

    body.leads-on-exhibit #exhibit-view .leads-views-chip,
    body.leads-on-exhibit #exhibit-view .leads-quick-main,
    body.leads-on-exhibit #exhibit-view .leads-quick-add,
    body.leads-on-exhibit #exhibit-view .leads-filter-chip {
      border-color: var(--border);
      background: #fff;
      color: var(--text);
    }

    body.leads-on-exhibit #exhibit-view .leads-views-chip.is-on {
      background: var(--soft);
      border-color: var(--border);
      color: var(--text);
    }

    body.leads-on-exhibit #exhibit-view .leads-clear-all {
      color: var(--accent);
    }

    body.leads-on-exhibit #create-call-list-btn {
      height: 42px;
      border-radius: 21px;
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    #exhibits-view tbody tr.row-click {
      cursor: pointer;
    }

    .lead-booked-history {
      color: var(--muted);
    }

    .leads-view-switch {
      display: flex;
      flex: 0 0 auto;
      gap: 2px;
      padding: 4px;
      border-radius: 999px;
      background: var(--band-surface);
    }

    .leads-view-switch button {
      min-height: 36px;
      padding: 0 14px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--band-muted);
      font: 700 14px var(--font-body);
      cursor: pointer;
    }

    .leads-view-switch button.is-on {
      background: #fff;
      color: var(--text);
    }

    #leads-view.is-board #leads-status-tabs ,     .leads-host.is-board #leads-status-tabs {
      display: none;
    }

    #leads-view.is-board .band-card ,     .leads-host.is-board .band-card {
      display: none;
    }

    .leads-board {
      display: none;
      position: relative;
      z-index: 1;
      gap: 12px;
      margin: -50px 32px 24px;
      overflow-x: auto;
      align-items: flex-start;
      padding-bottom: 12px;
    }

    #leads-view.is-board .leads-board ,     .leads-host.is-board .leads-board {
      display: flex;
    }

    .leads-board-col {
      flex: 0 0 260px;
      width: 260px;
      min-width: 0;
      background: #ECE9F7;
      border-radius: 16px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .leads-board-col.is-sale {
      background: #DDF3E7;
    }

    .leads-board-col.is-closed {
      flex-basis: 128px;
      width: 128px;
    }

    .leads-board-col.is-closed.is-open {
      flex-basis: 280px;
      width: 280px;
    }

    .leads-board-col.is-hot {
      box-shadow: inset 0 0 0 2px var(--accent);
    }

    .leads-board-col.is-deny {
      box-shadow: inset 0 0 0 2px var(--coral, #A3321E);
    }

    .board-head {
      display: flex;
      flex-direction: column;
      gap: 2px;
      width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      text-align: left;
      color: var(--text);
      cursor: default;
    }

    .leads-board-col.is-closed .board-head {
      cursor: pointer;
      min-height: 44px;
    }

    .board-title {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 800;
      line-height: 1.2;
    }

    .board-count {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .board-conv {
      min-height: 16px;
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
    }

    .board-hint {
      display: none;
      margin: 0;
      padding: 10px;
      border: 1.5px dashed var(--accent);
      border-radius: 12px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      text-align: center;
    }

    .leads-board-col.is-deny .board-hint {
      border-color: #A3321E;
      color: #A3321E;
    }

    .leads-board-col.is-hot .board-hint,
    .leads-board-col.is-deny .board-hint {
      display: block;
    }

    .board-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }

    .board-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      width: 100%;
      padding: 12px;
      border: 0;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 1px 2px rgba(27, 21, 48, 0.06);
      text-align: left;
      cursor: pointer;
      -webkit-user-select: none;
      user-select: none;
    }

    .leads-board.is-draggable .board-card {
      cursor: grab;
    }

    .board-card-ghost,
    .board-card-chosen,
    .board-card-lift {
      box-shadow: 0 12px 28px rgba(27, 21, 48, 0.2);
      cursor: grabbing;
    }

    .board-card-ghost {
      opacity: 0.9;
    }

    .board-card strong {
      font-size: 15px;
      font-weight: 800;
    }

    .board-meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.3;
    }

    .board-empty,
    .board-error {
      margin: 4px 0;
      color: var(--muted);
      font-size: 13px;
    }

    .board-error {
      color: #A3321E;
    }

    .board-more {
      min-height: 44px;
      border: 0;
      border-radius: 999px;
      background: #fff;
      color: var(--accent);
      font: 700 14px var(--font-body);
      cursor: pointer;
    }

    .board-closed-count {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin: 0;
      font-size: 13px;
    }

    .board-closed-count strong {
      font-variant-numeric: tabular-nums;
    }

    .board-ask {
      position: fixed;
      inset: 0;
      z-index: 40;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(14, 17, 23, 0.5);
    }

    .board-ask-card {
      width: min(420px, 100%);
      padding: 20px;
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 16px 40px rgba(27, 21, 48, 0.18);
    }

    .board-ask-card h2 {
      margin: 0 0 8px;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
    }

    .board-ask-card p {
      margin: 0 0 14px;
      color: var(--muted);
    }

    .board-ask-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .board-ask-actions button {
      min-height: 44px;
    }

    .lead-preview-move-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      width: 100%;
    }

    .lead-preview-move-list button {
      min-height: 44px;
      text-align: left;
    }

    @media (max-width: 1100px) {
      .leads-board {
        margin: -36px 16px 20px;
      }

      .leads-view-switch button {
        min-height: 44px;
      }
    }

    @media (max-width: 759px) {
      .leads-board {
        flex-direction: column;
        overflow-x: hidden;
      }

      .leads-board-col,
      .leads-board-col.is-closed,
      .leads-board-col.is-closed.is-open {
        flex: 1 1 auto;
        width: 100%;
      }
    }

    #leads-view .leads-saved-views ,     .leads-host .leads-saved-views {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      min-width: 0;
    }

    .leads-view-pill {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      height: 32px;
      max-width: 100%;
      padding: 0 4px 0 2px;
      border-radius: 16px;
      background: var(--band-surface);
      color: #fff;
      border: 1.5px solid transparent;
    }

    .leads-view-pill.is-on {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .leads-view-pill-main,
    .leads-view-pill-more {
      border: 0;
      background: transparent;
      color: inherit;
      font: 700 13px var(--font-body);
    }

    .leads-view-pill-main {
      height: 28px;
      padding: 0 8px;
      border-radius: 14px;
      max-width: 220px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leads-view-pill-more {
      width: 28px;
      height: 28px;
      border-radius: 14px;
      font-size: 16px;
      line-height: 1;
    }

    .leads-view-office {
      flex: 0 0 auto;
      margin-right: 2px;
    }

    #leads-view .leads-filter-btn ,     .leads-host .leads-filter-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .leads-filter-count {
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 9px;
      background: var(--accent);
      color: #fff;
      font: 800 11px var(--font-body);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .leads-filter-error {
      margin: 8px 0 0;
      color: #ffd2c8;
      font: 700 13px var(--font-body);
    }

    #leads-view .leads-filter-chips ,     .leads-host .leads-filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 4px;
    }

    .leads-filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      min-height: 32px;
      padding: 0 2px 0 12px;
      border-radius: 16px;
      background: #fff;
      color: var(--text);
      font: 700 13px var(--font-body);
    }

    .leads-filter-chip-main,
    .leads-filter-clear {
      border: 0;
      background: transparent;
      color: inherit;
      font: 700 13px var(--font-body);
    }

    .leads-chip-x {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 32px;
      height: 32px;
      margin: 0 2px 0 4px;
      padding: 0;
      border: 0;
      border-radius: 16px;
      background: transparent;
      color: var(--text);
    }

    .leads-chip-x-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--soft);
      color: var(--text);
    }

    .leads-filter-clear {
      color: var(--band-muted);
      min-height: 32px;
      padding: 0 8px;
    }

    .leads-filter-backdrop {
      position: fixed;
      inset: 0;
      z-index: 64;
      background: rgba(14, 17, 23, 0.45);
    }

    .leads-filter-backdrop.hidden,
    .leads-filter-backdrop:not(.is-on) {
      display: none;
    }

    .leads-filter-panel {
      position: fixed;
      z-index: 65;
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow: auto;
      padding: 16px 16px 18px;
      background: #fff;
      color: var(--text);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 16px 40px rgba(27, 21, 48, 0.18);
    }

    .leads-filter-panel.hidden { display: none; }

    .leads-filter-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 8px;
    }

    .leads-filter-head h2,
    .leads-filter-save h3 {
      margin: 0;
      font-family: var(--font-display);
      font-weight: 800;
    }

    .leads-filter-head h2 { font-size: 22px; }

    .leads-filter-close {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 18px;
      background: var(--soft);
      color: var(--text);
      font-size: 22px;
      line-height: 1;
    }

    .leads-filter-panel label {
      display: block;
      margin: 8px 0 4px;
      font-size: 13px;
      font-weight: 700;
    }

    .leads-filter-panel select,
    .leads-filter-panel input[type="text"],
    .leads-filter-panel input[type="search"],
    .leads-filter-panel input[type="number"],
    .leads-filter-panel input[type="date"] {
      width: 100%;
      margin: 0 0 8px;
    }

    .leads-filter-choices {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 10px;
    }

    .leads-filter-choice {
      min-height: 36px;
      padding: 0 12px;
      border-radius: 18px;
      border: 1.5px solid var(--border-strong);
      background: #fff;
      color: var(--text);
      font: 700 13px var(--font-body);
    }

    .leads-filter-choice.is-on {
      background: var(--soft);
      border-color: var(--accent);
      color: var(--accent);
    }

    .leads-filter-checks {
      max-height: 220px;
      overflow: auto;
      margin-bottom: 10px;
      border: 1px solid var(--border);
      border-radius: 14px;
    }

    .leads-filter-panel .leads-filter-check {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      margin: 0;
      padding: 0 10px;
      font-weight: 600;
    }

    .leads-filter-panel .leads-filter-check input {
      width: auto;
      margin: 0;
    }

    .leads-filter-use,
    .leads-filter-add,
    .leads-filter-save-btn {
      width: 100%;
    }

    .leads-filter-use {
      min-height: 40px;
      border: 0;
      background: transparent;
      color: var(--accent);
      font: 700 14px var(--font-body);
      text-align: left;
      padding: 0 10px;
    }

    .leads-filter-empty {
      margin: 8px 10px;
      color: var(--muted);
      font-size: 13px;
    }

    .leads-filter-dates {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .leads-filter-save {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }

    .leads-filter-save h3 { font-size: 16px; }

    .leads-filter-panel .leads-filter-share {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      margin-top: 4px;
      font-weight: 600;
    }

    .leads-filter-share input { margin: 0; }

    .leads-filter-panel.is-sheet {
      left: 0;
      right: 0;
      bottom: 0;
      top: auto;
      width: 100%;
      max-height: 88vh;
      border-radius: 20px 20px 0 0;
      padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    #leads-view-menu { z-index: 80; }

    #leads-view-menu input {
      width: calc(100% - 16px);
      margin: 8px;
    }

    #leads-view-menu .leads-view-menu-ask,
    #leads-view-menu .leads-view-menu-error {
      margin: 8px 12px;
      font-size: 13px;
    }

    #leads-view-menu .leads-view-menu-error { color: #a3321e; font-weight: 700; }

    @media (max-width: 759px) {
      #leads-view .leads-filter-btn,
      .leads-host .leads-filter-btn,
      .leads-view-pill,
      .leads-view-pill-main,
      .leads-view-pill-more,
      .leads-filter-chip,
      .leads-chip-x,
      .leads-filter-clear,
      .leads-filter-close,
      .leads-filter-choice,
      .leads-filter-check,
      .leads-filter-add,
      .leads-filter-save-btn,
      .leads-filter-share,
      #leads-view-menu button {
        min-height: 44px;
      }

      .leads-view-pill { height: 44px; border-radius: 22px; }
      .leads-view-pill-main { height: 44px; }
      .leads-chip-x { width: 44px; height: 44px; }
      .leads-filter-close { width: 44px; height: 44px; border-radius: 22px; }
    }

    .leads-band-top { align-items: flex-end; }

    .leads-band-title { min-width: 0; }

    .leads-band-title .page-band-sub {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      margin-top: 4px;
    }

    .leads-office-inline {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .leads-band-sep { color: var(--band-muted); }

    #leads-view .leads-office-inline { flex: 0 0 auto; }

    #leads-view .leads-office-select,
    #leads-view .leads-office-select:focus {
      width: auto;
      min-width: 8.5rem;
      max-width: 240px;
      height: auto;
      min-height: 28px;
      margin: 0;
      padding: 0 18px 0 0;
      border: 0;
      border-radius: 0;
      outline: 0;
      background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23C9C1F2' stroke-width='1.6' stroke-linecap='round'/></svg>") right center no-repeat;
      color: #fff;
      -webkit-text-fill-color: #fff;
      color-scheme: dark;
      font: 700 14px var(--font-body);
      appearance: none;
      cursor: pointer;
    }

    #leads-view .leads-empty-clear ,     .leads-host .leads-empty-clear {
      display: inline;
      height: auto;
      min-height: 44px;
      margin: 0;
      padding: 8px 4px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--accent);
      font: 700 14px var(--font-body);
      vertical-align: baseline;
    }

    #leads-view .leads-empty-clear:hover ,     .leads-host .leads-empty-clear:hover { text-decoration: underline; text-underline-offset: 3px; }

    .leads-more-btn {
      width: 40px;
      padding: 0;
      font-size: 18px;
      letter-spacing: 1px;
    }

    .leads-band-search-row { align-items: center; }

    #leads-view .leads-band-search ,     .leads-host .leads-band-search {
      flex: 1 1 auto;
      max-width: none;
      min-width: 0;
      margin-left: 0;
    }

    #leads-view .leads-band-search input ,     .leads-host .leads-band-search input { width: 100%; }

    .leads-filter-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .leads-views-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      max-width: 240px;
      height: 34px;
      padding: 0 12px;
      border-radius: 17px;
      border: 1.5px solid var(--band-line);
      background: var(--band-surface);
      color: #fff;
      font: 700 13px var(--font-body);
    }

    .leads-views-chip span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leads-views-icon { flex: 0 0 auto; }

    .leads-views-chip.is-on {
      background: #fff;
      border-color: #fff;
      color: var(--text);
    }

    .leads-clear-all {
      border: 0;
      background: transparent;
      color: #fff;
      font: 700 13px var(--font-body);
      height: 34px;
      padding: 0 8px;
    }

    .leads-clear-all:hover { text-decoration: underline; text-underline-offset: 3px; }

    .leads-quick,
    .leads-extra-chips,
    .leads-saved-views {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    .leads-quick-main,
    .leads-quick-add,
    .leads-bar-action,
    .leads-filter-chip {
      display: inline-flex;
      align-items: center;
      height: 34px;
      padding: 0 12px;
      border-radius: 17px;
      border: 1.5px solid var(--band-line);
      background: transparent;
      color: #fff;
      font: 700 13px var(--font-body);
      white-space: nowrap;
    }

    .leads-quick.is-on {
      background: #fff;
      border-radius: 17px;
    }

    .leads-quick.is-on .leads-quick-main {
      background: transparent;
      border-color: transparent;
      color: var(--text);
      padding: 0 2px 0 12px;
    }

    .leads-filter-chip {
      background: #fff;
      border-color: #fff;
      color: var(--text);
      padding: 0 2px 0 0;
      gap: 0;
    }

    .leads-filter-chip-main {
      height: 32px;
      padding: 0 2px 0 12px;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      max-width: 240px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .leads-chip-x {
      width: 32px;
      height: 32px;
    }

    .leads-quick-add,
    .leads-bar-action {
      background: var(--band-surface);
      border-color: transparent;
    }

    .leads-filter-divider {
      width: 1px;
      align-self: stretch;
      min-height: 22px;
      background: var(--band-line);
      flex: 0 0 auto;
    }

    #leads-more-menu { z-index: 70; }

    .leads-more-label {
      margin: 8px 12px 2px;
      color: var(--muted);
      font: 700 12px var(--font-body);
    }

    #leads-more-menu [aria-checked="true"]::before {
      content: "✓  ";
    }

    .leads-filter-pop {
      position: fixed;
      z-index: 70;
      display: flex;
      flex-direction: column;
      width: min(360px, calc(100vw - 16px));
      max-height: min(440px, calc(100vh - 24px));
      overflow: auto;
      padding: 12px;
      background: #fff;
      color: var(--text);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 16px 40px rgba(27, 21, 48, 0.18);
    }

    .leads-filter-pop.hidden { display: none; }

    .leads-filter-pop h2 {
      margin: 4px 4px 8px;
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
    }

    .leads-filter-pop-back {
      align-self: flex-start;
      margin: 0 0 6px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--accent);
      font: 700 13px var(--font-body);
    }

    .leads-filter-pop-search,
    .leads-filter-pop input[type="text"],
    .leads-filter-pop input[type="number"],
    .leads-filter-pop input[type="date"],
    .leads-filter-pop input[type="search"] {
      width: 100%;
      margin: 0 0 8px;
    }

    .leads-filter-group {
      margin: 10px 4px 4px;
      color: var(--muted);
      font: 700 12px var(--font-body);
    }

    .leads-filter-field {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      min-height: 40px;
      padding: 8px 10px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      color: var(--text);
      font: 700 14px var(--font-body);
      text-align: left;
    }

    .leads-filter-field:hover,
    .leads-filter-field.is-on { background: var(--soft); }

    .leads-filter-field small {
      color: var(--muted);
      font-weight: 600;
    }

    .leads-filter-pop .leads-filter-check {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      margin: 0;
      padding: 0 8px;
      font-weight: 600;
    }

    .leads-filter-pop .leads-filter-check input { width: auto; margin: 0; }

    .leads-filter-opt-count {
      margin-left: auto;
      color: var(--muted);
      font-weight: 700;
    }

    .leads-filter-pop-clear {
      position: sticky;
      bottom: 0;
      z-index: 1;
      align-self: stretch;
      margin: 8px 0 0;
      padding: 10px 4px;
      min-height: 40px;
      border: 0;
      border-top: 1px solid var(--border);
      background: #fff;
      color: var(--accent);
      font: 700 14px var(--font-body);
      text-align: left;
    }

    .leads-view-row {
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 40px;
    }

    .leads-view-tick {
      flex: 0 0 16px;
      width: 16px;
      color: var(--accent);
      font-weight: 800;
      text-align: center;
    }

    .leads-view-row-main {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 36px;
      padding: 6px 4px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--text);
      font: 700 14px var(--font-body);
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leads-view-row.is-on .leads-view-row-main { background: var(--soft); }

    .leads-view-row-more {
      flex: 0 0 auto;
      width: 32px;
      height: 32px;
      border: 0;
      border-radius: 16px;
      background: transparent;
      color: var(--muted);
      font: 700 18px var(--font-body);
    }

    .leads-views-save {
      margin-top: 12px;
      width: 100%;
      min-height: 40px;
      border-radius: 20px;
      border: 1.5px solid var(--border);
      background: #fff;
      color: var(--accent);
      font: 700 14px var(--font-body);
    }

    .leads-views-save:disabled {
      color: var(--muted);
      cursor: default;
    }

    .leads-filter-pop .leads-filter-share {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      margin: 4px 0 8px;
      font-weight: 600;
    }

    .leads-filter-pop .leads-filter-share input { width: auto; margin: 0; }

    #leads-view.is-board #leads-quick-status ,     .leads-host.is-board #leads-quick-status { display: none; }

    @media (max-width: 759px) {
      .leads-band-search-row { flex-direction: column; align-items: stretch; }
      .leads-band-search { width: 100%; flex-basis: auto; }
      .leads-view-switch { align-self: flex-start; }

      .leads-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
      }

      .leads-views-chip,
      .leads-clear-all,
      .leads-quick-main,
      .leads-quick-add,
      .leads-filter-chip,
      .leads-filter-chip-main,
      .leads-chip-x,
      .leads-view-row-main,
      .leads-view-row-more,
      .leads-views-save,
      .leads-filter-field,
      .leads-filter-pop .leads-filter-check,
      .leads-filter-pop-clear,
      #leads-more-menu button {
        min-height: 44px;
      }

      .leads-views-chip,
      .leads-quick-main,
      .leads-quick-add,
      .leads-filter-chip { height: 44px; border-radius: 22px; }

      .leads-chip-x,
      .leads-view-row-more { width: 44px; height: 44px; }

      .leads-filter-pop.is-sheet {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
      }
    }

    @media (pointer: coarse) {
      .leads-chip-x,
      .leads-view-row-more,
      .leads-clear-all,
      .leads-views-chip {
        min-height: 44px;
      }

      .leads-chip-x,
      .leads-view-row-more {
        width: 44px;
        height: 44px;
      }
    }

    /* IN1a: consent at a glance beside a lead's name (Leads list, Board, calling mode) */
    .consent-marker { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 9px;
      font: 800 10.5px var(--font-body); letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap; }
    .consent-marker.is-ok { background: var(--ok-bg); color: var(--ok); }
    .consent-marker.is-stop { background: var(--attention-strong); color: #fff; }
    .consent-marker.is-dnc { background: var(--attention-bg); color: var(--attention); }
