.ac-site-main:has(.cst-page) {
    padding: 0 !important;
}
@media (max-width: 991.98px) {
    .ac-site-main:has(.cst-page) {
        padding: 0 !important;
    }
}
.cst-page {
    --cst-ink: #e2e8f0;
    --cst-muted: #93c5fd;
    --cst-gold: #facc15;
    --cst-cyan: #22d3ee;
    --cst-pink: #f472b6;
    position: relative;
    min-height: calc(100dvh - 4.75rem);
    height: calc(100dvh - 4.75rem);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    color: var(--cst-ink);
    background:
        radial-gradient(900px 280px at 8% -10%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(820px 280px at 96% 108%, rgba(168, 85, 247, 0.22), transparent 52%),
        radial-gradient(640px 240px at 50% 0%, rgba(244, 114, 182, 0.12), transparent 46%),
        linear-gradient(180deg, #040714 0%, #0b1220 48%, #111827 100%);
}
.cst-top {
    position: relative;
    z-index: 4;
    padding: 0.7rem clamp(0.7rem, 2vw, 1.6rem) 0.55rem;
    text-align: center;
}
.cst-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7dd3fc;
}
.cst-kicker i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    animation: cstPulse 1.6s ease-in-out infinite;
}
@keyframes cstPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.5; }
}
.cst-top h1 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0.15rem 0 0.25rem;
    background: linear-gradient(90deg, #fff, #7dd3fc 40%, #c084fc 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cst-top p {
    max-width: 46rem;
    margin: 0 auto 0.55rem;
    color: #94a3b8;
    font-size: 0.82rem;
}
.cst-orbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.cst-orb {
    min-width: 5.6rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(14, 165, 233, 0.1);
}
.cst-orb b {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.cst-orb span {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    font-weight: 700;
}
.cst-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}
.cst-hud input,
.cst-hud select,
.cst-chip {
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
}
.cst-hud input {
    min-width: 12rem;
    padding: 0.42rem 0.85rem;
    outline: none;
}
.cst-hud input:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.cst-chip {
    padding: 0.36rem 0.78rem;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    appearance: none;
    color: #e0f2fe;
    transition: transform 0.15s ease, background 0.15s ease;
}
.cst-chip:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(34, 211, 238, 0.18);
}
.cst-chip.is-on {
    background: linear-gradient(90deg, #0369a1, #22d3ee);
    border: 0;
    color: #082f49;
}
.cst-map-wrap {
    position: relative;
    min-height: 28rem;
}
.cst-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: grab;
    background:
        radial-gradient(circle at 18% 22%, rgba(125, 211, 252, 0.22) 0 1.4px, transparent 2px),
        radial-gradient(circle at 72% 18%, rgba(250, 204, 21, 0.2) 0 1.2px, transparent 2px),
        radial-gradient(circle at 84% 68%, rgba(244, 114, 182, 0.18) 0 1.6px, transparent 2.4px),
        radial-gradient(circle at 32% 78%, rgba(167, 139, 250, 0.2) 0 1.3px, transparent 2px),
        radial-gradient(ellipse at center, #0b1224 0%, #020617 72%);
}
.cst-viewport::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0 1px, transparent 1px 46px),
        repeating-radial-gradient(circle at 80% 70%, rgba(125, 211, 252, 0.06) 0 1px, transparent 1px 62px);
    animation: cstDrift 48s linear infinite;
    opacity: 0.7;
}
@keyframes cstDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-40px, -28px, 0); }
}
.cst-viewport.dragging { cursor: grabbing; }
.cst-stage {
    position: absolute;
    transform-origin: 0 0;
    will-change: transform;
}
.cst-edges {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.cst-edges line {
    stroke: url(#cstLineGrad);
    stroke-width: 2.8;
    opacity: 0.92;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.55));
    transition: opacity 0.2s ease, stroke-width 0.2s ease;
}
.cst-viewport.is-hot .cst-edges line { opacity: 0.18; }
.cst-viewport.is-hot .cst-edges line.is-hot {
    opacity: 1;
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.8));
}
.constellation-node {
    position: absolute;
    transform: translate(-50%, -50%);
    user-select: none;
    z-index: 1;
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.constellation-node.is-dim {
    opacity: 0.22;
    filter: grayscale(0.6);
}
.constellation-node.is-pulse .constellation-node-image-wrap {
    animation: cstNodePulse 0.9s ease;
}
@keyframes cstNodePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.constellation-node-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.4);
    box-shadow: 0 0 0 1px rgba(30, 41, 59, 0.4), 0 0 22px rgba(56, 189, 248, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.constellation-node:hover .constellation-node-image-wrap {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.55), 0 12px 28px rgba(2, 6, 23, 0.45);
}
.constellation-node-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.constellation-node-image-empty {
    background: linear-gradient(135deg, #334155, #0f172a);
}
.constellation-node-image-grayscale { filter: grayscale(1) contrast(0.95); }
.constellation-node-root .constellation-node-image-wrap {
    border-color: #fde047;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.75), 0 0 22px rgba(250, 204, 21, 0.45);
    animation: constellationRootShine 2.4s ease-in-out infinite;
}
@keyframes constellationRootShine {
    0%, 100% { box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.75), 0 0 22px rgba(250, 204, 21, 0.45); }
    50% { box-shadow: 0 0 0 3px rgba(250, 204, 21, 1), 0 0 28px rgba(250, 204, 21, 0.75); }
}
.constellation-node-name-wrap {
    text-align: center;
    margin-top: 6px;
}
.constellation-node-name {
    color: #e2e8f0 !important;
    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
}
.constellation-node-name:hover {
    color: #7dd3fc !important;
}
.constellation-node-delete {
    position: absolute;
    top: -10px;
    right: -12px;
}
.constellation-node-delete button {
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.85);
    color: #fecaca;
    font-weight: 900;
}
.cst-dock {
    position: absolute;
    z-index: 5;
    top: 0.7rem;
    left: 0.7rem;
    width: min(22.5rem, calc(100% - 1.4rem));
    max-height: calc(100% - 1.4rem);
    overflow: auto;
    border-radius: 1.1rem;
    padding: 0.9rem 0.95rem;
    background: rgba(8, 15, 30, 0.88);
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(10px);
    transform: translateX(0);
    transition: transform 0.28s ease, opacity 0.28s ease;
}
.cst-page.is-dock-off .cst-dock {
    transform: translateX(calc(-100% - 1.2rem));
    opacity: 0;
    pointer-events: none;
}
.cst-dock h2 {
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0 0 0.7rem;
}
.cst-combo { position: relative; }
.cst-combo-q { width: 100%; }
.cst-combo-list {
    position: relative;
    z-index: 8;
    max-height: 10rem;
    overflow: auto;
    margin-top: 0.3rem;
    border-radius: 0.75rem;
    background: rgba(8, 15, 30, 0.97);
    border: 1px solid rgba(125, 211, 252, 0.35);
}
.cst-combo-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}
.cst-combo-item:hover { background: rgba(34, 211, 238, 0.16); }
.constellation-node.is-pick-from .constellation-node-image-wrap {
    box-shadow: 0 0 0 3px #22d3ee, 0 0 22px rgba(34, 211, 238, 0.7);
}
.cst-page.is-link-mode .cst-viewport { cursor: crosshair; }
.cst-dock label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 0.28rem;
}
.cst-dock .form-select,
.cst-dock .form-control {
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    border-color: rgba(125, 211, 252, 0.28);
}
.cst-edge-list {
    max-height: 180px;
    overflow: auto;
}
.cst-edge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(125, 211, 252, 0.18);
    padding: 0.28rem 0.5rem;
    margin-bottom: 0.32rem;
    font-size: 0.78rem;
}
.constellation-hover-tooltip {
    position: fixed;
    z-index: 1200;
    display: none;
    min-width: 240px;
    max-width: min(420px, calc(100vw - 24px));
    background: rgba(8, 15, 30, 0.96);
    color: #e2e8f0;
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.7);
    padding: 10px 12px;
    pointer-events: none;
    font-size: 0.82rem;
    line-height: 1.45;
    backdrop-filter: blur(6px);
}
.constellation-hover-tooltip.visible { display: block; }
.constellation-hover-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: #7dd3fc;
}
.constellation-hover-section-title {
    color: #c4b5fd;
    font-weight: 700;
    margin-top: 4px;
}
.cst-foot {
    position: absolute;
    z-index: 4;
    left: 0.8rem;
    bottom: 0.7rem;
}
@media (prefers-reduced-motion: reduce) {
    .cst-viewport::before,
    .cst-kicker i,
    .constellation-node-root .constellation-node-image-wrap,
    .constellation-node.is-pulse .constellation-node-image-wrap {
        animation: none !important;
    }
}
