/* ════════════════════════════════════════════════════
   controls/signal-card.css — the shared signal card (AB#13100)
   ════════════════════════════════════════════════════
   Every selector is namespaced `.lp-signal-card*`; the card sets no width of its
   own — the grid that holds it decides. Colours and radii come from the skin
   tokens, never from literals (ui-design-scope.md). */

.lp-signal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px 14px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.lp-signal-card:hover { border-color: var(--accent); background: var(--bg-hover); }
.lp-signal-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-signal-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* Title first, then the type icon (the ticket's order); the menu, when drawn, last. */
.lp-signal-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.lp-signal-card-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.lp-signal-card-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
}
.lp-signal-card-icon svg { width: 16px; height: 16px; }
.lp-signal-card-menu {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: -4px -6px -4px 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius, 8px);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 150ms ease, background 150ms ease, color 150ms ease;
}
.lp-signal-card:hover .lp-signal-card-menu,
.lp-signal-card:focus-within .lp-signal-card-menu { opacity: 1; }
.lp-signal-card-menu:hover { background: var(--bg-primary); color: var(--text-primary); }
.lp-signal-card-menu:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 1px; }

/* Below: the Space it belongs to, and when it was last modified. */
.lp-signal-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.lp-signal-card-space {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.lp-signal-card-space-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.lp-signal-card-space-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The neutral placeholder for a Space the snapshot cannot resolve. */
.lp-signal-card-space.is-unresolved { color: var(--text-muted); }
.lp-signal-card-date {
    flex-shrink: 0;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

@media (hover: none) {
    /* No hover on touch: the menu button is always visible. */
    .lp-signal-card-menu { opacity: 1; }
}
