.lmc { --lmc-line:#e5eaf0; --lmc-muted:#6b7280; --lmc-accent:#2563eb; color:#1f2937; }
.lmc .lmc-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.lmc .lmc-heading h2 { margin:0 0 7px; }
.lmc .hint { margin:0; color:var(--lmc-muted); line-height:1.6; }
.lmc-readonly { display:inline-flex; align-items:center; flex-shrink:0; border:1px solid #dbe4f0; color:#50627b; background:#f5f8fc; padding:5px 10px; border-radius:20px; font-size:12px; white-space:nowrap; }
.lmc-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; padding:18px; background:#f7f9fc; border:1px solid var(--lmc-line); border-radius:12px; }
.lmc .lmc-filters label { display:flex; flex-direction:column; gap:8px; margin:0; min-width:140px; flex:0 1 165px; font-size:13px; color:#526078; }
.lmc .lmc-filters .lmc-filter-keyword { flex:1 1 250px; }
.lmc .lmc-filters input,.lmc .lmc-filters select { width:100%; min-width:0; box-sizing:border-box; height:39px; margin:0; background:#fff; }
.lmc-filter-buttons { display:flex; gap:8px; }
.lmc .lmc-filter-buttons button { margin:0; min-height:39px; }
.lmc-list-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0 12px; }
.lmc-list-heading p { margin:0; color:#667085; font-size:14px; }
.lmc-list-heading strong { color:#1f2937; font-size:18px; margin:0 4px; }
.lmc-table-scroll { width:100%; overflow:auto; border:1px solid var(--lmc-line); border-radius:10px; }
.lmc .lmc-table { width:100%; min-width:880px; margin:0; border-collapse:collapse; }
.lmc .lmc-table th { background:#f7f9fc; color:#637087; font-size:12px; font-weight:600; white-space:nowrap; }
.lmc .lmc-table th,.lmc .lmc-table td { padding:14px 16px; text-align:left; border-bottom:1px solid var(--lmc-line); vertical-align:middle; }
.lmc .lmc-table tbody tr:last-child td { border-bottom:0; }
.lmc .lmc-table tbody tr:hover { background:#fbfcff; }
.lmc .lmc-table small { display:block; color:var(--lmc-muted); font-size:12px; margin-top:5px; white-space:nowrap; }
.lmc .lmc-table small.lmc-unread { color:#b77908; }
.lmc .lmc-person { display:block; max-width:180px; overflow-wrap:anywhere; }
.lmc-preview-cell { width:30%; min-width:170px; max-width:350px; }
.lmc .lmc-preview { margin:0 0 8px; max-width:330px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.lmc-status { display:inline-flex; font-size:11px; line-height:1.5; border-radius:4px; padding:3px 7px; white-space:nowrap; }
.lmc-status-replied { color:#137757; background:#e9f7f0; }
.lmc-status-waiting { color:#946200; background:#fff5d9; }
.lmc-time { font-size:12px; line-height:1.8; color:#667085; white-space:nowrap; }
.lmc .lmc-empty { padding:45px 20px; text-align:center; color:var(--lmc-muted); font-size:14px; }
.lmc-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; font-size:13px; color:var(--lmc-muted); }
.lmc-pagination>div { display:flex; gap:8px; }
.lmc-error { border:1px solid #fecaca; background:#fff1f2; color:#b42318; border-radius:8px; font-size:13px; line-height:1.6; padding:10px 13px; overflow-wrap:anywhere; }
.lmc button:disabled { cursor:not-allowed; opacity:.5; }
.lmc button:focus-visible,.lmc input:focus-visible,.lmc select:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.lmc .lmc-table button { white-space:nowrap; }
.lmc-backdrop { position:fixed; inset:0; z-index:1200; background:rgba(15,23,42,.46); display:flex; justify-content:flex-end; padding:20px; box-sizing:border-box; }
.lmc-detail { display:flex; flex-direction:column; min-width:0; width:min(860px,100%); max-height:100%; background:#fff; border-radius:16px; box-shadow:0 22px 70px rgba(15,23,42,.25); overflow:hidden; outline:none; }
.lmc-detail-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:22px 26px 16px; }
.lmc-eyebrow { font-size:12px; color:#748096; }
.lmc .lmc-detail-heading h3 { margin:7px 0 0; font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.lmc-detail-summary { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:0 26px 18px; color:#758096; font-size:12px; border-bottom:1px solid var(--lmc-line); }
.lmc-detail-summary .lmc-readonly { margin-left:auto; }
.lmc-thread { flex:1; min-height:120px; overflow-y:auto; overscroll-behavior:contain; padding:18px 26px 26px; background:#f7f9fc; }
.lmc-history { text-align:center; margin-bottom:12px; }
.lmc-history-note { text-align:center; color:#8a94a6; font-size:12px; line-height:1.7; margin:0 0 24px; }
.lmc-message-list { list-style:none; margin:0; padding:0; }
.lmc-message { display:flex; flex-direction:column; align-items:flex-start; margin-bottom:22px; }
.lmc-message-merchant { align-items:flex-end; }
.lmc-message-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-bottom:8px; font-size:11px; color:#8590a2; }
.lmc-message-meta strong { color:#526078; font-size:12px; overflow-wrap:anywhere; }
.lmc-message-merchant .lmc-message-meta { justify-content:flex-end; }
.lmc-role { display:inline-block; padding:2px 6px; border-radius:4px; background:#e9edf3; color:#637087; font-size:10px; }
.lmc-message-merchant .lmc-role { background:#e6eeff; color:#3f68b5; }
.lmc-bubble { box-sizing:border-box; max-width:88%; min-width:48px; padding:12px 15px; background:#fff; border:1px solid #e7ebf1; border-radius:3px 12px 12px 12px; box-shadow:0 2px 4px rgba(20,40,80,.025); }
.lmc-message-merchant .lmc-bubble { background:#eef4ff; border-color:#dbe7fb; border-radius:12px 3px 12px 12px; }
.lmc .lmc-text { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.75; font-size:14px; color:#27364a; }
.lmc-message-foot { margin-top:6px; font-size:10px; color:#929bad; }
.lmc .lmc-image { display:block; max-width:100%; width:auto; max-height:430px; object-fit:contain; border-radius:6px; }
.lmc-image-wrap+.lmc-text { margin-top:8px; }
.lmc .lmc-image-button { min-width:140px; min-height:56px; background:rgba(255,255,255,.7); }
.lmc-muted { color:#8590a2; font-size:13px; }
.lmc-detail-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 26px; border-top:1px solid var(--lmc-line); background:#fff; color:#8590a2; font-size:12px; }
@media(max-width:700px) {
  .lmc .lmc-heading { gap:12px; }
  .lmc .lmc-heading h2 { font-size:21px; }
  .lmc .lmc-filters { padding:14px; gap:12px; }
  .lmc .lmc-filters label { flex:1 1 130px; }
  .lmc .lmc-filters .lmc-filter-keyword { flex-basis:100%; }
  .lmc-backdrop { padding:0; }
  .lmc-detail { border-radius:0; }
  .lmc-detail-heading { padding:18px 16px 12px; }
  .lmc-detail-summary { padding:0 16px 14px; gap:8px 12px; }
  .lmc-thread { padding:16px; }
  .lmc-detail-footer { padding:12px 16px; }
  .lmc-bubble { max-width:94%; }
  .lmc-message-meta { gap:5px; }
}
