.app-navigation .nav-symbol{display:grid;place-items:center;width:25px;height:25px;margin:auto;color:inherit}
.app-navigation .nav-symbol svg{width:24px;height:24px;display:block}
.app-navigation .nav-symbol.has-photo{border-radius:50%;overflow:hidden}
.app-navigation .nav-symbol img{width:100%;height:100%;object-fit:cover}
.app-navigation .selected .nav-symbol.has-photo{outline:2px solid var(--refresh-blue);outline-offset:2px}
.app-navigation button{display:flex;flex-direction:column;justify-content:center;gap:0}
.app-navigation button.selected:before{display:none}
.app-navigation .nav-symbol{margin:0 auto}
.feed-heading-actions{display:flex;align-items:center;gap:4px}
.chat-inbox-button{position:relative;background:none;border:0;display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px}
.chat-unread{position:absolute;right:0;top:0;min-width:16px;padding:2px 4px;border-radius:12px;background:var(--refresh-blue);color:#06141b;font:10px Arial}
.challenge-social-tabs{display:flex;gap:6px;border-bottom:1px solid var(--refresh-line);margin:-12px 0 22px}
.challenge-social-tabs button{flex:1;padding:12px 4px;border:0;border-radius:0;background:none;font-size:12px;color:var(--refresh-muted);position:relative}
.challenge-social-tabs button[aria-selected=true]{color:var(--refresh-text);border-bottom:2px solid var(--refresh-blue)}
#overview[data-challenge-tab]:not([data-challenge-tab=today])>.grid,#overview[data-challenge-tab]:not([data-challenge-tab=today])>.challenge-details,#overview[data-challenge-tab]:not([data-challenge-tab=today])>#step-tracker,#overview[data-challenge-tab]:not([data-challenge-tab=today])>#organizer-pot,#overview[data-challenge-tab]:not([data-challenge-tab=today])>#challenge-status{display:none!important}
#overview[data-challenge-tab=chat]>.challengers-section,#overview[data-challenge-tab=schedule]>.challengers-section{display:none!important}
body:has(#overview[data-challenge-tab]:not([data-challenge-tab=today])) #organizer-correction{display:none!important}
.chat-schedule .schedule-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chat-schedule .schedule-day{min-width:0;padding:10px 7px}.chat-schedule .schedule-day strong{font-size:15px}.chat-schedule .schedule-day small{display:block;font-size:10px}
.chat-intro{font-size:12px;color:var(--refresh-muted);margin:0 0 18px;text-align:center;line-height:1.5}
.chat-thread{display:flex;flex-direction:column;min-width:0}
.chat-log{min-height:140px;padding:10px 0 4px}
.chat-day{text-align:center;font-size:10px;color:var(--refresh-muted);margin:10px 0 22px}
.chat-row{display:flex;gap:8px;align-items:flex-end;margin:0 0 18px;min-width:0}
.chat-row.mine{justify-content:flex-end}
.chat-avatar{width:28px;height:28px;border-radius:50%;overflow:hidden;background:#292929;color:#f5f5f5;display:grid;place-items:center;font-size:10px;flex:none}
.chat-avatar img{width:100%;height:100%;object-fit:cover}
.chat-content{max-width:79%;min-width:0}
.chat-name{display:block;color:var(--refresh-muted);font-size:11px;margin:0 0 5px 12px}
.chat-bubble{margin:0;background:#1c1c1c;color:#f5f5f5;border-radius:18px 18px 18px 5px;padding:11px 14px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.5 Arial,sans-serif}
.mine .chat-bubble{background:#373737;border-radius:18px 18px 5px 18px}
.chat-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin:3px 5px 0;color:var(--refresh-muted)}
.chat-meta time{font-size:10px}.chat-meta button{min-height:28px;min-width:32px;border:0;background:none;padding:0;color:var(--refresh-muted)}.chat-meta svg{width:16px;height:16px}
.chat-composer{display:flex;gap:8px;align-items:flex-end;position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));z-index:12;padding:12px 0;background:var(--refresh-bg);margin-top:auto}
.chat-composer textarea{resize:none;min-height:44px;max-height:140px;padding:11px 15px;border-radius:23px;border:1px solid #373737;background:#191919;color:#f5f5f5;font:16px/1.35 Arial;margin:0}
.chat-send{display:grid;place-items:center;background:#373737!important;color:#fff!important;border:0;border-radius:50%;width:44px;min-width:44px;height:44px;padding:10px}
.chat-status{font-size:12px;color:var(--refresh-muted);line-height:1.4;margin:7px 0}.chat-status:empty{display:none}
.chat-more{display:block;margin:0 auto;border:0;background:none;color:var(--refresh-muted);font-size:12px}
dialog.chat-dialog{width:min(100%,600px);max-width:600px;height:100dvh;max-height:100dvh;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 22px calc(12px + env(safe-area-inset-bottom));border:0;border-radius:0;background:var(--refresh-bg);color:var(--refresh-text);overflow:auto;overscroll-behavior:contain}
.chat-dialog .chat-header{display:flex;align-items:center;gap:8px;position:sticky;top:calc(-14px - env(safe-area-inset-top));background:var(--refresh-bg);padding:10px 0;z-index:2}
.chat-header h2{font-size:19px;line-height:1.2;margin:0;overflow-wrap:anywhere}.chat-header small{display:block;color:var(--refresh-muted);font-size:11px;margin-top:4px}.chat-heading-copy{flex:1;min-width:0}
.chat-header button{border:0;background:none;display:grid;place-items:center;min-width:44px;padding:8px}
.chat-dialog .chat-composer{bottom:calc(-12px - env(safe-area-inset-bottom));padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.chat-inbox-row{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--refresh-line);border-radius:0;background:none}
.chat-inbox-row .chat-avatar{width:42px;height:42px;font-size:14px}.chat-inbox-copy{flex:1;min-width:0}.chat-inbox-copy strong{display:block;font-size:14px;font-weight:600}.chat-inbox-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--refresh-muted);margin-top:5px}.chat-inbox-row>small{color:var(--refresh-muted);font-size:11px}.chat-inbox-count{min-width:19px;border-radius:20px;background:#373737;color:#f5f5f5;padding:3px 6px;text-align:center;font-size:11px}
.chat-new{width:100%;background:var(--refresh-card);border:1px solid var(--refresh-line);border-radius:12px;margin:12px 0;padding:13px;display:flex;gap:10px;align-items:center}
[data-profile-friend]{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.feed-like-row{display:flex;align-items:center;gap:5px;margin:8px 0}.feed-like-row button{display:grid;place-items:center;border:0;background:none;min-width:44px;padding:8px;color:var(--refresh-text)}.feed-like-row button[aria-pressed=true] svg{fill:currentColor}.feed-like-row span{font-size:12px;color:var(--refresh-muted)}
@media(max-width:360px){dialog.chat-dialog{padding-inline:16px}.challenge-social-tabs{gap:0}.chat-bubble{padding:10px 12px}.chat-content{max-width:80%}}

.app-navigation [data-chat-nav] .chat-unread{right:calc(50% - 23px);top:0}
#chat-view>h1{margin-top:14px;margin-bottom:22px}
