/* ================================================================
 * nexus.css — 中枢入口与事件内容。弹层外壳由 bottom-sheet.css 统一。
 * ============================================================== */

/* 中枢入口是页面级操作, 收进 nav-bar 右侧, 不占用也不遮挡消息流 */

.nexus-capsule { position: relative; flex: none; }
.nexus-capsule .nexus-badge { position: absolute; top: 2px; right: 0; pointer-events: none; }

/* 呼吸灯: 系统活着的信号 */
.nexus-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: nexus-breathe 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes nexus-breathe {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(var(--accent-lime-rgb), 0.35); }
    50%      { opacity: 0.55; box-shadow: 0 0 0 5px rgba(var(--accent-lime-rgb), 0); }
}

/* 未读角标 */
.nexus-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-8);
    background: var(--accent-red);
    color: var(--text-on-accent);
    font-size: var(--meta-font-size);
    line-height: 16px;
    text-align: center;
}

/* ---------- 标题与事件内容；无左轨，状态点放在条目标题前 ---------- */
.nexus-sheet-title { display: flex; align-items: center; gap: 8px; }
.nexus-sheet-title .nexus-pulse { width: 6px; height: 6px; animation: none; }
.nexus-sheet-sub { margin-left: 14px; }
.nexus-row {
    padding: 14px var(--surface-padding);
    min-width: 0;
    border-radius: var(--list-row-radius);
    background: var(--bg-card);
    cursor: pointer;
}
.nexus-row.idle { cursor: default; }
.nexus-row-body { min-width: 0; }
.nexus-row-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    grid-gap: 8px;
    gap: 8px;
    margin-bottom: 6px;
}
.nexus-row-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; }
.nexus-kind {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-600);
    line-height: 22px;
    white-space: nowrap;
}
.nexus-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.nexus-dot.small { background: var(--border-strong); }
.nexus-idle-kind { color: var(--text-secondary); font-weight: var(--font-weight-500); }
.nexus-sym { font-size: var(--font-size-12); color: var(--text-secondary); overflow-wrap: anywhere; }
.nexus-time { font-size: var(--meta-font-size); line-height: 22px; color: var(--text-secondary); white-space: nowrap; }
.nexus-text { font-size: var(--body-font-size); line-height: 22px; color: var(--text-secondary); overflow-wrap: anywhere; }
.no-flex-gap .nexus-row-heading > :not(:last-child) { margin-right: 6px; }
.no-flex-gap .nexus-kind > :not(:last-child) { margin-right: 7px; }
.no-flex-gap .nexus-sheet-title > :not(:last-child) { margin-right: 8px; }

/* 整点选币的席位表(PICK 合并成一条之后, 逐席摊开;不用展开就能看到决策路线) */
.nexus-slots {
    margin-top: 6px;
    border-radius: var(--surface-inset-radius);
    background: var(--bg-page);
    padding: 8px 10px;
}
.nexus-slot {
    display: flex;
    align-items: center;
    grid-gap:6px;gap: 6px;
    font-size: var(--body-font-size);
    line-height: 1.9;
    white-space: nowrap;
    overflow: hidden;
}
.nexus-slot-no {
    flex-shrink: 0;
    font-size: var(--caption-font-size);
    color: var(--text-secondary);
}
.nexus-slot-sym {
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.nexus-slot-grp {
    font-size: var(--caption-font-size);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}
.nexus-slot-tag {
    flex-shrink: 0;
}

.nexus-slot-score {
    flex-shrink: 0;
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: var(--caption-font-size);
    color: var(--text-secondary);
}

/* 明细展开(data_json 的人话字段表) */
.nexus-detail {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-page);
    border: 0;
    border-radius: var(--surface-inset-radius);
}
.nexus-detail-row {
    display: flex;
    justify-content: space-between;
    grid-gap:12px;gap: 12px;
    font-size: var(--body-font-size);
    line-height: 1.9;
}
.nexus-detail-row span:first-child { color: var(--text-secondary); flex-shrink: 0; }
.nexus-detail-row span:last-child  { color: var(--text-primary); text-align: right; word-break: break-all; }
/* 翻页按钮 */
.nexus-more {
    display: block;
    width: 100%;
    margin-top: 12px;
}
