/* Messages (iMessage/SMS look) */
.sm-root { padding: 0 16px 30px; background: #fff; min-height: 100%; }
#appview:has(.sm-root) { background: #fff; }
.sm-top { display: flex; height: 36px; align-items: center; }
.sm-link { border: 0; background: none; color: var(--blue); font-size: 16px; padding: 0; }
.sm-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 0 0; text-align: start; color: inherit; }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sm-dot.on { background: var(--blue); }
.sm-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #A5ABB6, #858994); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 600; flex-shrink: 0; }
.sm-mid { flex: 1; min-width: 0; border-bottom: .5px solid #e5e5ea; padding-bottom: 9px; }
.sm-l1 { display: flex; justify-content: space-between; gap: 6px; }
.sm-l1 b { font-size: 16.5px; }
.sm-l1 span { font-size: 14px; color: #8a8a8e; white-space: nowrap; }
.sm-prev { font-size: 14.5px; color: #8a8a8e; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.sm-thread { background: #fff; min-height: 100%; padding: 0 14px 20px; display: flex; flex-direction: column; }
#appview:has(.sm-thread) { background: #fff; }
.sm-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 10px; font-size: 12px; }
.sm-head .sm-av { width: 54px; height: 54px; font-size: 24px; }
.sm-note { align-self: center; font-size: 11.5px; color: #8a8a8e; background: #f2f2f7; border-radius: 10px; padding: 5px 10px; margin-bottom: 4px; }
#sm-msgs { display: flex; flex-direction: column; align-items: flex-start; }
.sm-day { align-self: center; font-size: 11.5px; color: #8a8a8e; margin: 14px 0 6px; font-weight: 600; }
.sm-b { background: #E9E9EB; color: #111; border-radius: 18px; padding: 8px 13px; margin: 2px 0; max-width: 78%; font-size: 16px; line-height: 1.4; white-space: pre-line; user-select: text; -webkit-user-select: text; }
.sm-noreply { text-align: center; color: #8a8a8e; font-size: 12.5px; margin-top: auto; padding-top: 20px; }

.sm-grad { display: grid; gap: 5px; width: 100%; margin: 12px 0; padding: 12px; border: 0; border-radius: 12px; text-align: start; background: #eef5ff; color: #113b6e; cursor: pointer; }
.sm-grad b { font-size: 16px; }
.sm-grad span { font-size: 14px; }
