/* Roblox 2020-style Messages page and chat bar. */
.m20{max-width:980px}
.m20-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.m20-head h1,.m20-read h1,.m20-compose h1{margin:0;font-size:32px;font-weight:bold}
.m20-read h1,.m20-compose h1{font-size:24px;margin-bottom:14px;overflow-wrap:anywhere}
.m20-button{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;font-size:15px;font-weight:bold;color:inherit;background:var(--surface);border:1px solid #b8babe;border-radius:3px;cursor:pointer;text-decoration:none}
.m20-button:hover{background:rgba(0,0,0,.06);text-decoration:none}
.m20-button.primary{background:#00a2ff;border-color:#00a2ff;color:#fff}
.m20-button.primary:hover{background:#32b5ff}
.m20-button.small{height:30px;padding:0 10px;font-size:13px}
.m20-button.big{height:44px;padding:0 36px;font-size:17px}
body.dark .m20-button:not(.primary){border-color:#656668}
.m20-tabs{display:flex;background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.12);margin-bottom:12px}
.m20-tabs a{flex:1;text-align:center;padding:12px 8px 10px;font-size:17px;font-weight:500;color:inherit;text-decoration:none;border-bottom:4px solid transparent}
.m20-tabs a:hover{border-bottom-color:#b8e3ff}
.m20-tabs a.selected{border-bottom-color:#00a2ff}
.m20-panel{background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.12)}
body.dark .m20-panel,body.dark .m20-tabs{box-shadow:none}
.m20-toolbar{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);min-height:30px}
.m20-all{display:flex;align-items:center;padding-right:6px}
.m20-row{display:flex;align-items:center;gap:10px;padding:0 12px;border-bottom:1px solid var(--line)}
.m20-row:hover{background:rgba(0,0,0,.03)}
.m20-row.unread{box-shadow:inset 4px 0 #00a2ff}
.m20-row.unread .m20-who,.m20-row.unread .m20-subject strong{font-weight:bold}
.m20-link{display:grid;grid-template-columns:36px 150px minmax(0,1fr) auto;align-items:center;gap:12px;flex:1;min-width:0;padding:12px 0;color:inherit;text-decoration:none}
.m20-link:hover .m20-subject strong{text-decoration:underline}
.m20-who{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m20-subject{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.m20-subject strong{font-weight:500}
.m20-subject span{color:var(--muted)}
.m20-date{font-size:13px;color:var(--muted);white-space:nowrap}
.m20-initial,.c20-initial{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#d4d6d8;color:#393b3d;font-weight:bold;font-size:16px}
body.dark .m20-initial,body.dark .c20-initial{background:#4a4d50;color:#eee}
.m20-none{padding:40px;margin:0;text-align:center;color:var(--muted)}
.m20-back{display:inline-block;margin-bottom:12px;font-size:15px}
.m20-read,.m20-compose{padding:22px}
.m20-meta{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.m20-meta span{display:flex;flex-direction:column;font-size:15px}
.m20-meta a{font-weight:bold}
.m20-meta small{color:var(--muted);font-size:13px}
.m20-body{padding:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;font-size:15px}
.m20-actions{display:flex;gap:10px}
.m20-compose label{display:block;margin:12px 0 6px;font-weight:bold;font-size:14px}
.m20-compose input,.m20-compose textarea{width:100%;box-sizing:border-box;padding:8px 10px;font:inherit;font-size:15px;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:3px}
.m20-compose .m20-button{margin-top:6px}
.m20-badge{margin-left:auto;min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:#e2231a;color:#fff;font-size:12px;font-weight:bold;line-height:20px;text-align:center}
#side-nav a[data-nav="messages"]{display:flex;align-items:center}
/* Chat bar, Roblox 2020 style: white (or dark grey) panels docked at the bottom right, round avatar headshots. */
.chat-toggle{gap:8px}
.c20-badge{min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;margin-left:auto;border-radius:10px;background:#e2231a;color:#fff;font-size:12px;line-height:20px;text-align:center}
.chat-box{width:280px;height:440px;display:flex;flex-direction:column;border-radius:4px 4px 0 0;overflow:hidden;background:#fff;color:#393b3d;box-shadow:0 0 8px rgba(0,0,0,.2)}
body.dark .chat-box,body.dark .c20-window{background:#232527;color:#e8e9ea;box-shadow:0 0 8px rgba(0,0,0,.6)}
.chat-box[hidden],.chat-toggle[hidden]{display:none!important}
.c20-head{display:flex;align-items:center;justify-content:space-between;gap:8px;height:44px;padding:0 8px 0 14px;flex-shrink:0;background:#fff;color:#393b3d;font-weight:bold;font-size:16px;border-bottom:1px solid #e3e3e3}
body.dark .c20-head{background:#393b3d;color:#fff;border-bottom-color:#232527}
.c20-head a{color:inherit;text-decoration:none}
.c20-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;background:none;border:0;border-radius:3px;color:inherit;cursor:pointer}
.c20-icon:hover{background:rgba(0,0,0,.06)}
body.dark .c20-icon:hover{background:rgba(255,255,255,.1)}
.c20-icon .ui-icon{width:20px;height:20px}
.c20-search-wrap{padding:8px 10px;flex-shrink:0;border-bottom:1px solid #e3e3e3}
body.dark .c20-search-wrap{border-bottom-color:#393b3d}
.c20-search{display:block;width:100%;min-width:0;height:30px;box-sizing:border-box;padding:0 10px;font-size:13px;color:inherit;background:#f2f4f5;border:1px solid #e3e3e3;border-radius:3px}
body.dark .c20-search{background:#191b1d;border-color:#4a4d50}
.c20-list{flex:1;overflow:auto}
.c20-row{display:flex;align-items:center;gap:10px;width:100%;padding:7px 12px;color:inherit;text-align:left;background:transparent;border:0;cursor:pointer}
.c20-row:hover,.c20-row.active{background:#f2f4f5}
body.dark .c20-row:hover,body.dark .c20-row.active{background:#393b3d}
.c20-avatar{position:relative;display:inline-block;flex-shrink:0;width:44px;height:44px}
.c20-avatar .hs-img{width:100%;height:100%;border-radius:50%;background:#d4d6d8}
body.dark .c20-avatar .hs-img{background:#4a4d50}
.c20-avatar.small{width:30px;height:30px}
.c20-avatar.tiny{width:26px;height:26px}
.c20-avatar.big{width:84px;height:84px}
.c20-online{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;background:#02b757;border:2px solid #fff}
body.dark .c20-online{border-color:#232527}
.c20-avatar.small .c20-online{width:9px;height:9px}
.c20-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.c20-name-line{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0}
.c20-name-line strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c20-name-line time{flex-shrink:0;font-size:11px;color:#8b8d8f}
.c20-text small{font-size:13px;color:#8b8d8f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c20-row.unread small{color:inherit;font-weight:bold}
.c20-count{min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:#00a2ff;color:#fff;font-size:12px;font-weight:bold;line-height:20px;text-align:center}
.c20-empty{padding:24px 16px;margin:0;text-align:center;font-size:14px;color:#8b8d8f;line-height:1.5}
.c20-empty strong{display:block;color:inherit;font-size:15px}
.c20-link{display:inline-block;margin-top:6px}
.c20-window{position:fixed;right:305px;bottom:0;z-index:30;width:300px;height:400px;display:flex;flex-direction:column;background:#fff;color:#393b3d;box-shadow:0 0 8px rgba(0,0,0,.2);border-radius:4px 4px 0 0;overflow:hidden}
.c20-window-head{padding-left:10px}
.c20-window-user{display:flex;align-items:center;gap:8px;min-width:0}
.c20-window-user span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c20-window-user:hover span:last-child{text-decoration:underline}
.c20-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:3px;padding:10px 10px 12px}
.c20-time{margin:10px 0 6px;font-size:11px;color:#8b8d8f;text-align:center}
.c20-line{display:flex;align-items:flex-end;gap:6px}
.c20-line.first{margin-top:6px}
.c20-line.mine{justify-content:flex-end}
.c20-avatar-space{width:26px;flex-shrink:0}
.c20-bubble{max-width:75%;padding:7px 10px;border-radius:8px;font-size:14px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}
.c20-line.theirs .c20-bubble{background:#f2f4f5;color:#393b3d}
.c20-line.mine .c20-bubble{background:#00a2ff;color:#fff}
body.dark .c20-line.theirs .c20-bubble{background:#393b3d;color:#fff}
.c20-start{display:flex;flex-direction:column;align-items:center;gap:6px;margin:auto 0;text-align:center;font-size:14px;color:#8b8d8f}
.c20-start p{margin:0}
.c20-start strong{color:inherit}
.c20-error{margin:4px 0;font-size:13px;color:#d43131;text-align:center}
.c20-send{display:flex;align-items:center;gap:6px;padding:8px;border-top:1px solid #e3e3e3;flex-shrink:0}
body.dark .c20-send{border-top-color:#393b3d}
.c20-send textarea{flex:1;min-width:0;resize:none;height:34px;box-sizing:border-box;padding:7px 10px;font:inherit;font-size:14px;color:inherit;background:#f2f4f5;border:1px solid #e3e3e3;border-radius:3px}
body.dark .c20-send textarea{background:#191b1d;border-color:#4a4d50}
.c20-send-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;padding:0;color:#00a2ff;background:none;border:0;border-radius:3px;cursor:pointer}
.c20-send-button:hover{background:rgba(0,162,255,.12)}
.c20-send-button .ui-icon{width:22px;height:22px}
/* Scaling: keep the chat panels inside the window at any size or Windows display scaling. */
.chat-box,.c20-window{max-height:calc(100vh - 56px);box-sizing:border-box}
.c20-window{width:min(300px,calc(100vw - 310px))}
@media(max-width:700px){.c20-window{right:0;left:0;width:auto;height:60vh}.m20-link{grid-template-columns:36px minmax(0,1fr) auto}.m20-subject{display:none}}
.m20-face{display:inline-block;width:40px;height:40px;flex-shrink:0}
.m20-face .hs-img{width:100%;height:100%;border-radius:50%;background:#d4d6d8}
body.dark .m20-face .hs-img{background:#4a4d50}
.m20-meta .m20-face{width:48px;height:48px}
.m20-link{grid-template-columns:40px 150px minmax(0,1fr) auto}
@media(max-width:700px){.m20-link{grid-template-columns:40px minmax(0,1fr) auto}}
.c20-online{background:#00a2ff}
.c20-online.in-game{background:#02b757}

/* 2020 Messages look: plain title, white tab bar with a blue line, News count, gray "no messages" bar. */
.m20 .m20-head h1{font-weight:400}
.m20-tabs{border:1px solid #d6d8da;box-shadow:none;margin-bottom:12px}
body.dark .m20-tabs{border-color:transparent}
.m20-tabs a{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px 7px;font-size:15px;font-weight:400}
.m20-tabs a.selected{border-bottom-color:#00a2ff}
.m20-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:16px;padding:0 5px;border-radius:9px;background:#0074bd;color:#fff;font-size:10px;font-weight:bold;line-height:1}
.m20-none{padding:13px 16px;background:#c4c4c4;color:#4f4f4f;font-size:14px;text-align:center}
body.dark .m20-none{background:#2b2d2f;color:#b9bdc1}
.m20 .m20-head .m20-button{height:32px;font-size:14px;font-weight:500}