/* The chat's @ list (client-debug/js/cmdsuggest.js, Noh 2026-11-17 "@ ในแชต แล้วจะแสดงคำสั่งเฉพาะที่ตัวละครนั้นใช้ได้"): above
   the message box, in the look of the chat's own "send to" menu (white, the client's thin frame, the light blue of a row
   chosen); a player's commands in blue, a GM's under their own heading in rust. The phone: the dark of its chat, rows
   a finger high. Linked by client/index.html and client-debug/index.html. */

.cmd-ac { position: fixed; z-index: 100000; display: flex; flex-direction: column; box-sizing: border-box; padding: 0; overflow: hidden;
	background: #fff; border: 1px solid #8a93a6; border-radius: 3px; box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.35);
	font: 12px/18px var(--ro-font, Tahoma, sans-serif); color: #000; text-align: left; }
.cmd-ac[hidden] { display: none; }
.cmd-ac .ac-list { overflow-y: auto; overscroll-behavior: contain; padding: 2px 0; }
.cmd-ac .ac-row { display: grid; grid-template-columns: minmax(84px, max-content) 1fr auto; align-items: baseline; column-gap: 10px; padding: 2px 10px; cursor: pointer; }
.cmd-ac .ac-row.on { background: #cfdcff; }
.cmd-ac .ac-row b { font-weight: 700; color: #1f4fa0; white-space: nowrap; }
.cmd-ac .ac-row.gm b { color: #a3412a; }
.cmd-ac .ac-th { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-ac .ac-arg { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #6b7385; }
.cmd-ac .ac-sec { padding: 3px 10px 1px; margin-top: 2px; font-size: 11px; font-weight: 700; color: #4b5874; border-top: 1px solid #e3e7f0; }
.cmd-ac .ac-sec:first-child { margin-top: 0; border-top: 0; }
.cmd-ac .ac-sec.gm { color: #a3412a; }
.cmd-ac .ac-foot { display: flex; gap: 14px; padding: 2px 10px 3px; border-top: 1px solid #e3e7f0; background: #f5f7fb; font-size: 11px; color: #6b7385; }
.cmd-ac kbd { display: inline-block; min-width: 9px; margin-right: 2px; padding: 0 3px; border: 1px solid #b9c0cf; border-radius: 2px; background: #fff; font: inherit; line-height: 14px; text-align: center; color: #333; }
.cmd-ac .ac-use, .cmd-ac .ac-wait { display: flex; gap: 10px; align-items: baseline; padding: 3px 10px; }
.cmd-ac .ac-use b { color: #1f4fa0; }
.cmd-ac .ac-use span, .cmd-ac .ac-wait { color: #4b5874; }

/* the phone: the chat's dark, rows a finger high */
html.mhud .cmd-ac { background: rgba(18, 22, 31, 0.97); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
	font: 14px/20px var(--game-font, sans-serif); color: #e8ecff; }
html.mhud .cmd-ac .ac-row { min-height: 40px; align-items: center; padding: 4px 12px; grid-template-columns: minmax(78px, max-content) 1fr; }
html.mhud .cmd-ac .ac-row .ac-arg { grid-column: 2; font-size: 12px; color: #9aa3bf; max-width: none; }
html.mhud .cmd-ac .ac-row.on { background: rgba(255, 255, 255, 0.13); }
html.mhud .cmd-ac .ac-row b { color: #9fd1ff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
html.mhud .cmd-ac .ac-row.gm b, html.mhud .cmd-ac .ac-sec.gm { color: #ffb8a3; }
html.mhud .cmd-ac .ac-sec { color: #ffe27a; border-top-color: rgba(255, 255, 255, 0.12); padding: 6px 12px 2px; font-size: 12px; }
html.mhud .cmd-ac .ac-use b { color: #9fd1ff; }
html.mhud .cmd-ac .ac-use span, html.mhud .cmd-ac .ac-wait { color: #c9cfe6; }
html.mhud .cmd-ac .ac-use, html.mhud .cmd-ac .ac-wait { padding: 8px 12px; }
