/* CollabForge AI — forms & inputs */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field > label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); }

.input, .select, .textarea {
  width: 100%; padding: 11px 14px; font-size: var(--text-sm);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-glow); }
.textarea { resize: vertical; min-height: 96px; line-height: var(--lh-normal); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A8593' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.field-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.field-row > .field { flex: 1 1 180px; }

/* Search box */
.search-box { display: flex; gap: var(--space-2); align-items: stretch; }
.search-box .input { flex: 1; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filter-bar .select, .filter-bar .input { width: auto; min-width: 130px; padding: 8px 12px; }

/* Segmented control */
.segmented { display: inline-flex; background: var(--color-canvas-alt); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.segmented button { padding: 6px 16px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; color: var(--color-text-secondary); }
.segmented button.is-active { background: var(--color-surface); color: var(--color-accent-strong); box-shadow: var(--shadow-soft); }
