.world-chat-dock{position:fixed;right:12px;bottom:52px;z-index:1800;display:flex;flex-direction:column;align-items:flex-end;gap:8px;color:#4b2c18;font:13px/1.45 Arial,sans-serif;max-width:calc(100vw - 24px)}
.world-chat-dock[hidden],.world-chat-dock [hidden]{display:none!important}
.world-chat-dock,.world-chat-dock *{box-sizing:border-box}
.world-chat-toggle,.world-chat-panel{border:1px solid var(--map-axis-border,#ad814a);border-radius:5px;background:#eed6a7 url('/assets/empire-parchment.webp') center/cover;box-shadow:0 3px 16px #0006;color:#4b2c18}
.world-chat-toggle{min-width:156px;min-height:38px;padding:8px 20px;font:700 14px Cinzel,Georgia,serif;cursor:pointer;position:relative;overflow:hidden}
.world-chat-toggle::after,.world-chat-panel::before{content:"";position:absolute;left:5px;right:5px;top:2px;height:8px;background:var(--map-axis-art,none) center/65px 10px repeat-x;pointer-events:none}
.world-chat-toggle:hover{filter:brightness(1.06)}
.world-chat-panel{position:relative;width:min(350px,calc(100vw - 24px));height:min(470px,calc(100dvh - 120px));display:flex;flex-direction:column;overflow:hidden;padding:14px 12px 12px}
.world-chat-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid #a67c4a55;flex:none}
.world-chat-panel h2{font:700 20px/1.3 Cinzel,Georgia,serif;margin:0;color:#643522}.world-chat-world{font:11px Arial,sans-serif;margin:2px 0 0;color:#795638}
.world-chat-panel header{position:relative;min-height:33px;align-items:center;padding:0 34px 7px}.world-chat-panel header>div{width:100%;text-align:center}.world-chat-close{position:absolute;right:0;top:0}
.world-chat-close{flex:none;border:1px solid #a17b4e;background:#f5dfb5;color:#643522;width:28px;height:28px;padding:0;font:23px/24px Georgia,serif;cursor:pointer}
.world-chat-limit{font:11px Arial,sans-serif;margin:7px 0;color:#795638;flex:none}
.world-chat-messages{flex:1;min-height:45px;list-style:none;margin:0;padding:0 6px 5px 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a17c51 #dfbf8b55}
.world-chat-messages li{margin:0;padding:8px 4px;border-bottom:1px solid #a67c4a33;overflow-wrap:anywhere}.world-chat-messages li.is-own{background:#fff3d47a;border-left:2px solid #956633;padding-left:8px}
.world-chat-messages li>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.world-chat-messages strong{font-size:12px;color:#713b26}.world-chat-messages time{font-size:10px;white-space:nowrap;color:#85694a}.world-chat-messages p{white-space:pre-wrap;font:13px/1.5 Arial,sans-serif;margin:3px 0 0;color:#4b321f}.world-chat-empty{font-size:12px;color:#85694a}
.world-chat-form{flex:none;border-top:1px solid #a67c4a55;padding-top:8px;margin:0}.world-chat-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.world-chat-form textarea{display:block;width:100%;resize:none;min-height:52px;max-height:90px;margin:0;padding:8px;border:1px solid #ad895b;border-radius:3px;background:#fff4d4b3;color:#4b321f;font:13px/1.4 Arial,sans-serif;touch-action:manipulation}
.world-chat-compose{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.world-chat-count{font-size:10px;color:#85694a}.world-chat-send{border:1px solid #c19360;border-radius:3px;background:var(--nation-primary,#79332d);color:#fff0cb;padding:7px 18px;font:700 12px Arial,sans-serif;cursor:pointer}.world-chat-send:disabled{opacity:.55;cursor:wait}
.world-chat-error{font:12px/1.4 Arial,sans-serif;color:#a12c27;margin:5px 0 0}.world-chat-error:empty{display:none}.world-chat-retry,.world-chat-latest{font:700 12px Arial,sans-serif;border:0;background:transparent;color:#7a3827;text-decoration:underline;cursor:pointer;padding:4px}.world-chat-latest{align-self:center;flex:none}
.world-chat-dock button:focus-visible,.world-chat-dock textarea:focus-visible{outline:2px solid #9b4f2f;outline-offset:2px}
body.has-world-chat[data-menu-device="desktop"] .beginner-guide-launcher{bottom:calc(10px + var(--menu-footer-height,33px) + 60px)}
@media(max-width:600px){.world-chat-dock{right:8px;max-width:calc(100vw - 16px)}.world-chat-panel{width:min(350px,calc(100vw - 16px));height:min(450px,calc(100dvh - 135px))}.world-chat-form textarea{font-size:16px}.world-chat-toggle{min-height:40px}}
@media(max-height:500px){.world-chat-panel{height:calc(100dvh - 104px);padding:9px}.world-chat-panel h2{font-size:16px}.world-chat-world,.world-chat-limit{display:none}.world-chat-form textarea{min-height:38px;height:38px}.world-chat-panel header{padding-bottom:4px}}

.world-chat-player,.world-chat-coordinate{display:inline;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;color:#713b26;text-decoration:underline;text-underline-offset:2px;letter-spacing:normal;text-transform:none;text-align:left;overflow-wrap:anywhere;font:inherit}.world-chat-player{font-size:12px;font-weight:700}.world-chat-coordinate{font-weight:600}.world-chat-player:hover,.world-chat-coordinate:hover{color:#a54831}.world-chat-player:disabled,.world-chat-coordinate:disabled{opacity:.6;cursor:wait}
