/* RecruitersOS · Open InMails (owner-only, Recruiting > Reach)
 * Free Open Profile InMails as conversations: a list of people on the left,
 * the whole dialog and a composer on the right. Tokens only; no new colours. */
.oim { display: flex; flex-direction: column; gap: 16px; }
.oim-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.oim-head h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.oim-sub { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; max-width: 64ch; }
.oim-help { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-muted); font-size: 11px; line-height: 1; margin-left: 6px; cursor: help; vertical-align: 2px; }

/* tiles */
.oim-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.oim-tile { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.oim-tile:hover { background: var(--bg-soft); }
.oim-tile.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.oim-tile b { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.oim-tile span { font-size: 12px; color: var(--text-dim); }
.oim-tile.ok b { color: var(--ok); }
.oim-tile.warn b { color: var(--warn); }
.oim-tile.brand b { color: var(--brand); }

/* bar, filters */
.oim-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oim-bar input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.oim-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.oim-sel select { max-width: 260px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; }
.oim-chip { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-dim); font: inherit; font-size: 12px; cursor: pointer; }
.oim-chip.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.oim-chip:disabled { opacity: 0.6; cursor: default; }
.oim-chip:focus-visible, .oim-tile:focus-visible, .oim-row:focus-visible, .oim-send:focus-visible, .oim-sug:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* split */
.oim-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
.oim-list { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; max-height: calc(100vh - 120px); overflow-y: auto; }

/* rows */
.oim-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 128px; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.oim-row:last-child { border-bottom: 0; }
.oim-row:hover { background: var(--bg-soft); }
.oim-row.on { background: var(--brand-soft); }
.oim-row.needs::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.oim-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text-dim); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; letter-spacing: 0.02em; }
.oim-who { min-width: 0; }
.oim-who b { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oim-who span { display: block; color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oim-ctx { color: var(--text-muted) !important; }
.oim-ctx i { font-style: normal; color: var(--text-muted); }
.oim-st { text-align: right; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.oim-st b { display: block; font-weight: 600; color: var(--text); }
.oim-st.replied b { color: var(--ok); }
.oim-st.warm b, .oim-st.needs b { color: var(--brand); }
.oim-st.ours b { color: var(--text-dim); }
.oim-st.failed b, .oim-st.skipped b { color: var(--text-muted); }
.oim-st.held b { color: var(--warn); }
.oim-snip { grid-column: 2 / -1; margin: -2px 0 0; font-size: 12px; color: var(--text); background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oim-snip.me { color: var(--text-dim); }
.oim-snip b { font-weight: 600; color: var(--text-muted); }

/* thread */
.oim-thread { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 14px; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 120px); }
.oim-thead { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.oim-tperson { flex: 1 1 200px; min-width: 0; }
.oim-thread h3 { margin: 0; font-size: 15px; font-weight: 650; }
.oim-thread .oim-meta { color: var(--text-dim); font-size: 12px; margin: 2px 0 0; }
.oim-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.oim-links a { font-size: 12px; color: var(--brand); text-decoration: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px; }
.oim-back { display: none; font: inherit; font-size: 13px; color: var(--brand); background: none; border: 0; padding: 4px 6px 4px 0; cursor: pointer; }
.oim-turnrow { display: flex; gap: 6px; flex-wrap: wrap; }
.oim-turn { font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--surface-2); }
.oim-turn.needs { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.oim-turn.ours { color: var(--text-dim); }
.oim-turn.intent { color: var(--ok); }
.oim-stale { font-size: 12px; color: var(--warn); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--surface-2); }

/* dialog */
.oim-dialog { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 6px 2px; min-height: 160px; flex: 1 1 auto; }
.oim-bub { max-width: 82%; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 13px; color: var(--text); }
.oim-bub.me { align-self: flex-end; background: var(--brand-soft); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.oim-bub.pending { opacity: 0.7; }
.oim-bub.failed { border-color: var(--danger); }
.oim-subj { font-weight: 600; margin-bottom: 4px; }
.oim-txt { white-space: pre-wrap; word-break: break-word; }
.oim-bmeta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.oim-bfail { font-size: 12px; color: var(--danger); margin-top: 4px; }
.oim-bub audio { width: 100%; max-width: 280px; display: block; margin-bottom: 4px; }

/* composer */
.oim-compose { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.oim-compose textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 72px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; line-height: 1.45; }
.oim-compose textarea:focus { outline: none; box-shadow: var(--focus-ring); }
.oim-crow { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.oim-cbtns { display: inline-flex; gap: 6px; align-items: center; }
.oim-send { padding: 7px 16px; border: 0; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.oim-send:disabled { opacity: 0.5; cursor: default; }
.oim-closed { font-size: 12px; color: var(--text-dim); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.oim-sugs { display: flex; flex-direction: column; gap: 6px; }
.oim-sug { text-align: left; font: inherit; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 6px 10px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.oim-sug:hover { border-color: var(--brand); }
.oim-sug b { font-size: 12px; font-weight: 600; color: var(--brand); }
.oim-sug span { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* misc */
.oim-empty { padding: 28px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.oim-empty b { display: block; color: var(--text); margin-bottom: 4px; }
.oim-note { font-size: 12px; color: var(--text-muted); margin: 0; }
.oim-skel { height: 44px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--surface) 0%, var(--bg-soft) 50%, var(--surface) 100%); background-size: 200% 100%; animation: oim-sh 1.2s infinite linear; }
@keyframes oim-sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .oim-split { grid-template-columns: 1fr; }
  .oim-thread { position: static; max-height: none; }
  .oim-list { max-height: none; }
  .oim-back { display: inline-block; }
  .oim-pane-thread .oim-list, .oim-pane-thread .oim-tiles, .oim-pane-thread .oim-filters { display: none; }
  .oim:not(.oim-pane-thread) .oim-thread { display: none; }
  .oim-dialog { max-height: 55vh; }
}
@media (max-width: 720px) { .oim-row { grid-template-columns: 34px minmax(0, 1fr) 100px; } .oim-bub { max-width: 92%; } }
@media (prefers-reduced-motion: reduce) { .oim-skel { animation: none; } }

/* Applicants > Tal.co recruiters (partners mode, 2026-10-15): one card per recruiter, Free / Paid on each row. */
.oim-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.oim-seat { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; min-width: 0; }
.oim-seat:hover { background: var(--bg-soft); }
.oim-seat.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.oim-seat-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oim-seat-b b { font-size: 14px; font-weight: 600; }
.oim-seat-n { font-size: 12px; color: var(--text-dim); }
.oim-seat-n em { font-style: normal; font-weight: 650; color: var(--text); }
.oim-seat-n em.needs { color: var(--brand); }
.oim-seat-s { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oim-seat.idle .oim-seat-s { color: var(--warn); }
.oim-kind { font-style: normal; font-size: 11px; font-weight: 650; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.oim-kind.paid { color: var(--warn); border-color: currentColor; }
.oim-seat-c { font-size: 12px; color: var(--text-dim); }
.oim-seat-c em { font-style: normal; font-weight: 650; color: var(--text); }

/* By job (2026-10-15): a chip per job above the list, a heading per job inside it. */
.oim-jobs { display: flex; gap: 6px; flex-wrap: wrap; }
.oim-job { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.oim-job-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36ch; }
.oim-job em { font-style: normal; font-weight: 650; color: var(--text); }
.oim-job.on em { color: inherit; }
.oim-job em.needs { color: var(--brand); }
.oim-jobhead { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.oim-jobhead b { font-size: 13px; font-weight: 650; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oim-jobhead span { white-space: nowrap; }
.oim-jobhead em { font-style: normal; font-weight: 650; color: var(--brand); }
@media (max-width: 1100px) { .oim-pane-thread .oim-jobs { display: none; } }
@media (max-width: 720px) { .oim-job-t { max-width: 22ch; } }
/* Applicants > Tal.co recruiters: delete (owner 2026-10-17). A tick at the row's left, a bin at its right, the bulk bar above. */
.oim-rw { position: relative; }
.oim-rw .oim-row { padding-left: 38px; padding-right: 40px; }
.oim-rw.picked .oim-row { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.oim-pick { position: absolute; left: 12px; top: 18px; z-index: 1; display: inline-flex; padding: 2px; cursor: pointer; }
.oim-pick input, .oim-pickall input { margin: 0; width: 15px; height: 15px; cursor: pointer; }
.oim-rdel { position: absolute; right: 8px; bottom: 8px; z-index: 1; border: 1px solid transparent; background: none; color: var(--text-dim); height: 26px; min-width: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0 4px; font: inherit; font-size: 12px; }
.oim-rdel .isvg { width: 14px; height: 14px; }
.oim-rdel:hover, .oim-rdel:focus-visible { color: #b91c1c; background: color-mix(in srgb, #dc2626 10%, transparent); border-color: color-mix(in srgb, #dc2626 25%, transparent); outline: none; }
.oim-rdel.back { color: var(--text); border-color: var(--border); padding: 0 8px; }
.oim-rdel.back:hover { color: var(--text); background: var(--bg-soft); border-color: var(--border-strong); }
.oim-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.oim-bulk .oim-note { margin: 0 0 0 auto; }
.oim-pickall { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.oim-pickall b { color: var(--text); }
.oim-chip.oim-del { color: #b91c1c; border-color: color-mix(in srgb, #dc2626 35%, transparent); }
.oim-chip.oim-del:hover { background: color-mix(in srgb, #dc2626 10%, transparent); }
.oim-tile.gone b { color: var(--text-dim); }
.oim-hide { color: inherit; text-decoration: underline; }
.oim-flash { padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg-soft); font-size: 12.5px; color: var(--text); }
