/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* font */
@font-face {
    font-family: "gg sans";
    src: url("../assets/fonts/ggsans-normal.woff2");
}

/* html & body */
html {
    height: 100%;
}

body {
    background: #1e1f22;
    color: #dbdee1;
    height: 100%;
    min-height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: "gg sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* icons */
svg,
img.icon,
.icon img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* header icons */
.header-icons img,
.top-icons img,
.top-left img,
.server-tools img,
.mobile-menu-btn img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* chat input icons */
.input-icons img,
.message-icons img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* voice panel icons */
.voice-controls img,
.voice-btn img,
.panel-icon img {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.voice-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* small icons */
.section-actions img,
.action-icon img,
.header-search img,
.server-search img,
.pin-icon,
.mutual-line img {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.voice-mini {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* plus button */
.plus-icon img,
.message-plus img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* server rail icons */
.server-icon.add-server img,
.server-icon.explore img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.server-icon.home img {
    width: 26px;
    height: 18px;
    object-fit: contain;
}

/* app container */
.app {
    display: flex;
    height: 100%;
    min-height: 100%;
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* mobile top bar */
.mobile-top-bar {
    display: none;
    height: 42px;
    min-height: 42px;
    background: #1e1f22;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
}

.mobile-top-bar .top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f2f3f5;
}

.mobile-top-bar .top-left svg {
    width: 22px;
    height: 22px;
    color: #dbdee1;
}

.mobile-top-bar .top-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.mobile-top-bar .top-icons span {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-top-bar .top-icons svg {
    width: 22px;
    height: 22px;
}

.input-divider {
    width: 1px;
    height: 22px;
    background: #4e5058;
    margin: 0 2px;
    flex-shrink: 0;
}

.chevron-mini {
    width: 14px;
    height: 14px;
    color: currentColor;
    opacity: 0.8;
}

/* mobile buttons */
.mobile-menu-btn,
.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #dbdee1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* server sidebar */
.server-rail {
    width: 72px;
    background: #1e1f22;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.server-rail::-webkit-scrollbar {
    display: none;
}

.server-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    flex-shrink: 0;
    color: #dbdee1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #313338;
    text-decoration: none;
    transition: border-radius 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* server avatar */
.server-icon > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.server-icon.home img {
    width: 28px;
    height: 22px;
    object-fit: contain;
    border-radius: 0;
}

.server-icon.add-server img,
.server-icon.explore img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 0;
}

/* server icons */
.server-icon svg {
    width: 24px;
    height: 24px;
}

.server-icon.home {
    background: #5865f2;
    color: #fff;
}

.server-icon:hover,
.server-icon.active {
    border-radius: 16px;
}

.server-icon:hover {
    background: #5865f2;
}

.server-icon .pill {
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 8px;
    border-radius: 0 4px 4px 0;
    background: #fff;
    opacity: 0;
    transition: height 0.15s ease, opacity 0.15s ease;
}

.server-icon.active .pill {
    height: 40px;
    opacity: 1;
}

.server-icon.unread .pill {
    height: 8px;
    opacity: 1;
}

/* server rail badge */
.badge-rail {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f23f43;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 9px;
    border: 3px solid #1e1f22;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: content-box;
}

.badge-rail.new {
    background: #ffffff;
    color: #1e1f22;
    font-size: 9px;
    font-weight: 800;
    padding: 0 4px;
}

.server-icon:hover .pill {
    height: 20px;
    opacity: 1;
}

.rail-divider {
    width: 32px;
    height: 2px;
    background: #35363c;
    border-radius: 1px;
    margin: 4px 0;
}

.server-icon.add-server,
.server-icon.explore {
    color: #23a55a;
}

.server-icon.add-server:hover,
.server-icon.explore:hover {
    background: #23a55a;
    color: #fff;
}

/* dm sidebar */
.dm-list {
    width: 240px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.search-bar {
    padding: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    background: #1e1f22;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 6px 8px;
    color: #dbdee1;
    font-size: 13px;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: #949ba4;
}

.dm-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}

/* nav tabs */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #949ba4;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    background: #35373c;
    color: #dbdee1;
}

.nav-icon img,
.nav-icon svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
}

.badge {
    background: #f23f43;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.badge.new {
    background: #ffffff;
    color: #1e1f22;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #949ba4;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-actions .action-icon {
    cursor: pointer;
    color: #949ba4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-actions .action-icon:hover {
    color: #dbdee1;
}

.section-actions .action-icon svg {
    width: 16px;
    height: 16px;
}

/* dm items */
.dm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #949ba4;
    font-size: 15px;
    position: relative;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dm-item:hover {
    background: #35373c;
    color: #dbdee1;
}

.dm-item.active {
    background: #404249;
    color: #fff;
}

.avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 3px solid #2b2d31;
    box-sizing: content-box;
}

.dm-item.active .status,
.dm-item:hover .status {
    border-color: #404249;
}

.status.online {
    background: #23a55a;
}

.status.idle {
    background: #f0b232;
    border-color: #2b2d31;
}

.status.idle::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2b2d31;
    top: -2px;
    left: -4px;
}

.status.dnd {
    background: #f23f42;
}

.status.dnd::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    background: #2b2d31;
    top: 4px;
    left: 2px;
    border-radius: 1px;
}

.status.offline {
    background: transparent;
    border: 3px solid #949ba4;
}

.dm-item .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.dm-item .tag {
    font-size: 10px;
    font-weight: 700;
    color: #b5bac1;
    background: #1e1f22;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.dm-item.two-line {
    align-items: center;
}

.text-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.subtext {
    font-size: 12px;
    color: #80848e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.voice-mini {
    width: 14px;
    height: 14px;
    color: #23a55a;
    flex-shrink: 0;
}

.pin-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: #949ba4;
    flex-shrink: 0;
    transform: rotate(35deg);
}

/* voice panel */
.voice-panel {
    background: #232428;
    padding: 8px 8px;
    flex-shrink: 0;
}

.voice-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 6px 4px;
}

.voice-icon {
    width: 18px;
    height: 18px;
    color: #23a55a;
    flex-shrink: 0;
}

.voice-text {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.voice-title {
    font-size: 13px;
    color: #23a55a;
    font-weight: 600;
}

.voice-sub {
    font-size: 12px;
    color: #949ba4;
}

.voice-btn {
    cursor: pointer;
    color: #949ba4;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover {
    color: #dbdee1;
}

.voice-btn.hangup {
    color: #f23f42;
}

.voice-btn.hangup:hover {
    color: #ff5e61;
}

.voice-btn svg {
    width: 18px;
    height: 18px;
}

.voice-controls {
    display: flex;
    justify-content: space-around;
    padding-top: 6px;
    border-top: 1px solid #2b2d31;
    color: #949ba4;
}

.voice-controls span {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-controls span:hover {
    background: #35373c;
    color: #dbdee1;
}

.voice-controls svg {
    width: 18px;
    height: 18px;
}

/* user bar */
.user-panel {
    background: #232428;
    height: 52px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.user-panel .avatar-wrap {
    flex-shrink: 0;
}

.user-panel .text-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-panel .name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel .subtext {
    font-size: 12px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel .icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    color: #b5bac1;
}

.user-panel .icon:hover {
    background: #35373c;
    color: #dbdee1;
}

.user-panel .icon img,
.user-panel .icon svg {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.user-panel .icon.muted,
.user-panel .icon.deafened {
    background: #3b242a;
    color: #f23f43;
}

.user-panel .icon.muted:hover,
.user-panel .icon.deafened:hover {
    background: #472b32;
    color: #f23f43;
}

/* chat column */
.chat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
    min-width: 0;
    height: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    height: 48px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    font-weight: 600;
    color: #f2f3f5;
    flex-shrink: 0;
    z-index: 2;
    background: #313338;
}

.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dm-hash {
    width: 24px;
    height: 24px;
    color: #949ba4;
    flex-shrink: 0;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.header-icons > span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons > span:hover {
    color: #dbdee1;
}

.header-icons svg {
    width: 24px;
    height: 24px;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: #3f4147;
}

.header-search {
    display: flex;
    align-items: center;
    background: #1e1f22;
    border-radius: 4px;
    padding: 0 8px;
    gap: 6px;
    height: 28px;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #dbdee1;
    font-size: 13px;
    width: 120px;
    font-family: inherit;
}

.header-search input::placeholder {
    color: #949ba4;
}

.header-search svg {
    width: 16px;
    height: 16px;
    color: #949ba4;
}

.chat-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 24px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}

.big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
}

.big-name {
    font-size: 32px;
    font-weight: 700;
    color: #f2f3f5;
    word-break: break-word;
}

.big-username {
    color: #949ba4;
    font-size: 16px;
    margin-bottom: 16px;
}

.dm-start {
    color: #949ba4;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.dm-start strong {
    color: #f2f3f5;
}

.mutual-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 13px;
    color: #949ba4;
    flex-wrap: wrap;
}

.btn {
    background: #4e5058;
    color: #dbdee1;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.btn:hover {
    background: #6d6f78;
}

.btn.primary {
    background: #5865f2;
    color: white;
}

.btn.primary:hover {
    background: #4752c4;
}

.btn.danger {
    background: #402226;
    color: #f2717a;
}

.btn.danger:hover {
    background: #4c2a2f;
}

.mascot {
    width: 130px;
    max-width: 100%;
    margin: 10px 0 20px 0;
}

.wave-btn {
    background: #5865f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 24px;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.wave-btn:hover {
    background: #4752c4;
}

/* chat date divider */
.chat-divider {
    width: 100%;
    height: 1px;
    background: #3f4147;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-divider span {
    background: #313338;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #949ba4;
    border-radius: 4px;
}

/* chat message */
.chat-msg {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
}

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.msg-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.msg-time {
    font-size: 12px;
    color: #949ba4;
}

.msg-text {
    font-size: 15px;
    color: #dbdee1;
    line-height: 1.4;
    word-break: break-word;
}

.msg-sticker {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 6px;
    display: block;
}

.chat-input-row {
    margin: 0 16px 16px 16px;
    background: #383a40;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    min-height: 44px;
    height: 44px;
    flex-shrink: 0;
}

.plus-icon {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    color: #b5bac1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.plus-icon:hover {
    color: #dbdee1;
}

.plus-icon img,
.plus-icon svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.chat-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #dbdee1;
    font-size: 15px;
    padding: 11px 0;
    font-family: inherit;
}

.chat-input-row input::placeholder {
    color: #6d6f78;
}

.input-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.input-icons span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icons span:hover {
    color: #dbdee1;
}

.input-icons svg {
    width: 24px;
    height: 24px;
}

.desktop-only {
    display: flex;
}

.input-send {
    background: none;
    border: none;
    color: #5865f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.input-send:hover {
    color: #4752c4;
}

.input-send svg,
.input-send img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* profile panel */
.profile-panel {
    width: 300px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}

.profile-banner {
    height: 60px;
    background: linear-gradient(135deg, #5c5f66, #40434a);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    color: white;
    flex-shrink: 0;
}

.panel-icon {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-icon svg {
    width: 16px;
    height: 16px;
}

.profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: -46px 0 0 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #2b2d31;
    display: block;
    object-fit: cover;
}

.status.big {
    width: 18px;
    height: 18px;
    right: 2px;
    bottom: 2px;
    border: 4px solid #2b2d31;
}

.profile-info {
    padding: 16px 20px 8px 20px;
}

.profile-info h2 {
    color: #f2f3f5;
    font-size: 20px;
    margin-bottom: 4px;
    word-break: break-word;
}

.profile-sub {
    font-size: 14px;
    color: #dbdee1;
    margin-bottom: 12px;
}

.profile-divider {
    height: 1px;
    background: #3f4147;
    margin: 12px 0;
}

.mutual-line {
    font-size: 13px;
    color: #dbdee1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mutual-line svg,
.mutual-line img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.profile-info h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #949ba4;
    margin-bottom: 6px;
    font-weight: 700;
}

.profile-info p {
    font-size: 14px;
    color: #dbdee1;
}

.view-profile-btn {
    margin: auto 20px 20px 20px;
    background: #35373c;
    color: #dbdee1;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.view-profile-btn:hover {
    background: #3f4147;
}

/* tablet view */
@media (max-width: 1024px) {
    /* hide profile panel */
    .profile-panel {
        display: none !important;
    }

    /* compact sidebars */
    .server-rail {
        width: 64px;
    }

    .dm-list {
        width: 210px;
    }

    /* hide extra icons */
    .header-icons span[title="Start Video Call"],
    .header-icons span[title="Pinned Messages"],
    .header-icons span[title="Inbox"],
    .header-icons span[title="Help"],
    .header-divider {
        display: none;
    }

    .header-search input {
        width: 80px;
    }
}

/* mobile view */
@media (max-width: 768px) {
    /* show top bar */
    .mobile-top-bar {
        display: flex;
    }

    /* menu button */
    .mobile-menu-btn {
        display: flex;
        padding: 4px;
        margin-right: 4px;
        border-radius: 4px;
    }

    .mobile-menu-btn:hover {
        background: #35373c;
    }

    .mobile-menu-btn svg,
    .mobile-menu-btn img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    /* close button */
    .sidebar-close-btn {
        display: flex;
        font-size: 20px;
        line-height: 1;
        padding: 4px 8px;
        margin-left: 6px;
        border-radius: 4px;
    }

    .sidebar-close-btn:hover {
        background: #35373c;
    }

    /* hide sidebars by default */
    .server-rail,
    .dm-list {
        display: none;
    }

    .chat-column {
        width: 100%;
        flex: 1;
        height: 100%;
        height: 100dvh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* show sidebar when toggled */
    .app.show-sidebar .server-rail {
        display: flex;
        width: 72px;
        flex-shrink: 0;
    }

    .app.show-sidebar .dm-list {
        display: flex;
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .app.show-sidebar .chat-column {
        display: none;
    }

    /* mobile header */
    .chat-header {
        height: 48px;
        min-height: 48px;
        padding: 0 10px;
        gap: 8px;
        flex-shrink: 0;
    }

    .chat-name {
        max-width: 240px;
        font-size: 16px;
    }

    .header-icons {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    /* mobile chat body */
    .chat-body {
        padding: 16px 12px 8px;
        flex: 1 1 0;
        min-height: 0;
    }

    .big-avatar {
        width: 60px;
        height: 60px;
    }

    .big-name {
        font-size: 22px;
    }

    .mutual-row {
        gap: 6px;
        margin-bottom: 16px;
    }

    /* mobile message bar */
    .chat-input-row {
        margin: 0 8px 8px;
        padding: 0 10px;
        gap: 8px;
        height: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .input-icons {
        gap: 8px;
    }

    .mascot {
        width: 90px;
        margin: 6px 0 12px;
    }

    .wave-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }
}

/* small mobile */
@media (max-width: 480px) {
    .header-search {
        display: none;
    }

    .chat-name {
        max-width: 180px;
    }

    .input-icons {
        gap: 6px;
    }

    .chat-input-row input {
        font-size: 14px;
    }
}
/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* font */
@font-face {
    font-family: "gg sans";
    src: url("../assets/fonts/ggsans-normal.woff2");
}

/* html & body */
html {
    height: 100%;
}

body {
    background: #1e1f22;
    color: #dbdee1;
    height: 100%;
    min-height: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: "gg sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* icons */
svg,
img.icon,
.icon img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* header icons */
.header-icons img,
.top-icons img,
.top-left img,
.server-tools img,
.mobile-menu-btn img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* chat input icons */
.input-icons img,
.message-icons img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* voice panel icons */
.voice-controls img,
.voice-btn img,
.panel-icon img {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.voice-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* small icons */
.section-actions img,
.action-icon img,
.header-search img,
.server-search img,
.pin-icon,
.mutual-line img {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.voice-mini {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* plus button */
.plus-icon img,
.message-plus img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* server rail icons */
.server-icon.add-server img,
.server-icon.explore img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.server-icon.home img {
    width: 26px;
    height: 18px;
    object-fit: contain;
}

/* app container */
.app {
    display: flex;
    height: 100%;
    min-height: 100%;
    height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* mobile top bar */
.mobile-top-bar {
    display: none;
    height: 42px;
    min-height: 42px;
    background: #1e1f22;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
}

.mobile-top-bar .top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f2f3f5;
}

.mobile-top-bar .top-left svg {
    width: 22px;
    height: 22px;
    color: #dbdee1;
}

.mobile-top-bar .top-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.mobile-top-bar .top-icons span {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-top-bar .top-icons svg {
    width: 22px;
    height: 22px;
}

.input-divider {
    width: 1px;
    height: 22px;
    background: #4e5058;
    margin: 0 2px;
    flex-shrink: 0;
}

.chevron-mini {
    width: 14px;
    height: 14px;
    color: currentColor;
    opacity: 0.8;
}

/* mobile buttons */
.mobile-menu-btn,
.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: #dbdee1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* server sidebar */
.server-rail {
    width: 72px;
    background: #1e1f22;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.server-rail::-webkit-scrollbar {
    display: none;
}

.server-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    flex-shrink: 0;
    color: #dbdee1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #313338;
    text-decoration: none;
    transition: border-radius 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* server avatar */
.server-icon > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.server-icon.home img {
    width: 28px;
    height: 22px;
    object-fit: contain;
    border-radius: 0;
}

.server-icon.add-server img,
.server-icon.explore img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 0;
}

/* server icons */
.server-icon svg {
    width: 24px;
    height: 24px;
}

.server-icon.home {
    background: #5865f2;
    color: #fff;
}

.server-icon:hover,
.server-icon.active {
    border-radius: 16px;
}

.server-icon:hover {
    background: #5865f2;
}

.server-icon .pill {
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 8px;
    border-radius: 0 4px 4px 0;
    background: #fff;
    opacity: 0;
    transition: height 0.15s ease, opacity 0.15s ease;
}

.server-icon.active .pill {
    height: 40px;
    opacity: 1;
}

.server-icon.unread .pill {
    height: 8px;
    opacity: 1;
}

/* server rail badge */
.badge-rail {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f23f43;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 9px;
    border: 3px solid #1e1f22;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: content-box;
}

.badge-rail.new {
    background: #ffffff;
    color: #1e1f22;
    font-size: 9px;
    font-weight: 800;
    padding: 0 4px;
}

.server-icon:hover .pill {
    height: 20px;
    opacity: 1;
}

.rail-divider {
    width: 32px;
    height: 2px;
    background: #35363c;
    border-radius: 1px;
    margin: 4px 0;
}

.server-icon.add-server,
.server-icon.explore {
    color: #23a55a;
}

.server-icon.add-server:hover,
.server-icon.explore:hover {
    background: #23a55a;
    color: #fff;
}

/* dm sidebar */
.dm-list {
    width: 240px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.search-bar {
    padding: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    background: #1e1f22;
    border: none;
    outline: none;
    border-radius: 4px;
    padding: 6px 8px;
    color: #dbdee1;
    font-size: 13px;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: #949ba4;
}

.dm-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}

/* nav tabs */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 4px;
    cursor: pointer;
    color: #949ba4;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    background: #35373c;
    color: #dbdee1;
}

.nav-icon img,
.nav-icon svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-label {
    flex: 1;
    white-space: nowrap;
}

.badge {
    background: #f23f43;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.badge.new {
    background: #ffffff;
    color: #1e1f22;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #949ba4;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-actions .action-icon {
    cursor: pointer;
    color: #949ba4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-actions .action-icon:hover {
    color: #dbdee1;
}

.section-actions .action-icon svg {
    width: 16px;
    height: 16px;
}

/* dm items */
.dm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #949ba4;
    font-size: 15px;
    position: relative;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dm-item:hover {
    background: #35373c;
    color: #dbdee1;
}

.dm-item.active {
    background: #404249;
    color: #fff;
}

.avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 3px solid #2b2d31;
    box-sizing: content-box;
}

.dm-item.active .status,
.dm-item:hover .status {
    border-color: #404249;
}

.status.online {
    background: #23a55a;
}

.status.idle {
    background: #f0b232;
    border-color: #2b2d31;
}

.status.idle::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2b2d31;
    top: -2px;
    left: -4px;
}

.status.dnd {
    background: #f23f42;
}

.status.dnd::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    background: #2b2d31;
    top: 4px;
    left: 2px;
    border-radius: 1px;
}

.status.offline {
    background: transparent;
    border: 3px solid #949ba4;
}

.dm-item .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.dm-item .tag {
    font-size: 10px;
    font-weight: 700;
    color: #b5bac1;
    background: #1e1f22;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.dm-item.two-line {
    align-items: center;
}

.text-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.subtext {
    font-size: 12px;
    color: #80848e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.voice-mini {
    width: 14px;
    height: 14px;
    color: #23a55a;
    flex-shrink: 0;
}

.pin-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: #949ba4;
    flex-shrink: 0;
    transform: rotate(35deg);
}

/* voice panel */
.voice-panel {
    background: #232428;
    padding: 8px 8px;
    flex-shrink: 0;
}

.voice-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 6px 4px;
}

.voice-icon {
    width: 18px;
    height: 18px;
    color: #23a55a;
    flex-shrink: 0;
}

.voice-text {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.voice-title {
    font-size: 13px;
    color: #23a55a;
    font-weight: 600;
}

.voice-sub {
    font-size: 12px;
    color: #949ba4;
}

.voice-btn {
    cursor: pointer;
    color: #949ba4;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover {
    color: #dbdee1;
}

.voice-btn.hangup {
    color: #f23f42;
}

.voice-btn.hangup:hover {
    color: #ff5e61;
}

.voice-btn svg {
    width: 18px;
    height: 18px;
}

.voice-controls {
    display: flex;
    justify-content: space-around;
    padding-top: 6px;
    border-top: 1px solid #2b2d31;
    color: #949ba4;
}

.voice-controls span {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-controls span:hover {
    background: #35373c;
    color: #dbdee1;
}

.voice-controls svg {
    width: 18px;
    height: 18px;
}

/* user bar */
.user-panel {
    background: #232428;
    height: 52px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.user-panel .avatar-wrap {
    flex-shrink: 0;
}

.user-panel .text-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-panel .name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel .subtext {
    font-size: 12px;
    color: #949ba4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel .icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    color: #b5bac1;
}

.user-panel .icon:hover {
    background: #35373c;
    color: #dbdee1;
}

.user-panel .icon img,
.user-panel .icon svg {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.user-panel .icon.muted,
.user-panel .icon.deafened {
    background: #3b242a;
    color: #f23f43;
}

.user-panel .icon.muted:hover,
.user-panel .icon.deafened:hover {
    background: #472b32;
    color: #f23f43;
}

/* chat column */
.chat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
    min-width: 0;
    height: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    height: 48px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    font-weight: 600;
    color: #f2f3f5;
    flex-shrink: 0;
    z-index: 2;
    background: #313338;
}

.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dm-hash {
    width: 24px;
    height: 24px;
    color: #949ba4;
    flex-shrink: 0;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.header-icons > span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons > span:hover {
    color: #dbdee1;
}

.header-icons svg {
    width: 24px;
    height: 24px;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: #3f4147;
}

.header-search {
    display: flex;
    align-items: center;
    background: #1e1f22;
    border-radius: 4px;
    padding: 0 8px;
    gap: 6px;
    height: 28px;
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #dbdee1;
    font-size: 13px;
    width: 120px;
    font-family: inherit;
}

.header-search input::placeholder {
    color: #949ba4;
}

.header-search svg {
    width: 16px;
    height: 16px;
    color: #949ba4;
}

.chat-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 24px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}

.big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
}

.big-name {
    font-size: 32px;
    font-weight: 700;
    color: #f2f3f5;
    word-break: break-word;
}

.big-username {
    color: #949ba4;
    font-size: 16px;
    margin-bottom: 16px;
}

.dm-start {
    color: #949ba4;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.dm-start strong {
    color: #f2f3f5;
}

.mutual-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 13px;
    color: #949ba4;
    flex-wrap: wrap;
}

.btn {
    background: #4e5058;
    color: #dbdee1;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.btn:hover {
    background: #6d6f78;
}

.btn.primary {
    background: #5865f2;
    color: white;
}

.btn.primary:hover {
    background: #4752c4;
}

.btn.danger {
    background: #402226;
    color: #f2717a;
}

.btn.danger:hover {
    background: #4c2a2f;
}

.mascot {
    width: 130px;
    max-width: 100%;
    margin: 10px 0 20px 0;
}

.wave-btn {
    background: #5865f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 24px;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.wave-btn:hover {
    background: #4752c4;
}

/* chat date divider */
.chat-divider {
    width: 100%;
    height: 1px;
    background: #3f4147;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-divider span {
    background: #313338;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #949ba4;
    border-radius: 4px;
}

/* chat message */
.chat-msg {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
}

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.msg-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.msg-time {
    font-size: 12px;
    color: #949ba4;
}

.msg-text {
    font-size: 15px;
    color: #dbdee1;
    line-height: 1.4;
    word-break: break-word;
}

.chat-input-row {
    margin: 0 16px 16px 16px;
    background: #383a40;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    min-height: 44px;
    height: 44px;
    flex-shrink: 0;
}

.plus-icon {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    color: #b5bac1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.plus-icon:hover {
    color: #dbdee1;
}

.plus-icon img,
.plus-icon svg {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.chat-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #dbdee1;
    font-size: 15px;
    padding: 11px 0;
    font-family: inherit;
}

.chat-input-row input::placeholder {
    color: #6d6f78;
}

.input-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #b5bac1;
}

.input-icons span {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icons span:hover {
    color: #dbdee1;
}

.input-icons svg {
    width: 24px;
    height: 24px;
}

.desktop-only {
    display: flex;
}

.input-send {
    background: none;
    border: none;
    color: #5865f2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.input-send:hover {
    color: #4752c4;
}

.input-send svg,
.input-send img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* profile panel */
.profile-panel {
    width: 300px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
}

.profile-banner {
    height: 60px;
    background: linear-gradient(135deg, #5c5f66, #40434a);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    color: white;
    flex-shrink: 0;
}

.panel-icon {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-icon svg {
    width: 16px;
    height: 16px;
}

.profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: -46px 0 0 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #2b2d31;
    display: block;
    object-fit: cover;
}

.status.big {
    width: 18px;
    height: 18px;
    right: 2px;
    bottom: 2px;
    border: 4px solid #2b2d31;
}

.profile-info {
    padding: 16px 20px 8px 20px;
}

.profile-info h2 {
    color: #f2f3f5;
    font-size: 20px;
    margin-bottom: 4px;
    word-break: break-word;
}

.profile-sub {
    font-size: 14px;
    color: #dbdee1;
    margin-bottom: 12px;
}

.profile-divider {
    height: 1px;
    background: #3f4147;
    margin: 12px 0;
}

.mutual-line {
    font-size: 13px;
    color: #dbdee1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mutual-line svg,
.mutual-line img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.profile-info h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #949ba4;
    margin-bottom: 6px;
    font-weight: 700;
}

.profile-info p {
    font-size: 14px;
    color: #dbdee1;
}

.view-profile-btn {
    margin: auto 20px 20px 20px;
    background: #35373c;
    color: #dbdee1;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.view-profile-btn:hover {
    background: #3f4147;
}

/* tablet view */
@media (max-width: 1024px) {
    /* hide profile panel */
    .profile-panel {
        display: none !important;
    }

    /* compact sidebars */
    .server-rail {
        width: 64px;
    }

    .dm-list {
        width: 210px;
    }

    /* hide extra icons */
    .header-icons span[title="Start Video Call"],
    .header-icons span[title="Pinned Messages"],
    .header-icons span[title="Inbox"],
    .header-icons span[title="Help"],
    .header-divider {
        display: none;
    }

    .header-search input {
        width: 80px;
    }
}

/* mobile view */
@media (max-width: 768px) {
    /* show top bar */
    .mobile-top-bar {
        display: flex;
    }

    /* menu button */
    .mobile-menu-btn {
        display: flex;
        padding: 4px;
        margin-right: 4px;
        border-radius: 4px;
    }

    .mobile-menu-btn:hover {
        background: #35373c;
    }

    .mobile-menu-btn svg,
    .mobile-menu-btn img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    /* close button */
    .sidebar-close-btn {
        display: flex;
        font-size: 20px;
        line-height: 1;
        padding: 4px 8px;
        margin-left: 6px;
        border-radius: 4px;
    }

    .sidebar-close-btn:hover {
        background: #35373c;
    }

    /* hide sidebars by default */
    .server-rail,
    .dm-list {
        display: none;
    }

    .chat-column {
        width: 100%;
        flex: 1;
        height: 100%;
        height: 100dvh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* show sidebar when toggled */
    .app.show-sidebar .server-rail {
        display: flex;
        width: 72px;
        flex-shrink: 0;
    }

    .app.show-sidebar .dm-list {
        display: flex;
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .app.show-sidebar .chat-column {
        display: none;
    }

    /* mobile header */
    .chat-header {
        height: 48px;
        min-height: 48px;
        padding: 0 10px;
        gap: 8px;
        flex-shrink: 0;
    }

    .chat-name {
        max-width: 240px;
        font-size: 16px;
    }

    .header-icons {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    /* mobile chat body */
    .chat-body {
        padding: 16px 12px 8px;
        flex: 1 1 0;
        min-height: 0;
    }

    .big-avatar {
        width: 60px;
        height: 60px;
    }

    .big-name {
        font-size: 22px;
    }

    .mutual-row {
        gap: 6px;
        margin-bottom: 16px;
    }

    /* mobile message bar */
    .chat-input-row {
        margin: 0 8px 8px;
        padding: 0 10px;
        gap: 8px;
        height: 44px;
        min-height: 44px;
        flex-shrink: 0;
    }

    .input-icons {
        gap: 8px;
    }

    .mascot {
        width: 90px;
        margin: 6px 0 12px;
    }

    .wave-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }
}

/* small mobile */
@media (max-width: 480px) {
    .header-search {
        display: none;
    }

    .chat-name {
        max-width: 180px;
    }

    .input-icons {
        gap: 6px;
    }

    .chat-input-row input {
        font-size: 14px;
    }
}
