/* ==========================================================================
   page-fmr-idle.css
   Recent-lookup shortcuts for the FMR page. Loads AFTER page-fmr.css.

   Kept separate so nothing already in page-fmr.css is at risk. Everything is
   scoped to .fmr-recent* / #recentPanel, so pasting this onto the end of
   page-fmr.css later changes nothing.
   ========================================================================== */

#recentPanel[hidden] { display: none; }

.fmr-recent-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3, 12px);
}

/* Recent searches as pressable CARDS, matching the crime page. As bordered
   pills they read as inert tags rather than something you can click. */
.fmr-recent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--s3, 12px);
}

.fmr-recent-item {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 14px;
    text-align: left;
    border: 1px solid var(--hair, rgba(255, 255, 255, .1));
    border-radius: var(--r-md, 10px);
    background: var(--surface-2, #17171b);
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.fmr-recent-item:hover {
    transform: translateY(-1px);
    border-color: var(--text-3, #7b7b85);
    background: var(--surface-3, var(--surface-2, #17171b));
}
.fmr-recent-ico,
.fmr-recent-go {
    width: 14px;
    height: 14px;
    color: var(--text-3, #7b7b85);
    flex: 0 0 auto;
}
.fmr-recent-item:hover .fmr-recent-go { color: var(--text, #fff); }
.fmr-recent-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text, #fff);
}

.fmr-recent-chip {
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    transition: border-color .14s ease, color .14s ease, background .14s ease;
}

.fmr-recent-chip:hover {
    border-color: var(--text-3, #7b7b85);
    background: var(--surface-3, var(--surface-2, #17171b));
    color: var(--text, #fff);
}
