:root {
    --foxy-black: #141414;
    --foxy-charcoal: #1f1f1f;
    --foxy-slate: #2b2b2b;
    --foxy-line: rgba(255, 255, 255, 0.08);
    --foxy-copy: rgba(255, 255, 255, 0.9);
    --foxy-muted: rgba(255, 255, 255, 0.58);
    --foxy-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.foxy-launcher {
    background: none!important;
    position: fixed;
    left: 5px;
    bottom: 10px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.foxy-launcher:hover,
.foxy-launcher:focus-visible {
    transform: translateY(-2px) scale(1.02);

}

.foxy-launcher img {
    width: 60px;
    height: 60px;
    display: block;
}

.foxy-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.foxy-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.foxy-shell {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100vh - 48px));
    position: relative;
}

.foxy-panel {
    --foxy-scrollbar-track: rgba(255, 255, 255, 0.04);
    --foxy-scrollbar-thumb: rgba(255, 255, 255, 0.22);
    --foxy-scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
    --foxy-scrollbar-thumb-border: rgba(20, 20, 20, 0.75);
    width: min(550px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    border-radius: 8px;
    overflow: hidden;
    position: fixed;
    background: linear-gradient(
        180deg,
        rgba(43, 43, 43, 0.72) 0%,
        rgba(35, 35, 35, 0.66) 48%,
        rgba(20, 20, 20, 0.72) 100%
    );
    z-index: 10001;
    color: var(--foxy-copy);
    box-shadow: var(--foxy-shadow);
    border: 1px solid var(--foxy-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.foxy-body {
    display: grid;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.foxy-chat-shell {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(180px, 1fr) auto;
    overflow: hidden;
}

.foxy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.92rem 1rem;
    border-bottom: 1px solid var(--foxy-line);
    /*background: rgba(31, 31, 31, 0.56);*/
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.025), transparent 36%),
        linear-gradient(180deg, rgba(43, 43, 43, 0.18), rgba(20, 20, 20, 0.12));
    cursor: grab;
}

.foxy-header:active {
    cursor: grabbing;
}

.foxy-panel__resize-handle {
    position: absolute;
    z-index: 4;
    touch-action: none;
}

.foxy-panel__resize-handle--right {
    top: 0;
    right: 0;
    bottom: 14px;
    width: 10px;
    cursor: ew-resize;
}

.foxy-panel__resize-handle--bottom {
    left: 0;
    right: 14px;
    bottom: 0;
    height: 10px;
    cursor: ns-resize;
}

.foxy-panel__resize-handle--corner {
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    z-index: 5;
    cursor: nwse-resize;
}

.foxy-panel__resize-handle--right::after,
.foxy-panel__resize-handle--bottom::after,
.foxy-panel__resize-handle--corner::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.foxy-panel__resize-handle--right::after {
    top: 18px;
    right: 3px;
    bottom: 18px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.foxy-panel__resize-handle--bottom::after {
    left: 18px;
    right: 18px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.foxy-panel__resize-handle--corner::after {
    right: 3px;
    bottom: 3px;
    width: 10px;
    height: 10px;
    background:
        linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 38% 52%, transparent 52% 100%),
        linear-gradient(135deg, transparent 0 62%, rgba(255, 255, 255, 0.24) 62% 76%, transparent 76% 100%);
}

.foxy-panel__resize-handle--right:hover::after,
.foxy-panel__resize-handle--bottom:hover::after,
.foxy-panel__resize-handle--corner:hover::after,
.foxy-panel.is-resizing-x .foxy-panel__resize-handle--right::after,
.foxy-panel.is-resizing-y .foxy-panel__resize-handle--bottom::after,
.foxy-panel.is-resizing-both .foxy-panel__resize-handle--corner::after {
    opacity: 1;
}

.foxy-panel__resize-handle--right:hover::after,
.foxy-panel.is-resizing-x .foxy-panel__resize-handle--right::after,
.foxy-panel__resize-handle--bottom:hover::after,
.foxy-panel.is-resizing-y .foxy-panel__resize-handle--bottom::after {
    background: rgba(255, 255, 255, 0.22);
}

.foxy-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem 0.65rem;

    overflow-x: auto;
    overflow-y: hidden;
}

.foxy-tab-shell {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 164px;
}

.foxy-tab {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex: 1 1 auto;
    border: 1px solid rgba(55, 55, 55, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: var(--foxy-muted);
    min-width: 0;
    max-width: 100%;
    padding: 0.28rem 0.85rem 0.28rem 0.55rem;
    border-radius: 4px;
    font-size: 0.68rem;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.7;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.foxy-tab:hover,
.foxy-tab:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.foxy-tab.is-active {
    color: #fff;
    border: 1px solid rgba(55, 55, 55, 0.05);
    background: rgba(255, 255, 255, 0.03);
    opacity: 1;
}

.foxy-tab.is-busy::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0.45rem rgba(255, 255, 255, 0.35);
}

.foxy-tab__label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foxy-tab__close {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.42);
    width: 1.05rem;
    height: 1.05rem;
    padding: 0 2px;
    border-radius: 999px;
    font-size: 0.84rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.72;
    left:-20px;
    position: relative;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.foxy-tab__close:hover,
.foxy-tab__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 1;
}

.foxy-tab__close:disabled {
    cursor: default;
    opacity: 0.3;
}

.foxy-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.foxy-title img {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    flex: 0 0 auto;
}

.foxy-title-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.foxy-title-text span {
    display: block;
    font-size: 0.82rem;
    color: var(--foxy-muted);
}

.foxy-panel-settings {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.foxy-settings-menu {
    position: relative;
}

.foxy-settings-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 160px;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    z-index: 10002;
}

.foxy-settings-item {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    background: transparent;
    color: var(--foxy-copy);
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
}

.foxy-settings-item:hover,
.foxy-settings-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.foxy-settings-item[disabled] {
    color: var(--foxy-muted);
    opacity: 0.55;
    cursor: not-allowed;
}

.foxy-close {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--foxy-muted);
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.foxy-close:hover,
.foxy-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.foxy-thread {
    min-height: 0;
    min-width: 0;
    overflow: auto;
    padding: 0.92rem 1rem;
    display: grid;
    gap: 0.85rem;
    background: transparent;
}

.foxy-thread,
.foxy-archive-list,
.foxy-archive-panes,
.foxy-refiners-rail__body,
.foxy-insights-rail__body,
.foxy-article-panel__body,
.foxy-tabs {
    scrollbar-width: thin;
    scrollbar-color: var(--foxy-scrollbar-thumb) var(--foxy-scrollbar-track);
    overscroll-behavior: contain;
}

.foxy-thread::-webkit-scrollbar,
.foxy-archive-list::-webkit-scrollbar,
.foxy-archive-panes::-webkit-scrollbar,
.foxy-refiners-rail__body::-webkit-scrollbar,
.foxy-insights-rail__body::-webkit-scrollbar,
.foxy-article-panel__body::-webkit-scrollbar,
.foxy-tabs::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.foxy-thread::-webkit-scrollbar-track,
.foxy-archive-list::-webkit-scrollbar-track,
.foxy-archive-panes::-webkit-scrollbar-track,
.foxy-refiners-rail__body::-webkit-scrollbar-track,
.foxy-insights-rail__body::-webkit-scrollbar-track,
.foxy-article-panel__body::-webkit-scrollbar-track,
.foxy-tabs::-webkit-scrollbar-track {
    background: var(--foxy-scrollbar-track);
    border-radius: 999px;
}

.foxy-thread::-webkit-scrollbar-thumb,
.foxy-archive-list::-webkit-scrollbar-thumb,
.foxy-archive-panes::-webkit-scrollbar-thumb,
.foxy-refiners-rail__body::-webkit-scrollbar-thumb,
.foxy-insights-rail__body::-webkit-scrollbar-thumb,
.foxy-article-panel__body::-webkit-scrollbar-thumb,
.foxy-tabs::-webkit-scrollbar-thumb {
    background: var(--foxy-scrollbar-thumb);
    border: 2px solid var(--foxy-scrollbar-thumb-border);
    border-radius: 999px;
}

.foxy-thread::-webkit-scrollbar-thumb:hover,
.foxy-archive-list::-webkit-scrollbar-thumb:hover,
.foxy-archive-panes::-webkit-scrollbar-thumb:hover,
.foxy-refiners-rail__body::-webkit-scrollbar-thumb:hover,
.foxy-insights-rail__body::-webkit-scrollbar-thumb:hover,
.foxy-article-panel__body::-webkit-scrollbar-thumb:hover,
.foxy-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--foxy-scrollbar-thumb-hover);
}

.foxy-message {
    max-width: 88%;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    
}

.foxy-message__body {
    white-space: pre-wrap;
}

.foxy-message__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.foxy-message__action {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.foxy-message__action:hover,
.foxy-message__action:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
    transform: translateY(-1px);
}

.foxy-message__action:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.foxy-message--user {
    justify-self: end;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.foxy-message--assistant {
    justify-self: start;
    background: rgba(20, 20, 20, 0.35);
    color: var(--foxy-copy);
    border: 1px solid var(--foxy-line);
    border-bottom-left-radius: 4px;
}

.foxy-message--pending {
    opacity: 0.9;
}

.foxy-message--pending .foxy-message__body::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
    vertical-align: middle;
    animation: foxy-message-pulse 1.35s ease-in-out infinite;
}

@keyframes foxy-message-pulse {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.24);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.foxy-message--system {
    justify-self: stretch;
    max-width: 100%;
    padding: 0.65rem 0;
    background: transparent;
    border: 0;
    color: var(--foxy-muted);
    font-size: 0.83rem;
}

.foxy-compose {
    min-width: 0;
    padding: 0.92rem 1rem 1rem;
    border-top: 0;
    background: transparent;
}

.foxy-compose textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;

    border: 1px solid rgba(255, 255, 255, 0.06)!important;
    border-radius: 10px;
    padding: 0.95rem 1rem;
    background: rgba(20, 20, 20, 0.7);
    color: #fff;
    box-shadow: none;
    outline: none;
}

.foxy-compose textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.foxy-compose textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
}

.foxy-actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.foxy-compose-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.foxy-hint {
    display: inline-flex;
    align-items: center;
    min-height: 1.1rem;
    max-width: 100%;
    font-size: 0.6rem;
    color: var(--foxy-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    transition: color 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.foxy-hint.is-error {
    color: #ffb4b4;
    opacity: 1;
}

.foxy-hint.is-live {
    animation: foxy-status-fade-in 0.28s ease;
    filter: drop-shadow(0 0 0.35rem rgba(255, 255, 255, 0.08));
}

@keyframes foxy-status-fade-in {
    from {
        opacity: 0;
        transform: translateY(2px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.foxy-submit {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--foxy-muted);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    min-width: 118px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    font-family: var(--bs-font-sans-serif);
    font-size: 0.85rem;
}

.foxy-submit:hover,
.foxy-submit:focus-visible {
    background: #323232;
    border-color: rgba(255, 255, 255, 0.22);
}

.foxy-submit[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.foxy-context-indicator {
    --foxy-context-progress: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    overflow: hidden;
    background:
        conic-gradient(
            rgba(255, 255, 255, 0.92) calc(var(--foxy-context-progress) * 1%),
            rgba(255, 255, 255, 0.08) 0
        );
}

.foxy-context-indicator::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.foxy-context-indicator__inner {
    position: relative;
    z-index: 1;
    font-size: 0.46rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.02em;
}

.foxy-archive-rail {
    --foxy-scrollbar-track: rgba(255, 255, 255, 0.08);
    --foxy-scrollbar-thumb: rgba(255, 255, 255, 0.34);
    --foxy-scrollbar-thumb-hover: rgba(255, 255, 255, 0.44);
    --foxy-scrollbar-thumb-border: rgba(43, 43, 43, 0.55);
    --foxy-archive-overlap-strength: 0;
    --foxy-archive-overlap-blur: 0px;
    position: fixed;
    width: min(400px, calc(100vw - 24px));
    min-width: min(260px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-height: 220px;
    height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100vh - 48px));
    border: 1px solid var(--foxy-line);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(12, 12, 12, calc(var(--foxy-archive-overlap-strength) * 0.34)),
            rgba(8, 8, 8, calc(var(--foxy-archive-overlap-strength) * 0.52))
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(20, 20, 20, 0.08)),
        rgba(20, 20, 20, 0.18);
    color: var(--foxy-copy);
    display: flex;
    flex-direction: column;
    z-index: 10002;
    overscroll-behavior: contain;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--foxy-archive-overlap-blur));
    -webkit-backdrop-filter: blur(var(--foxy-archive-overlap-blur));
    transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.foxy-archive-rail.is-overlapping-panel {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.foxy-archive-rail.is-overlapping-panel .foxy-archive-rail__header {
    background:
        linear-gradient(
            180deg,
            rgba(10, 10, 10, calc(var(--foxy-archive-overlap-strength) * 0.38)),
            rgba(12, 12, 12, calc(var(--foxy-archive-overlap-strength) * 0.18))
        );
}

@media (max-width: 1024px) {
    .foxy-shell {
        width: min(550px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        height: min(720px, calc(100vh - 48px));
        max-height: calc(100vh - 48px);
    }

    .foxy-panel {
        width: min(550px, calc(100vw - 48px));
        max-width: calc(100vw - 48px);
        height: min(720px, calc(100vh - 48px));
        max-height: calc(100vh - 48px);
    }

}

.foxy-archive-rail::before,
.foxy-archive-rail::after {
    content: "";
    position: absolute;
    left: 50px;
    right: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.foxy-archive-rail::before {
    top: 0;
}

.foxy-archive-rail::after {
    bottom: 0;
}

.foxy-archive-rail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.92rem 0.92rem 0.82rem;
    border-bottom: 1px solid var(--foxy-line);
}

.foxy-archive-rail__title {
    min-width: 0;
}

.foxy-archive-rail__header strong {
    display: block;
    font-size: 0.86rem;
    color: #fff;
}

.foxy-archive-rail__header span {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.74rem;
    color: var(--foxy-muted);
}

.foxy-archive-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.8rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 0.9rem;
    overflow: hidden;
}

.foxy-archive-tabs {
    display: inline-flex;
    gap: 0.32rem;
    padding: 0.24rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    align-self: flex-start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.foxy-archive-tab {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.44rem 0.78rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.foxy-archive-tab:hover,
.foxy-archive-tab:focus-visible {
    color: rgba(255, 255, 255, 0.88);
}

.foxy-archive-tab[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.foxy-archive-tab:disabled {
    cursor: default;
    opacity: 0.42;
}

.foxy-archive-panes {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.foxy-archive-section {
    display: grid;
    gap: 0.55rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    align-self: start;
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.foxy-archive-section.is-active {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.foxy-archive-section__title {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.54);
}

.foxy-archive-section > div:last-child {
    display: grid;
    gap: 0.75rem;
}

.foxy-archive-empty {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--foxy-muted);
}

.foxy-rail-tabs {
    display: inline-flex;
    gap: 0.32rem;
    padding: 0.24rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    align-self: flex-start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.foxy-rail-tab {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.44rem 0.78rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.foxy-rail-tab:hover,
.foxy-rail-tab:focus-visible {
    color: rgba(255, 255, 255, 0.9);
}

.foxy-rail-tab[aria-selected="true"] {
    color: #fff;
}

.foxy-rail-tab:disabled {
    cursor: default;
    opacity: 0.42;
}

.foxy-rail-panes {
    display: grid;
    gap: 0.9rem;
}

.foxy-rail-pane {
    display: grid;
    gap: 0.9rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    align-self: start;
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.foxy-rail-pane.is-active {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .foxy-archive-tab,
    .foxy-archive-section,
    .foxy-rail-tab,
    .foxy-rail-pane {
        transition: none;
    }
}

.foxy-archive-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    padding: 0.78rem 0.82rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    cursor: pointer;
    overflow: hidden;
    display: grid;
    gap: 0.36rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.foxy-archive-item:hover,
.foxy-archive-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.foxy-archive-item span,
.foxy-archive-item p {
    display: block;
}

.foxy-archive-item__row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

.foxy-archive-item span {
    font-size: 0.72rem;
    color: var(--foxy-muted);
}

.foxy-archive-item__preview {
    min-width: 0;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.foxy-archive-item__edited {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.foxy-archive-item__meta {
    margin: 0;
    white-space: nowrap;
    justify-self: end;
    opacity: 0.8;
}

.foxy-article-panel,
.foxy-refiners-rail,
.foxy-insights-rail {
    position: fixed;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    border-radius: 12px;
    color: var(--foxy-copy);
    overflow: hidden;
}

.foxy-article-panel {
    --foxy-scrollbar-track: rgba(255, 255, 255, 0.04);
    --foxy-scrollbar-thumb: rgba(255, 255, 255, 0.22);
    --foxy-scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
    --foxy-scrollbar-thumb-border: rgba(20, 20, 20, 0.75);
    top: 80px;
    left: calc(100vw - min(700px, calc(100vw - 48px)) - 24px);
    width: min(700px, calc(100vw - 48px));
    min-width: min(360px, calc(100vw - 24px));
    min-height: min(260px, calc(100vh - 24px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.96), rgba(20, 20, 20, 0.97));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    z-index: 10002;
}

.foxy-refiners-rail {
    --foxy-scrollbar-track: rgba(123, 204, 169, 0.08);
    --foxy-scrollbar-thumb: rgba(123, 204, 169, 0.32);
    --foxy-scrollbar-thumb-hover: rgba(123, 204, 169, 0.42);
    --foxy-scrollbar-thumb-border: rgba(20, 20, 20, 0.7);
    --foxy-refiner-accent: rgba(123, 204, 169, 0.92);
    --foxy-refiner-accent-line: rgba(123, 204, 169, 0.24);
    --foxy-rail-tab-active: rgba(123, 204, 169, 0.16);
    --foxy-rail-tab-active-border: rgba(123, 204, 169, 0.24);
    width: min(400px, calc(100vw - 24px));
    min-width: min(260px, calc(100vw - 24px));
    min-height: 220px;
    border: 1px solid rgba(123, 204, 169, 0.12);
    background:
        radial-gradient(circle at top left, rgba(123, 204, 169, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(20, 20, 20, 0.1)),
        rgba(18, 23, 21, 0.92);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10004;
    overscroll-behavior: contain;
}

.foxy-insights-rail {
    --foxy-scrollbar-track: rgba(205, 140, 255, 0.09);
    --foxy-scrollbar-thumb: rgba(205, 140, 255, 0.3);
    --foxy-scrollbar-thumb-hover: rgba(255, 173, 97, 0.38);
    --foxy-scrollbar-thumb-border: rgba(20, 20, 20, 0.72);
    --foxy-insight-accent-green: rgba(123, 204, 169, 0.96);
    --foxy-insight-accent-yellow: rgba(243, 199, 142, 0.96);
    --foxy-insight-accent-orange: rgba(251, 169, 24, 0.96);
    --foxy-insight-accent-red: rgba(255, 118, 118, 0.96);
    --foxy-insight-accent-purple: rgba(160, 124, 255, 0.96);
    --foxy-insight-accent-line: rgba(205, 140, 255, 0.24);
    --foxy-rail-tab-active: rgba(205, 140, 255, 0.16);
    --foxy-rail-tab-active-border: rgba(205, 140, 255, 0.24);
    width: min(400px, calc(100vw - 24px));
    min-width: min(260px, calc(100vw - 24px));
    min-height: 220px;
    border: 1px solid rgba(205, 140, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(205, 140, 255, 0.16), transparent 42%),
        radial-gradient(circle at 18% 82%, rgba(251, 169, 24, 0.09), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(20, 20, 20, 0.1)),
        rgba(24, 19, 28, 0.94);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
    display: flex;
    flex-direction: column;
    z-index: 10003;
    overscroll-behavior: contain;
}

.foxy-refiners-rail__resize-handle,
.foxy-insights-rail__resize-handle,
.foxy-article-panel__resize-handle {
    position: absolute;
    z-index: 4;
    touch-action: none;
}

.foxy-refiners-rail__resize-handle--left {
    top: 0;
    left: 0;
    bottom: 14px;
    width: 10px;
    cursor: ew-resize;
}

.foxy-refiners-rail__resize-handle--corner,
.foxy-insights-rail__resize-handle--corner,
.foxy-article-panel__resize-handle--corner {
    width: 18px;
    height: 18px;
    z-index: 5;
}

.foxy-refiners-rail__resize-handle--bottom,
.foxy-insights-rail__resize-handle--bottom,
.foxy-article-panel__resize-handle--bottom {
    bottom: 0;
    height: 10px;
    cursor: ns-resize;
}

.foxy-refiners-rail__resize-handle--bottom {
    left: 14px;
    right: 0;
}

.foxy-refiners-rail__resize-handle--corner {
    left: 0;
    bottom: 0;
    cursor: nesw-resize;
}

.foxy-insights-rail__resize-handle--right {
    top: 0;
    right: 0;
    bottom: 14px;
    width: 10px;
    cursor: ew-resize;
}

.foxy-insights-rail__resize-handle--bottom {
    left: 0;
    right: 14px;
}

.foxy-insights-rail__resize-handle--corner {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}

.foxy-refiners-rail__resize-handle--left::after,
.foxy-refiners-rail__resize-handle--bottom::after,
.foxy-refiners-rail__resize-handle--corner::after,
.foxy-insights-rail__resize-handle--right::after,
.foxy-insights-rail__resize-handle--bottom::after,
.foxy-insights-rail__resize-handle--corner::after,
.foxy-article-panel__resize-handle--right::after,
.foxy-article-panel__resize-handle--bottom::after,
.foxy-article-panel__resize-handle--corner::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.foxy-refiners-rail__resize-handle--left::after,
.foxy-insights-rail__resize-handle--right::after,
.foxy-article-panel__resize-handle--right::after {
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 999px;
}

.foxy-refiners-rail__resize-handle--left::after {
    left: 3px;
    background: rgba(123, 204, 169, 0.26);
}

.foxy-refiners-rail__resize-handle--bottom::after,
.foxy-insights-rail__resize-handle--bottom::after,
.foxy-article-panel__resize-handle--bottom::after {
    left: 18px;
    right: 18px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
}

.foxy-refiners-rail__resize-handle--bottom::after {
    background: rgba(123, 204, 169, 0.26);
}

.foxy-refiners-rail__resize-handle--corner::after,
.foxy-insights-rail__resize-handle--corner::after,
.foxy-article-panel__resize-handle--corner::after {
    bottom: 3px;
    width: 10px;
    height: 10px;
}

.foxy-refiners-rail__resize-handle--corner::after {
    left: 3px;
    background:
        linear-gradient(225deg, transparent 0 38%, rgba(123, 204, 169, 0.2) 38% 52%, transparent 52% 100%),
        linear-gradient(225deg, transparent 0 62%, rgba(123, 204, 169, 0.3) 62% 76%, transparent 76% 100%);
}

.foxy-insights-rail__resize-handle--right::after {
    right: 3px;
    background: rgba(205, 140, 255, 0.28);
}

.foxy-insights-rail__resize-handle--bottom::after {
    background: linear-gradient(90deg, rgba(243, 199, 142, 0.28), rgba(205, 140, 255, 0.28));
}

.foxy-insights-rail__resize-handle--corner::after {
    right: 3px;
    background:
        linear-gradient(135deg, transparent 0 38%, rgba(205, 140, 255, 0.22) 38% 52%, transparent 52% 100%),
        linear-gradient(135deg, transparent 0 62%, rgba(251, 169, 24, 0.28) 62% 76%, transparent 76% 100%);
}

.foxy-refiners-rail__resize-handle--left:hover::after,
.foxy-refiners-rail__resize-handle--bottom:hover::after,
.foxy-refiners-rail__resize-handle--corner:hover::after,
.foxy-refiners-rail.is-resizing-x .foxy-refiners-rail__resize-handle--left::after,
.foxy-refiners-rail.is-resizing-y .foxy-refiners-rail__resize-handle--bottom::after,
.foxy-refiners-rail.is-resizing-both .foxy-refiners-rail__resize-handle--corner::after,
.foxy-insights-rail__resize-handle--right:hover::after,
.foxy-insights-rail__resize-handle--bottom:hover::after,
.foxy-insights-rail__resize-handle--corner:hover::after,
.foxy-insights-rail.is-resizing-x .foxy-insights-rail__resize-handle--right::after,
.foxy-insights-rail.is-resizing-y .foxy-insights-rail__resize-handle--bottom::after,
.foxy-insights-rail.is-resizing-both .foxy-insights-rail__resize-handle--corner::after,
.foxy-article-panel__resize-handle--right:hover::after,
.foxy-article-panel__resize-handle--bottom:hover::after,
.foxy-article-panel__resize-handle--corner:hover::after,
.foxy-article-panel.is-resizing-x .foxy-article-panel__resize-handle--right::after,
.foxy-article-panel.is-resizing-y .foxy-article-panel__resize-handle--bottom::after,
.foxy-article-panel.is-resizing-both .foxy-article-panel__resize-handle--corner::after {
    opacity: 1;
}

.foxy-refiners-rail__resize-handle--left:hover::after,
.foxy-refiners-rail.is-resizing-x .foxy-refiners-rail__resize-handle--left::after,
.foxy-refiners-rail__resize-handle--bottom:hover::after,
.foxy-refiners-rail.is-resizing-y .foxy-refiners-rail__resize-handle--bottom::after {
    background: rgba(123, 204, 169, 0.42);
}

.foxy-insights-rail__resize-handle--right:hover::after,
.foxy-insights-rail.is-resizing-x .foxy-insights-rail__resize-handle--right::after {
    background: rgba(205, 140, 255, 0.42);
}

.foxy-insights-rail__resize-handle--bottom:hover::after,
.foxy-insights-rail.is-resizing-y .foxy-insights-rail__resize-handle--bottom::after {
    background: linear-gradient(90deg, rgba(243, 199, 142, 0.4), rgba(205, 140, 255, 0.42));
}

.foxy-refiners-rail::before,
.foxy-refiners-rail::after,
.foxy-insights-rail::before,
.foxy-insights-rail::after {
    content: "";
    position: absolute;
    left: 50px;
    right: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--foxy-refiner-accent-line), transparent);
    pointer-events: none;
}

.foxy-refiners-rail::before {
    top: 0;
}

.foxy-refiners-rail::after {
    bottom: 0;
}

.foxy-insights-rail::before {
    top: 0;
    background: linear-gradient(90deg, transparent, var(--foxy-insight-accent-line), transparent);
}

.foxy-insights-rail::after {
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(251, 169, 24, 0.2), transparent);
}

.foxy-refiners-rail__header,
.foxy-insights-rail__header,
.foxy-article-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.foxy-refiners-rail__header {
    align-items: flex-start;
    padding: 0.92rem 0.92rem 0.82rem;
    border-bottom: 1px solid rgba(123, 204, 169, 0.1);
    background:
        linear-gradient(180deg, rgba(123, 204, 169, 0.09), rgba(123, 204, 169, 0.02)),
        rgba(255, 255, 255, 0.01);
}

.foxy-insights-rail__header {
    align-items: flex-start;
    padding: 0.92rem 0.92rem 0.82rem;
    border-bottom: 1px solid rgba(205, 140, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(205, 140, 255, 0.1), rgba(251, 169, 24, 0.03)),
        rgba(255, 255, 255, 0.01);
}

.foxy-refiners-rail__title strong,
.foxy-refiners-rail__title span,
.foxy-insights-rail__title strong,
.foxy-insights-rail__title span,
.foxy-article-panel__title-wrap strong,
.foxy-article-panel__title-wrap span,
.foxy-refiners-group__header strong,
.foxy-refiners-group__header span,
.foxy-insights-group__header strong,
.foxy-insights-group__header span,
.foxy-refiner-item__title,
.foxy-refiner-item__meta,
.foxy-insight-row__title,
.foxy-insight-row__meta {
    display: block;
}

.foxy-refiners-rail__title,
.foxy-insights-rail__title,
.foxy-article-panel__title-wrap {
    min-width: 0;
}

.foxy-refiners-rail__title strong,
.foxy-insights-rail__title strong {
    font-size: 0.88rem;
    color: #fff;
}

.foxy-refiners-rail__title span,
.foxy-insights-rail__title span,
.foxy-article-panel__title-wrap span {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.62);
}

.foxy-refiners-rail__body,
.foxy-insights-rail__body,
.foxy-refiners-hero,
.foxy-refiners-group,
.foxy-refiners-list,
.foxy-refiner-item__content,
.foxy-insights-hero,
.foxy-insights-group,
.foxy-insights-list,
.foxy-insight-row__content {
    display: grid;
}

.foxy-refiners-rail__body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.8rem;
    align-content: start;
    gap: 0.9rem;
}

.foxy-rail-tabs--refiners {
    border-color: rgba(123, 204, 169, 0.12);
    background: rgba(123, 204, 169, 0.05);
}

.foxy-rail-tab--refiners[aria-selected="true"] {
    background: var(--foxy-rail-tab-active);
    box-shadow: inset 0 0 0 1px var(--foxy-rail-tab-active-border);
}

.foxy-refiners-hero {
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(123, 204, 169, 0.14);
    background:
        linear-gradient(180deg, rgba(123, 204, 169, 0.08), rgba(123, 204, 169, 0.03)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.foxy-refiners-toolbar,
.foxy-refiners-history__notes,
.foxy-refiner-item__signals {
    display: flex;
    flex-wrap: wrap;
}

.foxy-refiners-toolbar {
    gap: 0.5rem;
}

.foxy-refiners-toolbar__button {
    appearance: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.69rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.foxy-refiners-toolbar__button:hover,
.foxy-refiners-toolbar__button:focus-visible {
    border-color: rgba(123, 204, 169, 0.24);
    background: rgba(123, 204, 169, 0.12);
}

.foxy-refiners-toolbar__button--primary {
    border-color: rgba(123, 204, 169, 0.22);
    background: rgba(123, 204, 169, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.foxy-refiners-toolbar__button:disabled {
    opacity: 0.45;
    cursor: default;
}

.foxy-refiners-live,
.foxy-refiners-history {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(123, 204, 169, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.foxy-refiners-live__topline,
.foxy-refiners-history__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.foxy-refiners-live__topline strong,
.foxy-refiners-history__topline strong {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

.foxy-refiners-live__delta,
.foxy-refiners-history__topline span {
    font-size: 0.67rem;
    color: rgba(123, 204, 169, 0.9);
}

.foxy-refiners-live__detail,
.foxy-refiners-history__empty {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.foxy-refiners-history__notes {
    gap: 0.4rem;
}

.foxy-refiners-history__note {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.76);
}

.foxy-refiners-history__list {
    display: grid;
    gap: 0.45rem;
}

.foxy-refiners-history__item {
    display: grid;
    gap: 0.18rem;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.12);
}

.foxy-refiners-history__item strong {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.foxy-refiners-history__before,
.foxy-refiners-history__after {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.45;
}

.foxy-refiners-history__before {
    color: rgba(255, 255, 255, 0.52);
}

.foxy-refiners-history__after {
    color: rgba(255, 255, 255, 0.78);
}

.foxy-refiners-hero__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--foxy-refiner-accent);
}

.foxy-refiners-hero__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.foxy-refiners-group {
    gap: 0.65rem;
}

.foxy-refiners-group__header strong {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.foxy-refiners-group__header span {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.56);
}

.foxy-refiners-list {
    gap: 0.68rem;
}

.foxy-refiner-item {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(123, 204, 169, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.025);
    color: inherit;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    text-align: left;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.foxy-refiner-item:hover,
.foxy-refiner-item:focus-visible {
    border-color: rgba(123, 204, 169, 0.22);
    background:
        linear-gradient(180deg, rgba(123, 204, 169, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.foxy-refiner-item:disabled {
    opacity: 0.65;
    cursor: default;
    transform: none;
}

.foxy-refiner-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(123, 204, 169, 0.32), rgba(123, 204, 169, 0.16)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(123, 204, 169, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.foxy-refiner-item__content {
    min-width: 0;
    gap: 0.3rem;
}

.foxy-refiner-item__title {
    font-size: 0.83rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
}

.foxy-refiner-item__meta {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.56);
}

.foxy-refiner-item__signals {
    gap: 0.38rem;
}

.foxy-refiner-item__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.foxy-refiner-item__result {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    color: rgba(123, 204, 169, 0.92);
    background: rgba(123, 204, 169, 0.08);
    border: 1px solid rgba(123, 204, 169, 0.14);
}

.foxy-refiner-item__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.2rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(123, 204, 169, 0.18);
    background: rgba(123, 204, 169, 0.1);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.foxy-refiner-item:hover .foxy-refiner-item__apply,
.foxy-refiner-item:focus-visible .foxy-refiner-item__apply {
    background: rgba(123, 204, 169, 0.16);
    border-color: rgba(123, 204, 169, 0.28);
}

.foxy-refiner-item.is-loading .foxy-refiner-item__apply {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.foxy-insights-rail__body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.8rem;
    align-content: start;
    gap: 0.9rem;
}

.foxy-rail-tabs--insights {
    border-color: rgba(205, 140, 255, 0.12);
    background: linear-gradient(180deg, rgba(205, 140, 255, 0.05), rgba(251, 169, 24, 0.03));
}

.foxy-rail-tab--insights[aria-selected="true"] {
    background: linear-gradient(180deg, rgba(205, 140, 255, 0.16), rgba(251, 169, 24, 0.08));
    box-shadow: inset 0 0 0 1px var(--foxy-rail-tab-active-border);
}

.foxy-insights-hero {
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(205, 140, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(205, 140, 255, 0.08), rgba(251, 169, 24, 0.03)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.foxy-insights-hero__eyebrow,
.foxy-insight-card__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.foxy-insights-hero__eyebrow {
    color: var(--foxy-insight-accent-purple);
}

.foxy-insights-hero__text {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.foxy-insights-hero__topline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.foxy-insights-hero__score {
    font-size: 1.9rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.98);
}

.foxy-insights-group {
    gap: 0.65rem;
}

.foxy-insights-group__header strong {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.foxy-insights-group__header span {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.56);
}

.foxy-insights-score-grid,
.foxy-insights-list {
    display: grid;
    gap: 0.68rem;
}

.foxy-insights-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foxy-insight-card {
    --foxy-insight-accent: var(--foxy-insight-accent-green);
    width: 100%;
    min-width: 0;
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--foxy-insight-accent) 24%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--foxy-insight-accent) 10%, transparent), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 12px 24px rgba(0, 0, 0, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.8rem;
}

.foxy-insight-card--green {
    --foxy-insight-accent: var(--foxy-insight-accent-green);
}

.foxy-insight-card--yellow {
    --foxy-insight-accent: var(--foxy-insight-accent-yellow);
}

.foxy-insight-card--orange {
    --foxy-insight-accent: var(--foxy-insight-accent-orange);
}

.foxy-insight-card--red {
    --foxy-insight-accent: var(--foxy-insight-accent-red);
}

.foxy-insight-card--purple {
    --foxy-insight-accent: var(--foxy-insight-accent-purple);
}

.foxy-insight-card__topline {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.foxy-insight-card__eyebrow {
    color: color-mix(in srgb, var(--foxy-insight-accent) 88%, white);
}

.foxy-insight-card__badge,
.foxy-insight-row__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.foxy-insight-card__metric {
    font-size: 1.45rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}

.foxy-insight-card__metric span {
    margin-left: 0.16rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.54);
}

.foxy-insight-card__text {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.foxy-insight-card__metrics {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.35rem;
}

.foxy-insight-card__metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.72);
}

.foxy-insight-card__metric-row strong {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
}

.foxy-insight-gauge {
    --foxy-insight-progress: 0;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        conic-gradient(var(--foxy-insight-accent) calc(var(--foxy-insight-progress) * 1%), rgba(255, 255, 255, 0.09) 0);
}

.foxy-insight-gauge::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: rgba(21, 18, 26, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.foxy-insight-gauge__inner {
    position: relative;
    z-index: 1;
    font-size: 0.62rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.86);
}

.foxy-insight-row {
    --foxy-insight-accent: var(--foxy-insight-accent-green);
    border: 1px solid color-mix(in srgb, var(--foxy-insight-accent) 18%, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    padding: 0.8rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--foxy-insight-accent) 8%, transparent), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.foxy-insight-row--green {
    --foxy-insight-accent: var(--foxy-insight-accent-green);
}

.foxy-insight-row--orange {
    --foxy-insight-accent: var(--foxy-insight-accent-orange);
}

.foxy-insight-row--red {
    --foxy-insight-accent: var(--foxy-insight-accent-red);
}

.foxy-insight-row__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--foxy-insight-accent) 38%, transparent), color-mix(in srgb, var(--foxy-insight-accent) 18%, transparent)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid color-mix(in srgb, var(--foxy-insight-accent) 26%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.foxy-insight-row__content {
    min-width: 0;
    gap: 0.18rem;
}

.foxy-insight-row__title {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.foxy-insight-row__meta {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.foxy-insights-heatmap {
    display: grid;
    gap: 0.55rem;
}

.foxy-insights-heatmap__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.foxy-insights-heatmap__bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.foxy-insights-heatmap__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(153, 242, 200, 0.85), rgba(255, 179, 71, 0.9), rgba(255, 107, 107, 0.9));
}

.foxy-insights-heatmap__label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.74);
}

.foxy-article-panel.is-minimized {
    grid-template-rows: auto;
    min-height: 0;
}

.foxy-article-panel.is-minimized .foxy-article-panel__body {
    display: none;
}

.foxy-article-panel__header {
    align-items: center;
    padding: 0.9rem 1rem;
    cursor: grab;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.foxy-article-panel__header:active {
    cursor: grabbing;
}

.foxy-article-panel__title-wrap strong {
    font-size: 0.98rem;
    color: #fff;
}

.foxy-article-panel__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.foxy-article-panel__body {
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.foxy-article-panel__resize-handle--right {
    top: 0;
    right: 0;
    bottom: 14px;
    width: 10px;
    cursor: ew-resize;
}

.foxy-article-panel__resize-handle--corner {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}

.foxy-article-panel__resize-handle--right::after {
    right: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.foxy-article-panel__resize-handle--bottom {
    left: 0;
    right: 14px;
}

.foxy-article-panel__resize-handle--bottom::after {
    background: rgba(255, 255, 255, 0.14);
}

.foxy-article-panel__resize-handle--corner::after {
    right: 3px;
    background:
        linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 38% 52%, transparent 52% 100%),
        linear-gradient(135deg, transparent 0 62%, rgba(255, 255, 255, 0.24) 62% 76%, transparent 76% 100%);
}

.foxy-article-panel__resize-handle:hover::after,
.foxy-article-panel.is-resizing-x .foxy-article-panel__resize-handle--right::after,
.foxy-article-panel.is-resizing-y .foxy-article-panel__resize-handle--bottom::after,
.foxy-article-panel.is-resizing-both .foxy-article-panel__resize-handle--corner::after {
    opacity: 1;
}

.foxy-article-panel__resize-handle--right:hover::after,
.foxy-article-panel.is-resizing-x .foxy-article-panel__resize-handle--right::after,
.foxy-article-panel__resize-handle--bottom:hover::after,
.foxy-article-panel.is-resizing-y .foxy-article-panel__resize-handle--bottom::after {
    background: rgba(255, 255, 255, 0.22);
}

.foxy-article-panel.is-minimized .foxy-article-panel__resize-handle--bottom,
.foxy-article-panel.is-minimized .foxy-article-panel__resize-handle--corner {
    display: none;
}

.foxy-article-meta {
    display: grid;
    gap: 0.7rem;
}

.foxy-article-meta__group {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.foxy-article-meta__tabs {
    display: grid;
    gap: 0;
    align-content: start;
    justify-items: stretch;
}

.foxy-article-meta__tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: flex-start;
    padding: 0;
    margin-bottom:-10px;
}

.foxy-article-meta__label,
.foxy-article-meta__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 10px 10px 0 0;
    border: 1px solid transparent;
    border-bottom: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.52);
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.foxy-article-meta__tab:hover,
.foxy-article-meta__tab:focus-visible {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.05);
}

.foxy-article-meta__tab.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: -1px;
}

.foxy-article-meta__tab-panels {
    display: grid;
    padding-top: 0.7rem;
    align-content: start;
}

.foxy-article-meta__panel[hidden] {
    display: none !important;
}

.foxy-article-meta__text {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.foxy-article-meta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.foxy-article-meta__actions .foxy-message__action {
    flex: 0 1 auto;
}

.foxy-listing-preview {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.foxy-listing-preview__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
}

.foxy-listing-blocked-summary {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.foxy-listing-blocked-summary__image {
    display: block;
    width: min(220px, 72%);
    max-width: 220px;
    height: auto;
    opacity: 0.92;
}

.foxy-listing-blocked-summary__text {
    max-width: 380px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.foxy-article-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.foxy-article-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
}
.foxy-article-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

.foxy-article-chip-list--keywords {
    align-items: stretch;
}

.foxy-article-chip-list--outline {
    align-items: stretch;
}

.foxy-article-keyword-group {
    display: grid;
    gap: 0.65rem;
}

.foxy-article-keyword-tools {
    display: grid;
}

.foxy-article-keyword-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.foxy-article-keyword-input {
    width: 100%;
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.48rem 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.3;
    outline: none;
    box-shadow: none;
}

.foxy-article-keyword-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.foxy-article-keyword-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

.foxy-article-chip--keyword {
    position: relative;
    min-width: 96px;
    padding: calc(0.3rem + 4px) 0.6rem;
    overflow: hidden;
}

.foxy-article-chip--outline {
    min-height: 24px;
    padding: 0.22rem 0.5rem;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.foxy-article-chip__count {
    position: absolute;
    right: 0.3rem;
    font-size: 0.54rem;
    line-height: 2.6;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.foxy-article-chip__label {
    font-size: 0.72rem;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.foxy-article-chip__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: stretch;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.foxy-article-chip__loading {
    display: none;
    width: 0.82rem;
    height: 0.82rem;
    align-self: center;
    justify-self: center;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: foxy-keyword-spin 0.7s linear infinite;
}

.foxy-article-chip__overlay-button {
    appearance: none;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    cursor: pointer;
}

.foxy-article-chip__overlay-button--remove {
    background: rgba(255, 107, 107, 0.28);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.foxy-article-chip__overlay-button--add {
    background: rgba(123, 204, 169, 0.24);
}

.foxy-article-chip__overlay-button:hover,
.foxy-article-chip__overlay-button:focus-visible {
    color: #fff;
}

.foxy-article-chip--keyword:hover .foxy-article-chip__overlay,
.foxy-article-chip--keyword:focus-within .foxy-article-chip__overlay {
    opacity: 1;
}

.foxy-article-chip--keyword.is-loading .foxy-article-chip__overlay {
    opacity: 1;
    grid-template-columns: 1fr;
    background: rgba(34, 34, 34, 0.52);
}

.foxy-article-chip--keyword.is-loading .foxy-article-chip__loading {
    display: block;
}

.foxy-article-chip--keyword.is-loading .foxy-article-chip__overlay-button {
    display: none;
}

.foxy-article-outline {
    display: grid;
    gap: 0.75rem;
}

.foxy-article-outline__section {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.foxy-article-outline__section.is-dragover {
    border-color: rgba(123, 204, 169, 0.28);
    background: rgba(123, 204, 169, 0.07);
}

.foxy-article-outline__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.foxy-article-outline__heading-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.foxy-article-outline__level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 24px;
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.foxy-article-outline__title {
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.94);
}

.foxy-article-outline__level-select {
    min-height: 28px;
    padding: 0.2rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
}

.foxy-article-outline__image-tools {
    display: grid;
    gap: 0.55rem;
}

.foxy-article-outline__dropzone {
    width: 100%;
    cursor: pointer;
    display: grid;
    transition: opacity 0.18s ease;
}

.foxy-article-outline__dropzone.is-disabled {
    opacity: 0.7;
    cursor: default;
}

.foxy-article-outline__dropzone-surface {
    min-height: 132px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    display: grid;
    gap: 0.65rem;
    place-items: center;
    padding: 1rem;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.foxy-article-outline__dropzone:hover .foxy-article-outline__dropzone-surface,
.foxy-article-outline__dropzone:focus-within .foxy-article-outline__dropzone-surface {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.foxy-article-outline__dropzone.is-disabled .foxy-article-outline__dropzone-surface {
    transform: none;
}

.foxy-article-outline__dropzone-text {
    display: grid;
    gap: 0.2rem;
    justify-items: center;
    text-align: center;
}

.foxy-article-outline__dropzone-text strong {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
}

.foxy-article-outline__dropzone-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
}

.foxy-article-outline__preview {
    position: relative;
    display: grid;
    width: 100%;
}

.foxy-article-outline__preview-image {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.foxy-article-outline__preview-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.72rem;
}

.foxy-article-outline__preview-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.foxy-article-outline__preview-dot::before {
    content: "";
    width: 0.74rem;
    height: 0.74rem;
    border-radius: 999px;
    border: 2px solid rgba(189, 195, 206, 0.32);
    background: transparent;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.foxy-article-outline__preview-dot:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.foxy-article-outline__preview-dot:hover::before {
    border-color: rgba(206, 211, 220, 0.62);
}

.foxy-article-outline__preview-dot:disabled {
    opacity: 0.5;
    cursor: default;
}

.foxy-article-outline__preview-dot.is-active {
    background: rgba(255, 255, 255, 0.095);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.foxy-article-outline__preview-dot.is-active::before {
    border-color: rgba(238, 241, 246, 0.92);
    box-shadow: 0 0 0 3px rgba(213, 219, 228, 0.12);
}

.foxy-article-outline__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.foxy-article-outline__blocks {
    display: grid;
    gap: 0.5rem;
}

.foxy-article-outline__block {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.foxy-article-outline__block-summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.7rem;
    cursor: pointer;
}

.foxy-article-outline__block-summary::-webkit-details-marker {
    display: none;
}

.foxy-article-outline__block-copy {
    min-width: 0;
}

.foxy-article-outline__block-preview {
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foxy-article-outline__block-detail {
    padding: 0 0.7rem 0.7rem;
    font-size: 0.74rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    white-space: pre-wrap;
}

.foxy-message__action--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.foxy-article-content {
    display: grid;
    gap: 0.9rem;
}

.foxy-article-keyword-highlight {
    padding: 0.02rem 0.18rem;
    border-radius: 4px;
    background: rgba(251, 169, 24, 0.2);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(251, 169, 24, 0.18);
}

.foxy-article-image {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.foxy-article-image__media {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    object-fit: cover;
}

.foxy-article-image__caption {
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

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

.foxy-generic-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.15fr);
    gap: 0.9rem;
    min-height: 280px;
}

.foxy-generic-panel__list,
.foxy-generic-panel__detail {
    display: grid;
    gap: 0.7rem;
    min-height: 0;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.foxy-generic-panel__list {
    align-content: start;
    overflow-y: auto;
}

.foxy-generic-panel__row {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-align: left;
}

.foxy-generic-panel__row.is-active {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.foxy-generic-panel__row-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.foxy-generic-panel__subtitle,
.foxy-generic-panel__meta,
.foxy-generic-panel__toggle,
.foxy-generic-panel__field span {
    color: rgba(255, 255, 255, 0.72);
}

.foxy-generic-panel__subtitle,
.foxy-generic-panel__meta,
.foxy-generic-panel__toggle {
    font-size: 0.82rem;
    line-height: 1.45;
}

.foxy-generic-panel__status {
    font-size: 0.72rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.88);
}

.foxy-generic-panel__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.foxy-generic-panel__detail-title {
    margin: 0;
    font-size: 0.98rem;
    color: #fff;
}

.foxy-generic-panel__field-list,
.foxy-generic-panel__detail-section {
    display: grid;
    gap: 0.55rem;
}

.foxy-generic-panel__field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.82rem;
}

.foxy-article-content h2,
.foxy-article-content h3,
.foxy-article-content h4 {
    margin: 0;
    color: #fff;
}

.foxy-article-content p,
.foxy-article-content blockquote,
.foxy-article-content ul,
.foxy-article-content ol,
.foxy-article-content table {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.foxy-article-content ul,
.foxy-article-content ol {
    padding-left: 1.2rem;
}

.foxy-article-content blockquote {
    padding-left: 0.9rem;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
}

.foxy-article-content table {
    width: 100%;
    border-collapse: collapse;
}

.foxy-article-content td,
.foxy-article-content th {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.foxy-article-empty {
    padding: 1rem;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
}

@media (max-width: 767px) {
    .foxy-overlay {
        padding: 12px;
    }

    .foxy-panel {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .foxy-shell {
        width: 100%;
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
    }

    .foxy-refiners-rail {
        width: calc(100vw - 24px);
    }

    .foxy-insights-rail {
        width: calc(100vw - 24px);
    }

    .foxy-refiner-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .foxy-insights-score-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .foxy-refiner-item__badge,
    .foxy-refiner-item__apply {
        justify-self: start;
    }

    .foxy-insight-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .foxy-insight-row__badge {
        justify-self: start;
    }

    .foxy-article-panel {
        width: calc(100vw - 24px);
        left: 12px;
        top: 12px;
        max-height: calc(100vh - 24px);
    }

    .foxy-generic-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .foxy-launcher {
        right: 16px;
        bottom: 16px;
    }
}

