/* files add-on (see ADDONS.md) */
.i-fxresume { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22/%3E%3Cpolyline%20points%3D%2214%202%2014%208%2020%208%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212.5%22%20r%3D%222%22/%3E%3Cpath%20d%3D%22M8.5%2018a3.5%203.5%200%200%201%207%200%22/%3E%3C/svg%3E"); }

/* file type badge */
.fx-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 34px; height: 22px; padding: 0 4px; border-radius: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #fff; background: #6b7280; vertical-align: middle; }
.fx-pdf { background: #dc2626; } .fx-doc { background: #2563eb; } .fx-xls { background: #059669; }
.fx-ppt { background: #ea580c; } .fx-img { background: #7c3aed; } .fx-txt { background: #6b7280; }

/* files card */
.fx-card { position: relative; transition: box-shadow .15s, border-color .15s; }
.fx-card.fx-over, .fx-intake-drop.fx-over { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fafaff; }
.fx-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fx-row:last-child { border-bottom: 0; }
.fx-row > .fx-ico { margin-top: 2px; }
.fx-main { flex: 1; min-width: 0; }
.fx-main .fx-open { text-decoration: none; font-weight: 600; text-align: left; word-break: break-word; color: var(--ink); }
.fx-main .fx-open:hover { color: var(--brand); text-decoration: underline; }
.fx-main .sub { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fx-main .sub { gap: 2px 8px; }
.fx-main select.fx-kind { width: auto; min-width: 0; max-width: 140px; height: auto; padding: 0 2px; border: 0; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; flex: none; }
.fx-kind:hover { color: var(--brand); }
.fx-btns { display: flex; gap: 4px; align-items: center; position: relative; flex: none; }
.fx-btns .btn.small { padding: 3px 8px; font-size: 13px; }
.fx-menu { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px; min-width: 130px; }
.fx-menu button { display: flex; width: 100%; border: 0; background: none; padding: 6px 10px; font-size: 13px; }
.fx-menu button:hover { background: var(--bg); }
.fx-drop-hint { margin-top: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.fx-empty { padding: 12px 6px; }
.fx-warn { margin-top: 4px; font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 5px 8px; }
.fx-note { margin: 6px 0; font-size: 13px; color: #1e3a8a; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 6px 10px; }
.fx-sm { width: 12px; height: 12px; border-width: 2px; }

/* modals */
.modal.fx-wide { width: min(1000px, 100%); }
.modal.fx-mid { width: min(760px, 100%); }
.fx-prev-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.fx-prev-head h2 { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-prev-head .spacer { flex: 1; }
.fx-frame { width: 100%; height: 72vh; border: 1px solid var(--line); border-radius: 8px; background: #f3f4f6; }
.fx-img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 6px; }
.fx-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f9fafb;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 66vh; overflow: auto; margin: 0; }
.fx-review { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.fx-review th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.fx-review td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.fx-review td:first-child { white-space: nowrap; width: 1%; }
.fx-review td:last-child { max-width: 220px; word-break: break-word; }
.fx-review input[type=text], .fx-review input:not([type]) { padding: 5px 8px; }
.fx-check { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.fx-check input { width: auto; }
.fx-mode { margin-top: 6px; }
.fx-exp { font-size: 13px; padding: 3px 0; }

/* intake (candidate from resume) */
.fx-intake-drop { border: 2px dashed #c7cad1; border-radius: 12px; padding: 22px 16px; text-align: center; background: #fcfcfd; transition: all .15s; }
.fx-big-ico { font-size: 34px; color: var(--brand); line-height: 1; margin-bottom: 6px; }
.fx-ai-opt { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.fx-ai-opt input { width: auto; }
.fx-intake-bar { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; }
.fx-intake-bar .spacer { flex: 1; }
.fx-items { display: grid; gap: 10px; margin-top: 12px; }
.fx-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.fx-item-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; min-width: 0; }
.fx-item-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-item-head .spacer { flex: 1; }
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; }
.fx-grid label, .fx-tags label { margin: 6px 0 2px; }
.fx-grid input, .fx-tags input { padding: 6px 8px; font-size: 14px; }
.fx-choices { margin: 10px 0 4px; display: grid; gap: 4px; }
.fx-radio { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; flex-wrap: wrap; }
.fx-radio input { width: auto; }
.fx-go { font-weight: 600; }

/* resumes page */
.fx-search-card { margin-bottom: 14px; }
.fx-search-card .toolbar { border: 0; padding: 0; background: none; border-radius: 0; margin-bottom: 8px; }
.fx-search-card .toolbar #fx-q { order: 0; margin-left: 0; max-width: none; flex: 1 1 100%; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.fx-loc { width: 150px; padding: 7px 8px; }
.fx-sec { padding: 12px 14px 4px; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fx-hits { display: grid; gap: 10px; }
.fx-hit-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fx-hit-head .spacer { flex: 1; }
.fx-snip { margin: 6px 0; font-size: 14px; color: #374151; white-space: pre-line; line-height: 1.5; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.fx-snip mark { background: #fef08a; color: inherit; padding: 0 2px; border-radius: 3px; }
.fx-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0; }
#fx-intake-card { margin-top: 16px; }

@media (max-width: 860px) {
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-review td:last-child { display: none; }
  .fx-frame { height: 60vh; }
}
