/* Simos Camp — social: relationships panel, romantic connections, relationship talk (proposal editor & answer
 * dialog), block flow, invite questions.  (owner: social, prefix soc-)
 * Builds on css/base.css primitives (.sc-btn, .sc-chip, .sc-face, .sc-toggle, .sc-meter, .sc-input). Mobile-first.
 */
.soc-root {
  --soc-pink-bg: #ffeef4; --soc-pink-bd: #ffc2d6; --soc-pink-ink: #8a3a58;
  --soc-info-bg: #e6f8f7; --soc-info-bd: #9fe3dd; --soc-info-ink: #1f6f78;
  --soc-row-bg: var(--paper); --soc-row-bd: var(--sand-dark);
  display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; pointer-events: auto;
  font-family: var(--font); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .soc-root {
    --soc-pink-bg: #5a3441; --soc-pink-bd: #8c4f64; --soc-pink-ink: #ffd6e4;
    --soc-info-bg: #28474a; --soc-info-bd: #3f7a7c; --soc-info-ink: #c9f3ef;
  }
}
:root[data-theme="dark"] .soc-root {
  --soc-pink-bg: #5a3441; --soc-pink-bd: #8c4f64; --soc-pink-ink: #ffd6e4;
  --soc-info-bg: #28474a; --soc-info-bd: #3f7a7c; --soc-info-ink: #c9f3ef;
}

/* the host sheet keeps one calm height for every tab (no jumping); our own body scrolls under the pinned tabs */
.sc-panel.soc-panel { height: calc(100% - var(--safe-top, 0px) - 62px); }
@media (min-width: 700px) { .sc-panel.soc-panel { height: min(86vh, 780px); } }

/* ---------- tabs ---------- */
.soc-tabs { display: flex; gap: 6px; flex: none; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.soc-tabs::-webkit-scrollbar { display: none; }
.soc-tab {
  position: relative; flex: 1 0 auto; min-width: 66px; min-height: 54px; padding: 6px 8px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 16px; border: 2px solid var(--sand-dark); background: var(--paper); color: var(--ink-soft);
  font: 600 13px/1.1 var(--font); cursor: pointer; pointer-events: auto; box-shadow: 0 3px 0 var(--sand-dark);
  transition: transform .15s var(--ease-spring), background .2s, color .2s, box-shadow .15s;
}
.soc-tab .ic { font-size: 20px; line-height: 1; }
.soc-tab:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sand-dark); }
.soc-tab.on {
  background: linear-gradient(180deg, #5fdad8, var(--turq)); border-color: var(--turq-dark); color: #fff;
  text-shadow: 0 1px 0 rgba(21, 113, 134, .55); box-shadow: 0 3px 0 #157186;
}
.soc-tab .n {
  position: absolute; top: -6px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--wood);
  border: 2px solid var(--paper); text-shadow: none;
}
.soc-tab.on .n { background: var(--wood-dark); }

/* ---------- body & sections ---------- */
.soc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 18px; }
.soc-sec { display: flex; flex-direction: column; gap: 8px; }
.soc-sec-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.soc-sec-h .ic { font-size: 18px; }
.soc-sec-h .count, .soc-more summary .count, .soc-label .count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.soc-hint { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.soc-tiny { font-size: 12px; color: var(--ink-soft); line-height: 1.25; }
.soc-tiny.wait { color: var(--turq-dark); font-weight: 600; }
.soc-mini { font-size: 12px; margin-left: 6px; }
.soc-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ---------- rows ---------- */
.soc-row {
  display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 10px;
  background: var(--soc-row-bg); border: 2px solid var(--soc-row-bd); border-radius: 18px;
  box-shadow: 0 2px 0 rgba(122, 81, 50, .12); position: relative;
}
.soc-row.soft { min-height: 54px; background: rgba(255, 255, 255, .45); box-shadow: none; }
.soc-row .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.soc-row .nm { font-weight: 700; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soc-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.soc-btns { display: flex; gap: 6px; flex: none; }
.soc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.soc-chips .sc-chip { font-size: 11.5px; padding: 1px 8px; border-width: 1.5px; }
.soc-face { flex: none; display: grid; place-items: center; }
.soc-face-fb .soc-initial { font-weight: 700; color: #fff; font-size: 18px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }

.soc-ibtn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--sand-dark); background: var(--white); color: var(--ink); font: 700 16px var(--font);
  box-shadow: 0 3px 0 var(--sand-dark); cursor: pointer; pointer-events: auto;
  transition: transform .12s var(--ease-spring), box-shadow .12s;
}
.soc-ibtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sand-dark); }
.soc-ibtn:disabled { opacity: .35; box-shadow: none; cursor: default; }
.soc-ibtn.star { color: #d49a12; }
.soc-ibtn.soft { color: var(--ink-faint); }
.soc-ibtn:focus-visible, .soc-row:focus-visible, .soc-tab:focus-visible, .soc-icon:focus-visible, .soc-pick:focus-visible, .soc-reason:focus-visible,
.soc-type:focus-visible, .soc-rule:focus-visible, .soc-learn:focus-visible {
  outline: 3px solid var(--turq); outline-offset: 2px;
}

.soc-hearts { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; color: #f3b8c9; }
.soc-hearts i { font-style: normal; }
.soc-hearts i.on { color: var(--heart); }

/* ---------- best friends ---------- */
.soc-rank {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; background: var(--sand); border: 2px solid var(--sand-dark); color: var(--ink-soft);
}
.soc-rank.r1, .soc-rank.r2, .soc-rank.r3 { font-size: 19px; background: #fff7d6; border-color: #f0cf6a; }
.soc-handle {
  flex: none; width: 22px; align-self: stretch; display: grid; place-items: center; margin-left: -2px;
  font-size: 18px; color: var(--ink-faint); cursor: grab; touch-action: none; pointer-events: auto;
}
.soc-best-row { transition: box-shadow .15s, border-color .15s, background .15s; }
.soc-best-row .soc-btns .soc-ibtn { width: 36px; height: 36px; font-size: 13px; }
.soc-sorting .soc-best-row:not(.soc-dragging) { transition: transform .15s var(--ease-soft); }
.soc-best-row.soc-dragging {
  z-index: 3; border-color: var(--turq); background: #f0fffd; cursor: grabbing;
  box-shadow: 0 12px 26px rgba(30, 50, 64, .28); transition: none;
}
.soc-best-row.soc-dragging .soc-handle { cursor: grabbing; color: var(--turq-dark); }

/* ---------- getting-to-know progress ---------- */
.soc-progress { display: flex; align-items: center; gap: 8px; }
.soc-meter { flex: 1 1 auto; height: 9px; max-width: 160px; }
.soc-meter > i { background: linear-gradient(90deg, #ffd3a1, #ff9f6b); }

/* ---------- invites waiting ---------- */
.soc-inbox {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 12px; text-align: left;
  border-radius: 18px; border: 2px solid #f0cf6a; background: linear-gradient(135deg, #fff7d6, #fffaf0);
  color: #6b5320; font-family: var(--font); cursor: pointer; pointer-events: auto; box-shadow: 0 3px 0 #e6c35a;
  animation: soc-glow 2.6s ease-in-out infinite;
}
.soc-inbox:active { transform: translateY(2px); box-shadow: 0 1px 0 #e6c35a; }
.soc-inbox .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.soc-inbox b { font-size: 15px; color: #5a4414; }
.soc-inbox .soc-tiny { color: #8a6d2a; }
.soc-inbox .go { flex: none; font-weight: 700; font-size: 14px; color: var(--wood-dark); }
@keyframes soc-glow { 0%, 100% { box-shadow: 0 3px 0 #e6c35a, 0 0 0 0 rgba(255, 215, 94, 0); } 50% { box-shadow: 0 3px 0 #e6c35a, 0 0 0 5px rgba(255, 215, 94, .35); } }

/* ---------- notes & empty states ---------- */
.soc-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 16px;
  background: var(--soc-pink-bg); border: 2px solid var(--soc-pink-bd); color: var(--soc-pink-ink);
  font-size: 13.5px; line-height: 1.38;
}
.soc-note .ic { font-size: 18px; line-height: 1.1; }
.soc-note b { font-weight: 700; }
.soc-note.info { background: var(--soc-info-bg); border-color: var(--soc-info-bd); color: var(--soc-info-ink); }
.soc-note.soc-care { background: #fff7e0; border-color: #f0cf6a; color: #6b5320; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soc-note.soc-care { background: #4d4128; border-color: #8a7336; color: #ffecb8; } }
:root[data-theme="dark"] .soc-note.soc-care { background: #4d4128; border-color: #8a7336; color: #ffecb8; }
.soc-empty {
  text-align: center; padding: 16px 14px 14px; border: 2px dashed var(--sand-dark); border-radius: 18px;
  color: var(--ink-soft); background: rgba(255, 255, 255, .3); font-size: 14px; line-height: 1.35;
}
.soc-empty .big { font-size: 36px; line-height: 1.1; margin-bottom: 4px; animation: soc-float 3s ease-in-out infinite; }
.soc-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.soc-empty p { margin: 2px 0 0; }

/* ---------- love tab ---------- */
.soc-couple {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px;
  background: linear-gradient(135deg, #ffe3ee 0%, #fff4e0 100%); border: 2px solid #ffb3c9; color: #6e3148;
  box-shadow: 0 3px 0 rgba(217, 72, 122, .18);
}
.soc-couple .pair { display: flex; align-items: center; flex: none; }
.soc-couple .pair .soc-face:first-child { margin-right: -6px; }
.soc-couple .pair .soc-face:last-child { margin-left: -6px; }
.soc-couple .heart { position: relative; z-index: 1; font-size: 22px; animation: soc-beat 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .8)); }
.soc-couple .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.soc-couple .nm { font-weight: 700; font-size: 17px; }
.soc-couple .soc-tiny { color: #8a4a62; }
.soc-couple .sc-btn { flex: none; white-space: nowrap; }
.soc-more { border-radius: 18px; border: 2px solid var(--sand-dark); background: rgba(255, 255, 255, .3); padding: 0 10px; }
.soc-more[open] { padding-bottom: 10px; }
.soc-more summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px; color: var(--ink); pointer-events: auto;
}
.soc-more summary::-webkit-details-marker { display: none; }
.soc-more summary::after { content: '▾'; color: var(--ink-faint); transition: transform .2s; }
.soc-more[open] summary::after { transform: rotate(180deg); }
.soc-more summary .count { margin-left: auto; }
.soc-row .sc-toggle { flex: none; }
.soc-row .sc-toggle.on { background: var(--heart); }

/* ---------- romantic connections (rel v2) ---------- */
.soc-rom {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 22px;
  background: linear-gradient(135deg, #ffe3ee 0%, #fff4e0 100%); border: 2px solid #ffb3c9; color: #6e3148;
  box-shadow: 0 3px 0 rgba(217, 72, 122, .18);
}
.soc-rom.t-situationship { background: linear-gradient(135deg, #efe8ff 0%, #fff1f6 100%); border-color: #cdb8ff; box-shadow: 0 3px 0 rgba(128, 96, 214, .18); }
.soc-rom.t-open { background: linear-gradient(135deg, #e3f8f4 0%, #fff4e0 55%, #ffe8f1 100%); border-color: #9fe3cf; box-shadow: 0 3px 0 rgba(46, 160, 140, .18); }
.soc-rom-top { display: flex; align-items: center; gap: 12px; }
.soc-rom .pair { display: flex; align-items: center; flex: none; }
.soc-rom .pair .soc-face:first-child { margin-right: -6px; }
.soc-rom .pair .soc-face:last-child { margin-left: -6px; }
.soc-rom .heart { position: relative; z-index: 1; font-size: 22px; animation: soc-beat 1.6s ease-in-out infinite; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .8)); }
.soc-rom .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.soc-rom .nm { font-weight: 700; font-size: 17px; }
.soc-rom .soc-tiny { color: #8a4a62; }
.soc-rom .soc-note { font-size: 12.5px; padding: 8px 10px; }
.soc-rom-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.soc-rom-btns .sc-btn { flex: 1 1 140px; }
.soc-tchip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, .75); border: 1.5px solid currentColor; color: #b03a6a;
}
.soc-rom.t-situationship .soc-tchip { color: #6a4bc4; }
.soc-rom.t-open .soc-tchip { color: #1f7f6d; }
.soc-rchips { display: flex; flex-wrap: wrap; gap: 5px; }
.soc-rchip {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 9px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink); background: rgba(255, 255, 255, .8);
  border: 1.5px solid var(--sand-dark); overflow-wrap: anywhere;
}
.soc-rchip i { font-style: normal; flex: none; }
.soc-rchip.custom { border-style: dashed; }
.soc-rchip.new { border-color: var(--turq-dark); background: #dff8f5; box-shadow: 0 0 0 2px rgba(46, 196, 198, .25); }
.soc-ibtn.talk { color: var(--heart); }
.soc-lock {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: #fff7e0; border: 2px solid #f0cf6a; color: #6b5320;
}
.soc-lock .ic { font-size: 26px; flex: none; }
.soc-lock > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.soc-lock .soc-tiny { color: #8a6d2a; }
.soc-lock .sc-btn { flex: none; }
.soc-learn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; text-align: left;
  border-radius: 18px; border: 2px solid var(--soc-info-bd); background: var(--soc-info-bg); color: var(--soc-info-ink);
  font-family: var(--font); cursor: pointer; pointer-events: auto; box-shadow: 0 3px 0 var(--soc-info-bd);
}
.soc-learn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--soc-info-bd); }
.soc-learn .ic { font-size: 24px; flex: none; }
.soc-learn .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.soc-learn .txt .soc-tiny { color: inherit; opacity: .85; }
.soc-learn .go { flex: none; font-size: 22px; font-weight: 700; }

/* ---------- relationship talk (inside ui.modal) ---------- */
.soc-prop { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.soc-prop .soc-label { margin-top: 4px; }
.soc-lead { margin: 0; font-weight: 700; color: var(--ink); }
.soc-types { display: flex; flex-direction: column; gap: 6px; }
.soc-type {
  display: grid; grid-template-columns: 30px 1fr; grid-template-areas: 'ic lb' 'ic ds'; column-gap: 8px; align-items: center;
  min-height: 52px; padding: 7px 12px; border-radius: 16px; text-align: left; cursor: pointer; pointer-events: auto;
  border: 2px solid var(--sand-dark); background: var(--white); color: var(--ink); font-family: var(--font);
  transition: background .15s, border-color .15s, transform .15s var(--ease-spring);
}
.soc-type .ic { grid-area: ic; font-size: 24px; line-height: 1; }
.soc-type .lb { grid-area: lb; font-weight: 700; font-size: 15px; }
.soc-type .ds { grid-area: ds; font-size: 12px; color: var(--ink-soft); line-height: 1.25; }
.soc-type.on { border-color: var(--heart); background: #fff0f5; box-shadow: 0 0 0 3px rgba(255, 107, 154, .22); }
.soc-type.t-situationship.on { border-color: #8f6fe8; background: #f3eeff; box-shadow: 0 0 0 3px rgba(143, 111, 232, .22); }
.soc-type.t-open.on { border-color: #2ea08c; background: #e9faf5; box-shadow: 0 0 0 3px rgba(46, 160, 140, .22); }
.soc-type:active { transform: scale(.98); }
.soc-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 5px; }
.soc-rule {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 10px; border-radius: 14px; text-align: left;
  border: 2px solid var(--sand-dark); background: var(--white); color: var(--ink); font: 600 13px/1.2 var(--font);
  cursor: pointer; pointer-events: auto; transition: background .15s, border-color .15s;
}
.soc-rule .ic { font-size: 17px; flex: none; }
.soc-rule .lb { flex: 1 1 auto; min-width: 0; }
.soc-rule .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--sand-dark); background: #fff; color: #fff; }
.soc-rule.on { border-color: var(--turq-dark); background: #e8fbf8; }
.soc-rule.on .tick { background: var(--turq); border-color: var(--turq-dark); }
.soc-rule.locked { opacity: 1; cursor: default; background: #f0fffd; }
.soc-rule:disabled { color: var(--ink); }
.soc-customs { display: flex; flex-direction: column; gap: 6px; }
.soc-custom { font-size: 14px; min-height: 40px; }
.soc-pcard {
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(135deg, #ffe3ee 0%, #fff4e0 100%); border: 2px solid #ffb3c9; color: #6e3148;
}
.soc-pcard.t-situationship { background: linear-gradient(135deg, #efe8ff 0%, #fff1f6 100%); border-color: #cdb8ff; color: #4a3386; }
.soc-pcard.t-open { background: linear-gradient(135deg, #e3f8f4 0%, #fff4e0 100%); border-color: #9fe3cf; color: #1f5d52; }
.soc-pcard-h { display: flex; align-items: center; gap: 10px; }
.soc-pcard-h .ic { font-size: 30px; flex: none; }
.soc-pcard-h > div { display: flex; flex-direction: column; gap: 1px; }
.soc-pcard-h b { font-size: 16px; }
.soc-pcard .soc-tiny { color: inherit; opacity: .85; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .soc-rom, :root:not([data-theme="light"]) .soc-pcard { background: #4a2f3b; border-color: #8c4f64; color: #ffd6e4; }
  :root:not([data-theme="light"]) .soc-rom .soc-tiny, :root:not([data-theme="light"]) .soc-pcard .soc-tiny { color: #f5c3d5; }
  :root:not([data-theme="light"]) .soc-rchip, :root:not([data-theme="light"]) .soc-tchip { background: rgba(0, 0, 0, .25); color: #ffe7ef; }
  :root:not([data-theme="light"]) .soc-lock { background: #4d4128; border-color: #8a7336; color: #ffecb8; }
  :root:not([data-theme="light"]) .soc-lock .soc-tiny { color: #f5dfa0; }
}
:root[data-theme="dark"] .soc-rom, :root[data-theme="dark"] .soc-pcard { background: #4a2f3b; border-color: #8c4f64; color: #ffd6e4; }
:root[data-theme="dark"] .soc-rom .soc-tiny, :root[data-theme="dark"] .soc-pcard .soc-tiny { color: #f5c3d5; }
:root[data-theme="dark"] .soc-rchip, :root[data-theme="dark"] .soc-tchip { background: rgba(0, 0, 0, .25); color: #ffe7ef; }
:root[data-theme="dark"] .soc-lock { background: #4d4128; border-color: #8a7336; color: #ffecb8; }
:root[data-theme="dark"] .soc-lock .soc-tiny { color: #f5dfa0; }

/* ---------- groups ---------- */
.soc-gicon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(180deg, #d4f7f2, #86e6dc); border: 2px solid var(--turq-dark); box-shadow: 0 3px 0 #157186;
}
.soc-gicon.small { width: 44px; height: 44px; font-size: 24px; border-radius: 14px; }
.soc-group .who { gap: 4px; }
.soc-stack { display: flex; align-items: center; padding-left: 6px; }
.soc-stack .soc-face { margin-left: -6px; border: 2px solid #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.soc-more-n { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.soc-form {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px;
  background: var(--paper); border: 2px solid var(--sand-dark); box-shadow: 0 3px 0 rgba(122, 81, 50, .14);
}
.soc-form.disabled { background: rgba(255, 255, 255, .3); border-style: dashed; box-shadow: none; }
.soc-label { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.soc-namerow { display: flex; gap: 8px; align-items: center; }
.soc-namerow .sc-input { flex: 1 1 auto; min-width: 0; }
.soc-icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.soc-icon {
  aspect-ratio: 1; min-height: 38px; padding: 0; border-radius: 12px; border: 2px solid var(--sand-dark); background: var(--white);
  font-size: 20px; line-height: 1; cursor: pointer; pointer-events: auto; transition: transform .15s var(--ease-spring), background .15s, border-color .15s;
}
.soc-icon.on { border-color: var(--turq-dark); background: #dff8f5; transform: scale(1.08); box-shadow: 0 0 0 3px rgba(46, 196, 198, .35); }
.soc-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.soc-pick {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 3px 12px 3px 4px; border-radius: 999px;
  border: 2px solid var(--sand-dark); background: var(--white); color: var(--ink); font: 600 14px var(--font); cursor: pointer; pointer-events: auto;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease-spring);
}
.soc-pick .soc-face { border-width: 1.5px; }
.soc-pick.on { background: var(--turq); border-color: var(--turq-dark); color: #fff; text-shadow: 0 1px 0 rgba(21, 113, 134, .5); }
.soc-pick.on::after { content: '✓'; font-weight: 700; }
.soc-pick:active { transform: scale(.96); }
.soc-submit { margin-top: 6px; align-self: stretch; }

/* ---------- everyone ---------- */
.soc-search { flex: none; }
.soc-tap { cursor: pointer; }
.soc-tap.open { border-color: var(--turq); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.soc-chev { flex: none; width: 20px; text-align: center; font-size: 20px; color: var(--ink-faint); }
.soc-exp { display: flex; flex-direction: column; gap: 0; }
.soc-actions {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin: -2px 6px 0; border-radius: 0 0 16px 16px;
  background: var(--soc-info-bg); border: 2px solid var(--soc-info-bd); border-top: 0;
  animation: soc-drop .2s var(--ease-soft);
}
.soc-actions .sc-btn { flex: 1 1 auto; }

/* ---------- block flow (inside ui.modal) ---------- */
.soc-block { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.soc-block-who { display: flex; align-items: center; gap: 10px; }
.soc-block-who > div { display: flex; flex-direction: column; }
.soc-block-q { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.soc-reasons { display: flex; flex-direction: column; gap: 6px; }
.soc-reason {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border-radius: 14px; text-align: left;
  border: 2px solid var(--sand-dark); background: var(--white); color: var(--ink); font: 600 15px/1.2 var(--font);
  cursor: pointer; pointer-events: auto; transition: background .15s, border-color .15s;
}
.soc-reason .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sand-dark); background: #fff; }
.soc-reason .ic { font-size: 18px; }
.soc-reason.on { border-color: var(--red); background: #fff1f1; color: #7d2323; }
.soc-reason.on .dot { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 42%, #fff 46%); }
.soc-note-in { min-height: 64px; resize: none; font-size: 15px; }
.soc-warn { margin: 0; color: var(--red-dark); font-size: 13px; font-weight: 600; }

/* ---------- motion ---------- */
.soc-anim > * { animation: soc-in .32s var(--ease-soft) both; }
.soc-anim > *:nth-child(2) { animation-delay: .04s; }
.soc-anim > *:nth-child(3) { animation-delay: .08s; }
.soc-anim > *:nth-child(4) { animation-delay: .12s; }
@keyframes soc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes soc-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes soc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes soc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .soc-tab { flex-direction: row; gap: 6px; min-height: 46px; font-size: 14px; }
  .soc-tab .ic { font-size: 18px; }
}
@media (max-width: 380px) {
  .soc-tab { min-width: 58px; font-size: 12px; padding: 5px 5px; }
  .soc-row { gap: 8px; padding: 7px 8px; }
  .soc-best-row .soc-btns .soc-ibtn { width: 32px; height: 32px; }
}
