/* Mes contacts — mobile (< 1024px) */
@media (max-width: 1023px) {
  /* Toujours masquer le layout desktop dans l'écran mobile */
  #sc-contacts .contacts-page {
    display: none !important;
  }

  #sc-contacts .topbar {
    display: none;
  }

  #sc-contacts.screen {
    overflow: hidden;
  }

  #sc-contacts .scroll-body,
  #sc-contacts-body {
    padding: 0 !important;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mob-contacts-root {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-bottom: calc(var(--bot-nav-h, 58px) + 24px + env(safe-area-inset-bottom, 0));
  }

  .mob-contacts-root .top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .mob-contacts-root .tb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
  }

  .mob-contacts-root .tb-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .mob-contacts-root .tb-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-md);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mob-contacts-root .tb-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }

  .mob-contacts-root .tb-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-md);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mob-contacts-root .tb-btn.mob-add-btn {
    background: var(--bx);
    color: #fff;
    border-color: var(--bx);
  }

  /* #188 — onglets principaux À traiter / Tous */
  .mob-contacts-root .mob-main-tabs {
    display: flex;
    gap: 0;
    padding: 0 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .mob-contacts-root .mob-main-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-contacts-root .mob-main-tab.on {
    color: var(--bx);
    border-bottom-color: var(--bx);
  }

  .mob-contacts-root .mob-main-tab .mcnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--bx);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }

  .mob-contacts-root .mob-main-tab:not(.on) .mcnt {
    background: var(--g3, #94a3b8);
  }

  .mob-contacts-root .mob-view {
    display: none;
  }

  .mob-contacts-root .mob-view.on {
    display: block;
  }

  .mob-contacts-root .mob-aq-list {
    padding-top: 4px;
  }

  /* #193 — swipe file d'action */
  .mob-contacts-root .mob-aq-swipe {
    position: relative;
    margin: 0 0 8px;
    border-radius: 12px;
    overflow: hidden;
    touch-action: pan-y;
    --mob-aq-reveal-opacity: 0;
  }

  .mob-contacts-root .mob-aq-swipe.mob-aq-swiping {
    touch-action: none;
  }

  .mob-contacts-root .mob-aq-swipe .mob-aq-card {
    position: relative;
    z-index: 2;
    margin: 0;
    will-change: transform;
    background: var(--surface);
    touch-action: pan-y;
  }

  .mob-contacts-root .mob-aq-swipe .ci,
  .mob-contacts-root .mob-aq-swipe .cav,
  .mob-contacts-root .mob-aq-swipe .cname,
  .mob-contacts-root .mob-aq-swipe .cmeta,
  .mob-contacts-root .mob-aq-swipe .ctags {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }

  .mob-contacts-root .mob-aq-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: var(--mob-aq-reveal-opacity, 0);
    pointer-events: none;
    z-index: 0;
  }

  .mob-contacts-root .mob-aq-reveal i {
    font-size: 18px;
  }

  .mob-contacts-root .mob-aq-reveal-call {
    justify-content: flex-start;
    background: #16a34a;
    color: #fff;
  }

  .mob-contacts-root .mob-aq-reveal-done {
    justify-content: flex-end;
    background: #d97706;
    color: #fff;
  }

  .mob-contacts-root .mob-aq-swipe.reveal-call .mob-aq-reveal-call {
    z-index: 1;
  }

  .mob-contacts-root .mob-aq-swipe.reveal-done .mob-aq-reveal-done {
    z-index: 1;
  }

  .mob-contacts-root .mob-aq-swipe .mob-aq-card.mob-aq-snap {
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .mob-contacts-root .mob-aq-swipe.leaving {
    opacity: 0;
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    transition: opacity 0.22s ease, max-height 0.28s ease, margin 0.28s ease;
  }

  .mob-contacts-root .mob-aq-card.urgent {
    border-left: 3px solid #dc2626;
  }

  .mob-contacts-root .mob-aq-card.remind {
    border-left: 3px solid #e07b00;
  }

  .mob-contacts-root .mob-aq-card.nouveau {
    border-left: 3px solid #1565c0;
  }

  .mob-contacts-root .mob-aq-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
  }

  .mob-contacts-root .mob-aq-tag.urgent {
    background: #fef2f2;
    color: #dc2626;
  }

  .mob-contacts-root .mob-aq-tag.remind {
    background: #fff7ed;
    color: #c2410c;
  }

  .mob-contacts-root .mob-aq-tag.nouveau {
    background: #eff6ff;
    color: #1565c0;
  }

  .mob-contacts-root .mob-aq-card.leaving {
    opacity: 0;
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0;
    overflow: hidden;
    transition: opacity 0.22s ease, max-height 0.28s ease, margin 0.28s ease, padding 0.28s ease;
  }

  .mob-contacts-root .mob-aq-empty {
    padding: 40px 24px;
  }

  /* #190 — pipelines Tous (Tunnel + Conversion) */
  .mob-contacts-root .mob-pipes {
    padding: 8px 12px 16px;
  }

  .mob-contacts-root .mob-pipe {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--surface);
    overflow: hidden;
  }

  .mob-contacts-root .mob-pipe-hd {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-contacts-root .mob-pipe-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mob-contacts-root .mob-pipe-cnt {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg);
    border-radius: 999px;
    padding: 2px 8px;
  }

  .mob-contacts-root .mob-pipe-body {
    display: none;
    border-top: 1px solid var(--border);
    padding: 6px 8px 10px;
  }

  .mob-contacts-root .mob-pipe.open .mob-pipe-body {
    display: block;
  }

  .mob-contacts-root .mob-stage {
    margin-top: 6px;
  }

  .mob-contacts-root .mob-stage-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .mob-contacts-root .mob-stage-hd .n {
    font-size: 10px;
    font-weight: 800;
    color: var(--bx);
    background: var(--bx-l, #fce8ef);
    border-radius: 999px;
    padding: 1px 7px;
  }

  .mob-contacts-root .mob-stage-empty {
    padding: 4px 8px 8px;
    font-size: 12px;
    color: var(--hint, #94a3b8);
  }

  .mob-contacts-root .mob-pipe-row {
    margin: 0 0 6px;
  }

  .mob-contacts-root .source-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }

  .mob-contacts-root .source-tabs::-webkit-scrollbar {
    display: none;
  }

  .mob-contacts-root .stab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
  }

  .mob-contacts-root .stab.on {
    background: var(--bx-l, #fce8ef);
    color: var(--bx);
    border-color: var(--bx);
  }

  .mob-contacts-root .stab.on .sdot {
    box-shadow: none;
  }

  .mob-contacts-root .sdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .mob-contacts-root .scnt {
    font-size: 10px;
    opacity: 0.85;
  }

  .mob-contacts-root .stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .mob-contacts-root .sm-cell {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
  }

  .mob-contacts-root .sm-val {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
  }

  .mob-contacts-root .sm-lbl {
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mob-contacts-root .legal-strip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 14px 0;
    padding: 10px 12px;
    background: var(--green-bg);
    border: 1px solid var(--green-b, rgba(15, 110, 86, 0.2));
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--green);
  }

  .mob-contacts-root .srch-wrap {
    padding: 10px 14px;
  }

  .mob-contacts-root .srch-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border-md);
    border-radius: 10px;
  }

  .mob-contacts-root .srch-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    outline: none;
  }

  .mob-contacts-root .contact-list {
    padding: 0 0 4px;
  }

  .mob-contacts-root .pc-only-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 20px 22px;
    margin: 28px 16px 8px;
    background: var(--navy, #0d1b3e);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(13, 27, 62, 0.2);
  }

  .mob-contacts-root .pcb-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .mob-contacts-root .pcb-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
  }

  .mob-contacts-root .pcb-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  .mob-contacts-root .pcb-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 8px;
    line-height: 1.6;
    padding-right: 4px;
  }

  .mob-contacts-root .pcb-text {
    flex: 1;
    min-width: 0;
    padding: 2px 0 4px;
  }

  /* Nav du bas — un peu plus aérée sur l'écran Contacts */
  #sc-contacts .bot-nav {
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0));
    gap: 0;
  }

  #sc-contacts .bot-nav .bn {
    padding: 8px 2px 6px;
    gap: 5px;
    min-height: 54px;
  }

  #sc-contacts .bot-nav .bn span {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  #sc-contacts .bot-nav .bn i {
    font-size: 21px;
  }

  .mob-contacts-root .group-header {
    padding: 10px 14px 6px;
  }

  .mob-contacts-root .gh-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }

  .mob-contacts-root .gh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .mob-contacts-root .ccard {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
  }

  .mob-contacts-root .ccard.sel {
    background: rgba(173, 0, 65, 0.04);
  }

  .mob-contacts-root .ccard .ccb {
    margin-top: 12px;
    flex-shrink: 0;
  }

  .mob-contacts-root .ccard:active {
    background: var(--bg);
  }

  .mob-contacts-root .cav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
  }

  .mob-contacts-root .cav-ring {
    position: absolute;
    inset: -2px;
    border: 2px solid var(--green);
    border-radius: 50%;
  }

  .mob-contacts-root .ci {
    flex: 1;
    min-width: 0;
  }

  .mob-contacts-root .cname {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
  }

  .mob-contacts-root .matched-candidate-hint {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.35;
  }

  .mob-contacts-root .matched-cand-label {
    font-weight: 600;
    color: var(--blue);
  }

  .mob-contacts-root .matched-cand-link {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
  }

  .mob-contacts-root .cmeta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .mob-contacts-root .ctags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
  }

  .mob-contacts-root .ctime {
    font-size: 10px;
    color: var(--hint);
    margin-bottom: 2px;
  }

  .mob-contacts-root .cact-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 4px;
  }

  .mob-contacts-root .cact {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 4px 0;
  }

  .mob-contacts-root .cact-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1.5px solid var(--border-md);
    color: var(--muted);
    font-size: 21px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 1px 3px rgba(15, 27, 62, 0.06);
  }

  .mob-contacts-root .cact-btn:active {
    transform: scale(0.94);
  }

  .mob-contacts-root .cact-btn.g {
    color: var(--green);
    border-color: var(--green-b, rgba(15, 110, 86, 0.25));
  }

  .mob-contacts-root .cact-btn.o {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-l);
  }

  .mob-contacts-root .cact-btn.m {
    color: var(--blue);
    border-color: rgba(21, 101, 192, 0.25);
    background: var(--blue-l, #e3f2fd);
  }

  .mob-contacts-root .cact-btn.d {
    color: var(--bx);
    border-color: rgba(173, 0, 65, 0.2);
    background: var(--bx-l, #fce8ef);
  }

  .mob-contacts-root .origin-badge,
  .mob-contacts-root .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
  }

  .mob-contacts-root .ob-platform { background: var(--blue-l); color: var(--blue); }
  .mob-contacts-root .ob-external { background: #fff3e0; color: var(--orange); }
  .mob-contacts-root .ob-converted { background: var(--green-bg); color: var(--green); }
  .mob-contacts-root .sb-new { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
  .mob-contacts-root .sb-called { background: #e8f5e9; color: var(--green); }
  .mob-contacts-root .sb-short { background: var(--gold-l); color: #7a5200; }
  .mob-contacts-root .sb-hold { background: #fff8e1; color: #b8860b; }
  .mob-contacts-root .sb-treat { background: var(--bg); color: var(--muted); }
  .mob-contacts-root .sb-reject { background: var(--orange-l, #FFF3E0); color: var(--orange, #E07B00); }
  .mob-contacts-root .sb-hired { background: var(--green-bg, #E8F5E9); color: var(--green, #27500A); }
  .mob-contacts-root .sb-black { background: var(--red-bg); color: var(--red); }

  /* Fiche contact — tunnel candidat */
  .mob-contacts-detail .phone-body.cand-detail-v2 {
    padding: 12px 14px 20px;
  }

  .mob-contacts-detail .top-bar + .phone-body {
    margin-top: 0;
  }

  .mob-contacts-detail .progress-bar-wrap {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px 10px;
    margin-bottom: 12px;
  }

  .mob-contacts-detail .progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 4px;
  }

  .mob-contacts-detail .ps-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.45;
    min-width: 0;
  }

  .mob-contacts-detail .ps-item.active,
  .mob-contacts-detail .ps-item.done {
    opacity: 1;
  }

  .mob-contacts-detail .ps-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }

  .mob-contacts-detail .ps-item.active .ps-dot {
    background: var(--bx);
    border-color: var(--bx);
    color: #fff;
  }

  .mob-contacts-detail .ps-item.done .ps-dot {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
    font-size: 12px;
  }

  .mob-contacts-detail .ps-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
  }

  .mob-contacts-detail .ps-item.active .ps-label {
    color: var(--bx);
    font-weight: 700;
  }

  .mob-contacts-detail .contact-grid {
    gap: 10px;
  }

  .mob-contacts-detail .contact-btn {
    min-height: 72px;
    padding: 10px 6px;
  }

  .mob-filter-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .mob-filter-sel {
    width: 100%;
    margin-bottom: 14px;
    padding: 11px 12px;
    font-size: 14px;
  }

  .mob-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
  }

  .mob-filter-act {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-md);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
  }

  .mob-filter-act.primary {
    background: var(--bx);
    color: #fff;
    border-color: var(--bx);
  }

  .mob-ct-filters-modal {
    z-index: 1100;
  }

  .mob-contacts-root .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
  }

  .mob-contacts-root .empty-state i {
    font-size: 40px;
    color: var(--hint);
    display: block;
    margin-bottom: 12px;
  }

  .mob-contacts-root .empty-state h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text2);
    margin: 0 0 8px;
  }

  .mob-contacts-root .empty-state p {
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
  }

  .mob-contacts-root .phone-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }

  .mob-contacts-root .cb-consent,
  .cb-consent {
    border-color: var(--gold);
    color: #7a5200;
  }

  .mob-contacts-root .cb-consent .cb-icon,
  .cb-consent .cb-icon {
    background: var(--gold-l);
    color: var(--gold);
  }

  .mob-contacts-root .badge-ext {
    background: #fff3e0;
    color: var(--orange);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
  }

  .mob-contacts-root .badge-conv {
    background: var(--green-bg);
    color: var(--green);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
  }

  .mob-contacts-root .notes-section .btn-save {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }

  .consent-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 62, 0.55);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
  }

  .consent-modal.open {
    display: flex;
  }

  .consent-sheet {
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border-radius: 18px 18px 0 0;
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0));
    max-height: 88vh;
    overflow-y: auto;
    animation: mob-sheet-up 0.22s ease;
  }

  @keyframes mob-sheet-up {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  .consent-sheet .drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--border-md);
    border-radius: 2px;
    margin: 0 auto 14px;
  }

  .consent-sheet .sms-preview {
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text2);
    margin-bottom: 6px;
  }

  .consent-sheet .sms-char-count {
    font-size: 10px;
    color: var(--hint);
  }

  .consent-sheet .btn-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }

  .consent-sheet .btn-row .btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .consent-sheet .btn-primary {
    background: var(--bx);
    color: #fff;
  }

  .consent-sheet .btn-ghost {
    background: var(--bg);
    border: 1px solid var(--border-md);
    color: var(--muted);
  }

  .mob-contact-menu-sheet {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  }

  .mob-menu-head {
    margin-bottom: 10px;
  }

  .mob-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
  }

  .mob-menu-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
  }

  .mob-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 4px;
    border: none;
    background: transparent;
    border-bottom: 1px solid var(--border);
    text-align: start;
    cursor: pointer;
    font-family: inherit;
  }

  .mob-menu-row:active {
    background: var(--bg);
  }

  .mob-menu-row i {
    font-size: 20px;
    color: var(--bx);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
  }

  .mob-menu-row.danger i,
  .mob-menu-row.danger .mob-menu-lbl {
    color: var(--red);
  }

  .mob-menu-lbl {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }

  .mob-menu-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
  }

  .mob-menu-divider {
    height: 8px;
  }

  .mob-menu-cancel {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }

  /* Modale « Ajouter un contact » — plein écran, bottom sheet aéré */
  #pop-add-contact.pop-ov {
    max-width: none;
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
    background: rgba(13, 27, 62, 0.55);
    z-index: 1200;
    padding: 0;
    align-items: flex-end;
    justify-content: center;
  }

  #pop-add-contact .ct-contact-pop {
    width: 100%;
    max-width: 100%;
    max-height: min(92vh, 720px);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(13, 27, 63, 0.18);
    animation: mob-sheet-up 0.22s ease;
  }

  #pop-add-contact .ct-pop-head {
    padding: 20px 20px 14px;
  }

  #pop-add-contact .ct-pop-body {
    padding: 8px 20px 24px;
  }

  #pop-add-contact .ct-form-row {
    margin-bottom: 20px;
  }

  #pop-add-contact .fl {
    margin-bottom: 8px;
    font-size: 12px;
  }

  #pop-add-contact .fi {
    padding: 13px 14px;
    font-size: 16px;
  }

  #pop-add-contact .ct-pop-foot {
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0));
    gap: 12px;
  }

  #pop-add-contact .ct-pop-foot .s-btn {
    padding: 14px 16px;
    font-size: 15px;
  }

  #pop-import-contacts.pop-ov {
    display: none !important;
  }

  /* Masquer le layout desktop s'il apparaît par erreur */
  #sc-contacts-body .contacts-page {
    display: none !important;
  }

  /* #193 — snackbar annulation swipe */
  .mob-aq-snackbar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--bot-nav-h, 58px) + 16px + env(safe-area-inset-bottom, 0));
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .mob-aq-snackbar.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mob-aq-snackbar .mob-aq-snack-undo {
    border: 0;
    background: transparent;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 4px 2px;
    flex-shrink: 0;
  }
}
