/* Keep nested chat headers aligned with the game's close-header layout. */
body #chat-panel.chat79 .chat-scroll>.sw-head{display:flex!important;align-items:center;gap:8px;padding:10px 14px;min-height:60px}
body #chat-panel.chat79 .chat-scroll>.sw-head h2{display:flex!important;align-items:center;justify-content:flex-start!important;flex:1 1 auto!important;width:auto!important;min-width:0;margin:0!important;font-size:21px;line-height:1.2;text-align:left!important}
body #chat-panel.chat79 .chat-scroll>.sw-head>.kg-round{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;margin:0!important}
body #chat-panel.chat79 .chat-message-actions266{display:flex;align-items:center;flex:0 0 auto;gap:2px}
body #chat-panel.chat79 .compact265 .chat-reply-arrow266{display:inline-flex;align-items:center;justify-content:center;background:none!important;border:0!important;box-shadow:none!important;color:inherit;font:24px/28px Georgia,serif!important}
body #chat-panel.chat79 .chat-address266{font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body #chat-panel.chat79 .chat-sent266{opacity:1!important;color:#f1e3c6!important;-webkit-text-fill-color:#f1e3c6}
body #chat-panel.chat79 .chat-sent266>.kg-surface{filter:brightness(.7) saturate(.5)!important;opacity:1!important}
body #chat-panel.chat79 .chat-sent266>[data-kg-text]{opacity:1!important;color:#f1e3c6!important}
/* Both indicators live in one anchored row; updates never change their anchor. */
body .chat-counter-pair266{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;pointer-events:none;white-space:nowrap}
body.game-shell #game-footer #nav #chat-launch>.chat-counter-pair266{position:absolute;right:5px;top:3px;bottom:auto;left:auto;z-index:8}
body .chat-counter-pair266>.chat-counter266,body.game-shell #game-footer #nav .chat-counter-pair266>.chat-counter266{position:static!important;display:inline-flex;align-items:center;justify-content:center;min-width:13.333px;width:auto;height:13.333px!important;min-height:13.333px;padding:0 2.667px!important;border:1px solid #e6c994;border-radius:10px;color:#fff2d0;font:700 8px/1 Georgia,serif!important;text-shadow:none;box-sizing:border-box;transform:none!important;margin:0!important}
body .chat-counter-pair266>.chat-nav-unread,body.game-shell #game-footer #nav .chat-counter-pair266>.chat-nav-unread{background:#9e302a!important}
body .chat-counter-pair266>.chat-direct-count266,body.game-shell #game-footer #nav .chat-counter-pair266>.chat-direct-count266{background:#356f3a!important}
body .chat-counter-pair266>.chat-counter266[hidden],body.game-shell #game-footer #nav .chat-counter-pair266>.chat-counter266[hidden]{display:none!important}
body #chat-panel .chat-tabs>button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
body #chat-panel .chat-tabs .chat-counter-pair266{flex:none}
body #chat-panel.chat79 .friend-search266{position:relative;isolation:isolate;padding:12px;margin:10px 0 14px}
body #chat-panel.chat79 .friend-search266 label{display:block;font-size:15px;margin-bottom:7px}
body #chat-panel.chat79 .friend-search-fields266{display:flex;align-items:stretch;gap:7px}
body #chat-panel.chat79 .friend-search-fields266>.field{min-width:0;width:100%;flex:1;padding:7px 9px;font-size:16px}
body #chat-panel.chat79 .friend-search-fields266>.kg-button{position:relative;isolation:isolate;flex:0 0 auto;width:auto!important;max-width:40%;min-width:70px;padding:8px 14px;font-size:14px;min-height:38px;color:#f4e8c8}
body #chat-panel.chat79 .friend-found266{padding:12px 0 4px;border-top:1px solid #b69669;margin-top:12px}
