/* Conductør personality picker (KL-110, extracted KL-114 into the
   features/ folder). Lives at the bottom of the director panel. Loads
   into @layer features so it sits above @layer base in the cascade
   without needing !important. */
@layer features {

/* KL-110: Lumi personality picker, in-panel. Absolute-positioned at
   the bottom of the director panel, anchored slightly right-of-center
   so it sits between the LUMI meta (bottom-left) and the LULL/BUILDUP
   stats (bottom-right) without crowding either. No card chrome — the
   chips' own segmented-control border is the only frame here. */
.personality-picker {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    z-index: 2;
    pointer-events: auto;
    max-width: 36rem;
}
.personality-picker-label {
    /* Keep the surrounding text from blocking pointer events on the
       LUMI meta / cycle bar that sit underneath the picker's bbox. */
    pointer-events: none;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(220, 220, 235, 0.55);
}

/* Segmented control: one rounded outer container, 4 internal segments
   divided by hairline separators. Reads as a grouped unit, less like
   four pills floating loose. */
.personality-chips {
    display: inline-flex;
    background: rgba(15, 13, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.personality-chip {
    --chip-accent: #888;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(220, 220, 235, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, box-shadow 200ms ease;
}
.personality-chip:last-child { border-right: none; }
.personality-chip-glyph {
    color: var(--chip-accent);
    font-size: 0.95rem;
    line-height: 1;
}

.personality-chip:hover,
.personality-chip:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}
.personality-chip.active {
    color: #fff;
    background: rgba(30, 26, 45, 0.95);
    box-shadow: inset 0 -2px 0 0 var(--chip-accent);
}
.personality-chip.locked {
    opacity: 0.45;
    cursor: not-allowed;
}
.personality-chip.locked:hover { transform: none; }
.personality-chip-glyph {
    font-size: 1.05rem;
    line-height: 1;
    color: var(--chip-accent);
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--chip-accent) 60%, transparent));
}
.personality-chip-name {
    letter-spacing: 0.04em;
    font-variant: small-caps;
}

/* Fingerprint hover-popover, positioned dynamically by JS. */
.personality-fingerprint-popover {
    position: absolute;
    background: rgba(15, 12, 25, 0.96);
    border: 1px solid #888;
    border-radius: 0.45rem;
    padding: 0.55rem 0.7rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 20;
    min-width: 12rem;
    max-width: 16rem;
    pointer-events: none;        /* don't steal hover from chip */
    transition: border-color 220ms ease;
}
.personality-fingerprint-popover .fp-bars {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 0.55rem;
    align-items: center;
}
.personality-fingerprint-popover .fp-row { display: contents; }
.personality-fingerprint-popover .fp-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.personality-fingerprint-popover .fp-bar {
    display: block;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.personality-fingerprint-popover .fp-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 240ms ease;
}

} /* end @layer features */
