/* AiB Platform — actions: buttons, text links, the toolbar row and the
   row-level controls (search pill, tool buttons, kebab). Loaded by every
   surface after tokens.css and base.css. */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn--ghost:hover { opacity: 1; border-color: var(--ink); }
.btn--danger { background: none; border: 0; color: var(--danger); padding-inline: 6px; }
.btn--danger:hover { opacity: 0.7; }
/* full-width form button (auth screens) */
.btn--block { width: 100%; }
/* compact row button (inline ✕ removers) */
.btn--sm { padding-block: 4px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  transition: color 0.3s;
}
.text-link:hover { color: var(--ink); }
/* a text link flowing inside prose or a row, not as a flex block */
.text-link--inline { display: inline; }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; }
.arw { display: inline-block; transition: transform 0.4s var(--ease-out); }
a:hover > .arw, .text-link:hover .arw { transform: translateX(4px); }

/* ---------- toolbar (search / filter / sort) ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(300px, 100%);
  padding: 9px 14px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--grey-dark);
}
.search input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.search input:focus { outline: none; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.tool-btn:hover { color: var(--ink); background: rgba(13, 14, 19, 0.05); }

/* row-actions kebab — tables, member rows and sender rows all share it */
.kebab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--grey-dark);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.kebab:hover { color: var(--ink); background: var(--paper); }

/* ---------- touch: grow small controls toward the 44px thumb target,
   and keep the search field at 16px so iOS never auto-zooms on focus ---------- */
@media (pointer: coarse) {
  .kebab { width: 40px; height: 40px; }
  .tool-btn { min-height: 44px; }
  .search input { font-size: 16px; }
}
