/* /Components/GroupSidebar.razor.rz.scp.css */
.sidebar[b-p9jq7lcu2t] {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 36px);
    padding: 16px 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: var(--shadow-sm);
    z-index: 30;
}

.sidebar-brand[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 8px;
}

.brand[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark[b-p9jq7lcu2t] {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, #6366f1, #22d3ee);
    box-shadow: 0 10px 22px -12px rgba(99, 102, 241, 0.95);
}

.brand-text[b-p9jq7lcu2t] {
    min-width: 0;
}

.brand-text strong[b-p9jq7lcu2t] {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-text small[b-p9jq7lcu2t] {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}

.groups-head[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-3);
    text-transform: uppercase;
}

.mini-btn[b-p9jq7lcu2t] {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--text-3);
    transition: color 0.16s, background-color 0.16s;
}

.mini-btn:hover[b-p9jq7lcu2t] {
    color: var(--text);
    background: var(--brand-soft);
}

.mini-btn.is-primary[b-p9jq7lcu2t] {
    color: var(--brand);
}

.mini-btn .icon[b-p9jq7lcu2t] {
    width: 14px;
    height: 14px;
}

.group-list[b-p9jq7lcu2t] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    padding: 2px;
    margin: 0 -2px;
}

.group[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border-radius: 11px;
    color: var(--text-2);
    font-size: 13.5px;
    transition: color 0.18s, background-color 0.18s, box-shadow 0.18s;
}

.group .icon[b-p9jq7lcu2t] {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.group-name[b-p9jq7lcu2t] {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-count[b-p9jq7lcu2t] {
    font-size: 11.5px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.16s;
}

.group:hover[b-p9jq7lcu2t] {
    color: var(--text);
    background: var(--surface-2);
}

.group.is-active[b-p9jq7lcu2t] {
    color: #fff;
    background: linear-gradient(140deg, #4f46e5, #7c3aed);
    box-shadow: 0 12px 22px -16px rgba(79, 70, 229, 0.95);
}

.group.is-active .icon[b-p9jq7lcu2t] {
    opacity: 1;
}

.group.is-active .group-count[b-p9jq7lcu2t] {
    color: rgba(255, 255, 255, 0.78);
}

.group-wrap[b-p9jq7lcu2t] {
    position: relative;
}

.group-actions[b-p9jq7lcu2t] {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    display: flex;
    gap: 1px;
    padding: 2px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface-solid);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s;
}

.group-wrap:hover .group-actions[b-p9jq7lcu2t],
.group-wrap:focus-within .group-actions[b-p9jq7lcu2t] {
    opacity: 1;
    pointer-events: auto;
}

.group-wrap:hover .group-count[b-p9jq7lcu2t] {
    opacity: 0;
}

.group-actions button[b-p9jq7lcu2t] {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--text-3);
    transition: color 0.14s, background-color 0.14s;
}

.group-actions button:hover[b-p9jq7lcu2t] {
    color: var(--text);
    background: var(--brand-soft);
}

.group-actions .icon[b-p9jq7lcu2t] {
    width: 13px;
    height: 13px;
}

.group-form[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 1px 2px;
}

.group-form input[b-p9jq7lcu2t] {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--brand);
    background: var(--surface-solid);
    font-size: 13px;
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.sidebar-note[b-p9jq7lcu2t] {
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #f97316;
}

.sidebar-foot[b-p9jq7lcu2t] {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.scan-cta[b-p9jq7lcu2t] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    text-align: left;
    transition: border-color 0.18s, background-color 0.18s;
}

.scan-cta:hover[b-p9jq7lcu2t] {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.scan-cta > .icon[b-p9jq7lcu2t] {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.scan-cta strong[b-p9jq7lcu2t] {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
}

.scan-cta small[b-p9jq7lcu2t] {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-3);
}

.sidebar-close[b-p9jq7lcu2t] {
    display: none;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--surface-2);
}

@media (max-width: 1024px) {
    .sidebar[b-p9jq7lcu2t] {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        width: 282px;
        border-radius: 0 20px 20px 0;
        padding: 16px 12px 20px;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
        box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
        z-index: 80;
    }

    .sidebar.is-open[b-p9jq7lcu2t] {
        transform: none;
    }

    .sidebar-close[b-p9jq7lcu2t] {
        display: grid;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-2fh8f47jyi],
.components-reconnect-repeated-attempt-visible[b-2fh8f47jyi],
.components-reconnect-failed-visible[b-2fh8f47jyi],
.components-pause-visible[b-2fh8f47jyi],
.components-resume-failed-visible[b-2fh8f47jyi],
.components-rejoining-animation[b-2fh8f47jyi] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-retrying[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-failed[b-2fh8f47jyi],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-2fh8f47jyi] {
    display: block;
}


#components-reconnect-modal[b-2fh8f47jyi] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-2fh8f47jyi 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-2fh8f47jyi 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-2fh8f47jyi 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-2fh8f47jyi]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-2fh8f47jyi 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-2fh8f47jyi {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-2fh8f47jyi {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-2fh8f47jyi {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-2fh8f47jyi] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-2fh8f47jyi] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-2fh8f47jyi] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-2fh8f47jyi] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-2fh8f47jyi] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-2fh8f47jyi] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-2fh8f47jyi] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-2fh8f47jyi 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-2fh8f47jyi] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-2fh8f47jyi {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/LocalScanDialog.razor.rz.scp.css */
.scan-modal[b-z1ooi9ibeq] {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 9, 16, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade 0.18s ease-out;
}

.scan-panel[b-z1ooi9ibeq] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(620px, 100%);
    max-height: min(84vh, 720px);
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    animation: pop 0.22s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.scan-head[b-z1ooi9ibeq] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.scan-head h2[b-z1ooi9ibeq] {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.scan-head p[b-z1ooi9ibeq] {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--text-3);
}

.scan-head .icon-btn[b-z1ooi9ibeq] {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--surface-2);
}

.scan-loading[b-z1ooi9ibeq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 20px;
}

.scan-loading p[b-z1ooi9ibeq] {
    font-size: 13px;
    color: var(--text-2);
}

.scan-spinner[b-z1ooi9ibeq] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid var(--brand-soft);
    border-top-color: var(--brand);
    animation: spin-b-z1ooi9ibeq 0.8s linear infinite;
}

@keyframes spin-b-z1ooi9ibeq {
    to { transform: rotate(360deg); }
}

.scan-empty[b-z1ooi9ibeq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 44px 20px;
    text-align: center;
}

.scan-empty-mark[b-z1ooi9ibeq] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
}

.scan-empty-mark .icon[b-z1ooi9ibeq] {
    width: 22px;
    height: 22px;
}

.scan-empty h3[b-z1ooi9ibeq] {
    font-size: 15px;
    font-weight: 650;
}

.scan-empty p[b-z1ooi9ibeq] {
    font-size: 12.5px;
    color: var(--text-3);
}

.scan-toolbar[b-z1ooi9ibeq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-3);
}

.scan-toolbar strong[b-z1ooi9ibeq] {
    color: var(--text);
    font-weight: 650;
}

.scan-tools[b-z1ooi9ibeq] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-btn[b-z1ooi9ibeq] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-2);
    transition: color 0.16s, background-color 0.16s;
}

.link-btn:hover[b-z1ooi9ibeq] {
    color: var(--text);
    background: var(--brand-soft);
}

.link-btn .icon[b-z1ooi9ibeq] {
    width: 13px;
    height: 13px;
}

.scan-list[b-z1ooi9ibeq] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.scan-row[b-z1ooi9ibeq] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    text-align: left;
    transition: border-color 0.16s, background-color 0.16s, transform 0.16s;
}

.scan-row:hover[b-z1ooi9ibeq] {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.scan-row.is-selected[b-z1ooi9ibeq] {
    border-color: color-mix(in oklab, var(--brand) 55%, transparent);
    background: var(--brand-soft);
}

.scan-row.is-added[b-z1ooi9ibeq] {
    opacity: 0.6;
    cursor: default;
}

.scan-row.is-added:hover[b-z1ooi9ibeq] {
    transform: none;
    border-color: var(--line);
}

.scan-box[b-z1ooi9ibeq] {
    flex: none;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    border: 1.5px solid var(--line-strong);
    background: var(--surface-solid);
    color: #fff;
}

.scan-row.is-selected .scan-box[b-z1ooi9ibeq],
.scan-row.is-added .scan-box[b-z1ooi9ibeq] {
    border-color: transparent;
    background: linear-gradient(140deg, #6366f1, #7c3aed);
}

.scan-box .icon[b-z1ooi9ibeq] {
    width: 13px;
    height: 13px;
}

.scan-badge[b-z1ooi9ibeq] {
    flex: none;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: #0f172a;
    background: #a5b4fc;
}

.scan-badge.https[b-z1ooi9ibeq] {
    color: #052e16;
    background: #6ee7b7;
}

.scan-info[b-z1ooi9ibeq] {
    flex: 1;
    min-width: 0;
    display: block;
}

.scan-name[b-z1ooi9ibeq] {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-meta[b-z1ooi9ibeq] {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scan-tag[b-z1ooi9ibeq] {
    flex: none;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 11px;
    color: var(--text-3);
}

.scan-foot[b-z1ooi9ibeq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.scan-group[b-z1ooi9ibeq] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-3);
}

.scan-group select[b-z1ooi9ibeq] {
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 13px;
    color: var(--text);
    outline: none;
}

.scan-actions[b-z1ooi9ibeq] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scan-actions .primary-btn[b-z1ooi9ibeq],
.scan-empty .ghost-btn[b-z1ooi9ibeq] {
    height: 38px;
}

.scan-actions .primary-btn:disabled[b-z1ooi9ibeq] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

@media (max-width: 640px) {
    .scan-panel[b-z1ooi9ibeq] {
        padding: 18px;
        max-height: 88vh;
    }

    .scan-foot[b-z1ooi9ibeq] {
        flex-direction: column;
        align-items: stretch;
    }

    .scan-actions[b-z1ooi9ibeq] {
        justify-content: flex-end;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ---------- Shell & background ---------- */
.shell[b-xozufkeijq] {
    position: relative;
    min-height: 100vh;
    padding: 18px clamp(16px, 3vw, 32px) 40px;
    isolation: isolate;
}

.aurora[b-xozufkeijq] {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora i[b-xozufkeijq] {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.65;
    animation: drift-b-xozufkeijq 24s ease-in-out infinite alternate;
}

.aurora i:nth-child(1)[b-xozufkeijq] {
    width: 46vw;
    height: 46vw;
    left: -12vw;
    top: -14vw;
    background: radial-gradient(circle at 35% 35%, rgba(129, 140, 248, 0.85), transparent 68%);
}

.aurora i:nth-child(2)[b-xozufkeijq] {
    width: 40vw;
    height: 40vw;
    right: -10vw;
    top: -8vw;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.6), transparent 68%);
    animation-delay: -8s;
}

.aurora i:nth-child(3)[b-xozufkeijq] {
    width: 44vw;
    height: 44vw;
    left: 34vw;
    bottom: -26vw;
    background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.42), transparent 70%);
    animation-delay: -15s;
}

html[data-theme="dark"] .aurora i[b-xozufkeijq] {
    opacity: 0.34;
    filter: blur(90px);
}

@keyframes drift-b-xozufkeijq {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(4vw, 5vh, 0) scale(1.12); }
}

/* ---------- App layout ---------- */
.app[b-xozufkeijq] {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1460px;
    margin: 0 auto;
}

.content[b-xozufkeijq] {
    min-width: 0;
    max-width: 1180px;
    width: 100%;
}

/* ---------- Topbar ---------- */
.topbar[b-xozufkeijq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px;
}

.topbar-left[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.menu-btn[b-xozufkeijq] {
    display: none;
}

.crumb[b-xozufkeijq] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.crumb-title[b-xozufkeijq] {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crumb-sub[b-xozufkeijq] {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.topbar-right[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn[b-xozufkeijq] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 550;
    color: var(--text-2);
    transition: color 0.18s, border-color 0.18s, transform 0.18s, background-color 0.18s;
}

.tool-btn:hover[b-xozufkeijq] {
    color: var(--text);
    border-color: color-mix(in oklab, var(--brand) 45%, transparent);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.tool-btn .icon[b-xozufkeijq] {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.icon-btn[b-xozufkeijq] {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    transition: color 0.18s, border-color 0.18s, transform 0.18s;
}

.icon-btn:hover[b-xozufkeijq] {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.import-btn[b-xozufkeijq] {
    cursor: pointer;
}

.import-btn input[b-xozufkeijq] {
    display: none;
}

/* ---------- Hero ---------- */
.hero[b-xozufkeijq] {
    max-width: 720px;
    margin: clamp(18px, 4vh, 44px) auto 0;
    text-align: center;
}

.clock[b-xozufkeijq] {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    font-size: clamp(46px, 7vw, 82px);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(170deg, var(--text) 30%, color-mix(in oklab, var(--text) 48%, var(--brand)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.clock .sec[b-xozufkeijq] {
    font-size: 0.3em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand);
    -webkit-text-fill-color: var(--brand);
}

.hero-meta[b-xozufkeijq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-2);
}

.hero-meta .dot[b-xozufkeijq] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

/* ---------- Search ---------- */
.search[b-xozufkeijq] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 7px 7px 7px 8px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: var(--shadow-md);
    transition: border-color 0.22s, box-shadow 0.22s;
}

.search:focus-within[b-xozufkeijq] {
    border-color: color-mix(in oklab, var(--brand) 55%, transparent);
    box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-md);
}

.engine[b-xozufkeijq] {
    position: relative;
    flex: none;
}

.engine-btn[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 8px 0 12px;
    border-radius: 12px;
    background: var(--brand-soft);
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.engine-btn:hover[b-xozufkeijq] {
    background: color-mix(in oklab, var(--brand) 18%, transparent);
}

.engine-btn .icon[b-xozufkeijq] {
    width: 14px;
    height: 14px;
    opacity: 0.65;
}

.engine-dot[b-xozufkeijq] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(140deg, #6366f1, #22d3ee);
}

.engine-backdrop[b-xozufkeijq] {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.engine-menu[b-xozufkeijq] {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 41;
    min-width: 176px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    animation: pop-b-xozufkeijq 0.16s ease-out;
    text-align: left;
}

.engine-item[b-xozufkeijq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--text-2);
    transition: background-color 0.16s, color 0.16s;
}

.engine-item:hover[b-xozufkeijq] {
    background: var(--brand-soft);
    color: var(--text);
}

.engine-item.is-active[b-xozufkeijq] {
    color: var(--brand);
    font-weight: 600;
}

.engine-item .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
}

.search-input[b-xozufkeijq] {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    font-size: 15px;
    outline: none;
}

.search-input[b-xozufkeijq]::placeholder {
    color: var(--text-3);
}

.search-clear[b-xozufkeijq] {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--text-3);
    transition: color 0.16s, background-color 0.16s;
}

.search-clear:hover[b-xozufkeijq] {
    color: var(--text);
    background: var(--surface-2);
}

.search-clear .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
}

.search-submit[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 20px;
    flex: none;
    border-radius: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(140deg, #6366f1, #7c3aed);
    box-shadow: 0 12px 26px -14px rgba(99, 102, 241, 0.95);
    transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
}

.search-submit:hover[b-xozufkeijq] {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 30px -14px rgba(99, 102, 241, 1);
}

.search-submit:active[b-xozufkeijq] {
    transform: translateY(0);
}

.search-meta[b-xozufkeijq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding: 0 6px;
    font-size: 12.5px;
    color: var(--text-3);
}

.meta-left[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
}

.meta-left .icon[b-xozufkeijq] {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.meta-right[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.meta-right kbd[b-xozufkeijq] {
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--line);
    border-bottom-color: var(--line-strong);
    background: var(--surface-2);
    color: var(--text-2);
}

/* ---------- Sites ---------- */
.sites[b-xozufkeijq] {
    margin-top: clamp(30px, 5vh, 56px);
}

.sites-head[b-xozufkeijq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sites-title[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sites-icon[b-xozufkeijq] {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
}

.sites-icon .icon[b-xozufkeijq] {
    width: 16px;
    height: 16px;
}

.sites-title h2[b-xozufkeijq] {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sites-count[b-xozufkeijq] {
    font-size: 12px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sites-tools[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ghost-btn[b-xozufkeijq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

.ghost-btn:hover[b-xozufkeijq] {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-solid);
}

.ghost-btn .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.primary-btn[b-xozufkeijq] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(140deg, #6366f1, #7c3aed);
    box-shadow: 0 12px 24px -16px rgba(99, 102, 241, 0.95);
    transition: transform 0.18s, filter 0.18s;
}

.primary-btn:hover[b-xozufkeijq] {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.primary-btn .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
}

/* ---------- Cards ---------- */
.grid[b-xozufkeijq] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 12px;
}

.card[b-xozufkeijq] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 8px 9px 9px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: card-in-b-xozufkeijq 0.46s cubic-bezier(0.22, 0.7, 0.3, 1) both;
    animation-delay: calc(var(--i, 0) * 22ms);
    transition: transform 0.22s cubic-bezier(0.22, 0.7, 0.3, 1), border-color 0.22s,
        box-shadow 0.22s, background-color 0.22s;
}

.card[b-xozufkeijq]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(99, 102, 241, 0.14), transparent 52%);
    opacity: 0;
    transition: opacity 0.22s;
}

.card:hover[b-xozufkeijq] {
    transform: translateY(-3px);
    border-color: color-mix(in oklab, var(--brand) 42%, transparent);
    box-shadow: 0 20px 36px -24px rgba(79, 70, 229, 0.72);
    background: var(--surface-solid);
}

.card:hover[b-xozufkeijq]::after {
    opacity: 1;
}

.card-main[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 4px;
    border-radius: 12px;
}

.fav[b-xozufkeijq] {
    position: relative;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--tile, linear-gradient(140deg, #6366f1, #8b5cf6));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.fav.small[b-xozufkeijq] {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.fav-letter[b-xozufkeijq] {
    font-size: 17px;
    font-weight: 650;
    line-height: 1;
    color: #fff;
    user-select: none;
}

.fav.small .fav-letter[b-xozufkeijq] {
    font-size: 14px;
}

.fav-img[b-xozufkeijq] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
    background: #fbfcff;
}

.fav.small .fav-img[b-xozufkeijq] {
    padding: 6px;
}

.card-text[b-xozufkeijq] {
    min-width: 0;
    flex: 1;
    display: block;
}

.card-title-row[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.card-title[b-xozufkeijq] {
    display: block;
    min-width: 0;
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proxy-tag[b-xozufkeijq] {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    color: var(--brand);
    background: var(--brand-soft);
}

.proxy-tag .icon[b-xozufkeijq] {
    width: 11px;
    height: 11px;
}

.card-desc[b-xozufkeijq] {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-go[b-xozufkeijq] {
    flex: none;
    color: var(--brand);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.22s, transform 0.22s;
}

.card-go .icon[b-xozufkeijq] {
    width: 16px;
    height: 16px;
}

.card:hover .card-go[b-xozufkeijq],
.card-main:focus-visible .card-go[b-xozufkeijq] {
    opacity: 1;
    transform: none;
}

.card-more[b-xozufkeijq] {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--text-3);
    opacity: 0;
    transition: opacity 0.18s, color 0.18s, background-color 0.18s;
}

.card-more .icon[b-xozufkeijq] {
    width: 16px;
    height: 16px;
}

.card:hover .card-more[b-xozufkeijq],
.card:focus-within .card-more[b-xozufkeijq] {
    opacity: 1;
}

.card-more:hover[b-xozufkeijq] {
    color: var(--brand);
    background: var(--brand-soft);
}

/* ---------- Empty ---------- */
.empty[b-xozufkeijq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 24px;
    border-radius: 20px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    text-align: center;
}

.empty-mark[b-xozufkeijq] {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 4px;
}

.empty-mark .icon[b-xozufkeijq] {
    width: 22px;
    height: 22px;
}

.empty h3[b-xozufkeijq] {
    font-size: 15.5px;
    font-weight: 650;
}

.empty p[b-xozufkeijq] {
    font-size: 13px;
    color: var(--text-3);
    max-width: 44ch;
}

.empty-actions[b-xozufkeijq] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* ---------- About ---------- */
.about[b-xozufkeijq] {
    margin-top: clamp(44px, 8vh, 80px);
}

.about-card[b-xozufkeijq] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    padding: 26px 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.about-card h2[b-xozufkeijq] {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.about-card p[b-xozufkeijq] {
    margin-top: 8px;
    max-width: 62ch;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-2);
}

.stats[b-xozufkeijq] {
    display: flex;
    gap: 30px;
}

.stats dt[b-xozufkeijq] {
    font-size: 12px;
    color: var(--text-3);
}

.stats dd[b-xozufkeijq] {
    margin-top: 4px;
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.foot[b-xozufkeijq] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--text-3);
}

/* ---------- Drawer ---------- */
.drawer-backdrop[b-xozufkeijq] {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(6, 9, 16, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fade-b-xozufkeijq 0.2s ease-out;
}

/* ---------- Modal ---------- */
.modal[b-xozufkeijq] {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 9, 16, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade-b-xozufkeijq 0.18s ease-out;
}

.modal-panel[b-xozufkeijq] {
    width: min(460px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    animation: pop-b-xozufkeijq 0.22s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.modal-panel.is-narrow[b-xozufkeijq] {
    width: min(410px, 100%);
}

.modal-head[b-xozufkeijq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-head h2[b-xozufkeijq] {
    font-size: 16px;
    font-weight: 650;
}

.modal-head .icon-btn[b-xozufkeijq] {
    width: 34px;
    height: 34px;
    background: var(--surface-2);
}

.modal-site[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.modal-sub[b-xozufkeijq] {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-3);
}

.modal-label[b-xozufkeijq] {
    margin: 2px 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-3);
}

.field[b-xozufkeijq] {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.field label[b-xozufkeijq] {
    font-size: 12.5px;
    color: var(--text-2);
}

.field input[b-xozufkeijq],
.field select[b-xozufkeijq],
.field textarea[b-xozufkeijq] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}

.field input[b-xozufkeijq]::placeholder {
    color: var(--text-3);
}

.field input:focus[b-xozufkeijq],
.field select:focus[b-xozufkeijq],
.field textarea:focus[b-xozufkeijq] {
    border-color: var(--brand);
    background: var(--surface-solid);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.field select[b-xozufkeijq] {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
        linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.field-error[b-xozufkeijq] {
    min-height: 18px;
    font-size: 12.5px;
    color: #ef4444;
}

/* ── 站点排序行 ── */
.reorder-row[b-xozufkeijq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.reorder-label[b-xozufkeijq] {
    font-size: 12.5px;
    color: var(--text-2);
}

.reorder-label strong[b-xozufkeijq] {
    color: var(--text);
    font-weight: 700;
}

.field-hint[b-xozufkeijq] {
    margin-top: 4px;
    font-size: 12px;
    color: var(--brand);
    word-break: break-all;
}

.switch-field[b-xozufkeijq] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 16px;
    padding: 11px 12px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.18s, background-color 0.18s;
}

.switch-field:hover[b-xozufkeijq] {
    border-color: var(--line-strong);
}

.switch-field.is-on[b-xozufkeijq] {
    border-color: color-mix(in oklab, var(--brand) 45%, transparent);
    background: var(--brand-soft);
}

.switch-field input[b-xozufkeijq] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track[b-xozufkeijq] {
    position: relative;
    flex: none;
    width: 36px;
    height: 21px;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background-color 0.2s;
}

.switch-track[b-xozufkeijq]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.switch-field.is-on .switch-track[b-xozufkeijq] {
    background: linear-gradient(140deg, #6366f1, #7c3aed);
}

.switch-field.is-on .switch-track[b-xozufkeijq]::after {
    transform: translateX(15px);
}

.switch-text[b-xozufkeijq] {
    min-width: 0;
}

.switch-text strong[b-xozufkeijq] {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.switch-text small[b-xozufkeijq] {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-3);
    word-break: break-all;
}

.modal-actions[b-xozufkeijq] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.modal-actions.is-split[b-xozufkeijq] {
    justify-content: space-between;
    margin-top: 18px;
}

.modal-actions .primary-btn[b-xozufkeijq] {
    height: 40px;
    padding: 0 18px;
}

.modal-actions-group[b-xozufkeijq] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-btn[b-xozufkeijq] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.09);
    color: #ef4444;
    font-size: 13px;
    transition: background-color 0.16s, border-color 0.16s;
}

.danger-btn:hover[b-xozufkeijq] {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.5);
}

.danger-btn .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
}

/* ---------- Toast ---------- */
.toast[b-xozufkeijq] {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    background: #101827;
    color: #e9edf9;
    font-size: 13.5px;
    box-shadow: var(--shadow-md);
    animation: toast-in-b-xozufkeijq 0.28s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.toast .icon[b-xozufkeijq] {
    width: 16px;
    height: 16px;
    color: #34d399;
}

/* ---------- Motion ---------- */
@keyframes card-in-b-xozufkeijq {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pop-b-xozufkeijq {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade-b-xozufkeijq {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toast-in-b-xozufkeijq {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .app[b-xozufkeijq] {
        grid-template-columns: minmax(0, 1fr);
    }

    .content[b-xozufkeijq] {
        max-width: none;
    }

    .menu-btn[b-xozufkeijq] {
        display: grid;
        width: 36px;
        height: 36px;
        background: var(--surface);
    }
}

@media (max-width: 820px) {
    .search-meta[b-xozufkeijq] {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .meta-right[b-xozufkeijq] {
        display: none;
    }

    .grid[b-xozufkeijq] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .card[b-xozufkeijq] {
        padding: 14px;
    }

    .card-main[b-xozufkeijq] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
    }

    .card-go[b-xozufkeijq] {
        display: none;
    }

    .card-more[b-xozufkeijq] {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        opacity: 1;
        background: var(--surface-2);
    }

    .card-desc[b-xozufkeijq] {
        display: -webkit-box;
        white-space: normal;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .sites-tools[b-xozufkeijq] {
        margin-left: 0;
    }

    .about-card[b-xozufkeijq] {
        flex-direction: column;
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .tool-btn span[b-xozufkeijq] {
        display: none;
    }

    .tool-btn[b-xozufkeijq] {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .search-submit[b-xozufkeijq] {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .search-submit span[b-xozufkeijq] {
        display: none;
    }

    .engine-btn[b-xozufkeijq] {
        padding: 0 6px 0 9px;
        font-size: 12.5px;
    }

    .search-input[b-xozufkeijq] {
        font-size: 14px;
    }

    .search-input[b-xozufkeijq]::placeholder {
        font-size: 12.5px;
    }

    .stats[b-xozufkeijq] {
        width: 100%;
        justify-content: space-between;
    }

    .sites-tools[b-xozufkeijq] {
        width: 100%;
    }

    .sites-tools .ghost-btn[b-xozufkeijq],
    .sites-tools .primary-btn[b-xozufkeijq] {
        flex: 1;
    }
}

/* ── 登录状态徽章 ── */
.auth-chip[b-xozufkeijq] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--brand-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    max-width: 140px;
}

.auth-chip .icon[b-xozufkeijq] {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.auth-chip span[b-xozufkeijq] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── 帮助弹窗 ── */
.help-panel[b-xozufkeijq] {
    width: min(560px, 100%);
}

.help-body[b-xozufkeijq] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 14px 0 4px;
}

.help-body section h3[b-xozufkeijq] {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-body section h3[b-xozufkeijq]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--brand);
    flex: none;
}

.help-body ul[b-xozufkeijq] {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.help-body li[b-xozufkeijq] {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-2);
}

.help-body kbd[b-xozufkeijq] {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 11px;
    background: var(--surface-2);
}

.help-body code[b-xozufkeijq] {
    padding: 1.5px 6px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
}

.help-body pre[b-xozufkeijq] {
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text);
}

.help-tip[b-xozufkeijq] {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
}
