  /* ---- Fitch Messenger pane (replaces Teams, 2026-11-08) ---- */
  #messenger { width: min(940px, 96vw); }
  .fm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
  .fm-head h2 { margin: 0; font-size: 18px; color: var(--crimson); }
  .fm-head .fm-me { font-size: 12px; color: var(--grey); font-weight: 700; }
  .fm-head .sp { flex: 1; }
  .fm-head a.btn { text-decoration: none; display: inline-block; }
  #messenger .btn, #pane .btn { background: var(--surface2); border: 1px solid var(--line); color: inherit; border-radius: 8px;
    padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
  #messenger .btn.crim, #pane .btn.crim { background: var(--crimson); color: #fff; border-color: var(--crimson); font-weight: 700; }
  .fm-wrap { display: flex; gap: 14px; }
  .fm-list { width: 250px; flex: none; border-right: 1px solid var(--line); padding-right: 10px; height: 70vh; overflow-y: auto; }
  .fm-view { flex: 1; min-width: 0; height: 70vh; display: flex; flex-direction: column; background: var(--surface); }
  .fm-grp { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--grey); margin: 12px 0 6px; }
  .fm-grp:first-child { margin-top: 0; }
  .fm-conv { display: grid; grid-template-columns: 1fr auto; width: 100%; text-align: left; background: none; border: 0;
    border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit; color: inherit; }
  .fm-conv:hover { background: var(--surface2); }
  .fm-conv .n { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fm-conv .p { grid-column: 1 / -1; font-size: 11px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fm-conv.unread { background: var(--surface2); box-shadow: inset 3px 0 0 var(--crimson); }
  .fm-conv.unread .n { font-weight: 800; }
  .fm-conv.on { background: var(--crimson); color: #fff; box-shadow: none; }
  .fm-conv.on .p { color: rgba(255,255,255,.8); }
  .fm-n { background: var(--crimson); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; align-self: center; }
  .fm-thead { display: flex; align-items: baseline; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
  .fm-thead span { font-size: 12px; color: var(--grey); }
  .fm-msgs { flex: 1; overflow-y: auto; padding: 10px 4px; display: flex; flex-direction: column; gap: 6px; }
  .fm-day { align-self: center; font-size: 11px; font-weight: 700; color: var(--grey); background: var(--surface2);
    border-radius: 999px; padding: 2px 10px; margin: 6px 0; }
  .fm-row { display: flex; flex-direction: column; max-width: 78%; align-self: flex-start; }
  .fm-row.me { align-self: flex-end; align-items: flex-end; }
  .fm-who { font-size: 11px; font-weight: 700; color: var(--grey); margin: 0 0 2px 4px; }
  .fm-bub { background: var(--surface2); border-radius: 12px; padding: 7px 10px 5px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
  .fm-row.me .fm-bub { background: var(--crimson); color: #fff; }
  .fm-row.me .fm-bub a { color: #fff; }
  .fm-row.bot .fm-bub { background: var(--old-bg); border: 1px dashed var(--line); }
  .fm-time { display: block; text-align: right; font-size: 10px; opacity: .65; margin-top: 2px; }
  .fm-quote { border-left: 3px solid var(--grey); padding: 2px 8px; margin-bottom: 4px; font-size: 12px; opacity: .85; }
  .fm-img { display: block; max-width: 260px; max-height: 220px; border-radius: 8px; margin: 2px 0 4px; }
  .fm-file { display: inline-block; font-weight: 700; }
  .fm-del { opacity: .6; }
  .fm-compose { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
  .fm-compose textarea { flex: 1; resize: none; font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: inherit; max-height: 140px; }
  .fm-compose textarea:focus { outline: none; border-color: var(--crimson); }
  .fm-empty { color: var(--grey); font-size: 13px; padding: 30px 10px; text-align: center; margin: auto; }
  .fm-login { max-width: 320px; margin: 30px auto; display: flex; flex-direction: column; gap: 10px; text-align: center; }
  .fm-login p { font-size: 13px; color: var(--grey); margin-bottom: 4px; }
  .fm-login input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: inherit; }
  .fm-warn { font-size: 12px !important; background: var(--old-bg); border-radius: 8px; padding: 8px 10px; color: var(--ink) !important; text-align: left; }
  .fm-wrongacct { line-height: 1.5; max-width: 230px; }
  .fm-wrongacct .btn { margin-top: 8px; }
  .fm-err { color: var(--crimson); font-size: 12px; min-height: 16px; }
  .fm-count { background: var(--crimson); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
  @media (max-width: 700px) {
    .fm-wrap { flex-direction: column; }
    .fm-list { width: auto; height: auto; max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
    .fm-view { height: 55vh; }
  }
