.cmc-nt {
    --cmc-nt-ink: #171717;
    --cmc-nt-muted: #6b6b6b;
    --cmc-nt-line: rgba(23, 23, 23, 0.08);
    --cmc-nt-soft: #f6f6f6;
    --cmc-nt-hot: #f58220;
    --cmc-nt-hot-soft: rgba(245, 130, 32, 0.1);
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: visible;
    font-family: inherit;
    color: var(--cmc-nt-ink);
    -webkit-font-smoothing: antialiased;
}

.cmc-h-tools .cmc-nt {
    flex: 0 0 auto;
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    height: 52px;
}

.cmc-nt *,
.cmc-nt *::before,
.cmc-nt *::after,
.cmc-nt-panel *,
.cmc-nt-panel *::before,
.cmc-nt-panel *::after {
    box-sizing: border-box;
}

.cmc-nt-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cmc-nt-ink);
    cursor: pointer;
}

.cmc-nt-btn:hover,
.cmc-nt.is-open .cmc-nt-btn {
    background: var(--cmc-nt-hot-soft);
    color: var(--cmc-nt-hot);
}

.cmc-nt-btn svg {
    display: block;
    width: 22px;
    height: 22px;
}

.cmc-nt-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cmc-nt-hot);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.cmc-nt-badge[hidden] {
    display: none !important;
}

.cmc-nt-panel {
    --cmc-nt-ink: #171717;
    --cmc-nt-muted: #6b6b6b;
    --cmc-nt-line: rgba(23, 23, 23, 0.08);
    --cmc-nt-soft: #f6f6f6;
    --cmc-nt-hot: #f58220;
    --cmc-nt-hot-soft: rgba(245, 130, 32, 0.1);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10070;
    display: flex;
    flex-direction: column;
    width: 392px;
    max-width: min(392px, calc(100vw - 16px));
    max-height: min(480px, 70vh);
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--cmc-nt-line);
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(23, 23, 23, 0.18),
        0 2px 8px rgba(23, 23, 23, 0.06);
    color: var(--cmc-nt-ink);
    font-family: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cmc-nt-panel.is-fixed {
    position: fixed;
    top: auto;
    right: auto;
}

.cmc-nt-panel[hidden] {
    display: none !important;
}

.cmc-nt-panel:not([hidden]) {
    display: flex;
}

.cmc-nt-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cmc-nt-line);
}

.cmc-nt-head-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cmc-nt-head-icon {
    display: inline-flex;
    color: var(--cmc-nt-hot);
}

.cmc-nt-head-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cmc-nt-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--cmc-nt-ink);
}

.cmc-nt-all {
    padding: 0;
    border: 0;
    background: none;
    color: var(--cmc-nt-hot);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.cmc-nt-all:hover {
    text-decoration: underline;
}

.cmc-nt-all[hidden] {
    display: none !important;
}

.cmc-nt-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.cmc-nt-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 8px;
    gap: 10px;
    align-items: start;
    padding: 12px 14px 12px 12px;
    border: 0;
    border-bottom: 1px solid var(--cmc-nt-line);
    border-left: 3px solid transparent;
    background: #fff;
    color: var(--cmc-nt-ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.cmc-nt-item:last-child {
    border-bottom: 0;
}

.cmc-nt-item:hover {
    background: rgba(23, 23, 23, 0.035);
    color: var(--cmc-nt-ink);
    text-decoration: none;
}

.cmc-nt-item.is-unread {
    border-left-color: #f58220;
    background: rgba(245, 130, 32, 0.04);
}

.cmc-nt-item.is-unread:hover {
    background: var(--cmc-nt-hot-soft);
}

.cmc-nt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cmc-nt-hot-soft);
    color: var(--cmc-nt-hot);
}

.cmc-nt-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.cmc-nt-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cmc-nt-item-title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmc-nt-item-body {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cmc-nt-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cmc-nt-ago {
    font-size: 12px;
    color: var(--cmc-nt-muted);
}

.cmc-nt-pip {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--cmc-nt-hot);
}

.cmc-nt-item:not(.is-unread) .cmc-nt-pip {
    visibility: hidden;
}

.cmc-nt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 28px 40px;
    text-align: center;
}

.cmc-nt-empty-art {
    margin-bottom: 16px;
}

.cmc-nt-empty-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cmc-nt-hot-soft);
    color: var(--cmc-nt-hot);
    box-shadow: 0 0 0 8px rgba(245, 130, 32, 0.06);
}

.cmc-nt-empty-circle svg {
    display: block;
    width: 32px;
    height: 32px;
}

.cmc-nt-empty-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--cmc-nt-ink);
}

.cmc-nt-empty-hint {
    margin: 0;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--cmc-nt-muted);
}

@media (max-width: 720px) {
    .cmc-nt-panel:not(.is-fixed) {
        right: 8px;
        width: min(392px, calc(100vw - 16px));
    }
}
