/* ⑦ 短信页 —— 取自 origin/main messages/_components/* 的 Tailwind class（注释写组件名）。 */
.muted { color: var(--ink-muted); }
.muted.sm, small.muted { font-size: 12px; }
.x { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #64748B; margin-left: auto; flex: none; }
.btn-pri { display: inline-flex; height: 40px; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--brand-700); padding: 0 16px; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; flex: none; transition: opacity .2s; }
.btn-pri.sm { height: 32px; border-radius: 8px; padding: 0 12px; font-size: 13px; }
.btn-pri.full { width: 100%; }
.btn-pri.off { opacity: .5; }
.b-out { display: inline-flex; height: 40px; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid #D8E0F0; background: #fff; padding: 0 16px; font-size: 14px; font-weight: 500; color: #1C3E60; white-space: nowrap; flex: none; }
.b-out.sm { height: 32px; border-radius: 8px; padding: 0 12px; font-size: 13px; }
.b-out.red { border-color: var(--danger-border); color: var(--danger); }
.b-out.dis { opacity: .5; }
.caret { display: inline-block; width: 1.5px; height: 16px; background: #0A1629; margin-left: 1px; vertical-align: -3px; animation: kt-caret 1s steps(1) infinite; }
@keyframes kt-caret { 50% { opacity: 0; } }
.vip { margin-left: 6px; border-radius: 999px; background: var(--warning-bg); color: var(--warning); padding: 0 6px; font-size: 11px; font-weight: 700; line-height: 18px; }
.seg { display: inline-flex; gap: 3px; border-radius: 10px; background: #F3F4F6; padding: 3px; align-self: flex-start; }
.seg-i { height: 28px; display: inline-flex; align-items: center; border-radius: 8px; padding: 0 12px; font-size: 13px; font-weight: 500; color: #64748B; white-space: nowrap; }
.seg-i.on { background: #fff; font-weight: 600; color: #0A1629; box-shadow: 0 1px 2px rgba(10, 22, 41, .08); }

/* ---------- sms-inbox.tsx：页面与卡片（1144 宽，320 / 1fr / 300） ---------- */
.mi { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; padding: 20px 32px 24px; }
.mh { display: flex; align-items: flex-end; gap: 12px; flex: none; }
.mh-trig { color: #94A3B8; margin-bottom: 30px; }
.mh-t h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; color: #0A1629; }
.mh-t p { margin: 0; font-size: 13px; line-height: 20px; color: #64748B; }
.mh-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ar-entry { display: inline-flex; height: 40px; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid #D8E0F0; background: #fff; padding: 0 14px; font-size: 14px; font-weight: 500; color: #1C3E60; white-space: nowrap; }
.ar-entry.open { border-color: #3DCAB1; background: #F1F8F4; }
.ar-entry b { border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 20px; background: #F3F4F6; color: #64748B; }
.ar-entry b.on { background: var(--success-bg); color: var(--success); }
.mcard { flex: 1; min-height: 0; border-radius: 16px; border: 1px solid #E5E7EB; background: #fff; box-shadow: 0 2px 8px rgba(10, 22, 41, .04); overflow: hidden; }
.mgrid { height: 100%; display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; }

/* ---------- sms-thread-list.tsx ---------- */
.tl { border-right: 1px solid var(--divider); display: flex; flex-direction: column; min-height: 0; }
.tl-tools { display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--divider); padding: 14px 16px; }
.srch { position: relative; display: flex; height: 40px; align-items: center; border-radius: 12px; border: 1px solid #D8E0F0; padding: 0 12px 0 36px; font-size: 14px; color: #94A3B8; }
.srch .lu { position: absolute; left: 12px; top: 11px; color: #94A3B8; }
.srch.focus { border-color: #3DCAB1; box-shadow: 0 0 0 3px rgba(61, 202, 177, .35); }
.srch .v { color: #0A1629; }
.tl-rows { flex: 1; min-height: 0; overflow: hidden; }
.tl-row { display: flex; gap: 12px; border-bottom: 1px solid var(--divider); padding: 14px 16px; }
.tl-row.sel { background: #F1F8F4; box-shadow: inset 3px 0 0 #3DCAB1; }
.tl-av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-l1 { display: flex; align-items: baseline; gap: 8px; }
.tl-l1 b { font-size: 14px; font-weight: 600; color: #0A1629; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-l1 span { margin-left: auto; font-size: 12px; color: #94A3B8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-l2 { font-size: 12px; color: #94A3B8; }
.tl-l3 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748B; }
.tl-l3 > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-badge { height: 18px; min-width: 18px; border-radius: 999px; background: var(--brand-700); padding: 0 4px; font-size: 11px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tl-noact { border-radius: 999px; background: #F3F4F6; padding: 0 6px; font-size: 11px; font-weight: 500; color: #64748B; line-height: 18px; white-space: nowrap; flex: none; }

/* ---------- sms-conversation.tsx ---------- */
.cv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cv-h { flex: none; height: 64px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--divider); padding: 0 20px; }
.cv-h > div { flex: 1; min-width: 0; }
.cv-n { display: flex; align-items: center; } .cv-n b { font-size: 16px; font-weight: 600; color: #0A1629; }
.cv-h small { font-size: 12px; color: #64748B; }
.cv-body { flex: 1; min-height: 0; overflow: hidden; background: var(--surface-subtle); display: flex; flex-direction: column; justify-content: flex-end; }
.cv-stack { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.sep { display: flex; justify-content: center; } .sep span { border-radius: 999px; background: var(--divider); padding: 2px 10px; font-size: 12px; color: #64748B; }
.b-wrap { display: flex; flex-direction: column; max-width: 70%; animation: kt-bin .3s ease; }
@keyframes kt-bin { from { opacity: 0; transform: translateY(6px); } }
.b-wrap.in { align-self: flex-start; align-items: flex-start; }
.b-wrap.out { align-self: flex-end; align-items: flex-end; }
.b { padding: 10px 14px; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.b.in { border-radius: 16px 16px 16px 4px; border: 1px solid #E5E7EB; background: #fff; color: #1C3E60; }
.b.st { border-radius: 16px 16px 4px 16px; background: var(--brand-700); color: #fff; }
.b.sys { border-radius: 12px; background: var(--divider); padding: 8px 12px; text-align: center; font-size: 12px; line-height: 18px; color: #64748B; }
.b.ai { border-radius: 16px 16px 4px 16px; border: 1px solid #D4CBF9; background: #F4F0FD; color: #1C3E60; }
.ai-lab { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; color: #6D28D9; }
.b-meta { margin-top: 4px; font-size: 11px; color: #94A3B8; display: flex; align-items: center; gap: 4px; }
.ai-more { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #64748B; }
.tr-link { margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #7C3AED; }
.tr-res { margin-top: 4px; display: flex; align-items: flex-start; gap: 4px; font-size: 12px; line-height: 18px; color: #64748B; animation: kt-bin .3s ease; }
.tr-res a { color: #7C3AED; white-space: nowrap; }
.tr-res .lu { margin-top: 3px; }
.tr-link.r, .tr-res.r { align-self: flex-end; }
.pbar, .ebar { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 12px; font-size: 14px; animation: kt-bin .3s ease; }
.pbar { border: 1px solid #A78BFA; background: rgba(245, 243, 255, .6); color: #1C3E60; } .pbar .lu { color: #7C3AED; flex: none; }
.pbar b, .ebar b { flex: 1; font-weight: 600; }
.ebar { border: 1px solid #10B981; background: #ECFDF5; color: #065F46; } .ebar .lu { color: #059669; flex: none; }
.sug { border-radius: 16px; border: 2px solid #A78BFA; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; animation: kt-bin .3s ease; }
.sug-h { display: flex; align-items: center; gap: 6px; color: #7C3AED; } .sug-h b { font-weight: 600; }
.sug-more { margin-left: auto; color: #94A3B8; }
.sug-b { display: flex; align-items: center; gap: 8px; } .sug-b b { font-size: 16px; color: #0A1629; } .sug-b .lu { color: #94A3B8; }
.sug-b2 { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.free { border-radius: 4px; background: #ECFDF5; padding: 2px 6px; font-size: 12px; font-weight: 500; color: #059669; }
.sug .btn-pri { align-self: flex-start; }

/* ---------- sms-composer.tsx / sms-quick-bar.tsx ---------- */
.cp { position: relative; flex: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--divider); background: #fff; padding: 12px 20px 16px; }
.qb { display: flex; gap: 8px; }
.qb-b { height: 28px; display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid #D8E0F0; background: #fff; padding: 0 10px; font-size: 12px; font-weight: 500; color: #1C3E60; }
.qb-b.hi { border-color: #3DCAB1; background: #F1F8F4; color: var(--brand-700); }
.cp-row { display: flex; align-items: flex-start; gap: 10px; }
.ta { flex: 1; min-width: 0; height: 64px; overflow: hidden; border-radius: 12px; border: 1px solid #D8E0F0; padding: 10px 12px; font-size: 14px; line-height: 22px; }
.ta.focus { border-color: #3DCAB1; box-shadow: 0 0 0 3px rgba(61, 202, 177, .35); }
.ta-ph { color: #94A3B8; } .ta-t { color: #0A1629; }
.cp-row .btn-pri { padding: 0 18px; }
.chip-row { display: flex; justify-content: flex-end; margin-top: -4px; padding-right: 74px; }
.tr-chip { height: 28px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid #DDD6FE; background: #F5F3FF; padding: 0 10px; font-size: 12px; font-weight: 500; color: #7C3AED; animation: kt-bin .3s ease; }
.cp-cnt { font-size: 12px; color: #94A3B8; }
.slp { position: absolute; bottom: 100%; left: 20px; margin-bottom: 8px; width: 400px; z-index: 20; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; padding: 16px; box-shadow: 0 8px 24px rgba(10, 22, 41, .18); display: flex; flex-direction: column; gap: 10px; animation: kt-bin .25s ease; }
.slp-h { display: flex; align-items: center; gap: 6px; } .slp-h b { font-size: 14px; color: #0A1629; } .slp-h small { font-size: 11px; color: #64748B; }
.slp-h .teal { color: #3DCAB1; }
.slp-f { display: flex; gap: 6px; } .slp-f span { height: 30px; display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid #E5E7EB; padding: 0 10px; font-size: 12px; color: #1C3E60; }
.slp-list { display: flex; flex-direction: column; gap: 6px; }
.slp-r { height: 36px; display: flex; align-items: center; gap: 10px; border-radius: 8px; background: rgba(241, 245, 249, .6); padding: 0 10px; font-size: 13px; }
.slp-r.on { background: var(--brand-100); }
.slp-r i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.slp-r.on i { background: #3DCAB1; border-color: #3DCAB1; }
.slp-r b { font-weight: 600; color: #0A1629; font-variant-numeric: tabular-nums; } .slp-r span { margin-left: auto; font-size: 12px; color: #64748B; }
.slp-prev { border-radius: 8px; background: rgba(241, 245, 249, .6); padding: 8px 10px; font-size: 12px; line-height: 18px; color: #1C3E60; animation: kt-bin .25s ease; }
.slp-foot { display: flex; align-items: center; gap: 8px; } .slp-foot small { flex: 1; font-size: 11px; color: #64748B; }
.slp-btn { height: 34px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--brand-700); padding: 0 14px; font-size: 12px; font-weight: 600; color: #fff; }

/* ---------- sms-context-panel.tsx / sms-customer-card.tsx ---------- */
.ctx { border-left: 1px solid var(--divider); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; min-height: 0; }
.ctx-sec { display: flex; flex-direction: column; gap: 8px; }
.ctx-lab { font-size: 12px; font-weight: 500; color: #64748B; }
.cc { display: flex; gap: 12px; align-items: center; }
.cc-av { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cc-n { display: flex; align-items: center; } .cc-n b { font-size: 16px; font-weight: 600; color: #0A1629; }
.cc small { font-size: 12px; color: #64748B; }
.tiles { display: flex; gap: 8px; margin-top: -8px; } .tiles div { flex: 1; border-radius: 8px; background: var(--surface-subtle); padding: 8px 10px; display: flex; flex-direction: column; }
.tiles small { font-size: 10px; color: #64748B; } .tiles b { font-size: 12px; color: #0A1629; }
.cc-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748B; margin-top: -12px; } .cc-line .lu { color: #94A3B8; }
.na { border-radius: 12px; border: 1px solid #ADE8DC; background: #F1F8F4; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.na b { font-size: 14px; color: #0A1629; } .na span { font-size: 13px; color: #1C3E60; } .na small { font-size: 12px; color: #64748B; }
.na.fresh { animation: kt-fresh 1.4s ease 2; }
@keyframes kt-fresh { 40% { box-shadow: 0 0 0 3px #3DCAB1, 0 0 0 7px rgba(61, 202, 177, .25); } }
.na-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .na-btns .b-out { padding: 0; }
.rv { display: flex; justify-content: space-between; font-size: 13px; color: #1C3E60; } .rv b { font-weight: 600; }
.cons { border-top: 1px solid var(--divider); padding-top: 16px; }
.cons-r { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #1C3E60; }
.cons-r b { border-radius: 999px; padding: 0 8px; font-size: 11px; line-height: 20px; font-weight: 600; }
.cons-r b.ok { background: var(--success-bg); color: var(--success); } .cons-r b.none { background: #F3F4F6; color: #64748B; }
.ghost-btn { display: inline-flex; height: 32px; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; background: var(--brand-100); font-size: 13px; font-weight: 500; color: var(--brand-700); }
.unk { border-radius: 12px; background: var(--warning-bg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.unk-h { display: flex; align-items: center; gap: 6px; color: #B45309; } .unk-h b { font-size: 13px; color: #92400E; }
.unk p { margin: 0; font-size: 12px; line-height: 18px; color: #92400E; }
.unk small { font-size: 11px; color: #B45309; }

/* ---------- sms-auto-reply-panel.tsx（替换右栏） ---------- */
.arp { gap: 10px; }
.arp-h { display: flex; align-items: center; gap: 8px; } .arp-h b { font-size: 18px; font-weight: 600; color: #0A1629; } .arp-h .vio { color: #7C3AED; }
.arp-h .x { margin-left: 4px; }
.arp-h .sw { margin-left: auto; }
.arp-d { margin: 0; font-size: 13px; line-height: 20px; color: #64748B; }
.ar-row { border-radius: 12px; background: #F8FAFC; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ar-rt { display: flex; align-items: center; justify-content: space-between; } .ar-rt b { font-size: 13px; font-weight: 600; color: #0A1629; }
.ar-row small { font-size: 11.5px; color: #64748B; } .ar-tpl { font-size: 12px; color: #7C3AED; }
.sw { width: 40px; height: 24px; border-radius: 999px; background: #D8E0F0; position: relative; flex: none; transition: background .2s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .2s; }
.sw.on { background: #3DCAB1; } .sw.on i { left: 18px; }
.safe { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #475569; margin-top: 2px; }
.safe b { font-size: 12px; color: #0A1629; } .safe div { display: flex; gap: 6px; } .safe .lu { color: #059669; margin-top: 1px; }

/* ---------- 弹窗 / 侧拉 ---------- */
.mdlg { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 50; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(10, 22, 41, .2); display: flex; flex-direction: column; animation: kt-pop .2s ease; }
@keyframes kt-pop { from { transform: scale(.97); opacity: 0; } }
.mdlg.w416 { width: 416px; padding: 24px; gap: 14px; }
.md-t { font-size: 18px; font-weight: 600; color: #0A1629; } .md-p { margin: -8px 0 0; font-size: 13px; color: #64748B; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #1C3E60; }
.fbox { height: 40px; display: flex; align-items: center; border-radius: 10px; border: 1px solid #D8E0F0; padding: 0 12px; font-size: 14px; color: #0A1629; }
.fbox.focus { border-color: #3DCAB1; box-shadow: 0 0 0 3px rgba(61, 202, 177, .35); }
.ph { font-style: normal; color: #94A3B8; }
.md-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.mdlg.w512 { width: 512px; }
.nm-h { padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 10px; }
.srch.big { color: #94A3B8; }
.nm-list { border-top: 1px solid var(--divider); padding: 6px 8px; min-height: 140px; }
.nm-g { padding: 6px 12px; font-size: 11.5px; font-weight: 600; color: #64748B; }
.nm-r { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 8px 12px; animation: kt-bin .25s ease; }
.nm-r:first-of-type { background: #F1F8F4; }
.nm-r div { flex: 1; display: flex; flex-direction: column; } .nm-r b { font-size: 14px; color: #0A1629; } .nm-r small { font-size: 12px; color: #64748B; }
.nm-av { width: 32px; height: 32px; border-radius: 50%; background: #F1F5F9; color: #475569; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tag-ok { border-radius: 4px; background: #ECFDF5; color: #047857; padding: 2px 6px; font-size: 11px; font-weight: 600; }
.tag-none { border-radius: 4px; background: #F1F5F9; color: #475569; padding: 2px 6px; font-size: 11px; font-weight: 600; }
.nm-f { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--divider); background: #F8FAFC; padding: 12px 20px; font-size: 12px; color: #64748B; border-radius: 0 0 12px 12px; }
.drw { position: absolute; top: 0; right: 0; bottom: 0; width: 460px; z-index: 50; background: #fff; box-shadow: -12px 0 32px rgba(10, 22, 41, .16); padding: 24px; display: flex; flex-direction: column; gap: 14px; animation: kt-slide .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes kt-slide { from { transform: translateX(60px); opacity: 0; } }
.drw-h { display: flex; align-items: center; } .drw-h b { font-size: 16px; font-weight: 600; color: #0A1629; }
.drw p { margin: -6px 0 0; line-height: 18px; }
.drw-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #1C3E60; }
.drw .pick { height: 42px; display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1.5px solid #3DCAB1; background: #F1F8F4; padding: 0 12px; font-size: 14px; color: #0A1629; }
.drw .pick .lu { color: #64748B; } .drw .pick small { margin-left: auto; color: #64748B; }
.drw .dot { width: 10px; height: 10px; border-radius: 50%; background: #3DCAB1; }
.drw .av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.drw-foot { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; }
