.fw-tools { min-width: 0; color: var(--ink, #1c2422); letter-spacing: 0; }
.fw-settings { border: 0; border-top: 1px solid var(--line, #dce1df); margin: 24px 0 0; padding: 20px 0 0; }
.fw-settings legend { padding: 0 12px 0 0; font-size: 16px; font-weight: 650; }
.fw-field-grid, .fw-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw-field-grid { margin-bottom: 20px; }
.fw-tools label { display: grid; gap: 7px; font-size: 13px; min-width: 0; }
.fw-tools input:not([type="checkbox"]), .fw-tools select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong, #c8d0cd); border-radius: 5px; background: var(--surface, white); color: inherit; }
.fw-tools select[multiple] { height: 142px; max-width: 100%; padding: 6px; }
.fw-tools select[multiple] option { padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-settings:disabled input, .fw-settings:disabled select { background: var(--surface-muted, #f7f8f7); color: var(--muted, #66706d); cursor: not-allowed; }
.fw-check-grid label { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.fw-check-grid input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; }
.fw-wide { grid-column: 1 / -1; }
.fw-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.fw-tools h3 { font-size: 17px; margin: 0; line-height: 1.4; }
.fw-filters { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(160px, 2fr); gap: 16px; }
.fw-tools [role="status"] { font-size: 13px; color: var(--muted, #66706d); overflow-wrap: anywhere; min-height: 20px; }
.fw-table-wrap { max-width: 100%; overflow-x: auto; }
.fw-tools table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13px; text-align: left; }
.fw-tools th, .fw-tools td { border-bottom: 1px solid var(--line, #dce1df); padding: 12px 10px; vertical-align: top; overflow-wrap: anywhere; max-width: 260px; }
.fw-tools th { background: var(--surface-muted, #f7f8f7); font-size: 12px; }
.fw-tools small { display: block; color: var(--muted, #66706d); font-size: 12px; margin-top: 5px; }
.fw-toolbar button, .fw-tools td button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line-strong, #c8d0cd); border-radius: 5px; background: var(--surface, white); color: var(--blue, #366b91); cursor: pointer; }
.fw-tools button:disabled { opacity: .5; cursor: wait; }
.fw-tools button svg { width: 18px; height: 18px; }
.fw-tools dialog { width: 420px; max-width: calc(100% - 32px); border: 1px solid var(--line, #dce1df); border-radius: 8px; padding: 24px; background: var(--surface, white); color: inherit; }
.fw-tools dialog::backdrop { background: rgb(0 0 0 / 30%); }
.fw-tools dialog p { font-size: 14px; overflow-wrap: anywhere; line-height: 1.5; }
.fw-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.fw-dialog-actions button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-strong, #c8d0cd); border-radius: 5px; cursor: pointer; }
.fw-dialog-actions button[type="submit"] { background: var(--green, #217a57); color: white; }
@media (max-width: 600px) {
  .fw-field-grid, .fw-check-grid, .fw-filters { grid-template-columns: minmax(0, 1fr); }
  .fw-tools dialog { padding: 18px; }
}
