/* Compact conversation: one shared message layout for every VIP tier. */
body #chat-panel.chat79 .message.compact265{display:block!important;grid-template-columns:none!important;min-height:0!important;margin:0 0 8px!important;padding:9px 12px!important;position:relative;isolation:isolate}
body #chat-panel.chat79 .compact265 .message-main{min-width:0;display:block;position:relative;z-index:1}
body #chat-panel.chat79 .compact265 .message-heading{display:flex;align-items:center;gap:6px;min-height:28px;margin:0}
body #chat-panel.chat79 .chat-identity265{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:0;flex:1;font-size:15px;line-height:1.2;color:#2c1d12}
body #chat-panel.chat79 .chat-identity265 .identity109-name{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;font-size:15px;line-height:1.2}
body #chat-panel.chat79 .chat-identity265 .identity109-nick{min-height:24px!important;min-width:0;padding:0!important;font-size:15px!important;line-height:1.2;overflow-wrap:anywhere;background:none!important;box-shadow:none!important;border:0!important;color:inherit!important;-webkit-text-fill-color:inherit;text-shadow:none}
body #chat-panel.chat79 .chat-identity265 .identity109-title{width:20px;height:20px;min-width:20px;min-height:20px}
body #chat-panel.chat79 .chat-identity265 .identity109-title img{width:20px;height:20px}
body #chat-panel.chat79 .chat-identity265 .chat129-level{font-size:12px;min-width:22px;min-height:22px;line-height:22px;padding:0 2px}
body #chat-panel.chat79 .chat-identity265 .vip117-mark{display:inline-flex;align-items:center;font-size:11px!important;line-height:16px;gap:2px;color:#72501e!important;-webkit-text-fill-color:#72501e;text-shadow:none!important;white-space:nowrap}
body #chat-panel.chat79 .chat-identity265 .vip117-mark img{width:17px!important;height:17px!important}
body #chat-panel.chat79 .compact265 .message-menu{flex:0 0 28px!important;width:28px!important;min-width:28px!important;min-height:28px!important;height:28px;padding:0!important;font-size:22px;line-height:28px}
body #chat-panel.chat79 .compact265 .message-main>p{margin:3px 0 1px!important;font-size:16px!important;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}
body #chat-panel.chat79 .compact265:not([data-chat-tier217="0"]) :is(.message-main>p,.chat-identity265,.message-menu){color:#f4e8c8!important;-webkit-text-fill-color:#f4e8c8}
body #chat-panel.chat79 .compact265:not([data-chat-tier217="0"]) .vip117-mark{color:#f5db9d!important;-webkit-text-fill-color:#f5db9d}
body #chat-panel.chat79 .chat-composer{display:grid!important;grid-template-columns:36px 36px minmax(0,1fr) 36px!important;align-items:end;gap:5px!important}
body #chat-panel.chat79 .chat-composer>.kg-round,body #chat-panel.chat79 .chat-tools265>.kg-round{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important}
body #chat-panel.chat79 .chat-composer .kg-icon{width:23px!important;height:23px!important}
body #chat-panel.chat79 #chat-text{min-width:0;width:100%;min-height:38px;font-size:16px;line-height:20px;padding:8px}
body #chat-panel.chat79 .chat-tools265{margin-top:auto;padding:6px 0 2px;flex-shrink:0}
body #chat-panel.chat79 .chat-reply265{display:flex;flex-direction:column;border-left:3px solid #a97835;background:#a978351c;padding:4px 8px;margin:4px 0;color:inherit;font-size:12px;line-height:1.3;min-width:0}
body #chat-panel.chat79 .chat-reply265>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
body #chat-panel.chat79 .chat-reply-draft265{display:flex;align-items:center;gap:5px}
body #chat-panel.chat79 .chat-reply-draft265>.chat-reply265{flex:1}
body #chat-panel.chat79 #chat-reply-cancel{flex:0 0 32px;min-height:32px;padding:2px;color:#3b2819;background:none;border:0}
body #chat-panel.chat79 #chat-drawer265{position:absolute;inset:0;z-index:200;display:flex;isolation:isolate;padding:0;overflow:hidden}
body #chat-panel.chat79 .chat-drawer-shade265{position:absolute;inset:0;width:100%;height:100%;background:#0008;border:0;border-radius:0;padding:0;box-shadow:none}
body #chat-panel.chat79 .chat-drawer-panel265{position:relative;isolation:isolate;width:min(340px,88%);height:100%;overflow:auto;padding:16px 12px;box-sizing:border-box;color:#f3e4c7;box-shadow:5px 0 22px #0008}
body #chat-panel.chat79 .chat-drawer-panel265>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 15px}
body #chat-panel.chat79 .chat-drawer-panel265 h2{font-size:21px;color:#f3e4c7;margin:0}
body #chat-panel.chat79 .chat-drawer-row265{display:flex;align-items:center;gap:10px;position:relative;min-height:56px;width:100%;padding:10px 4px;border:0;border-bottom:1px solid #b18d5255;background:none;box-shadow:none;border-radius:0;color:#f3e4c7;font-size:16px;text-align:left}
body #chat-panel.chat79 .chat-drawer-row265>.kg-icon{width:27px;height:27px}
body #chat-panel.chat79 .chat-friend-count265{margin-left:auto;font-size:12px;border:1px solid #dec08a;border-radius:50%;padding:2px 5px;background:#8a431b}
body #chat-panel.chat79 .chat-rules265{font-size:15px;line-height:1.45}
body #chat-panel.chat79 .friend-tabs265{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
body #chat-panel.chat79 .friend-tabs265>button{position:relative;isolation:isolate;min-width:0;min-height:40px;padding:8px 5px;border:0;background:none;color:#f4e8c8;font-size:15px}
body #chat-panel.chat79 .friend-card265{position:relative;isolation:isolate;padding:12px;margin-bottom:10px}
body #chat-panel.chat79 .friend-profile265{display:flex;align-items:center;gap:10px;min-width:0;width:100%;border:0;background:none;box-shadow:none;padding:0;color:#3b2819;text-align:left}
body #chat-panel.chat79 .friend-profile265>.chat128-avatar{flex:0 0 52px;width:52px}
body #chat-panel.chat79 .friend-profile265 .person-portrait{width:52px;height:64px}
body #chat-panel.chat79 .friend-profile265>span:last-child{min-width:0;flex:1}
body #chat-panel.chat79 .friend-profile265 .identity109-name{font-size:17px!important;flex-wrap:wrap;gap:4px}
body #chat-panel.chat79 .friend-profile265 .identity109-nick{font-size:17px!important;overflow-wrap:anywhere}
body #chat-panel.chat79 .friend-presence265{display:block;margin-top:6px;font-size:13px;color:#6e5a43}
body #chat-panel.chat79 .friend-presence265.online,.realm-ui .family-presence265.online{color:#365c2e}
body #chat-panel.chat79 .friend-actions265{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-top:10px}
body #chat-panel.chat79 .friend-actions265>button{position:relative;isolation:isolate;min-height:36px;padding:7px 10px;color:#f4e8c8;border:0;background:none;font-size:13px}
.realm-ui .family-presence265{font-size:13px;line-height:1.35;margin-top:6px;color:#6e5a43}
@media(max-width:359px){body #chat-panel.chat79 .chat-identity265,body #chat-panel.chat79 .chat-identity265 .identity109-nick{font-size:14px!important}body #chat-panel.chat79 .message.compact265{padding:7px 9px!important}}

/* The native modal remains above every game layer; artwork is canonical. */
body dialog.action-notice264{width:min(430px,calc(100vw - 24px));padding:9px!important;border:0;background:#eadbbf;border-radius:10px;font-family:var(--kg-font,Georgia,serif);overflow:auto;box-shadow:0 18px 65px #000c}
body dialog.action-notice264::backdrop{background:#100906b8}
body dialog.action-notice264 .kg-surface{display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;background-repeat:repeat;border-radius:8px}
body dialog.action-notice264>.kg-surface{border-radius:8px}
body dialog.action-notice264 .notice-head265{position:relative;isolation:isolate;display:flex;align-items:center;gap:9px;min-height:50px;padding:10px 14px;box-sizing:border-box}
body dialog.action-notice264 .notice-head265>.kg-icon{width:26px;height:26px;flex-shrink:0}
body dialog.action-notice264 .notice-head265 h3{margin:0;color:#f2e2c0!important;font-size:19px;line-height:1.25;font-weight:bold;text-shadow:0 1px 2px #000!important}
body dialog.action-notice264 .notice-body265{position:relative;padding:18px 14px 12px}
body dialog.action-notice264 .notice-body265 p{font-size:16px;line-height:1.5;margin:0 0 18px;color:#302116!important}
body dialog.action-notice264 .notice-body265 .kg-button{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:center;min-width:116px;width:auto;min-height:40px;margin:0 0 0 auto;padding:10px 18px;border:0;background:none;font-size:16px;line-height:1.25}
body dialog.action-notice264 .notice-body265 .kg-button,body dialog.action-notice264 .notice-body265 [data-kg-text]{color:#f2e2c0!important;text-shadow:0 1px 2px #000!important}
