.msg-wrap { font-family: var(--font-sans, Geneva, Arial, sans-serif); 
			background: #f0f2f5;
    border-radius: 12px;
    padding: 16px;
			}
.msg-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.msg-topbar-title { font-size: 16px; font-weight: 500; color: var(--color-text-primary, #111); }
.msg-new-btn {
    font-size: 13px; padding: 7px 16px; border-radius: 8px; border: none;
    background: #185FA5; color: #E6F1FB; cursor: pointer; text-decoration: none;
    display: inline-block;
}
.msg-new-btn:hover { background: #0C447C; color: #E6F1FB; text-decoration: none; }
.disc-list { display: flex; flex-direction: column; gap: 6px; }
.disc-card {
    background: #ffffff;
    border: 0.5px solid var(--color-border-tertiary, #ddd);
    border-radius: 12px; padding: 11px 14px;
    display: flex; gap: 12px; align-items: flex-start;
    cursor: pointer; text-decoration: none;
	box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.disc-card:hover {
    border-color: var(--color-border-secondary, #bbb);
    background: var(--color-background-secondary, #f7f7f7);
    text-decoration: none;
}
.disc-card.unread { border-left: none; }
.disc-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; flex-shrink: 0;
}
.disc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.disc-avatar-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #378ADD;
    border: 2px solid #f0f2f5;
}
.disc-body { flex: 1; min-width: 0; }
.disc-top {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 3px;
}
.disc-names {
    font-size: 14px; font-weight: 500;
    color: var(--color-text-primary, #111);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 340px;
}
.disc-date { font-size: 11px; color: var(--color-text-tertiary, #999); white-space: nowrap; margin-left: 8px; }
.disc-bottom { display: flex; align-items: center; justify-content: space-between; }
.disc-preview { font-size: 13px; color: var(--color-text-secondary, #555); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-preview.bold { color: var(--color-text-primary, #111); font-weight: 500; }
.disc-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 9px;
    background: #378ADD; color: #E6F1FB;
    font-size: 10px; font-weight: 500; padding: 0 5px;
    flex-shrink: 0; margin-left: 8px;
}
.disc-check {
    font-size: 13px;
    margin-left: 6px;
    flex-shrink: 0;
}
.disc-check.all-read     { color: #378ADD; }
.disc-check.partial-read { color: #aaa; }
.disc-check.unread-check { color: #aaa; }
.disc-pin { opacity: 0.35; font-size: 12px; margin-right: 4px; }
.msg-more {
    font-size: 13px; color: var(--color-text-secondary, #555);
    text-align: center; padding: 10px; margin-top: 4px;
}
.msg-more a { color: #378ADD; }
.msg-count {
    font-size: 12px; color: var(--color-text-tertiary, #999);
    margin-top: 10px; padding: 0 2px;
}
.msg-header {
    background-color: #006D92;
    border-radius: 12px 12px 0 0;
    padding: 16px 16px 0;
    margin: -16px -16px 14px;
}

.msg-header-title {
	font-family: var(--font-sans, Geneva, Arial, sans-serif);
    font-size: 17px;
    font-weight: 500;
    color: #eeeeee;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
	padding:5px 15px;
}

.msg-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    padding-bottom: 14px;
	padding-left:2px;
}

.msg-tab {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 0.5px solid #ddd;
    background: #fff;
    color: #555;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.msg-tab:hover {
    background: #f0f0f0;
    color: #111;
    text-decoration: none;
}

.msg-tab.active {
    background: #E6F1FB;
    color: #0C447C;
    border-color: #85B7EB;
    font-weight: 500;
}

.msg-tab-new {
    background: #ffc926;
    color: #1a3a4a !important;
    border-color: #ffc926;
    font-weight: 500;
}

.msg-tab-new:hover {
    background: #e6b400;
    color: #1a3a4a !important;
    text-decoration: none;
}

.msg-tab-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E24B4A;
    margin-left: 5px;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    .msg-tab { font-size: 15px; padding: 10px 6px; }
    .msg-header-title { font-size: 18px; }
	.msg-wrap {
        padding: 10px 8px;
    }

    .msg-header {
        margin: -10px -8px 12px;
        padding: 14px 12px 0;
    }

    .disc-card {
        padding: 10px 10px;
    }

    .disc-names {
        font-size: 16px;
    }

    .disc-preview {
        font-size: 14px;
    }

    .disc-date {
        font-size: 12px;
    }

    .disc-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 14px;
    }
}

.nd-existing-disc {
    background: #fff8e1;
    border: 1px solid #f0ad00;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 14px;
    flex-shrink: 0;
}
.nd-existing-msg {
    font-size: 13px;
    color: #7a5000;
    margin-bottom: 10px;
}
.nd-existing-msg i { margin-right: 6px; color: #f0ad00; }
.nd-existing-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nd-btn-continue, .nd-btn-new,
.nd-btn-continue:visited, .nd-btn-new:visited {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nd-btn-continue,
.nd-btn-continue:visited { background: #006D92; color: #fff; }
.nd-btn-continue:hover   { background: #005578; color: #fff; }
.nd-btn-new,
.nd-btn-new:visited      { background: #f0f0f0; color: #444; border: 1px solid #ddd; }
.nd-btn-new:hover        { background: #e0e0e0; color: #333; }