/* ==========================================================================
   Nexos — Compartilhar (N.share) · prefixo .shr-
   Modal no desktop, folha de baixo no celular (vem do ui.modal).
   Três caminhos no topo: Pessoas do Nexos · WhatsApp · Link.
   ========================================================================== */

.shr-modal .modal-head { gap: 10px; }
.shr-modal .modal-body { padding-top: 14px; }
.shr-modal .modal-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-modal .modal-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-modal .modal-head .grow { min-width: 0; }
.shr-back { margin-left: -6px; }
.shr-head-ic { background: var(--c-bg) !important; color: var(--c-ink) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-s) 20%, transparent); }
.shr-head-emoji { font-size: 18px; line-height: 1; }
.shr-foot-note { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.3px; color: var(--text-3); min-width: 0; }
.shr-foot-note svg.lucide { width: 14px; height: 14px; }
.shr-modal .modal-foot .btn-primary { min-width: 96px; }

.shr { display: flex; flex-direction: column; gap: 18px; }

/* ---- Três caminhos ---- */
.shr-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 4px 20px 2px;
}
.shr-tabs[hidden] { display: none; }
.shr-tab {
  position: relative;
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border-radius: var(--r-lg); text-align: left;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text-2);
  transition: border-color var(--dur), background var(--dur), color var(--dur), box-shadow var(--dur), transform .12s var(--ease);
}
.shr-tab:hover { border-color: var(--border-2); background: var(--surface); color: var(--text); }
.shr-tab:active { transform: scale(.98); }
.shr-tab.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.shr-tab-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-2);
  transition: background var(--dur), color var(--dur);
}
.shr-tab-pessoas.is-on .shr-tab-ic { background: var(--accent); color: var(--on-accent); }
.shr-tab-whatsapp .shr-tab-ic { color: var(--success); }
.shr-tab-whatsapp.is-on .shr-tab-ic { background: var(--success); color: var(--on-accent); }
.shr-tab-link .shr-tab-ic { color: var(--info); }
.shr-tab-link.is-on .shr-tab-ic { background: var(--info); color: var(--on-accent); }
.shr-tab-txt { display: flex; flex-direction: column; min-width: 0; }
.shr-tab-txt b { font-size: 14px; font-weight: 680; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.shr-tab-txt small { font-size: 11.8px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-tab-badge {
  position: absolute; top: 6px; right: 7px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-full);
  display: inline-grid; place-items: center;
  background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700;
}
.shr-tab.is-on .shr-tab-badge { background: var(--accent); color: var(--on-accent); }
.shr-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Campos e listas de pessoas ---- */
.shr-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 5px 0 13px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text-3); cursor: text;
  transition: border-color var(--dur), box-shadow var(--dur), opacity var(--dur);
}
.shr-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.shr-field:focus-within > svg.lucide { color: var(--accent); }
.shr-field.is-busy { opacity: .6; pointer-events: none; }
.shr-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--text);
}
.shr-input::placeholder { color: var(--text-3); }
.shr-input:focus-visible { outline: none; }
.shr-perm {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 28px; padding: 0 7px 0 10px; border-radius: 8px; margin-left: auto;
  background: var(--surface-3); color: var(--text-2);
  font-size: 12px; font-weight: 520; letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: background var(--dur), color var(--dur);
}
.shr-perm b { font-weight: 650; color: var(--text); }
.shr-perm:hover { background: var(--active); color: var(--text); }
.shr-perm svg.lucide { width: 14px; height: 14px; }

.shr-cands { display: flex; flex-direction: column; gap: 2px; margin: 8px -6px 0; }
.shr-cand {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 6px 6px; border-radius: 12px; text-align: left;
  transition: background var(--dur);
}
.shr-cand:hover { background: var(--hover); }
.shr-cand-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shr-cand-main b { font-weight: 620; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-cand-main span { font-size: 12.3px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-cand-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  height: 32px; padding: 0 12px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.8px; font-weight: 650;
  transition: background var(--dur), color var(--dur);
}
.shr-cand-btn svg.lucide { width: 15px; height: 15px; }
.shr-cand:hover .shr-cand-btn { background: var(--accent); color: var(--on-accent); }
.shr-cand-mail { border: 1px dashed var(--border-2); }
.shr-cand .avatar.online::after { box-shadow: 0 0 0 2px var(--surface); }
/* seleção múltipla (Enviar para…) */
.shr-tick {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--border-2); color: transparent;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.shr-tick svg.lucide { width: 14px; height: 14px; stroke-width: 3; }
.shr-cand.is-sel { background: var(--accent-soft); }
.shr-cand.is-sel .shr-tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.shr-empty {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 8px; font-size: 13px; color: var(--text-3);
}
.shr-empty > svg.lucide { flex-shrink: 0; }
.shr-hint { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; font-size: 12.3px; line-height: 1.45; color: var(--text-3); }
.shr-hint > svg.lucide { flex-shrink: 0; margin-top: 2px; }

.shr-sec-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.shr-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-full); background: var(--surface-3); display: inline-grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.shr-people { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.shr-person { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 12px; transition: background var(--dur); }
.shr-person:hover { background: var(--hover); }
.shr-person .avatar.online::after { box-shadow: 0 0 0 2px var(--surface); }
.shr-person-main { flex: 1; min-width: 0; }
.shr-person-name { font-weight: 620; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-you { color: var(--text-3); font-weight: 500; }
.shr-person-sub { font-size: 12.3px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-role {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 32px; padding: 0 8px 0 11px; border-radius: 9px;
  font-size: 13px; font-weight: 560; color: var(--text-2);
  transition: background var(--dur), color var(--dur);
}
.shr-role:hover { background: var(--active); color: var(--text); }
.shr-role svg.lucide { width: 14px; height: 14px; }
.shr-role-static { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 0 10px; font-size: 13px; font-weight: 560; color: var(--text-3); }
.shr-role-static.is-owner { color: var(--text-2); }
.shr-role-static svg.lucide { width: 13px; height: 13px; color: var(--warning); }
.shr-leave { color: var(--danger); }
.shr-x { color: var(--text-3); }
.shr-x:hover { color: var(--danger); }
.shr-mail-av {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  border: 1.5px dashed var(--border-2);
}

/* ---- Cartões ---- */
.shr-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface-2);
}
.shr-card.is-on { background: var(--surface); box-shadow: var(--shadow-sm); }
.shr-card-head { display: flex; align-items: center; gap: 12px; }
.shr-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-bg); color: var(--c-ink);
}
.shr-card-title { flex: 1; min-width: 0; }
.shr-h { font-weight: 650; font-size: 14px; line-height: 1.35; color: var(--text); }
.shr-hsub { font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.shr-card .switch { flex-shrink: 0; }
.shr-card-head > .btn { flex-shrink: 0; }

/* ---- Notas ---- */
.shr-note, .shr-tip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-lg);
  font-size: 13px; line-height: 1.45;
}
.shr-note { background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--border-2); }
.shr-note > svg.lucide, .shr-tip > svg.lucide { margin-top: 1px; flex-shrink: 0; }
.shr-note b { color: var(--text); font-weight: 640; }
.shr-note code { font-family: var(--font-mono); font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text); }
.shr-note-warn { background: color-mix(in srgb, var(--warning) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.shr-note-warn > svg.lucide { color: var(--warning); }
.shr-warn {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--r-lg);
  background: var(--c-pink); color: var(--c-pink-ink);
  font-size: 13.3px; line-height: 1.5;
}
.shr-warn > svg.lucide { margin-top: 1px; flex-shrink: 0; }

/* ---- O que a pessoa vai ver ---- */
.shr-pv-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.shr-pv-list {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.shr-pv-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 6px 4px 12px; font-size: 13.3px; }
.shr-pv-row + .shr-pv-row, .shr-pv-more + .shr-pv-row, .shr-pv-row + .shr-pv-more { border-top: 1px solid var(--border); }
.shr-pv-ic { display: inline-grid; color: var(--text-3); flex-shrink: 0; }
.shr-pv-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-pv-row.is-secret { color: var(--text-2); background: repeating-linear-gradient(-45deg, var(--surface-2) 0 8px, var(--surface-3) 8px 16px); }
.shr-pv-row.is-secret .shr-pv-title { text-decoration: line-through; text-decoration-color: var(--border-2); }
.shr-pv-tag {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: var(--r-full);
  background: var(--c-pink); color: var(--c-pink-ink);
  font-size: 11.5px; font-weight: 620; white-space: nowrap;
}
.shr-eye {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-3);
  transition: background var(--dur), color var(--dur);
}
.shr-eye:hover:not(.is-static) { background: var(--active); color: var(--text); }
.shr-eye.is-static { cursor: default; }
.shr-pv-more {
  display: flex; align-items: center; gap: 6px; width: 100%;
  min-height: 38px; padding: 0 12px;
  font-size: 12.8px; font-weight: 600; color: var(--accent-ink); text-align: left;
}
.shr-pv-more:hover { background: var(--hover); }
.shr-pv-empty { padding: 14px; font-size: 13px; color: var(--text-3); text-align: center; }
.shr-pv-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }

/* ---- Item ---- */
.shr-item-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-lg);
  background: var(--c-bg); color: var(--c-ink);
}
.shr-item-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.shr-item-main { flex: 1; min-width: 0; }
.shr-item-title { font-weight: 680; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-item-sub { display: flex; align-items: center; gap: 5px; font-size: 12.3px; opacity: .82; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-item-sub svg.lucide { width: 13px; height: 13px; flex-shrink: 0; }
.shr-item-recado { margin-top: 4px; font-size: 12.8px; font-style: italic; opacity: .9; }

/* ---- Lista de compras ---- */
.shr-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, var(--c-bg), color-mix(in srgb, var(--c-s) 26%, var(--c-bg)));
  color: var(--c-ink);
}
.shr-hero-av .avatar-stack .avatar { box-shadow: 0 0 0 3px var(--c-bg); }
.shr-hero-av .avatar-stack .avatar + .avatar { margin-left: -10px; }
.shr-hero-main { flex: 1; min-width: 0; }
.shr-hero-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 720; font-size: 16px; letter-spacing: -.01em; }
.shr-hero-title svg.lucide { color: var(--c-s); }
.shr-hero-sub { margin-top: 2px; font-size: 13px; line-height: 1.45; opacity: .88; }
.shr-hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shr-hero .chip { background: color-mix(in srgb, var(--surface) 62%, transparent); color: var(--c-ink); }

/* ---- WhatsApp ---- */
.shr-wa { gap: 14px; }
.shr-wa-edit .shr-sec-head { justify-content: space-between; }
.shr-wa-text {
  width: 100%; min-height: 150px; max-height: 340px;
  font-size: 13.5px; line-height: 1.5; font-family: var(--font-ui);
  background: var(--surface-2);
}
.shr-wa-tips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.shr-wa-tips svg.lucide { width: 13px; height: 13px; }
.shr-wa-tips code { font-family: var(--font-mono); font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); }
.shr-live, .shr-mini-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.shr-live { color: var(--success); }
.shr-live svg.lucide, .shr-mini-link svg.lucide { width: 13px; height: 13px; }
.shr-mini-link { color: var(--accent-ink); padding: 3px 6px; margin: -3px -6px; border-radius: 7px; }
.shr-mini-link:hover { background: var(--hover); }

.shr-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer;
  transition: background var(--dur), border-color var(--dur);
}
.shr-toggle.is-on { background: var(--surface); border-color: var(--border-2); }
.shr-toggle .shr-ic { width: 34px; height: 34px; border-radius: 10px; }
.shr-toggle-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shr-toggle-main b { font-size: 13.5px; font-weight: 640; }
.shr-toggle-main span { font-size: 12.3px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-toggle .switch { flex-shrink: 0; }
.shr-toggle .switch:disabled { opacity: .5; }

.shr-prev-toggle { width: 100%; margin-bottom: 0; padding: 2px 0; text-align: left; }
.shr-prev-toggle svg.lucide { width: 14px; height: 14px; }
.shr-wa-prev.is-open .shr-prev-toggle { margin-bottom: 8px; }
.shr-wa-chat {
  display: flex; justify-content: flex-end;
  padding: 16px 14px; border-radius: var(--r-lg);
  background: radial-gradient(var(--dot) 1px, transparent 1.3px) 0 0 / 16px 16px, var(--c-sand);
  max-height: 320px; overflow: auto;
}
.shr-wa-bubble {
  position: relative; width: min(380px, 100%); height: max-content;
  padding: 7px 9px 5px;
  background: var(--c-mint); color: var(--text);
  border-radius: 12px 4px 12px 12px;
  box-shadow: var(--shadow-sm);
}
.shr-wa-msg { font-size: 13.3px; line-height: 1.45; word-break: break-word; }
.shr-wa-msg b { font-weight: 700; }
.shr-wa-url { color: var(--info); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.shr-wa-quote { display: inline-block; padding-left: 8px; border-left: 3px solid color-mix(in srgb, var(--text) 25%, transparent); color: var(--text-2); }
.shr-wa-time { text-align: right; font-size: 10.5px; color: var(--text-3); padding-top: 2px; }
.shr-wa-ticks { color: var(--info); letter-spacing: -2px; margin-left: 2px; }
.shr-wa-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.shr-wa-send { background: var(--success); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.shr-wa-send:hover { background: color-mix(in srgb, var(--success) 86%, var(--text)); }
:root[data-theme="dark"] .shr-wa-send { color: var(--bg); }

/* ---- Link ---- */
.shr-create { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.shr-opt { display: flex; align-items: center; gap: 9px; }
.shr-opt-label { font-size: 12.5px; font-weight: 580; color: var(--text-2); white-space: nowrap; }
.shr-create-btn { height: 38px; border-radius: 11px; }
.shr-create-btn svg[data-lucide="loader"], .shr-create-btn .lucide-loader, .shr-empty .lucide-loader { animation: shrSpin 1s linear infinite; }
@keyframes shrSpin { to { transform: rotate(360deg); } }

.shr-links { display: flex; flex-direction: column; gap: 10px; }
.shr-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
}
.shr-link.is-fresh { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); animation: pop .25s var(--ease); }
.shr-link.is-dead { background: var(--surface-2); }
.shr-link.is-dead .shr-url-text { text-decoration: line-through; color: var(--text-3); }
.shr-url {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 11px; border-radius: 10px;
  background: var(--surface-3);
}
.shr-url-ic { display: inline-grid; color: var(--text-3); }
.shr-url-ic svg.lucide { width: 15px; height: 15px; }
.shr-url-text {
  flex: 1; min-width: 0; min-height: 28px; display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  user-select: all; -webkit-user-select: all;
}
.shr-url-text b { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.shr-url .btn { flex-shrink: 0; }
.shr-copy { min-width: 100px; }
.shr-link-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding-left: 4px; }
.shr-link-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.shr-link-meta svg.lucide { width: 13px; height: 13px; }
.shr-link-acts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-right: -4px; }
.shr-link-acts .btn.is-on { background: var(--active); color: var(--text); }
.shr-revoke:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.shr-dead { margin-top: 10px; }
.shr-dead summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); padding: 4px 2px; }
.shr-dead[open] summary { margin-bottom: 8px; }

/* QR (sempre escuro sobre claro, para qualquer câmera ler) */
.shr-qr-wrap {
  display: flex; align-items: center; gap: 18px;
  padding: 14px; border-radius: var(--r-lg);
  background: var(--surface-3);
  animation: pop .22s var(--ease);
}
.shr-qr {
  width: 168px; height: 168px; flex-shrink: 0;
  color: var(--text); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.shr-qr svg { display: block; width: 100%; height: 100%; }
.shr-qr-bg { fill: var(--surface); }
.shr-qr-dot { fill: currentColor; }
:root[data-theme="dark"] .shr-qr { color: var(--bg); }
:root[data-theme="dark"] .shr-qr-bg { fill: var(--text); }
.shr-qr-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }

/* ---- Enviar para… ---- */
.shr-send .modal-body { padding-top: 12px; }
.shr-send .shr { gap: 14px; }
.shr-send-what {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--c-bg); color: var(--c-ink); font-weight: 640; font-size: 14px;
}
.shr-send-what .chip { margin-left: auto; flex-shrink: 0; background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--c-ink); }
.shr-send-emoji { font-size: 18px; line-height: 1; flex-shrink: 0; }
.shr-cands-send { margin-top: -4px; max-height: 280px; overflow: auto; }
.shr-note-input { min-height: 64px; }
.shr-send .modal-foot .btn-primary:disabled { opacity: .55; cursor: default; }

/* ---- Escolher o que compartilhar ---- */
.shr-pick-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px 12px 12px; border-radius: var(--r-lg); text-align: left;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur), transform .15s var(--ease);
}
.shr-pick-row:hover { border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.shr-pick-row > svg.lucide { color: var(--text-3); }
.shr-pick-ic {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--c-bg);
}
.shr-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shr-pick-main b { font-size: 14.5px; font-weight: 680; }
.shr-pick-sub { display: inline-flex; align-items: center; gap: 5px; font-size: 12.3px; color: var(--text-3); min-width: 0; }
.shr-pick-sub svg.lucide { width: 12px; height: 12px; flex-shrink: 0; }
.shr-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.shr-pick-space {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 108px; padding: 14px; border-radius: var(--r-lg); text-align: left;
  background: radial-gradient(120% 140% at 0% 0%, var(--c-bg), color-mix(in srgb, var(--c-s) 22%, var(--c-bg)));
  color: var(--c-ink);
  transition: transform .16s var(--ease), box-shadow .16s;
}
.shr-pick-space:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shr-pick-space .shr-pick-sub { color: inherit; opacity: .78; margin-top: auto; }
.shr-pick-emoji { font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
.shr-pick-name { font-size: 14px; font-weight: 680; line-height: 1.3; }
.shr-field-search { margin-bottom: 8px; }
.shr-pick-items { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.shr-pick-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px 8px; border-radius: 11px; text-align: left; color: var(--text-3);
  transition: background var(--dur);
}
.shr-pick-item:hover { background: var(--hover); }
.shr-pick-item-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--c-bg, var(--surface-3)); color: var(--c-ink, var(--text-2));
}
.shr-pick-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shr-pick-item-title { font-size: 13.8px; font-weight: 580; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shr-pick-item-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Celular: folha de baixo com alvos de toque generosos
   ========================================================================== */
@media (max-width: 760px) {
  .shr-modal .modal-head { padding: 10px 12px 4px 16px; }
  .shr-modal .modal-title { font-size: 16px; }
  .shr-modal .modal-head .btn-icon { width: 40px; height: 40px; }
  .shr-modal .modal-body { padding: 12px 16px 18px; }
  .shr-modal .modal-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .shr-modal .modal-foot .btn { flex: 1; height: 46px; font-size: 15px; }
  .shr-foot-note { display: none; }
  .shr { gap: 16px; }

  .shr-tabs { padding: 6px 16px 4px; gap: 6px; }
  .shr-tab { flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 10px 4px 9px; text-align: center; }
  .shr-tab-ic { width: 40px; height: 40px; }
  .shr-tab-txt { align-items: center; }
  .shr-tab-txt b { font-size: 12.8px; white-space: normal; line-height: 1.2; }
  .shr-tab-txt small { display: none; }
  .shr-tab-badge { top: 5px; right: 5px; }

  .shr-field { height: 48px; }
  .shr-input { font-size: 16px; }
  .shr-perm { height: 38px; }
  .shr-prev-toggle { min-height: 40px; }
  .shr-cand { min-height: 54px; }
  .shr-cand-btn { height: 38px; padding: 0 12px; }

  .shr-person { min-height: 54px; }
  .shr-role { height: 40px; }
  .shr .btn-sm { height: 40px; padding: 0 12px; font-size: 13px; }
  .shr .seg button { height: 38px; }
  .shr .switch::before { content: ""; position: absolute; inset: -10px -8px; }
  .shr-eye { width: 40px; height: 40px; }
  .shr-pv-row { min-height: 48px; }
  .shr-pv-tag { display: none; }
  .shr-pv-more { min-height: 46px; }

  .shr-card-head { flex-wrap: wrap; }
  .shr-card-head > .btn { flex-basis: 100%; }

  .shr-wa-text { font-size: 16px; }
  .shr-wa-actions .btn { flex: 1; height: 46px; }
  .shr-wa-chat { padding: 12px 10px; }

  .shr-create { flex-direction: column; align-items: stretch; }
  .shr-opt { justify-content: space-between; }
  .shr-opt .seg { flex: 0 1 auto; }
  .shr-create-btn { height: 46px; }
  .shr-url { flex-wrap: wrap; padding: 8px; }
  .shr-url-text { flex-basis: calc(100% - 30px); font-size: 13px; }
  .shr-url .btn { flex: 1; }
  .shr-copy { min-width: 0; }
  .shr-link-foot { flex-direction: column; align-items: stretch; }
  .shr-link-acts { margin-right: 0; }
  .shr-link-acts .btn { flex: 1; }

  .shr-qr-wrap { flex-direction: column; align-items: center; text-align: center; }
  .shr-qr { width: 210px; height: 210px; }
  .shr-qr-info { align-items: center; }

  .shr-hero { padding: 16px; gap: 12px; align-items: flex-start; flex-direction: column; }
  .shr-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shr-pick-space { min-height: 100px; padding: 12px; }
  .shr-pick-item { min-height: 52px; }
  .shr-pick-row { min-height: 64px; }
}
