/* Owner room icons (skin/room-icons, qa/prepare-room-icons.py) and the Friends dialog from the player dropdown. */
.wb-room-icon{display:inline-block;width:16px;height:16px;margin:0 4px 0 0;vertical-align:-3px;object-fit:contain;border:0;image-rendering:auto;flex:none}
/* Player Rooms: room rows and joined-room seats. These outrank the seat portrait rule (46px framed images). */
#wb-match-lobbies .wb-rooms-row-title small img.wb-room-icon{width:14px;height:14px;vertical-align:-2px}
#wb-match-lobbies .wb-rooms-row-title small img.wb-room-icon-friend{margin:0 0 0 5px}
#wb-match-lobbies .wb-lobby-seat img.wb-room-icon{display:inline-block;width:16px;height:16px;border:0}
#wb-match-lobbies .wb-lobby-seat strong span.wb-seat-marks{display:inline-flex;gap:3px;margin:0 0 0 6px;vertical-align:-2px}
#wb-match-lobbies .wb-lobby-seat strong span.wb-seat-marks img.wb-room-icon{margin:0}
#wb-match-lobbies .wb-lobby-seat span.wb-seat-ready.is-ready{display:flex;align-items:center}
#wb-match-lobbies .wb-lobby-seat span.wb-seat-ready img.wb-room-icon{width:15px;height:15px;margin-right:4px}
#wb-match-lobbies .wb-lobby-seat button.wb-seat-befriend{position:absolute;top:6px;right:6px;display:inline-flex;align-items:center;gap:1px;min-width:32px;min-height:28px;padding:2px 6px;border:1px solid #6d6750;border-radius:2px;background:#141818;color:#cfe0ff;font:bold 13px/1 Arial,sans-serif;cursor:pointer;opacity:.8}
#wb-match-lobbies .wb-lobby-seat button.wb-seat-befriend:is(:hover,:focus-visible){opacity:1;border-color:#ffd100;background:#2a2b23;outline:0;box-shadow:0 0 8px #ffd10044}
#wb-match-lobbies .wb-lobby-seat button.wb-seat-befriend img.wb-room-icon{margin:0}
#wb-match-lobbies .wb-lobby-seat:has(button.wb-seat-befriend)>div{padding-right:34px}
.wb-mobile-layout #wb-match-lobbies .wb-lobby-seat button.wb-seat-befriend{min-width:44px;min-height:44px;top:4px;right:4px;justify-content:center}
@media (pointer:coarse){#wb-match-lobbies .wb-lobby-seat button.wb-seat-befriend{min-width:44px;min-height:44px;top:4px;right:4px;justify-content:center}#wb-match-lobbies .wb-lobby-seat:has(button.wb-seat-befriend)>div{padding-right:44px}}

/* Friends dialog: the same framed parchment as the leaderboard (brown-panel-frame fills with parchment). */
#wb-friends{position:fixed;inset:0;z-index:2800;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:#000b;color:#50391f;font:13px/1.4 Arial,sans-serif}
#wb-friends[hidden]{display:none!important}
#wb-friends .wb-friends-frame{position:relative;display:flex;flex-direction:column;width:min(520px,100%);max-height:calc(100dvh - 40px);box-sizing:border-box;padding:24px 22px 20px;border:12px solid #201811;border-image:url('./skin/dialogue-ui/brown-panel-frame.png') 32 fill / 12px;background:linear-gradient(150deg,#30271d,#17120f);box-shadow:0 18px 70px #000b;overflow:hidden}
#wb-friends header{padding-right:40px;margin-bottom:14px}
#wb-friends h1{margin:0;color:#3f2d18;font:28px/1.2 WarbandFriz,Georgia,serif}
#wb-friends header p{margin:6px 0 0;color:#705337}
#wb-friends button{min-height:36px;padding:7px 12px;border:1px solid #8b704b;border-radius:2px;background:linear-gradient(#463322,#2b2017);box-shadow:none;color:#ead6ab;font:13px/1.2 Arial,sans-serif;cursor:pointer}
#wb-friends button:is(:hover,:focus-visible){border-color:#d6b777;color:#fff0c8;outline:1px solid #a7874e;outline-offset:1px}
#wb-friends button:disabled{opacity:.5;cursor:default}
#wb-friends .wb-stock-close{position:absolute;top:6px;right:6px;width:36px;height:36px;min-height:36px;padding:0;font-size:24px;line-height:1}
#wb-friends .wb-friends-add{display:grid;gap:6px;margin:0}
#wb-friends .wb-friends-add label{color:#5a4128;font-size:12px;font-weight:bold}
#wb-friends .wb-friends-add-row{display:flex;gap:8px}
#wb-friends .wb-friends-add input{flex:1;min-width:0;min-height:36px;box-sizing:border-box;padding:7px 10px;border:1px solid #7b6545;border-radius:2px;background:#0f0c09;color:#f3e4c2;font:14px/1.2 Arial,sans-serif}
#wb-friends .wb-friends-add input:focus-visible{outline:1px solid #d6b777;border-color:#d6b777}
#wb-friends .wb-friends-status{min-height:18px;margin:8px 0 4px;color:#705337}
#wb-friends .wb-friends-status[data-tone=error]{color:#9b2414}
#wb-friends .wb-friends-status[data-tone=success]{color:#2c6a26}
#wb-friends .wb-friends-rows{min-height:0;overflow:auto;overscroll-behavior:contain;border-top:1px solid #77654a66}
#wb-friends .wb-friends-count{margin:8px 2px 4px;color:#705337;font-size:12px}
#wb-friends .wb-friends-list{margin:0;padding:0;list-style:none}
#wb-friends .wb-friend{display:flex;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid #77654a45}
#wb-friends .wb-friend>img.wb-room-icon{width:20px;height:20px;margin:0}
#wb-friends .wb-friend.is-offline>img.wb-room-icon{filter:grayscale(1) brightness(.75)}
#wb-friends .wb-friend-text{display:grid;flex:1;min-width:0}
#wb-friends .wb-friend-name{overflow:hidden;color:#f3e6c4;font:400 15px/1.3 WarbandFriz,Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
#wb-friends .wb-friend.is-offline .wb-friend-name{color:#7a6850}
#wb-friends .wb-friend-status{overflow:hidden;color:#705337;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#wb-friends .wb-friend-status img.wb-room-icon{width:16px;height:16px;vertical-align:-3px}
#wb-friends .wb-friend-status.is-online{color:#2c6a26;font-weight:bold}
#wb-friends .wb-friend-status.is-lobby{color:#24536d;font-weight:bold}
#wb-friends .wb-friend-status.is-match{color:#6e4a10;font-weight:bold}
#wb-friends .wb-friend-status.is-campaign{color:#6e4a10;font-weight:bold}
.wb-friend-activity{display:inline-block;flex:none;width:20px;height:20px;object-fit:contain;vertical-align:-4px}
#wb-friends .wb-friend-status .wb-friend-activity{width:18px;height:18px;margin-right:4px}
#wb-friends .wb-friend-actions{display:flex;gap:6px;flex:none}
#wb-friends .wb-friend-join{border-color:#5f8a54;background:linear-gradient(#35502c,#1f2f1a)}
#wb-friends .wb-friends-empty{margin:0;padding:28px 6px;text-align:center;color:#705337}
#wb-friends .wb-friends-empty button{margin-left:6px}
.wb-mobile-layout #wb-friends{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
@media (max-width:560px){
 #wb-friends{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 #wb-friends .wb-friends-frame{max-height:calc(100dvh - 16px);padding:16px 12px 12px;border-width:8px;border-image-width:8px}
 #wb-friends h1{font-size:24px}
 #wb-friends .wb-friend-status{white-space:normal}
}
@media (pointer:coarse){#wb-friends button,#wb-friends .wb-friends-add input{min-height:44px;font-size:16px}#wb-friends .wb-stock-close{width:44px;height:44px}}
.wb-mobile-layout #wb-friends button,.wb-mobile-layout #wb-friends .wb-friends-add input{min-height:44px;font-size:16px}

/* Recently played with (friends-ui.mjs, owner 2026-10-28): at the top of the dialog's rows, in the stone dialog's palette
   (dialog-frames.css: light names, grey details, the gold section heading of the Social column). */
#wb-friends .wb-recent-players{margin:0 0 6px;padding:8px 2px 10px;border-bottom:1px solid #9b815b50}
#wb-friends .wb-recent-players-title{margin:0 0 4px;color:#e6cd8c;font:400 16px/1.3 WarbandFriz,Georgia,serif;letter-spacing:.04em}
/* Minimize/expand (owner, 2026-11-22): the title is the shared disclosure toggle, kept at the title's look. */
/* The game-wide #wb-lobby/#wb-ui button skin (wow-skin.css) must not paint this title. */
#wb-friends .wb-recent-players-toggle,#wb-ui #wb-friends .wb-recent-players-toggle{display:flex!important;align-items:center;gap:8px;width:100%;min-height:44px!important;margin:-10px 0!important;padding:0!important;border:0!important;border-image:none!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font:inherit!important;letter-spacing:inherit;text-align:left;white-space:nowrap}
#wb-friends .wb-recent-players.is-collapsed{padding-bottom:4px}
#wb-friends .wb-recent-players.is-collapsed .wb-recent-players-title{margin-bottom:0}
#wb-friends .wb-recent-players-list{margin:0;padding:0;list-style:none}
#wb-friends .wb-recent-player{display:flex;align-items:center;gap:10px;padding:7px 2px}
#wb-friends .wb-recent-player+.wb-recent-player{border-top:1px solid #9b815b30}
#wb-friends .wb-recent-player-text{display:grid;flex:1;min-width:0;gap:2px}
#wb-friends .wb-recent-player-name{justify-self:start;max-width:100%;overflow:hidden;color:#f3e6c4;font:400 15px/1.3 WarbandFriz,Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
#wb-friends .wb-recent-player.is-offline .wb-recent-player-name{color:#9d917b}
.wb-recent-player-name[class*=wb-cosmetic-frame-]{padding:0 5px;border:1px solid;border-radius:3px}
#wb-friends .wb-recent-player-meta{overflow:hidden;color:#bfb39a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#wb-friends .wb-recent-player-status.is-online{color:#7fd08a;font-weight:bold}
#wb-friends .wb-recent-player-status.is-lobby{color:#8fc3ff;font-weight:bold}
#wb-friends .wb-recent-player-status:is(.is-match,.is-campaign){color:#e0b45c;font-weight:bold}
#wb-friends .wb-recent-player-status .wb-friend-activity{width:16px;height:16px;margin-right:3px;vertical-align:-4px}
#wb-friends .wb-recent-player-actions{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:6px}
#wb-friends .wb-recent-player-state{align-self:center;color:#bfb39a;font-size:12px}
@media (max-width:560px){#wb-friends .wb-recent-player{flex-wrap:wrap}#wb-friends .wb-recent-player-actions{width:100%;justify-content:flex-start}#wb-friends .wb-recent-player-meta{white-space:normal}}

/* Friends window, modernized to match the profile (owner, 2026-11-22). The shop's stone frame over wood
   (login-notices.css) in place of the stone dialog kit; three ids outrank dialog-frames.css, whose selector list a test
   pins. The title sits on the wood, the add-a-friend row sits in the stone footer band, friends are dark bars, every
   button is red, and removing a friend is the shared X (close-buttons.css). */
#wb-friends#wb-friends#wb-friends .wb-friends-frame{--ln-top:30px;--ln-side:10px;--ln-bottom:60px;width:min(560px,100%);max-height:calc(100dvh - 40px - var(--ln-bottom));margin-bottom:var(--ln-bottom);padding:8px 16px 12px;
 border:solid transparent!important;border-width:var(--ln-top) var(--ln-side) var(--ln-bottom)!important;border-image:var(--wb-ln-frame) 58 18 100 18 / var(--ln-top) var(--ln-side) var(--ln-bottom) stretch!important;
 background:linear-gradient(#150c0666,#150c0699),var(--wb-ln-wood) center/cover no-repeat,#3b2314!important;background-clip:padding-box!important;overflow:visible}
#wb-friends#wb-friends#wb-friends .wb-friends-frame>header{padding:0;margin:0 0 8px}
#wb-friends#wb-friends#wb-friends .wb-friends-frame>header>h1{display:block;height:auto;min-width:0;margin:0!important;padding:0!important;border:0;border-image:none;background:none;color:#ffe9b0;font:400 26px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 2px 3px #000;text-align:left}
#wb-friends#wb-friends .wb-friends-frame>header>p{display:none}
#wb-friends#wb-friends button.wb-stock-close{position:absolute;z-index:5;top:calc(var(--ln-top) / -2 - 22px);right:calc(-1 * var(--ln-side) - 4px);width:44px;height:44px;min-height:44px;margin:0;padding:0;font-size:0}
/* Add a friend: in the footer band. The label stays for screen readers; the field says what to type. */
#wb-friends#wb-friends .wb-friends-add{position:absolute;left:14px;right:14px;bottom:calc(-1 * var(--ln-bottom));display:flex;align-items:center;height:var(--ln-bottom);margin:0;padding-top:2px;box-sizing:border-box}
#wb-friends#wb-friends .wb-friends-add label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#wb-friends#wb-friends .wb-friends-add-row{flex:1;align-items:center;gap:10px}
#wb-friends#wb-friends .wb-friends-add input{min-height:36px;border:8px solid transparent;border-image:var(--wb-ln-bar) 12 fill / 8px stretch;border-radius:0;background:none;padding:0 6px;color:#f6e3b0;font:14px/1.2 Arial,sans-serif}
#wb-friends#wb-friends .wb-friends-add input::placeholder{color:#a99c83}
#wb-friends#wb-friends .wb-friends-add input:focus-visible{outline:1px solid #f2c25a;outline-offset:-4px}
#wb-friends#wb-friends .wb-friends-status{min-height:0;margin:0 0 6px;color:#e8dcc4;text-shadow:0 1px 2px #000}
#wb-friends#wb-friends .wb-friends-status:empty{display:none}
#wb-friends#wb-friends .wb-friends-status[data-tone=error]{color:#ffb39a}
#wb-friends#wb-friends .wb-friends-status[data-tone=success]{color:#a5e08f}
#wb-friends#wb-friends .wb-friends-rows{border-top:0;padding-right:4px;scrollbar-width:thin;scrollbar-color:#7e673b #21160e}
#wb-friends#wb-friends .wb-friends-count{margin:8px 2px 6px;color:#e8dcc4;text-shadow:0 1px 2px #000}
#wb-friends#wb-friends .wb-friends-list{display:grid;gap:5px}
#wb-friends#wb-friends .wb-friend{min-height:44px;padding:0 4px 0 6px;border:8px solid transparent;border-image:var(--wb-ln-bar) 12 fill / 8px stretch}
#wb-friends#wb-friends .wb-friend-name{color:#f6e3b0}
#wb-friends#wb-friends .wb-friend.is-offline{filter:saturate(.6) brightness(.86)}
#wb-friends#wb-friends .wb-friend-actions{align-items:center;gap:8px}
#wb-friends#wb-friends button.wb-friend-remove{flex:none;width:26px;height:26px;min-height:26px;margin:0;padding:0;font-size:0;opacity:.8}
#wb-friends#wb-friends button.wb-friend-remove:is(:hover,:focus-visible){opacity:1}
#wb-friends#wb-friends .wb-friends-empty{color:#e8dcc4;text-shadow:0 1px 2px #000}
#wb-friends#wb-friends .wb-recent-players{border-bottom:1px solid #d6b16a40}
#wb-friends#wb-friends .wb-friend-requests{margin:6px 0;color:#e8dcc4}
#wb-friends#wb-friends .wb-friend-requests button{min-height:30px;padding:4px 12px;border:8px solid transparent;border-image:var(--wb-ln-bar) 12 fill / 8px stretch;border-radius:0;background:none;color:#f6e3b0;font:400 13px/1.2 WarbandFriz,Georgia,serif}
#wb-friends#wb-friends .wb-friend-requests button:is(:hover,:focus-visible){filter:brightness(1.25);outline:0;color:#ffd100}
@media (max-width:560px){#wb-friends#wb-friends#wb-friends .wb-friends-frame{--ln-top:26px;--ln-side:8px;--ln-bottom:60px;max-height:calc(100dvh - 16px - var(--ln-bottom));padding:6px 10px 10px}}
@media (pointer:coarse){#wb-friends#wb-friends button.wb-friend-remove{width:44px;height:44px;min-height:44px;background-size:26px!important}}
.wb-mobile-layout #wb-friends#wb-friends button.wb-friend-remove{width:44px;height:44px;min-height:44px;background-size:26px!important}
#wb-friends#wb-friends .wb-friend-request{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:2px 2px}
#wb-friends#wb-friends .wb-friend-request>span{display:flex;gap:6px;flex:none}
#wb-friends#wb-friends .wb-friend-request strong{overflow:hidden;color:#f6e3b0;font:400 15px/1.3 WarbandFriz,Georgia,serif;text-overflow:ellipsis;white-space:nowrap}
#wb-friends#wb-friends .wb-friend-requests>p{margin:6px 2px 2px;color:#b9ab8c;font-size:12px}
