/* Flat mobile chat, shared between official support and player conversations. */
body[data-page="player-chat"] .consultation-log,body[data-page="support"] .support-messages { background:#ededed!important;padding:16px max(12px,calc((100vw - 900px)/2))!important;gap:16px!important; }
.chat-time-group { display:block;align-self:center;text-align:center;color:#999;font-size:11px;line-height:1.5;margin:4px 0 2px; }
.consultation-message-row { display:flex;align-items:flex-start;gap:9px;max-width:100%; }
.consultation-message-row.is-self { flex-direction:row-reverse; }
.consultation-message-avatar,.wechat-message-avatar { width:36px;height:36px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:5px;background:#d3e1d8;color:#4e7661;font-size:13px; }
.consultation-message-avatar img,.consultation-message-avatar svg { display:block;width:100%;height:100%;object-fit:cover; }.consultation-message-avatar svg{padding:5px;}
body[data-page="player-chat"] .consultation-message-row .consultation-bubble { max-width:min(calc(100% - 82px),540px);min-height:36px;align-self:flex-start!important;padding:9px 11px!important;margin:0!important;border:0!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important;color:#202824; }
body[data-page="player-chat"] .consultation-message-row.is-self .consultation-bubble { background:#a9e879!important; }
body[data-page="player-chat"] .consultation-bubble::before,body[data-page="player-chat"] .consultation-bubble::after { content:none!important;display:none!important; }
body[data-page="player-chat"] .consultation-bubble p { font-size:15px;line-height:1.5; }
body[data-page="player-chat"] .consultation-header .consultation-avatar { width:36px;height:36px;border-radius:5px; }
body[data-page="player-chat"] .consultation-compose,body[data-page="support"] .support-composer { background:#f6f6f6!important;border-top:1px solid #ddd!important;padding:7px max(12px,calc((100vw - 900px)/2)) calc(7px + env(safe-area-inset-bottom,0px))!important; }
body[data-page="player-chat"] .consultation-input-row textarea,body[data-page="support"] #support-input { min-height:40px!important;height:40px!important;padding:9px 10px!important;background:#fff!important;border:0!important;border-radius:4px!important;box-shadow:none!important;font-size:15px!important;line-height:22px!important;resize:none; }
body[data-page="player-chat"] .consultation-send,body[data-page="support"] #support-send { min-height:36px!important;min-width:58px!important;width:auto!important;padding:7px 12px!important;border:0!important;border-radius:4px!important;background:#07a859!important;color:white!important;font-size:14px!important; }
body[data-page="player-chat"] .consultation-image-tools button { border-radius:3px!important;background:transparent!important;padding:3px 5px!important;color:#50715e; }
body[data-page="player-chat"] .consultation-image-tools .consultation-more { border:1px solid #7b8a81!important;border-radius:50%!important;width:25px;height:25px;font-size:21px; }
body[data-page="player-chat"] .consultation-read-status { display:none; }
body[data-page="support"] .support-message { display:flex!important;align-self:stretch!important;align-items:flex-start;gap:9px;max-width:100%!important;width:100%;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important; }
body[data-page="support"] .support-message--agent { flex-direction:row-reverse; }
body[data-page="support"] .wechat-message-content { min-width:0;max-width:min(calc(100% - 82px),540px);padding:9px 11px;border-radius:5px;background:#fff;color:#202824; }
body[data-page="support"] .support-message--agent .wechat-message-content { background:#a9e879; }
body[data-page="support"] .support-message-body { padding:0;margin:0;line-height:1.5;font-size:15px; }
body[data-page="support"] .support-message-head { display:none; }
body[data-page="support"] .support-composer { display:flex!important;flex-direction:column;gap:7px!important;max-width:none; }
body[data-page="support"] .chat-quick-actions { display:flex;align-items:center;gap:12px;height:36px;margin:0; }
body[data-page="support"] .chat-quick-actions>a { font-size:12px;color:#50715e;text-decoration:none; }
body[data-page="support"] #support-more { margin-left:auto;width:25px;height:25px;padding:0;border:1px solid #7b8a81;border-radius:50%;font-size:21px;line-height:22px;color:#50715e;background:none; }
body[data-page="support"] .support-input-row { display:flex;align-items:center;gap:10px; }
body[data-page="support"] #support-input { flex:1;min-width:0;width:100%;margin:0; }
body[data-page="support"] #support-image-preview { display:block;position:relative;width:36px;height:36px;flex:none; }
body[data-page="support"] #support-image-preview[hidden],body[data-page="support"] #support-media-actions[hidden] { display:none!important; }
body[data-page="support"] #support-image-preview img { width:36px!important;height:36px!important;border-radius:4px; }
body[data-page="support"] #support-image-preview button { position:absolute;right:-7px;top:-7px;width:20px;height:20px;min-height:20px;padding:0;border:2px solid white;border-radius:50%;background:#526659;color:white;font-size:14px;line-height:14px; }
body[data-page="support"] #support-media-actions { display:flex;gap:12px;order:5;padding:8px 0; }
body[data-page="support"] #support-media-actions button { min-height:42px;padding:9px 22px;border:0;border-radius:5px;background:white;color:#50715e;font-size:14px; }
body[data-page="support"] .support-message-state { font-size:12px;line-height:1.5; }
body[data-page="profile"] .profile-menu a[hidden] { display:none!important; }

body[data-page="player-chat"] .consultation-image-tools .consultation-remove-image { width:20px!important;height:20px!important;min-height:20px!important;border:2px solid white!important;border-radius:50%!important;background:#526659!important;color:white!important;padding:0!important; }
body[data-page="player-chat"] .consultation-message-row.is-self .consultation-bubble,body[data-page="support"] .support-message--agent .wechat-message-content { background:#b2e88a!important; }

.wechat-message-avatar img { width:36px!important;height:36px!important;object-fit:cover;border-radius:5px!important; }

/* Draw the tool icon independently of the font baseline and inherited button padding. */
body[data-page="player-chat"] .consultation-image-tools { height:32px; }
body[data-page="player-chat"] .consultation-image-tools .consultation-more,
body[data-page="support"] #support-more {
  position:relative;display:grid;place-items:center;flex:0 0 40px;
  width:40px!important;height:32px!important;min-height:32px!important;
  margin-block:0!important;padding:0!important;border:1px solid #dce6e0!important;
  border-radius:10px!important;background:#edf3ef!important;color:#456b58!important;
  font-size:0!important;line-height:1!important;box-shadow:none!important;
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
body[data-page="player-chat"] .consultation-more::before,
body[data-page="player-chat"] .consultation-more::after,
body[data-page="support"] #support-more::before,
body[data-page="support"] #support-more::after {
  content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;
  border-radius:2px;background:currentColor;transform:translate(-50%,-50%);
}
body[data-page="player-chat"] .consultation-more::after,
body[data-page="support"] #support-more::after { transform:translate(-50%,-50%) rotate(90deg); }
body[data-page="player-chat"] .consultation-more[aria-expanded="true"],
body[data-page="support"] #support-more[aria-expanded="true"] { background:#dcebe2!important;color:#167454!important; }
body[data-page="player-chat"] .consultation-more:focus-visible,
body[data-page="support"] #support-more:focus-visible { outline:2px solid #269476;outline-offset:2px; }

body[data-page="player-chat"] .consultation-media-tools,body[data-page="support"] #support-media-actions {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 4px 10px!important;background:#f6f7f6;border-top:1px solid #e6ebe7;}
body[data-page="player-chat"] .consultation-media-tools button,body[data-page="support"] #support-media-actions button {display:flex;flex-direction:column;align-items:center;gap:7px;min-height:72px!important;padding:0!important;background:transparent!important;border:0!important;font-size:12px!important;color:#718278!important;}
body[data-page="player-chat"] .consultation-media-tools button::before,body[data-page="support"] #support-media-actions button::before {content:"";display:block;width:46px;height:44px;border:1px solid #e2e9e4;border-radius:12px;background:#fff no-repeat center/24px;}
body[data-page="player-chat"] .consultation-media-tools button:first-child::before,body[data-page="support"] #support-photo::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23577565' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='m4 17 5-5 4 4 3-3 4 4'/%3E%3C/svg%3E");}
body[data-page="player-chat"] .consultation-media-tools button:nth-child(2)::before,body[data-page="support"] #support-camera::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23577565' stroke-width='1.6'%3E%3Cpath d='M8 5 9.5 3h5L16 5h3a2 2 0 0 1 2 2v12H3V7a2 2 0 0 1 2-2Z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");}
