/* Dashboard team feed and sticky notes. Formerly <style> blocks inside each component; same global cascade. */

/* BHConnectionStatus.razor */
    .bh-connection-status {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height var(--halo-duration-2) var(--halo-ease),
                    opacity var(--halo-duration-2) var(--halo-ease);
    }

    .bh-connection-status.bh-status-visible {
        max-height: 60px;
        opacity: 1;
    }

    .bh-connection-status.bh-status-fading {
        max-height: 60px;
        opacity: 0;
    }

    .bh-connection-status-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--halo-surface);
        border-radius: var(--halo-radius-lg);
        box-shadow: none;
        padding: 12px 16px;
    }

    .bh-connection-text {
        font-size: var(--halo-text-sm);
        font-weight: 500;
        color: var(--halo-text-secondary);
        line-height: 1;
    }

    /* Animated spinner */
    .bh-connection-spinner {
        width: 14px;
        height: 14px;
        border: 2px solid var(--halo-hairline);
        border-top-color: var(--halo-text-secondary);
        border-radius: 50%;
        animation: bh-spin 0.8s linear infinite;
        flex-shrink: 0;
    }

    @keyframes bh-spin {
        to { transform: rotate(360deg); }
    }

    .bh-connection-check {
        flex-shrink: 0;
    }

    /* Reconnect action button — pill, dark */
    .bh-connection-reconnect {
        background: var(--halo-action-brand);
        color: var(--halo-on-action);
        border: none;
        border-radius: var(--halo-radius-md);
        padding: 6px 16px;
        font-size: var(--halo-text-sm);
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: background var(--halo-duration-1) var(--halo-ease);
        line-height: 1;
    }

    .bh-connection-reconnect:hover {
        background: var(--halo-text);
    }

    .bh-connection-reconnect:focus-visible {
        outline: 2px solid var(--halo-action-brand);
        outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-connection-status {
            transition: none;
        }

        .bh-connection-status.bh-status-visible {
            max-height: 60px;
            opacity: 1;
        }

        .bh-connection-status.bh-status-fading {
            opacity: 0;
        }
    }

/* BHFeedCommentItem.razor */
    /* ============================================
       Clean minimal comment
       ============================================ */
    .bh-comment {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 6px 0;
        transition: opacity var(--halo-duration-2) var(--halo-ease),
                    max-height var(--halo-duration-3) var(--halo-ease);
    }

    .bh-comment.bh-comment-fade-out {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .bh-comment-avatar {
        width: 24px;
        height: 24px;
        border-radius: var(--halo-radius-xs);
        background: var(--halo-surface-sunken);
        color: var(--halo-text-secondary);
        font-weight: 600;
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
        user-select: none;
    }

    .bh-comment-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .bh-comment-bubble {
        font-size: var(--halo-text-sm);
        line-height: 1.45;
        color: var(--halo-text);
        word-break: break-word;
    }

    .bh-comment-author {
        font-weight: 600;
        margin-right: 5px;
    }

    .bh-comment-text .bh-mention-highlight {
        font-weight: 600;
        color: var(--halo-ink-brand);
        background: transparent;
        padding: 0;
    }

    /* Meta row */
    .bh-comment-meta {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bh-comment-time {
        font-size: var(--halo-text-caption);
        color: var(--halo-text-tertiary);
    }

    .bh-comment-edited {
        font-size: var(--halo-text-caption);
        color: var(--halo-text-tertiary);
        font-style: italic;
    }

    .bh-comment-action {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
        font-size: var(--halo-text-caption);
        font-weight: 500;
        color: var(--halo-text-secondary);
        cursor: pointer;
        transition: color var(--halo-duration-1) var(--halo-ease);
    }

    .bh-comment-action:hover {
        color: var(--halo-text);
    }

    .bh-comment-action:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
        border-radius: var(--halo-radius-xs);
    }

    .bh-comment-menu {
        margin-left: auto;
        flex-shrink: 0;
        opacity: 0;
        transition: opacity var(--halo-duration-1) var(--halo-ease);
    }

    .bh-comment:hover .bh-comment-menu {
        opacity: 1;
    }

    .bh-comment-menu .mud-icon-button {
        padding: 0 !important;
        width: 18px;
        height: 18px;
        color: var(--halo-text-tertiary);
        transition: color var(--halo-duration-1) var(--halo-ease);
    }

    .bh-comment-menu .mud-icon-button:hover {
        color: var(--halo-text-secondary);
        background: transparent;
    }

    .bh-comment-menu :is(.mud-icon-root, .halo-icon) {
        font-size: 0.875rem !important; width: 1em; height: 1em; }

/* BHFeedCommentList.razor */
    .bh-comment-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bh-comment-expand {
        background: none;
        border: none;
        padding: 4px 0;
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        text-align: left;
        transition: color var(--halo-duration-1) var(--halo-ease);
    }

    .bh-comment-expand:hover {
        color: var(--halo-text);
    }

    .bh-comment-expand:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
        border-radius: var(--halo-radius-xs);
    }

    .bh-comment-items {
        display: flex;
        flex-direction: column;
    }

    /* Provisional */
    .bh-comment-provisional {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 6px 0;
        animation: bh-comment-enter 0.18s var(--halo-ease);
    }

    .bh-comment-provisional .bh-comment-avatar {
        width: 24px;
        height: 24px;
        border-radius: var(--halo-radius-xs);
        background: var(--halo-surface-sunken);
        color: var(--halo-text-secondary);
        font-weight: 600;
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .bh-comment-provisional .bh-comment-body {
        flex: 1;
        min-width: 0;
    }

    .bh-comment-provisional .bh-comment-bubble {
        font-size: var(--halo-text-sm);
        line-height: 1.45;
        color: var(--halo-text);
    }

    .bh-comment-provisional .bh-comment-author {
        font-weight: 600;
        margin-right: 5px;
    }

    @keyframes bh-comment-enter {
        from { opacity: 0; transform: translateY(-3px); }
        to { opacity: 0.5; transform: translateY(0); }
    }

    /* Comment input */
    .bh-comment-input-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 6px;
        background: var(--halo-surface-sunken);
        border-radius: var(--halo-radius-md);
        padding: 8px 12px;
        transition: background var(--halo-duration-1) var(--halo-ease);
    }

    .bh-comment-input-row:focus-within {
        background: var(--halo-surface);
        box-shadow: 0 0 0 1.5px var(--halo-hairline);
    }

    .bh-comment-input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 0;
        font-size: var(--halo-text-sm);
        font-family: inherit;
        color: var(--halo-text);
        outline: none;
        min-width: 0;
    }

    .bh-comment-input::placeholder {
        color: var(--halo-text-tertiary);
    }

    .bh-comment-send {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 2px;
        cursor: pointer;
        color: var(--halo-action-brand);
        flex-shrink: 0;
        transition: transform var(--halo-duration-1) var(--halo-ease),
                    opacity var(--halo-duration-1) var(--halo-ease);
        animation: bh-send-appear 0.12s var(--halo-ease);
    }

    .bh-comment-send:hover {
        transform: scale(1.1);
    }

    .bh-comment-send:active {
        transform: scale(0.9);
    }

    .bh-comment-send:focus-visible {
        outline: 2px solid var(--halo-action-brand);
        outline-offset: 2px;
        border-radius: var(--halo-radius-xs);
    }

    @keyframes bh-send-appear {
        from { opacity: 0; transform: scale(0.8); }
        to { opacity: 1; transform: scale(1); }
    }

/* BHFeedComposer.razor */
    /* ============================================
       Clean minimal composer
       ============================================ */
    .bh-composer {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .bh-composer-main {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .bh-composer-avatar {
        width: 36px;
        height: 36px;
        border-radius: var(--halo-radius-sm);
        background: var(--halo-action-brand);
        color: var(--halo-on-action);
        font-weight: 600;
        font-size: var(--halo-text-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        user-select: none;
    }

    .bh-composer-input-area {
        flex: 1;
        min-width: 0;
    }

    /* Field appearance is owned by the shared Halo adapters. */
    .bh-composer textarea {
        font-size: var(--halo-text-body);
        line-height: 1.5;
        color: var(--halo-text);
    }

    .bh-composer textarea::placeholder {
        color: var(--halo-text-tertiary) !important;
    }

    /* Uploads area */
    .bh-composer-uploads {
        padding-left: 48px;
        animation: bh-composer-reveal 0.18s var(--halo-ease);
    }

    @keyframes bh-composer-reveal {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Footer */
    .bh-composer-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 48px;
    }

    .bh-composer-tools {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .bh-composer-tool {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        color: var(--halo-text-secondary);
        border-radius: var(--halo-radius-sm);
        transition: background var(--halo-duration-1) var(--halo-ease),
                    color var(--halo-duration-1) var(--halo-ease);
        font-family: inherit;
    }

    .bh-composer-tool :is(.mud-icon-root, .halo-icon) {
        font-size: 1.125rem !important; width: 1em; height: 1em; }

    .bh-composer-tool:hover {
        background: var(--halo-surface-sunken);
        color: var(--halo-text);
    }

    .bh-composer-tool:active {
        transform: scale(0.95);
    }

    .bh-composer-tool:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    /* Submit button — pill, dark */
    .bh-composer-submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--halo-action-brand);
        color: var(--halo-on-action);
        border: none;
        border-radius: var(--halo-radius-md);
        padding: 7px 20px;
        font-size: var(--halo-text-sm);
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: background var(--halo-duration-1) var(--halo-ease),
                    opacity var(--halo-duration-1) var(--halo-ease),
                    transform var(--halo-duration-1) var(--halo-ease);
        min-width: 64px;
    }

    .bh-composer-submit:hover:not(:disabled) {
        background: var(--halo-text);
    }

    .bh-composer-submit:active:not(:disabled) {
        transform: scale(0.97);
    }

    .bh-composer-submit:disabled {
        background: var(--halo-surface-hover);
        color: var(--halo-text-tertiary);
        cursor: default;
    }

    .bh-composer-submit:focus-visible {
        outline: 2px solid var(--halo-action-brand);
        outline-offset: 2px;
    }

    @media (max-width: 767px) {
        .bh-composer-uploads,
        .bh-composer-footer {
            padding-left: 0;
        }
    }

/* BHFeedMediaGallery.razor */
    /* Gallery container — rounded within post card */
    .bh-media-gallery {
        display: grid;
        gap: 3px;
        border-radius: var(--halo-radius-md);
        overflow: hidden;
    }

    .bh-media-gallery.bh-gallery-single {
        grid-template-columns: 1fr;
    }

    .bh-media-gallery.bh-gallery-single .bh-media-item {
        min-height: 260px;
    }

    .bh-media-gallery.bh-gallery-two {
        grid-template-columns: 1fr 1fr;
    }

    .bh-media-gallery.bh-gallery-two .bh-media-item {
        min-height: 180px;
    }

    .bh-media-gallery.bh-gallery-three {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .bh-media-gallery.bh-gallery-three .bh-media-item:first-child {
        grid-row: 1 / 3;
        min-height: 260px;
    }

    .bh-media-gallery.bh-gallery-three .bh-media-item:not(:first-child) {
        min-height: 128px;
    }

    .bh-media-gallery.bh-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .bh-media-gallery.bh-gallery-grid .bh-media-item {
        min-height: 128px;
    }

    .bh-media-item {
        position: relative;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        overflow: hidden;
        border-radius: 0;
        background: var(--halo-surface-sunken);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity var(--halo-duration-1) var(--halo-ease);
        font-family: inherit;
    }

    .bh-media-item:hover {
        opacity: 0.92;
    }

    .bh-media-item:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: -2px;
    }

    .bh-media-thumb {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: inherit;
    }

    .bh-media-image-icon {
        color: var(--halo-text-tertiary) !important;
    }

    .bh-media-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
    }

    .bh-media-play-icon {
        color: rgba(255, 255, 255, 0.9) !important;
        filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    }

    .bh-media-more-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
    }

    .bh-media-more-count {
        font-size: var(--halo-text-body);
        font-weight: 600;
        color: var(--halo-on-action);
    }

    /* Full-size viewer — glass aesthetic */
    .bh-media-viewer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1300;
        background: var(--halo-scrim);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: bh-viewer-fade-in 0.18s ease;
    }

    .bh-media-viewer {
        position: relative;
        background: var(--halo-surface);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--halo-radius-xl);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
        width: 90vw;
        max-width: 720px;
        min-height: 320px;
        max-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        animation: bh-viewer-scale-in 0.2s var(--halo-ease);
    }

    .bh-viewer-close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--halo-surface-sunken);
        border: none;
        border-radius: var(--halo-radius-sm);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--halo-text);
        transition: background var(--halo-duration-1) var(--halo-ease);
    }

    .bh-viewer-close:hover {
        background: var(--halo-surface-hover);
    }

    .bh-viewer-close:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    .bh-viewer-image-placeholder,
    .bh-viewer-video-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .bh-viewer-placeholder-text {
        margin: 0;
        font-size: var(--halo-text-sm);
        color: var(--halo-text-secondary);
    }

    @keyframes bh-viewer-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes bh-viewer-scale-in {
        from {
            opacity: 0;
            transform: scale(0.96);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @media (max-width: 767px) {
        .bh-media-gallery.bh-gallery-single .bh-media-item {
            min-height: 180px;
        }

        .bh-media-gallery.bh-gallery-two .bh-media-item,
        .bh-media-gallery.bh-gallery-three .bh-media-item:not(:first-child) {
            min-height: 100px;
        }

        .bh-media-gallery.bh-gallery-three .bh-media-item:first-child {
            min-height: 180px;
        }

        .bh-media-gallery.bh-gallery-grid .bh-media-item {
            min-height: 90px;
        }

        .bh-media-viewer {
            width: 95vw;
            padding: 20px;
            min-height: 240px;
            border-radius: var(--halo-radius-lg);
        }
    }

/* BHFeedPostCard.razor */
    /* ============================================
       Clean minimal post card
       ============================================ */
    .bh-post {
        background: var(--halo-surface);
        border-radius: var(--halo-radius-lg);
        box-shadow: none;
        padding: 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        transition: box-shadow var(--halo-duration-2) var(--halo-ease);
    }

    .bh-post--focused {
        border: 1px solid rgba(215, 25, 32, 0.24);
        box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08),
                    0 0 0 1px rgba(215, 25, 32, 0.14);
    }

    .bh-post:hover {
        box-shadow: var(--halo-shadow-2);
    }

    /* ── Header ── */
    .bh-post-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .bh-post-avatar {
        width: 36px;
        height: 36px;
        border-radius: var(--halo-radius-sm);
        background: var(--halo-surface-sunken);
        color: var(--halo-text);
        font-weight: 600;
        font-size: var(--halo-text-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        user-select: none;
    }

    .bh-post-author-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        flex: 1;
        min-width: 0;
    }

    .bh-post-author {
        font-weight: 600;
        font-size: var(--halo-text-sm);
        color: var(--halo-text);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bh-post-time {
        font-size: var(--halo-text-caption);
        color: var(--halo-text-tertiary);
        line-height: 1.3;
    }

    .bh-post-menu {
        flex-shrink: 0;
    }

    .bh-post-focus-pill,
    .bh-post-open-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border-radius: var(--halo-radius-pill);
        font-family: inherit;
        font-size: var(--halo-text-sm);
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .bh-post-focus-pill {
        margin-left: auto;
        padding: 6px 10px;
        background: var(--halo-tint-brand);
        color: var(--halo-ink-brand);
    }

    .bh-post-focus-pill :is(.mud-icon-root, .halo-icon) {
        font-size: 0.875rem !important; width: 1em; height: 1em; }

    .bh-post-open-btn {
        border: 1px solid var(--halo-hairline);
        background: var(--halo-surface);
        color: var(--halo-text);
        padding: 7px 11px;
        cursor: pointer;
        transition: background var(--halo-duration-1) var(--halo-ease),
                    transform var(--halo-duration-1) var(--halo-ease);
    }

    .bh-post-open-btn:hover {
        background: var(--halo-surface-sunken);
    }

    .bh-post-open-btn:active {
        transform: scale(0.97);
    }

    .bh-post-open-btn:focus-visible {
        outline: 2px solid var(--halo-action-brand);
        outline-offset: 2px;
    }

    .bh-post-menu .mud-icon-button {
        color: var(--halo-text-tertiary);
        width: 32px;
        height: 32px;
        border-radius: 8px !important;
        transition: background var(--halo-duration-1) var(--halo-ease),
                    color var(--halo-duration-1) var(--halo-ease);
    }

    .bh-post-menu .mud-icon-button:hover {
        background: var(--halo-surface-sunken);
        color: var(--halo-text);
    }

    /* ── Hidden badge ── */
    .bh-post-hidden-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--halo-tint-warning);
        color: var(--halo-ink-warning);
        border-radius: var(--halo-radius-sm);
        padding: 6px 12px;
        width: fit-content;
        font-size: var(--halo-text-sm);
        font-weight: 500;
    }

    .bh-post-hidden-badge :is(.mud-icon-root, .halo-icon) {
        font-size: 0.875rem !important; width: 1em; height: 1em; }

    /* ── Content ── */
    .bh-post-content {
        font-size: var(--halo-text-body);
        line-height: 1.6;
        color: var(--halo-text);
        word-break: break-word;
    }

    .bh-post-content .bh-mention-highlight {
        font-weight: 600;
        color: var(--halo-ink-brand);
        background: transparent;
        border-radius: 0;
        padding: 0;
        cursor: pointer;
    }

    .bh-post-content .bh-mention-highlight:hover {
        text-decoration: underline;
    }

    /* ── Media ── */
    .bh-post-media {
        margin: 0 -24px;
    }

    .bh-post-media .bh-media-gallery {
        border-radius: 0;
    }

    /* ── Comments ── */
    .bh-post-comments {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .bh-post-view-comments {
        background: none;
        border: none;
        padding: 0;
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        text-align: left;
        transition: color var(--halo-duration-1) var(--halo-ease);
    }

    .bh-post-view-comments:hover {
        color: var(--halo-text);
    }

    .bh-post-view-comments:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
        border-radius: var(--halo-radius-xs);
    }

    /* ── Full post viewer ── */
    .bh-post-viewer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1400;
        background: var(--halo-scrim);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        animation: bh-post-viewer-fade-in 0.16s ease;
    }

    .bh-post-viewer {
        width: min(1180px, 96vw);
        height: min(760px, 88vh);
        background: var(--halo-surface);
        border-radius: var(--halo-radius-lg);
        overflow: hidden;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
        animation: bh-post-viewer-scale-in 0.18s var(--halo-ease);
    }

    .bh-post-viewer-media {
        position: relative;
        min-width: 0;
        min-height: 0;
        background: var(--halo-fill-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .bh-post-viewer-asset {
        width: 100%;
        height: 100%;
        max-height: calc(88vh - 48px);
        object-fit: contain;
        border-radius: var(--halo-radius-sm);
    }

    .bh-post-viewer-placeholder,
    .bh-post-viewer-text-focus {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--halo-hairline-strong);
        text-align: center;
        max-width: 620px;
        line-height: 1.6;
    }

    .bh-post-viewer-text-focus {
        font-size: var(--halo-text-title);
        color: var(--halo-on-action);
        align-items: flex-start;
        text-align: left;
    }

    .bh-post-viewer-nav {
        position: absolute;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 6px;
        border-radius: var(--halo-radius-pill);
        background: rgba(255, 255, 255, 0.12);
        color: var(--halo-on-action);
        font-size: var(--halo-text-sm);
        font-weight: 700;
    }

    .bh-post-viewer-nav-btn {
        width: 30px;
        height: 30px;
        border-radius: var(--halo-radius-pill);
        border: none;
        background: rgba(255, 255, 255, 0.16);
        color: var(--halo-on-action);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .bh-post-viewer-side {
        position: relative;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 22px;
        background: var(--halo-surface);
        overflow: hidden;
    }

    .bh-post-viewer-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: var(--halo-radius-sm);
        background: var(--halo-surface-sunken);
        color: var(--halo-text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1;
    }

    .bh-post-viewer-author {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-right: 44px;
        flex-shrink: 0;
    }

    .bh-post-viewer-copy {
        color: var(--halo-text);
        font-size: var(--halo-text-body);
        line-height: 1.6;
        word-break: break-word;
        flex-shrink: 0;
    }

    .bh-post-viewer-comments {
        min-height: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid var(--halo-hairline);
        padding-top: 14px;
    }

    .bh-post-viewer-comments .bh-comment-list {
        min-height: 0;
        flex: 1;
    }

    .bh-post-viewer-comments .bh-comment-items {
        overflow-y: auto;
        min-height: 0;
        padding-right: 4px;
    }

    .bh-post-viewer-comments-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--halo-text);
        font-size: var(--halo-text-sm);
        font-weight: 800;
        flex-shrink: 0;
    }

    .bh-post-viewer-loading {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
    }

    @keyframes bh-post-viewer-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes bh-post-viewer-scale-in {
        from { opacity: 0; transform: translateY(10px) scale(0.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 767px) {
        .bh-post {
            padding: 16px 18px;
            border-radius: var(--halo-radius-lg);
        }

        .bh-post-media {
            margin: 0 -18px;
        }

        .bh-post-focus-pill span,
        .bh-post-open-btn span {
            display: none;
        }

        .bh-post-viewer-backdrop {
            padding: 10px;
        }

        .bh-post-viewer {
            width: 100%;
            height: 94vh;
            grid-template-columns: 1fr;
            grid-template-rows: minmax(220px, 42vh) 1fr;
            border-radius: var(--halo-radius-lg);
        }

        .bh-post-viewer-media {
            padding: 12px;
        }

        .bh-post-viewer-side {
            padding: 18px;
        }
    }

/* BHFeedWidget.razor */
    /* ============================================
       Clean minimal feed widget
       ============================================ */
    .bh-feed-widget {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: none;
        width: 100%;
        height: 100%;
        min-height: 0;
        flex: 1;
    }

    /* Loading / error states */
    .bh-feed-card:not(.bh-feed-composer-container) {
        background: var(--halo-surface);
        border-radius: var(--halo-radius-lg);
        box-shadow: none;
        padding: 32px 24px;
    }

    .bh-feed-card.bh-feed-composer-container {
        background: transparent;
        border: none;
        box-shadow: none;
        transition: none;
    }

    .bh-feed-loading,
    .bh-feed-error {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 200px;
        gap: 12px;
        text-align: center;
    }

    .bh-feed-state-title {
        margin: 0;
        font-size: var(--halo-text-body);
        font-weight: 600;
        color: var(--halo-text);
    }

    .bh-feed-state-text {
        margin: 0;
        font-size: var(--halo-text-sm);
        color: var(--halo-text-secondary);
    }

    .bh-feed-state-text--loading {
        margin-top: var(--halo-2);
    }

    /* Composer card */
    .bh-feed-composer-container {
        background: var(--halo-surface);
        border-radius: var(--halo-radius-lg);
        box-shadow: none;
        padding: 20px 24px;
        flex-shrink: 0;
    }

    /* Post list */
    .bh-feed-focus-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 0 2px;
    }

    .bh-feed-focus-header > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bh-feed-focus-kicker {
        color: var(--halo-ink-brand);
        font-size: var(--halo-text-caption);
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    .bh-feed-focus-title {
        color: var(--halo-text);
        font-size: var(--halo-text-body);
        font-weight: 800;
        line-height: 1.2;
    }

    .bh-feed-focus-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        border-radius: var(--halo-radius-pill);
        background: var(--halo-surface);
        border: 1px solid var(--halo-hairline);
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 700;
        white-space: nowrap;
    }

    .bh-feed-post-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--halo-hairline) transparent;
    }

    .bh-feed-post-list::-webkit-scrollbar {
        width: 4px;
    }
    .bh-feed-post-list::-webkit-scrollbar-thumb {
        background: var(--halo-hairline);
        border-radius: var(--halo-radius-xs);
    }
    .bh-feed-post-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .bh-feed-load-more {
        display: flex;
        justify-content: center;
        padding: 8px 0;
        flex-shrink: 0;
    }

    /* Post wrapper */
    .bh-feed-post-wrapper {
        position: relative;
        transition: opacity var(--halo-duration-2) var(--halo-ease),
                    max-height var(--halo-duration-3) var(--halo-ease),
                    transform var(--halo-duration-3) var(--halo-ease);
        animation: bh-post-enter 0.26s var(--halo-ease);
    }

    @keyframes bh-post-enter {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .bh-feed-post-wrapper.bh-provisional {
        opacity: 0.8;
    }

    .bh-feed-post-wrapper.bh-fade-out {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .bh-feed-post-wrapper--focus {
        scroll-margin-top: 12px;
    }

    .bh-feed-more-cue {
        align-self: center;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin: -2px 0 2px;
        padding: 7px 12px;
        border-radius: var(--halo-radius-pill);
        background: rgba(255, 255, 255, 0.86);
        border: 1px solid var(--halo-hairline);
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    }

    .bh-feed-more-cue :is(.mud-icon-root, .halo-icon) {
        font-size: 1rem !important;
        animation: bh-feed-cue-bounce 1.6s var(--halo-ease) infinite; width: 1em; height: 1em; }

    @keyframes bh-feed-cue-bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(2px); }
    }

    .bh-provisional-indicator {
        position: absolute;
        bottom: 0;
        left: 24px;
        right: 24px;
        overflow: hidden;
        border-radius: 0 0 var(--halo-radius-lg) var(--halo-radius-lg);
    }

    .bh-provisional-indicator .bh-provisional-bar {
        height: 2px;
        margin: 0;
        border-radius: 0;
    }

    /* New post indicator — dark pill */
    .bh-new-post-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--halo-action-brand);
        color: var(--halo-on-action);
        border: none;
        border-radius: var(--halo-radius-md);
        padding: 8px 20px;
        font-size: var(--halo-text-sm);
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: transform var(--halo-duration-1) var(--halo-ease),
                    background var(--halo-duration-1) var(--halo-ease);
        align-self: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .bh-new-post-indicator:hover {
        background: var(--halo-text);
        transform: translateY(-1px);
    }

    .bh-new-post-indicator:active {
        transform: translateY(0);
    }

    .bh-new-post-indicator:focus-visible {
        outline: 2px solid var(--halo-action-brand);
        outline-offset: 2px;
    }

    .bh-new-post-indicator :is(.mud-icon-root, .halo-icon) {
        font-size: 1rem !important; width: 1em; height: 1em; }

    @media (max-width: 767px) {
        .bh-feed-widget {
            gap: 8px;
        }

        .bh-feed-card {
            padding: 16px;
        }

        .bh-feed-composer-container {
            padding: 16px 18px;
            border-radius: var(--halo-radius-lg);
        }

        .bh-feed-post-list {
            gap: 8px;
        }

        .bh-feed-focus-header {
            align-items: flex-start;
        }
    }
    /* Compact "new post" trigger (full composer opens in a modal) */
    .bh-feed-new-post {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 11px 14px;
        background: var(--halo-surface);
        border: 1px solid var(--halo-hairline);
        border-radius: var(--halo-radius-lg);
        box-shadow: var(--halo-shadow-1);
        cursor: pointer;
        text-align: left;
        font-family: inherit;
        transition: box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .bh-feed-new-post:hover {
        transform: translateY(-1px);
        box-shadow: var(--halo-shadow-2);
    }

    .bh-feed-new-post__plus {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--halo-action-brand);
        color: var(--halo-on-action);
        flex-shrink: 0;
    }

    .bh-feed-new-post__label {
        flex: 1;
        min-width: 0;
        color: var(--halo-text-tertiary);
        font-size: var(--halo-text-body);
        font-weight: 500;
    }

    .bh-feed-new-post__cta {
        flex-shrink: 0;
        padding: 6px 14px;
        border-radius: var(--halo-radius-pill);
        background: var(--halo-tint-brand);
        color: var(--halo-ink-brand);
        font-size: var(--halo-text-sm);
        font-weight: 800;
    }

    .bh-feed-composer-dialog__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--halo-3);
    }

    .bh-feed-composer-dialog__title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        color: var(--halo-text);
    }

/* BHMentionEditor.razor */
    .bh-mention-editor {
        position: relative;
        width: 100%;
    }

    .bh-mention-input {
        width: 100%;
    }

    .bh-mention-input textarea,
    .bh-mention-input input {
        font-size: var(--halo-text-body);
        line-height: 1.5;
    }

    .bh-mention-dropdown {
        position: absolute;
        left: 0;
        right: 0;
        z-index: 1000;
        margin-top: 4px;
        background: var(--halo-surface-raised);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--halo-radius-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
        overflow: hidden;
        animation: bh-mention-fade-in 0.15s ease-out;
    }

    @keyframes bh-mention-fade-in {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .bh-mention-list {
        padding: 4px 0 !important;
    }

    .bh-mention-list .mud-list-item {
        padding: 6px 12px !important;
        border-radius: var(--halo-radius-sm);
        margin: 2px 4px;
        transition: background 0.15s ease;
    }

    .bh-mention-list .mud-list-item:hover {
        background: rgba(0, 0, 0, 0.04) !important;
    }

    .bh-mention-list .mud-list-item.mud-selected-item {
        background: rgba(0, 0, 0, 0.06) !important;
    }

    .bh-mention-suggestion {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .bh-mention-empty {
        padding: 12px 16px;
        text-align: center;
    }

    .bh-mention-name {
        font-size: var(--halo-text-sm);
        font-weight: 500;
        color: var(--halo-text);
    }

    .bh-mention-empty-text {
        font-size: var(--halo-text-caption);
        color: var(--halo-text-secondary);
    }

    @media (max-width: 767px) {
        .bh-mention-dropdown {
            border-radius: var(--halo-radius-sm);
        }
    }

/* BHMentionNotificationItem.razor */
    .bh-notification-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
        transition: background 0.2s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-notification-item:hover {
        background: var(--halo-surface-sunken);
    }

    .bh-notification-item:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: -2px;
    }

    .bh-notification-unread {
        background: var(--halo-surface-sunken);
    }

    /* Unread dot */
    .bh-unread-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        border-radius: 50%;
        background: var(--halo-text);
        flex-shrink: 0;
    }

    .bh-unread-dot-spacer {
        width: 6px;
        min-width: 6px;
        flex-shrink: 0;
    }

    /* Avatar */
    .bh-notification-avatar {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .bh-notification-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bh-notification-avatar-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        background: var(--halo-hairline);
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 600;
    }

    /* Content */
    .bh-notification-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bh-notification-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: var(--halo-text-sm);
        line-height: 1.4;
        color: var(--halo-text);
    }

    .bh-notification-sender {
        font-weight: 600;
    }

    .bh-notification-unread .bh-notification-sender {
        font-weight: 700;
    }

    .bh-notification-preview {
        font-weight: 400;
        color: var(--halo-text-secondary);
    }

    .bh-notification-time {
        font-size: var(--halo-text-caption);
        color: var(--halo-text-secondary);
        white-space: nowrap;
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-notification-item {
            transition: none;
        }
    }

/* BHNotificationBadge.razor */
    .bh-notification-badge-wrapper {
        position: relative;
        display: inline-flex;
    }

    .bh-notification-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        border-radius: var(--halo-radius-md);
        cursor: pointer;
        transition: background 0.2s cubic-bezier(0.32, 0.72, 0, 1);
        padding: 0;
        font-family: inherit;
    }

    .bh-notification-btn:hover {
        background: var(--halo-surface-sunken);
    }

    .bh-notification-btn:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    .bh-badge {
        position: absolute;
        top: 2px;
        right: 0px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: var(--halo-text);
        color: var(--halo-on-action);
        font-size: 0.6875rem;
        font-weight: 600;
        font-family: inherit;
        line-height: 18px;
        text-align: center;
        border-radius: var(--halo-radius-sm);
        pointer-events: none;
        transform: scale(1);
        transition: transform 0.15s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-badge-pulse {
        animation: bh-badge-scale-pulse 0.15s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes bh-badge-scale-pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    /* Backdrop */
    .bh-notification-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
    }

    /* Dropdown */
    .bh-notification-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 360px;
        max-height: 420px;
        background: var(--halo-surface-raised);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--halo-radius-lg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: bh-dropdown-in 0.2s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes bh-dropdown-in {
        from {
            opacity: 0;
            transform: translateY(-4px) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .bh-notification-dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid var(--halo-hairline);
        flex-shrink: 0;
    }

    .bh-mark-all-read-btn {
        background: none;
        border: none;
        color: var(--halo-text-secondary);
        font-size: var(--halo-text-sm);
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: var(--halo-radius-sm);
        transition: background 0.2s cubic-bezier(0.32, 0.72, 0, 1), color 0.2s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-mark-all-read-btn:hover {
        background: var(--halo-surface-sunken);
        color: var(--halo-text);
    }

    .bh-mark-all-read-btn:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    .bh-notification-dropdown-body {
        overflow-y: auto;
        flex: 1;
    }

    .bh-notification-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 16px;
    }

    .bh-notification-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 16px;
    }

    .bh-notification-dropdown-title {
        margin: 0;
        font-size: var(--halo-text-body);
        font-weight: 600;
        color: var(--halo-text);
    }

    .bh-notification-empty-text {
        margin: 0;
        font-size: var(--halo-text-sm);
        color: var(--halo-text-secondary);
    }

    @media (max-width: 480px) {
        .bh-notification-dropdown {
            width: calc(100vw - 32px);
            right: -8px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-badge-pulse {
            animation: none;
        }

        .bh-notification-dropdown {
            animation: none;
        }
    }

/* BHReactionBar.razor */
    /* ============================================
       Clean minimal reaction bar
       ============================================ */
    .bh-reactions {
        padding-top: 2px;
    }

    .bh-reactions-row {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .bh-reaction-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: var(--halo-surface-sunken);
        border: 1.5px solid transparent;
        border-radius: var(--halo-radius-pill);
        padding: 5px 10px;
        cursor: pointer;
        font-family: inherit;
        font-size: var(--halo-text-sm);
        color: var(--halo-text-secondary);
        transition: background var(--halo-duration-1) var(--halo-ease),
                    border-color var(--halo-duration-1) var(--halo-ease),
                    color var(--halo-duration-1) var(--halo-ease),
                    transform var(--halo-duration-1) var(--halo-ease);
        line-height: 1;
    }

    .bh-reaction-chip svg {
        flex-shrink: 0;
    }

    .bh-reaction-chip:hover {
        background: var(--halo-surface-hover);
        color: var(--halo-text);
    }

    .bh-reaction-chip:active {
        transform: scale(0.94);
    }

    .bh-reaction-chip:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    /* Active state */
    .bh-reaction-chip.bh-reaction-active {
        background: var(--halo-surface);
        border-color: var(--halo-hairline);
        color: var(--halo-text);
    }

    .bh-reaction-chip.bh-reaction-active.bh-reaction-heart {
        color: var(--halo-ink-critical);
    }

    .bh-reaction-chip.bh-reaction-active.bh-reaction-heart svg {
        animation: bh-heart-pop 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.28);
    }

    @keyframes bh-heart-pop {
        0% { transform: scale(0.5); }
        50% { transform: scale(1.15); }
        100% { transform: scale(1); }
    }

    .bh-reaction-emoji {
        font-size: var(--halo-text-sm);
        line-height: 1;
    }

    .bh-reaction-count {
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        font-size: var(--halo-text-sm);
    }

    .bh-reactions-divider {
        width: 1px;
        height: 16px;
        background: var(--halo-hairline);
        flex-shrink: 0;
    }

    @media (max-width: 767px) {
        .bh-reactions-row {
            gap: 4px;
        }

        .bh-reaction-chip {
            padding: 4px 8px;
        }
    }

/* BHNoteColorPicker.razor */
    .bh-color-picker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .bh-color-swatch {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1),
                    opacity 200ms cubic-bezier(0.32, 0.72, 0, 1);
        outline: none;
        box-shadow: none;
    }

    .bh-color-swatch:hover {
        transform: scale(1.12);
    }

    .bh-color-swatch:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    .bh-color-swatch--active {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-color-swatch {
            transition: none;
        }
    }

/* BHNoteNavigation.razor */
    .bh-note-nav {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .bh-note-nav-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--halo-text);
        cursor: pointer;
        border-radius: var(--halo-radius-xs);
        flex-shrink: 0;
        transition: opacity 200ms cubic-bezier(0.32, 0.72, 0, 1),
                    background 200ms cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-note-nav-arrow:hover:not(:disabled) {
        background: rgba(0, 0, 0, 0.05);
    }

    .bh-note-nav-arrow:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .bh-note-nav-arrow:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    .bh-note-nav-dots {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .bh-note-nav-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(26, 26, 26, 0.25);
        flex-shrink: 0;
        transition: background 200ms cubic-bezier(0.32, 0.72, 0, 1),
                    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-note-nav-dot--active {
        background: var(--halo-text);
        transform: scale(1.35);
    }

    .bh-note-nav-counter {
        font-size: var(--halo-text-sm);
        font-weight: 500;
        color: var(--halo-text);
        line-height: 1;
        white-space: nowrap;
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-note-nav-arrow,
        .bh-note-nav-dot {
            transition: none;
        }
    }

/* BHNoteSaveIndicator.razor */
    .bh-save-indicator {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: var(--halo-text-sm);
        line-height: 1;
        opacity: 0;
        transition: opacity 200ms cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-save-indicator.bh-save-visible {
        opacity: 1;
    }

    .bh-save-indicator.bh-save-fading {
        opacity: 0;
    }

    .bh-save-text {
        color: var(--halo-text);
        font-weight: 500;
        white-space: nowrap;
    }

    .bh-save-text--failed {
        color: var(--halo-ink-critical);
    }

    .bh-save-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .bh-save-dot--saving {
        background: var(--halo-text-tertiary);
        animation: bh-save-pulse 1.2s ease-in-out infinite;
    }

    .bh-save-dot--failed {
        background: var(--halo-ink-critical);
    }

    .bh-save-check {
        flex-shrink: 0;
    }

    @keyframes bh-save-pulse {
        0%, 100% { opacity: 0.4; transform: scale(0.85); }
        50% { opacity: 1; transform: scale(1); }
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-save-indicator {
            transition: none;
        }

        .bh-save-dot--saving {
            animation: none;
            opacity: 1;
        }
    }

/* BHNoteWritingArea.razor */
    .bh-writing-area {
        display: block;
        width: 100%;
        min-height: 200px;
        padding: 20px;
        border: none;
        outline: none;
        resize: none;
        font-family: var(--halo-font);
        font-size: var(--halo-text-body);
        line-height: 1.6;
        color: var(--halo-text);
        background-color: transparent;
        box-sizing: border-box;
    }

    .bh-writing-area::placeholder {
        color: rgba(26, 26, 26, 0.35);
    }

    .bh-writing-area:focus {
        outline: none;
        border: none;
    }

/* BHStickyNotesBoard.razor */
    .bh-sticky-board {
        border-radius: var(--halo-radius-lg);
        box-shadow: var(--halo-shadow-1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: background-color 200ms cubic-bezier(0.32, 0.72, 0, 1);
        height: 100%;
    }

    .bh-sticky-page-wrapper {
        flex: 1;
        overflow: hidden;
    }

    .bh-sticky-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px;
        gap: 8px;
    }

    .bh-sticky-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .bh-sticky-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--halo-text);
        cursor: pointer;
        border-radius: var(--halo-radius-xs);
        flex-shrink: 0;
        transition: background 200ms cubic-bezier(0.32, 0.72, 0, 1);
    }

    .bh-sticky-action-btn:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .bh-sticky-action-btn:focus-visible {
        outline: 2px solid var(--halo-text);
        outline-offset: 2px;
    }

    /* Skeleton loading state */
    .bh-sticky-skeleton {
        padding: 24px 20px;
        justify-content: center;
        gap: 12px;
    }

    .bh-sticky-skeleton-line {
        height: 12px;
        border-radius: var(--halo-radius-xs);
        background: rgba(26, 26, 26, 0.08);
        animation: bh-skeleton-pulse 1.5s ease-in-out infinite;
    }

    .bh-sticky-skeleton-line--wide { width: 80%; }
    .bh-sticky-skeleton-line--medium { width: 60%; }
    .bh-sticky-skeleton-line--narrow { width: 40%; }

    @keyframes bh-skeleton-pulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }

    /* Empty state */
    .bh-sticky-empty {
        justify-content: center;
        align-items: center;
    }

    .bh-sticky-empty-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 32px 20px;
    }

    .bh-sticky-empty-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: var(--halo-radius-lg);
        background: var(--halo-tint-brand);
        font-size: var(--halo-text-page);
        line-height: 1;
    }

    .bh-sticky-empty-message {
        font-size: var(--halo-text-body);
        font-weight: 600;
        color: var(--halo-text);
    }

    @media (prefers-reduced-motion: reduce) {
        .bh-sticky-board {
            transition: none;
        }

        .bh-sticky-skeleton-line {
            animation: none;
            opacity: 0.6;
        }
    }
