.lf-priority-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-block: 20px;
}
.lf-priority-filters .compact-field { flex: 1 1 150px; min-width: 0; }
.lf-priority-filters input, .lf-review-date input, .lf-review-date select,
.lf-priority-grid textarea, .lf-priority-grid select {
  border: 1px solid #d9e1e7;
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  color: #243340;
  font: inherit;
}
.lf-priority-switch, .lf-priority-dialog footer, .lf-review-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.lf-priority-switch { justify-content: space-between; padding: 12px 16px; }
.lf-priority-switch [role=status], .lf-priority-grid small, .lf-priority-dialog footer span {
  color: #657382;
  font-size: .85em;
}
.lf-priority-grid { width: 100%; border-collapse: collapse; text-align: left; }
.lf-priority-grid th { white-space: nowrap; background: #f4f6f7; }
.lf-priority-grid :is(th, td) { border-bottom: 1px solid #e3e8ec; padding: 10px 12px; vertical-align: top; }
.lf-priority-grid td { white-space: pre-line; overflow-wrap: anywhere; min-width: 4.3em; }
.lf-priority-grid td small { display: block; margin-top: 3px; white-space: nowrap; }
.lf-priority-grid td > button { display: block; white-space: nowrap; }
.lf-priority-grid .lf-super { color: #ac4a16; font-weight: 700; }
.lf-priority-grid .lf-incomplete { color: #ac3025; }
.lf-priority-empty { text-align: center; color: #657382; }
.lf-priority-pages { padding: 10px 16px; }
.lf-priority-dialog {
  width: min(1480px, 96vw);
  max-width: 96vw;
  max-height: 90vh;
  padding: 0;
  border: 1px solid #d9e1e7;
  border-radius: 16px;
  color: #243340;
}
.lf-priority-dialog[open] { display: flex; flex-direction: column; }
.lf-priority-dialog::backdrop { background: rgb(24 36 46 / 42%); }
.lf-priority-body { padding: 16px 20px; overflow: auto; min-height: 0; }
.lf-priority-body h4 { margin: 22px 0 10px; }
.lf-priority-dialog .bi-table-wrap { overflow-x: auto; }
.lf-priority-dialog .lf-priority-grid textarea { width: 100%; min-width: 116px; box-sizing: border-box; resize: vertical; }
.lf-review-date { margin: 0 0 14px; }
.lf-review-date label { display: inline-flex; align-items: center; gap: 8px; }
.lf-priority-dialog footer { justify-content: flex-end; border-top: 1px solid #e3e8ec; padding: 12px 20px; }
.lf-priority-dialog [data-save] { background: #ad501f; color: white; }
#lfPriorityTable { overflow-x: auto; }
#lfPriorityTable .lf-priority-grid td { border-right: 1px solid #e3e8ec; padding: 5px 7px; }
#lfPriorityTable [data-cell] {
  font: inherit; color: inherit; background: transparent; border: 1px solid transparent;
  box-sizing: border-box; border-radius: 3px; padding: 4px; width: 100%;
}
#lfPriorityTable textarea[data-cell] { min-width: 9em; resize: vertical; }
#lfPriorityTable textarea[data-cell=next_plan] { min-width: 16em; }
#lfPriorityTable [data-cell=planned_day] { min-width: 9em; }
#lfPriorityTable [data-cell]:hover { border-color: #b9c7ce; }
#lfPriorityTable [data-cell]:focus { outline: 2px solid #af501d; background: #fff; }
#lfPriorityTable [hidden] { display: none; }
