/* Téléphone de l'app des membres, utilisé dans l'application et la présentation. */

.phone {
  width: 328px;
  max-width: 100%;
  padding: 10px;
  border-radius: 48px;
  background: var(--prune-950);
  box-shadow: var(--shadow-float);
  font-size: var(--text-m);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 308 / 660;
  border-radius: 38px;
  background: var(--bg-page);
  overflow: hidden;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px 6px;
  font-size: var(--text-s);
  font-weight: 600;
}

.phone-island {
  width: 86px;
  height: 24px;
  border-radius: 12px;
  background: var(--prune-950);
}

.phone-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  min-height: 0;
  padding: var(--space-2) var(--space-4) var(--space-4);
  overflow-y: auto;
}

.phone-screen .phone-view {
  overflow-wrap: anywhere;
}

.phone-view .payment-options {
  grid-template-columns: minmax(0, 1fr);
}

.phone-view h3 {
  margin-top: var(--space-2);
  font-size: var(--text-s);
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 4px 6px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.phone-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-m);
  background: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.phone-tabs button[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

.phone-hero {
  position: relative;
  padding: var(--space-3) 0 var(--space-2);
}

.phone-hero small {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--primary);
}

.phone-hero h2,
.phone-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

.phone-hero h2 {
  font-size: var(--text-2xl);
}

.phone-header h2 {
  font-size: var(--text-xl);
}

.phone-window {
  display: block;
  width: 52px;
}

.phone-hero .phone-window {
  position: absolute;
  top: 0;
  right: 0;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}

.phone-back {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-surface);
  text-align: left;
}

.phone-card small {
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.phone-card.request {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.phone-card.dark {
  border-color: transparent;
  background: var(--prune-900);
  color: var(--on-primary);
  cursor: pointer;
}

.phone-card.dark small {
  color: var(--amber);
}

.phone-card.dark span {
  font-size: var(--text-s);
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.phone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-list > li,
.phone-list > li > :is(button, div, label) {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.phone-list > li {
  min-height: 56px;
  border-top: 1px solid var(--border);
}

.phone-list > li:first-child {
  border-top: 0;
}

/* Les lignes avec une date en arche respirent : les arches ne se touchent plus. */
.phone-list > li:has(.date-tile) {
  padding: var(--space-3) 0;
}

.phone-list > li > :is(button, div, label) {
  flex: 1;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.phone-list button {
  cursor: pointer;
}

.phone-list small {
  display: block;
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.phone-list .icon:last-child {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.phone-list > li > :is(button, div) > .icon:first-child {
  color: var(--primary);
}

.phone-list.plan > li {
  align-items: flex-start;
  padding: var(--space-2) 0;
}

.phone-list.plan .numeric {
  width: 46px;
  flex: none;
  font-family: var(--font-display);
}

.phone-note {
  font-size: var(--text-s);
  color: var(--text-secondary);
}

.phone-wide {
  width: 100%;
  min-height: 48px;
}

.phone .button.twint {
  background: oklch(0.2 0.01 335);
}

.amounts {
  margin-bottom: 0;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.pay-methods button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.pay-methods button:hover {
  border-color: var(--primary);
}

.pay-methods button:active {
  background: var(--primary-soft);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.amounts button {
  min-height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-size: var(--text-l);
  cursor: pointer;
}

.amounts button[aria-pressed="true"] {
  border-color: var(--prune-900);
  background: var(--prune-900);
  color: var(--amber);
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat li {
  align-self: flex-start;
  max-width: 84%;
}

.chat small {
  margin-left: var(--space-3);
  font-size: 12px;
  color: var(--text-secondary);
}

.chat p {
  padding: var(--space-2) var(--space-3);
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.chat .mine {
  align-self: flex-end;
}

.chat .mine p {
  border-color: transparent;
  background: var(--primary);
  color: var(--on-primary);
}

.chat-form {
  display: flex;
  gap: var(--space-2);
}

.chat-form .icon-button {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--on-primary);
}

.chat-form .input {
  min-width: 0;
}

.phone-confirm,
.pickup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

.phone-confirm .phone-window {
  width: 84px;
}

.phone-confirm strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
}

.pickup .code {
  padding: var(--space-3) var(--space-5);
  font-size: 40px;
}

.phone-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.phone-profile h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}

.phone-profile small {
  font-size: var(--text-s);
  color: var(--text-secondary);
}


.phone-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-success-soft);
  color: var(--color-success);
}

.phone-check .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
}

.phone-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  font-weight: 600;
}

.phone-total small {
  display: block;
  font-size: var(--text-s);
  font-weight: 400;
  color: var(--text-secondary);
}

.phone-total strong {
  flex: none;
  font-size: var(--text-l);
  white-space: nowrap;
}

.phone-card.dark p {
  font-size: var(--text-s);
  color: var(--on-dark-muted);
}

.phone-thumb {
  flex: none;
  width: 72px;
  height: 40px;
  border-radius: var(--radius-s);
  object-fit: cover;
}

.phone-player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--prune-950);
  overflow: hidden;
  cursor: pointer;
}

.phone-player img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.phone-player-button {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--prune-950);
  color: var(--on-primary);
  transform: translate(-50%, -50%);
}

.phone-form {
  padding-bottom: var(--space-2);
}

.phone-form .choice-chip span {
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-s);
}

.phone-period-dates,
.phone-camp-person {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.phone-period-dates[hidden],
.phone-camp-person[hidden] {
  display: none;
}

.phone-camp-person {
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.phone-camp-person > legend {
  padding-inline: var(--space-2);
  font-weight: 600;
}

.phone-church-header,
.phone-church-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.phone-church-header {
  min-height: 52px;
  margin-inline: var(--space-4);
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-s);
}

.phone-church-header .ark-select {
  flex: 1;
  min-height: 44px;
  padding-block: var(--space-1);
  padding-inline-start: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background-color: var(--bg-surface);
  font-size: var(--text-m);
  font-weight: 600;
}

.phone-church-header > strong,
.phone-church-identity > div,
.phone-profile > div {
  overflow-wrap: anywhere;
}

.phone-church-mark,
.phone-join-symbol {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-m);
  background: var(--amber-soft);
  color: var(--prune-900);
  font-weight: 600;
}

.phone-church-mark.has-logo {
  padding: 4px;
}

.phone-church-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-church-mark[data-church="verger"],
.phone-verger-card {
  background: var(--lake-soft);
  color: var(--lake);
}

.phone-church-identity {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  text-align: left;
}

.phone-church-identity :is(strong, span:not(.phone-church-mark)) {
  display: block;
}

.phone-church-identity strong {
  text-wrap: balance;
}

.phone-church-identity span:not(.phone-church-mark) {
  color: var(--text-secondary);
  font-size: var(--text-s);
}

.phone-join-welcome,
.phone-join-result {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--space-3);
  min-width: 0;
  max-width: 380px;
  margin: auto;
  padding-block: var(--space-5);
  text-align: center;
}

.phone-join-welcome h2,
.phone-join-result h2 {
  font: 400 clamp(1.65rem, 4vw, 2rem)/1.12 var(--font-display);
  text-wrap: balance;
}

.phone-join-welcome p,
.phone-join-result p {
  color: var(--text-secondary);
  text-wrap: pretty;
}

.phone-join-welcome > .button:not(.quiet),
.phone-join-result > .phone-church-identity {
  margin-top: var(--space-3);
}

.phone-join-brand {
  display: grid;
  place-items: center;
  width: min(100%, 176px);
  height: 112px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-arch);
  background: var(--amber-soft);
}

.phone-join-brand img {
  max-width: 100%;
  object-fit: contain;
}

.phone-join-result .phone-church-identity {
  width: 100%;
}

.phone-join-options {
  display: grid;
  gap: var(--space-2);
}

.phone-join-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 72px;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.phone-join-option small {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-s);
  text-wrap: pretty;
}

.phone-join-option > .icon {
  width: 16px;
  color: var(--primary);
}

.phone-join-option:is(:hover, :active) {
  border-color: var(--primary-line);
  background: var(--primary-soft);
}

.phone-join-form .field input,
.phone-screen .field input:not([type=radio], [type=checkbox]) {
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}

.phone-join-form input[name="code"] {
  text-transform: uppercase;
}

.phone-scanner {
  display: grid;
  place-items: center;
  min-height: 224px;
  padding: var(--space-4);
  border-radius: var(--radius-l);
  background: var(--prune-950);
}

.phone-scan-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 152px);
  aspect-ratio: 1;
  border: 2px solid var(--amber);
  border-radius: var(--radius-m);
  background: var(--prune-800);
  overflow: hidden;
}

.phone-scan-frame [data-member-qr] {
  width: 64%;
  opacity: .88;
}

.phone-scan-line {
  position: absolute;
  inset: 10%;
  animation: phone-scan-pass 1.55s ease-out both;
}

.phone-scan-line::after {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--amber);
  content: "";
}

@keyframes phone-scan-pass {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.phone-view[data-enter] > * {
  animation: phone-screen-enter 180ms ease-out both;
}

@keyframes phone-screen-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-leave.button {
  color: var(--color-error);
  border-color: currentColor;
}

.td-member-app:has(> .phone-view[data-phone-view^="join-"]) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
}

.td-member-app > .phone-church-header {
  grid-column: 1 / -1;
  margin: 0;
}

.td-member-app .phone-tabs {
  grid-auto-flow: row;
}

.td-member-app[data-phone-directory="false"] .phone-tabs [data-screen="directory"],
.td-member-app[data-phone-videos="false"] .phone-tabs [data-screen="videos"] {
  display: none;
}

.member-layout.member-workbench {
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "try" "phone" "invite" "requests";
  justify-items: stretch;
  max-width: 872px;
}

.member-workbench .phone {
  grid-area: phone;
  justify-self: center;
}

.member-workbench [data-phone] {
  scroll-margin-block: var(--space-8);
}

.member-workbench > .panel {
  min-width: 0;
}

.member-try {
  grid-area: try;
}

.member-invite {
  grid-area: invite;
}

.member-requests {
  grid-area: requests;
}

.member-workbench .panel h2 {
  margin-bottom: var(--space-2);
}

.member-other-scenarios {
  margin-top: var(--space-2);
}

.member-other-scenarios summary {
  width: fit-content;
  padding: var(--space-3) 0;
  color: var(--primary);
  cursor: pointer;
}

[data-no-erables] .member-other-scenarios {
  display: none;
}

.member-invite-content {
  display: grid;
  grid-template-columns: minmax(80px, 112px) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
}

.member-qr {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-s);
  text-align: center;
  overflow: hidden;
}

[data-member-qr] svg,
.member-print-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.member-invite-tools {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.member-invite-tools input {
  min-width: 0;
  font-weight: 600;
}

.member-caption {
  color: var(--text-secondary);
  font-size: var(--text-s);
  text-wrap: pretty;
}

.member-caption:empty {
  display: none;
}

.member-invite-actions,
.member-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.member-workbench .button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.member-request-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.member-request-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.member-print-sheet {
  display: none;
}

@media (min-width: 700px) {
  .member-layout.member-workbench {
    grid-template-columns: minmax(248px, 328px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "phone try" "phone invite" "phone requests";
    gap: var(--space-4) var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-view[data-enter] > *,
  .phone-scan-line {
    animation: none;
  }

  .phone-join-option {
    transition: none;
  }
}

@media print {
  body:has(> .member-print-sheet) > :not(.member-print-sheet) {
    display: none;
  }

  :is(html, body):has(.member-print-sheet) {
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .member-print-sheet,
  .member-print-sheet * {
    visibility: visible;
  }

  .member-print-sheet {
    display: grid;
    justify-items: center;
    gap: 5mm;
    color: #201824;
    text-align: center;
  }

  .member-print-sheet .phone-church-identity {
    gap: 3mm;
    padding: 0;
    border: 0;
  }

  .member-print-sheet .phone-church-mark {
    border: 1px solid currentColor;
  }

  .member-print-sheet h1 {
    max-width: 100mm;
    margin: 0;
    font: 400 27pt/1.1 var(--font-display);
    text-wrap: balance;
  }

  .member-print-qr {
    width: 57mm;
  }

  .member-print-sheet ol {
    display: grid;
    gap: 2mm;
    max-width: 96mm;
    margin: 1mm 0 0;
    padding-inline-start: 5mm;
    text-align: left;
    text-wrap: pretty;
  }
}

/* Discussions, sur le modèle de WhatsApp : liste, fil avec bulles, réactions et réponses. */
.phone-chat-list { display: grid; margin: 0 calc(var(--space-4) * -1); padding: 0; list-style: none; }
.phone-chat-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
  padding: 10px var(--space-4); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 0.15s ease-out;
}
.phone-chat-row:hover { background: var(--bg-sunken); }
.phone-chat-row .grow { display: grid; min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.phone-chat-row strong { font-size: 15px; }
.phone-chat-row small { overflow: hidden; color: var(--text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.phone-chat-side { display: grid; justify-items: end; gap: 4px; align-self: start; padding-top: 2px; }
.phone-chat-side small { color: var(--text-muted); font-size: 11px; }
.phone-chat-side small.is-unread { color: var(--primary); font-weight: 600; }
.phone-chat-badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; }
.avatar.phone-chat-group { display: grid; place-items: center; background: var(--prune-900); color: var(--amber); }
.avatar.phone-chat-group svg { width: 55%; height: 55%; }
.phone-view[data-phone-view="chat"] { gap: 0; padding: 0; background: #efe7ea; }
.phone-chat-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--bg-surface); box-shadow: 0 1px 0 var(--border);
}
.phone-chat-head h2 { margin: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.phone-chat-head small { display: block; color: var(--text-secondary); font-size: 12px; }
.phone-chat-head .grow { min-width: 0; }
.phone-chat-thread { flex: 1; gap: 2px; padding: 10px 10px 12px; }
.chat .phone-chat-day { align-self: center; max-width: none; margin: 8px 0 6px; }
.phone-chat-day span { display: inline-block; padding: 3px 10px; border-radius: 8px; background: oklch(1 0 0 / 0.85); color: var(--text-secondary); font-size: 11px; font-weight: 600; box-shadow: 0 1px 1px oklch(0.3 0.03 335 / 0.12); }
.chat .phone-bubble-row { position: relative; display: grid; justify-items: start; align-self: flex-start; max-width: 82%; }
.chat .phone-bubble-row.is-mine { justify-items: end; align-self: flex-end; }
.chat .phone-bubble-row.is-first { margin-top: 6px; }
.phone-bubble {
  position: relative; display: grid; gap: 2px; min-width: 64px; padding: 6px 8px 4px 10px; border: 0;
  border-radius: 10px; background: #fff; color: var(--text-primary); font: inherit; font-size: 14px; line-height: 1.35;
  text-align: left; cursor: pointer; box-shadow: 0 1px 1px oklch(0.3 0.03 335 / 0.14);
}
.is-mine .phone-bubble { background: #f6dcef; }
.is-first:not(.is-mine) .phone-bubble { border-top-left-radius: 2px; }
.is-first.is-mine .phone-bubble { border-top-right-radius: 2px; }
.phone-bubble-author { font-size: 12px; font-weight: 700; color: var(--primary); }
.phone-bubble-author[data-tone="1"] { color: oklch(0.5 0.12 200); }
.phone-bubble-author[data-tone="2"] { color: oklch(0.52 0.13 60); }
.phone-bubble-author[data-tone="3"] { color: oklch(0.48 0.12 150); }
.phone-bubble-quote { display: grid; gap: 1px; margin: 2px 0 3px; padding: 5px 8px; border-radius: 6px; background: oklch(0.35 0.05 335 / 0.07); color: var(--text-secondary); font-size: 12px; }
.phone-bubble-quote b { color: var(--primary); font-size: 12px; }
.phone-bubble-text { overflow-wrap: anywhere; }
.phone-bubble-meta { display: inline-flex; align-items: center; justify-self: end; gap: 2px; color: var(--text-muted); font-size: 10.5px; }
.phone-ticks { display: inline-flex; color: var(--text-muted); }
.phone-ticks svg { width: 12px; height: 12px; stroke-width: 2.6; }
.phone-ticks svg + svg { margin-left: -7px; }
.phone-ticks.is-read { color: var(--lake); }
.phone-reactions { display: inline-flex; gap: 2px; margin: -5px 6px 0; padding: 1px 5px; border-radius: 999px; background: #fff; font-size: 12px; box-shadow: 0 1px 2px oklch(0.3 0.03 335 / 0.2); }
.phone-reactions span { display: inline-flex; align-items: center; gap: 2px; }
.phone-reactions span.is-mine small { color: var(--primary); font-weight: 700; }
.phone-reactions small { font-size: 10px; color: var(--text-secondary); }
.phone-bubble-actions {
  z-index: 3; display: flex; align-items: center; gap: 2px; margin-top: 4px; padding: 4px 6px; border-radius: 999px;
  background: #fff; box-shadow: 0 8px 20px -10px oklch(0.25 0.06 335 / 0.6); animation: phone-pop 0.18s var(--ease-out, ease-out) both;
}
.phone-bubble-actions button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 17px; cursor: pointer; transition: transform 0.15s ease-out, background-color 0.15s ease-out; }
.phone-bubble-actions button:hover { background: var(--bg-sunken); transform: translateY(-2px); }
.phone-bubble-actions .phone-bubble-reply { margin-left: 4px; background: var(--primary-soft); color: var(--primary); }
.phone-bubble-actions .phone-bubble-reply svg { width: 16px; height: 16px; }
[data-phone] h2[tabindex="-1"]:focus { outline: 2px solid transparent; }
@keyframes phone-pop { from { opacity: 0; transform: translateY(-4px) scale(0.96); } }
.phone-chat-compose { position: sticky; bottom: 0; flex-wrap: wrap; align-items: center; padding: 8px 10px; background: #efe7ea; }
.phone-chat-compose .input { flex: 1; min-height: 40px; border-radius: 999px; border-color: transparent; background: #fff; }
.phone-chat-compose .icon-button { width: 40px; height: 40px; border-radius: 50%; }
.phone-chat-replying { display: flex; flex-basis: 100%; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 10px; background: #fff; }
.phone-chat-replying span { display: grid; flex: 1; min-width: 0; color: var(--text-secondary); font-size: 12px; }
.phone-chat-replying b { color: var(--primary); }
.phone-chat-replying .icon-button { width: 28px; height: 28px; background: none; color: var(--text-secondary); }

/* Annuaire soumis au consentement. */
.phone-note { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); color: var(--text-secondary); font-size: 12.5px; line-height: 1.4; }
.phone-note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--primary); }
.phone-directory-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.phone-directory-row strong { display: block; font-size: 14px; }
.phone-directory-details { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 12px; }
.phone-directory-details :is(a, span) { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); text-decoration: none; }
.phone-directory-details svg { width: 12px; height: 12px; }
.phone-directory-details small { color: var(--text-muted); }
.phone-directory-write { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--primary-soft); color: var(--primary); cursor: pointer; transition: background-color 0.15s ease-out; }
.phone-directory-write:hover { background: var(--primary-line); }
.phone-directory-write svg { width: 17px; height: 17px; }
.phone-consent { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phone-consent li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-surface); }
.phone-consent-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.phone-consent-head strong { display: block; font-size: 14px; }
.phone-consent-head small { color: var(--text-secondary); font-size: 12px; }
.phone-consent-head input { width: 40px; height: 22px; accent-color: var(--primary); }
.phone-consent-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.phone-consent-fields label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--bg-sunken); font-size: 12.5px; cursor: pointer; }
.phone-consent-fields input { accent-color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .phone-bubble-actions { animation: none; }
  .phone-bubble-actions button:hover { transform: none; }
}


.member-directory { display: grid; gap: var(--space-3); }
.member-directory-audience { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.member-directory-audience legend { margin-bottom: var(--space-2); font-weight: 600; }
.member-directory-audience small { display: block; color: var(--text-secondary); font-size: var(--text-s); }

