.city-chat {
  position: absolute;
  left: 0;
  top: 447px;
  width: 397px;
  height: 193px;
  z-index: 30;
  transform-origin: 0 0;
  pointer-events: none;
  font-family: SimHei, "Microsoft YaHei", sans-serif;
  isolation: isolate;
}
.city-chat .city-chat-source { pointer-events: none; }
.city-chat .city-chat-source > .original-view-controls { z-index: 2; }
.city-chat .city-chat-source > .original-view-canvas { z-index: 0; }
.city-chat .original-view-input { line-height: 22px !important; }
.city-chat-messages {
  position: absolute;
  left: 27px;
  top: 26px;
  width: 367px;
  height: 134px;
  box-sizing: border-box;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: auto;
  touch-action: pan-y;
  color: #e5dddd;
  font-size: 14px;
  line-height: 18px;
  user-select: text;
  outline: none;
}
.city-chat-messages::-webkit-scrollbar { display: none; }
.city-chat-line { margin: 0 0 2px; padding: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.city-chat-system { color: #e8e8e8; }
.city-chat-draft { color: #b9ddf8; }
.city-chat .city-chat-channel-menu { z-index: 4; pointer-events: none; }
.city-chat .city-chat-channel-face {
  position: absolute;
  left: 33px;
  top: 168px;
  width: 42px;
  height: 22px;
  z-index: 3;
  appearance: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}
.city-chat .city-chat-channel-face:hover,
.city-chat .city-chat-channel-face:active { background: transparent; box-shadow: none; }
.city-chat .city-chat-channel-face:focus-visible { outline: 1px solid #f2db78; }
.city-chat-channel-face[hidden],
.city-chat-channel-menu[hidden],
.city-chat-messages[hidden] { display: none !important; }
.city-chat[data-expanded="false"] { pointer-events: none; }
.city-chat-private-layer {
  position: absolute;
  left: 0;
  top: 20px;
  width: 1030px;
  height: 600px;
  z-index: 1000;
  pointer-events: auto;
}
.city-chat-private-layer .original-view { position: relative; }
.city-chat-private-hint {
  position: absolute;
  left: 360px;
  top: 306px;
  margin: 0;
  color: #c6e4ed;
  font: 14px SimHei, "Microsoft YaHei", sans-serif;
  pointer-events: none;
}

.city-chat-horn { color: #ffd76a; }
/* The battle chat shares its messages, drafts and transport with the city chat. */
.city-chat .battle-chat-head,.city-chat .battle-chat-form,.city-chat .battle-chat-launch{display:none}
.city-chat[data-battle="true"]{box-sizing:border-box;width:264px;height:91px;padding:5px 8px;background:linear-gradient(115deg,#263e4d66,#0c1c294d 70%);border-left:2px solid #78a5bf;border-top:1px solid #607e92;color:#daeaf3;font:13px/18px "Microsoft YaHei",sans-serif;pointer-events:auto}
.city-chat[data-battle="true"] .city-chat-source,.city-chat[data-battle="true"] .city-chat-channel-face,.city-chat[data-battle="true"] .city-chat-channel-menu{display:none!important}
.city-chat[data-battle="true"] .battle-chat-head{display:flex;align-items:center;justify-content:space-between;height:28px;gap:4px;color:#a8e3ef}
.city-chat[data-battle="true"] .battle-chat-head>span{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px}
.city-chat[data-battle="true"] svg{width:17px;height:17px;flex-shrink:0}
.city-chat[data-battle="true"] .battle-chat-actions{display:flex;gap:3px}
.city-chat[data-battle="true"] button{display:flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-width:0;min-height:0;height:28px;margin:0;padding:3px 6px;border:1px solid transparent;border-radius:2px;background:transparent;color:#d3e4ed;font:12px/18px "Microsoft YaHei",sans-serif;pointer-events:auto;touch-action:manipulation}
.city-chat[data-battle="true"] button:hover{background:#29485d;border-color:#7497ad}.city-chat[data-battle="true"] button:focus-visible{outline:2px solid #b5efff;outline-offset:1px}.city-chat[data-battle="true"] .battle-chat-close{color:#ffb3a6}
.city-chat[data-battle="true"] .city-chat-messages{left:8px;top:36px;width:246px;height:46px;font-size:13px;line-height:19px;scrollbar-width:thin;scrollbar-color:#6b92a8 #0d2637}
.city-chat[data-battle="true"] .city-chat-messages::-webkit-scrollbar{display:block;width:3px}.city-chat[data-battle="true"] .city-chat-system{color:#c4d9e5}
.city-chat[data-battle="true"] .battle-chat-form{position:absolute;left:8px;right:8px;bottom:6px;display:flex;align-items:center;gap:4px;height:30px}
.city-chat[data-battle="true"] .battle-chat-form select{flex:0 0 49px;width:49px;height:28px;padding:0 2px;border:1px solid #617f93;border-radius:2px;background:#142d3d;color:#c5e2ed;font:11px "Microsoft YaHei",sans-serif;pointer-events:auto}
.city-chat[data-battle="true"] .battle-chat-form .original-view-input{position:static!important;transform:none!important;flex:1;min-width:0!important;width:0!important;height:29px!important;margin:0!important;padding:3px 5px!important;border:1px solid #65869d!important;border-radius:2px!important;background:#071824!important;color:#e8f6ff!important;font:13px/21px "Microsoft YaHei",sans-serif!important;pointer-events:auto!important;box-sizing:border-box}
.city-chat[data-battle="true"] .battle-chat-form [type="submit"]{height:28px;padding:3px 5px;background:#23465b;border-color:#6a93aa;white-space:nowrap}.city-chat[data-battle="true"] .battle-chat-recipient{padding:2px;width:24px;flex-shrink:0}
.city-chat[data-battle="true"][data-typing="true"]{height:126px}.city-chat[data-battle="true"][data-battle-expanded="true"]{height:244px}.city-chat[data-battle="true"][data-battle-expanded="true"] .city-chat-messages{height:164px}
.city-chat[data-battle="true"][data-battle-closed="true"]{height:36px;background:none;border:0;padding:0;pointer-events:none}
.city-chat[data-battle="true"] .battle-chat-launch{display:flex;position:absolute;left:0;bottom:0;height:36px;padding:5px 10px;background:linear-gradient(115deg,#263e4d66,#0c1c294d 70%);border:1px solid #6d93ab;border-left:2px solid #9de5f2;box-shadow:0 2px 8px #0005}
.city-chat[data-battle="true"] [hidden]{display:none!important}

/* ===== 聊天可读性与质感（2026-11 视觉升级：不动位置与尺寸） ===== */
.city-chat-messages{text-shadow:0 1px 2px #000b}
.city-chat[data-battle="true"]{border-radius:6px;border-top-color:#87a9bd;box-shadow:0 6px 18px #0007}
.city-chat[data-battle="true"] .battle-chat-launch{border-radius:5px}
