/* Texting (Textable from Vested) - admin module. Classes prefixed .tx- */
.tx-intro { margin-bottom: 18px; display: grid; gap: 12px; max-width: 980px; }
.tx-tiles { margin-bottom: 22px; }
.tx-empty { margin: 0 0 16px; }

/* Conversation */
.tx-thread { list-style: none; margin: 0 0 18px; padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; }
.tx-msg { display: flex; flex-direction: column; max-width: 78%; }
.tx-in { align-self: flex-start; }
.tx-out { align-self: flex-end; align-items: flex-end; }
.tx-bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; word-break: break-word; }
.tx-in .tx-bubble { background: var(--sand); color: var(--walnut); border-bottom-left-radius: 6px; }
.tx-out .tx-bubble { background: var(--dusk); color: #fff; border-bottom-right-radius: 6px; }
.tx-bad .tx-bubble { background: #F6D5D0; color: #5A1A12; }
.tx-bubble-solo { background: var(--sand); color: var(--walnut); margin-bottom: 14px; max-width: 640px; }
.tx-media { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; opacity: .9; }
.tx-meta { margin: 4px 6px 0; font-size: .8rem; color: var(--ink-soft); }
.tx-send { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tx-send textarea { min-height: 84px; }
.tx-sim { margin-top: 16px; font-size: .9rem; }
.tx-sim summary { cursor: pointer; color: var(--ink-soft); font-weight: 700; }
.tx-sim-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 10px; }
.tx-sim-form .f { flex: 1 1 240px; }

/* Inbox */
.tx-inbox { margin: 0; }
.tx-inbox > li { padding: 0; margin: 0; border: 0; }
.tx-row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.tx-row:last-child a { border-bottom: 0; }
.tx-row a:hover, .tx-row a:focus-visible { background: var(--linen); }
.tx-who { font-weight: 800; color: var(--walnut); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tx-last { grid-column: 1; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-when { grid-column: 2; grid-row: 1; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.tx-unread a { box-shadow: inset 3px 0 0 var(--terracotta); }
.tx-unread .tx-last { color: var(--walnut); font-weight: 700; }
.tx-blasts { margin-top: 22px; }
.tx-compose { display: grid; gap: 16px; }
.tx-recipients li { padding: 3px 0; }
@media (max-width: 640px) {
  .tx-msg { max-width: 92%; }
  .tx-row a { grid-template-columns: 1fr; }
  .tx-when { grid-column: 1; grid-row: auto; }
}

/* People filters added for texting lists */
.pp-age { min-width: 90px !important; max-width: 110px; }
.pp-phone-filter { padding-bottom: 11px; }
.pp-entry-sms .pp-entry-icon { background: #DCE6EF; color: var(--dusk); }

/* Fixed-height boxes that scroll inside themselves (Jason, 2026-12-01: "so it doesn't get crazy long") */
.tx-thread { max-height: 320px; border: 1px solid var(--line, #e8dccb); border-radius: 12px; padding: 12px; background: #fff; }
#pp-timeline-live { max-height: 380px; overflow-y: auto; border: 1px solid var(--line, #e8dccb); border-radius: 12px; padding: 4px 12px; }
#pp-timeline-live .pp-empty { margin: 8px 0; }

/* Refresh control for live areas (texting.js) */
.tx-livebar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.toolbar .tx-livebar { margin: 0 10px 0 0; display: inline-flex; }
.tx-livebar .icon { width: 15px; height: 15px; }
.tx-livebar.is-busy .icon { animation: tx-spin .8s linear infinite; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tx-livebar.is-busy .icon { animation: none; } }

/* Text a list: the whole recipient list, scrolling inside the side panel */
.tx-recipients { max-height: 420px; overflow-y: auto; border: 1px solid var(--line, #e8dccb); border-radius: 10px; padding: 0 12px; margin-top: 8px; }
.tx-missing .btn-a { margin-right: 10px; }
