/* ============================================================
   ДРУЗЬЯ И ВРАГИ — список + досье
   ============================================================ */
.fr-toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.fr-toolbar input[type="text"] { width: 300px; max-width: 100%; padding: 10px 14px; font-size: 12px; }

.fr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.fr-tab {
    background: none; border: 0; cursor: pointer;
    color: #9b9b9f; font-size: 12px; font-family: var(--sans);
    padding: 9px 12px; display: flex; gap: 7px; align-items: baseline;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.fr-tab:hover { color: #eee; }
.fr-tab.cur { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.fr-count { font-size: 9px; color: var(--muted); font-family: var(--mono); }

.fr-wrap { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 16px; align-items: start; }
.fr-panel-title { font-size: 15px; font-weight: 500; color: #efeff1; margin: 0 0 16px; }

.fr-list { display: flex; flex-direction: column; gap: 8px; }
.fr-item {
    display: flex; gap: 12px; align-items: center; width: 100%;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px;
    cursor: pointer; text-align: left; font-family: var(--sans);
    transition: border-color .15s, background .15s;
    color: var(--text);
}
.fr-item:hover { border-color: #3d3d40; background: #1e1e20; }
.fr-item.sel { border-color: var(--accent); background: rgba(183, 255, 44, .07); }
.fr-ava {
    width: 34px; height: 34px; border-radius: var(--radius);
    display: grid; place-items: center; flex: none;
    font-size: 13px; font-weight: 700;
    background: #35382e; color: #c6d6a8;
}
.fr-item.enemy .fr-ava { background: #3d2c2a; color: #e0a49d; }
.fr-item.neutral .fr-ava { background: #313134; color: #a9a9b0; }
.fr-item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fr-item-body b { font-size: 13px; font-weight: 600; color: #efeff1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-item-body small { font-size: 10px; color: var(--muted); }
.fr-chev { color: var(--muted); font-size: 16px; flex: none; }
.fr-add { margin-top: 10px; }

/* досье */
.fr-dossier { min-height: 300px; }
.fr-dossier-empty { color: var(--muted); font-size: 12px; line-height: 1.7; padding: 20px 0; }
.fr-dossier-role {
    color: #8c8c91; letter-spacing: 1.8px; font-size: 9px; text-transform: uppercase;
    margin: 0 0 8px;
}
.fr-dossier-name { font-size: 24px; font-weight: 700; color: #efeff1; margin: 0 0 12px; }
.fr-chip {
    display: inline-block; font-size: 11px; padding: 5px 10px;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: #b1b1b8; margin-bottom: 14px;
}
.fr-chip.friend { color: var(--accent); border-color: rgba(183, 255, 44, .4); }
.fr-chip.enemy { color: #ff8d84; border-color: rgba(255, 107, 94, .4); }
.fr-dossier-note { width: 100%; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }

.fr-rows { border-top: 1px solid var(--border-dim); }
.fr-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 2px; border-bottom: 1px solid var(--border-dim);
}
.fr-row-label { font-size: 12px; color: #96969d; flex: none; }
.fr-row input, .fr-row select { max-width: 260px; font-size: 12px; padding: 7px 10px; text-align: right; }
.fr-del { margin-top: 16px; }

@media (max-width: 900px) {
    .fr-wrap { grid-template-columns: 1fr; }
    .fr-toolbar input[type="text"] { width: 100%; }
}
