/* HC-FOOTER-CONTENT-FOLLOWS-V1 */
.footer-copy-history {
    gap: 7px;
}

.footer-content-follow-menu {
    position: relative;
    flex: 0 0 auto;
}

.footer-content-follow-menu > summary {
    list-style: none;
}

.footer-content-follow-menu > summary::-webkit-details-marker {
    display: none;
}

.footer-content-follow-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-color, rgba(125, 135, 155, .24));
    border-radius: 10px;
    background: var(--surface-color, rgba(255, 255, 255, .72));
    color: var(--text-color, #273144);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease,
        color .18s ease, transform .18s ease;
}

.footer-content-follow-trigger:hover,
.footer-content-follow-menu[open] .footer-content-follow-trigger {
    border-color: var(--primary-color, #6757e8);
    color: var(--primary-color, #6757e8);
    background: color-mix(
        in srgb,
        var(--primary-color, #6757e8) 8%,
        var(--surface-color, #fff)
    );
    transform: translateY(-1px);
}

.footer-content-follow-trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-content-follow-unread {
    position: absolute;
    top: -6px;
    right: -7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--footer-background, var(--surface-color, #fff));
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.footer-content-follow-unread[hidden],
.footer-content-follow-feed-link b[hidden] {
    display: none !important;
}

.footer-content-follow-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 2200;
    width: min(410px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(125, 135, 155, .22));
    border-radius: 14px;
    background: var(--surface-color, #fff);
    color: var(--text-color, #1f2937);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .2);
}

.footer-content-follow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px 11px;
    border-bottom: 1px solid var(--border-color, rgba(125, 135, 155, .16));
}

.footer-content-follow-head > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.footer-content-follow-head strong {
    color: var(--text-color, #111827);
    font-size: 14px;
    line-height: 1.2;
}

.footer-content-follow-head small {
    color: var(--muted-color, #667085);
    font-size: 11px;
}

.footer-content-follow-feed-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color, rgba(125, 135, 155, .2));
    border-radius: 10px;
    color: var(--text-color, #344054);
    background: var(--surface-soft, rgba(125, 135, 155, .06));
}

.footer-content-follow-feed-link:hover {
    color: var(--primary-color, #6757e8);
    border-color: var(--primary-color, #6757e8);
}

.footer-content-follow-feed-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-content-follow-feed-link b {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid var(--surface-color, #fff);
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.footer-content-follow-tabs {
    display: flex;
    gap: 5px;
    padding: 9px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color, rgba(125, 135, 155, .14));
    scrollbar-width: none;
}

.footer-content-follow-tabs::-webkit-scrollbar {
    display: none;
}

.footer-content-follow-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-soft, rgba(125, 135, 155, .08));
    color: var(--muted-color, #667085);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.footer-content-follow-tabs button b {
    font-size: 10px;
    color: inherit;
}

.footer-content-follow-tabs button:hover,
.footer-content-follow-tabs button.is-active {
    border-color: color-mix(
        in srgb,
        var(--primary-color, #6757e8) 38%,
        transparent
    );
    background: color-mix(
        in srgb,
        var(--primary-color, #6757e8) 10%,
        var(--surface-color, #fff)
    );
    color: var(--primary-color, #6757e8);
}

.footer-content-follow-list {
    max-height: min(340px, calc(100vh - 220px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 5px;
}

.footer-content-follow-list::-webkit-scrollbar {
    width: 7px;
}

.footer-content-follow-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 130, 150, .45);
}

.footer-content-follow-list::-webkit-scrollbar-track {
    background: transparent;
}

.footer-content-follow-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 7px 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.footer-content-follow-item:hover {
    background: var(--surface-soft, rgba(125, 135, 155, .07));
}

.footer-content-follow-item-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: color-mix(
        in srgb,
        var(--primary-color, #6757e8) 9%,
        var(--surface-color, #fff)
    );
    color: var(--primary-color, #6757e8);
}

.footer-content-follow-item-icon.is-category {
    color: #2563eb;
    background: color-mix(in srgb, #2563eb 10%, var(--surface-color, #fff));
}

.footer-content-follow-item-icon.is-color {
    color: #fff;
    background: var(--follow-color, #64748b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.footer-content-follow-item-icon svg,
.footer-content-follow-item-arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-content-follow-item-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.footer-content-follow-item-copy strong,
.footer-content-follow-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-content-follow-item-copy strong {
    color: var(--text-color, #1f2937);
    font-size: 12px;
    font-weight: 750;
}

.footer-content-follow-item-copy small {
    color: var(--muted-color, #667085);
    font-size: 10px;
}

.footer-content-follow-item-arrow {
    color: var(--muted-color, #98a2b3);
}

.footer-content-follow-item:hover .footer-content-follow-item-arrow {
    color: var(--primary-color, #6757e8);
}

.footer-content-follow-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    padding: 18px;
    color: var(--muted-color, #667085);
    text-align: center;
    font-size: 12px;
}

.footer-content-follow-state.is-error {
    color: #b42318;
}

.footer-content-follow-state.is-warning {
    color: #b54708;
}

.footer-content-follow-more {
    display: flex;
    justify-content: center;
    margin: 4px 5px 6px;
    padding: 8px;
    border-radius: 9px;
    background: var(--surface-soft, rgba(125, 135, 155, .07));
    color: var(--primary-color, #6757e8);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.footer-content-follow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border-top: 1px solid var(--border-color, rgba(125, 135, 155, .15));
    background: var(--border-color, rgba(125, 135, 155, .12));
}

.footer-content-follow-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 10px;
    background: var(--surface-color, #fff);
    color: var(--text-color, #344054);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.footer-content-follow-actions a:hover {
    color: var(--primary-color, #6757e8);
    background: color-mix(
        in srgb,
        var(--primary-color, #6757e8) 6%,
        var(--surface-color, #fff)
    );
}

html[data-theme='dark'] .footer-content-follow-trigger,
html[data-theme='dark'] .footer-content-follow-panel,
html[data-theme='dark'] .footer-content-follow-actions a {
    --surface-color: #171b26;
    --surface-soft: rgba(255, 255, 255, .055);
    --text-color: #edf0f7;
    --muted-color: #a8b0bf;
    --border-color: rgba(255, 255, 255, .12);
}

@media (max-width: 680px) {
    .footer-content-follow-panel {
        position: fixed;
        right: 12px;
        bottom: 68px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 92px);
    }

    .footer-content-follow-list {
        max-height: calc(100vh - 295px);
    }
}


/* HC-FOOTER-CONTENT-FOLLOW-NOTIFY-STATE-V1.0.2 */
.footer-content-follow-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color, #6757e8);
    cursor: pointer;
}
.footer-content-follow-notify svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-content-follow-notify.is-disabled {
    color: var(--muted-color, #98a2b3);
    background: rgba(125, 135, 155, .07);
}
.footer-content-follow-notify.is-loading {
    opacity: .48;
    cursor: wait;
}
.footer-content-follow-toggle-status {
    padding: 7px 12px;
    border-top: 1px solid var(--border-color, rgba(125, 135, 155, .14));
    color: #067647;
    background: rgba(6, 118, 71, .06);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.footer-content-follow-toggle-status.is-error {
    color: #b42318;
    background: rgba(180, 35, 24, .06);
}
.footer-content-follow-toggle-status[hidden] {
    display: none !important;
}
